CeeRox said:
Jan Panteltje skrev:
R would be at least 50 Ohm if the zener can handle 1 Watt continous
(7V).... There would be problems if a CMOS-output should have an input
protection for eg. 75V. But then maybe a VDR could be useful, if the
zener-diode would survive the time before the VDR gets "high-ohmic".
Don't do this. If the zener or diode clamps just a wee bit beyond the
substrate diode then the substrate diode will "win", take the brunt of
the current and the MCU goes up in smoke. They can only take so many mA
on the substrate diodes and after that it can latch up. If you are
really lucky it'll take the regulator and everything else with it to the
grave.
Use several 10K or provide Schottky diodes to VCC and GND. Or use a
regular double diode such as the BAV 99 (for low current cases) but a
second resistor between that and the MCU pin.
Another often unwanted effect is that a current into the upper substrate
diode can actually power your MCU side. If it doesn't present enough of
a load, maybe because it has entered a low power mode, that voltage
might exceed abs max and then bzzzt ... poof.