There is a diode for ESD spike forward biased from pin to VCC. If there is a high enough voltage on the pin, the diode starts to conduct. I am not sure if even some uA are healthy.
Hello,
AVR182 specifies a allowed clamping current up to 1mA (on some other MCUs are only 0.5mA are allowed).
But in some cases it is better not to rely on the internal clamping diodes.
- If you use a low power design with sleep mode using only some uA during sleep together with a voltage regulator which only delivers output current and cannot sink any current (like most regulators). In this case during sleep the supply voltage will go up to nearly the 9V through the clamping diodes.
- In one design I had a bus powered FTDI module with TTL-Levels connected via clamping resistors to a AVR with a LC-Display.
The problem was that after power cycling of the AVR circuit the AVR did not start up correctly because it got current over the FTDI module via clamping diodes. The display was "dark" in this case, except immediately after programming. (In this case there was a correct reset).
- Another design had ADC issues on a neighbour pin of a ADC-pin which was connected via 100k to a RS232 connector. Every time with a negative edge (-12V = -120uA) the input filtering capacitor of the ADC pin was discharged by several 10-100mV disturbing the next ADC conversion. A schottky clamping diode external to the RS232 pin helped in this case.
So you can use the internal clamping diodes as long as you do not violate the absolute maximum ratings. But you have to examine carefully the risks and side effects.
with best regards
Andreas