Bill said:
I have a case where I want to put about 20 microamps into an
AVR at 12v. AVRs have clamp diodes to both ground and Vcc on
their digital inputs. It seems to me that a diode inline with
the Vcc supply would disable the internal clamp diodes of the
chip. Am I correct on this or is the internal circuitry
fancier than a simple clamp diode.
Thanks,
Bill
The input diodes you speak of are connected to the VSS and VDD
internally and are there for a couple of reasons.
1. is to prevent over drive of either low or high of course.
2. Since the internals are CMOS, most likely, it's not a good idea to
allow inputs to exceed the +/- rails, otherwise, you'll get a latch up
and a misbehaved chip if input signals for even a moment, exceeding a
diode drop above the rail voltage.
You need not to worry about the supply diode you have in line to the
(+) supply of the chip. It's all about making sure the inputs do not
exceed the +/- of the rails at the chip. The voltage at the (+) rail of
the chip, for example, will cause current to flow in the upper diode if
it reaches a diode drop (~ 0.6) above the (+) rail, at which point the
input signal will flow through the diode to the (+) rail instead,
against the supply. The clamping force will still be provided.
It's possible they're using sk diodes so it could even be closer to .3
volts when (If) is started.
You really want to avoid hitting the inputs hard enough to activate
these diodes. It's not good practice and it will most likely extend the
skew. If you need to clip an input signal to compress it to a square
wave for an adequate trigger, do that before with an external circuit.
Jamie