--=====================_1077703864==_ Content-Type: text/plain; charset="us-ascii" Hi I don't think the input of the pic should ever be stressed. Maybe you can get away with it on the bench with a JDM progger, but if your device is out in the field, it's too risky. If your inputs are going to be spiked, something like the attached GIF should be used. - the input is first current restricted by the first 10K - then it is clamped by the schottky - then it is subject to clamping by the pic after second 10K. At this stage, it should only be a few mV - a 5V1 zener should be used on the Vcc incase the input is pulled high for long periods, and could pull the Vcc up if your PIC cct is low power. - bypass the 5V1 zener with a small cap for transients (back to ground), at the point of the zener. You could even further isolate the Vcc shown here with a small R from the main Vcc - keep all clamping relative to gnd only, with a good ground plane - you could put tiny caps at the pic inputs too, depending on whether rise/fall times are important. Regards Roland At 10:56 AM 25/02/04 +0100, you wrote: >At 15.59 25/02/2004 +1300, you wrote: >>> Good idea the cap and the resistor, that should kill much of the >>> overshoot.. but wouldn't it be better another zener (this one >>> connected to Vdd, not Vss) instead of the Schottky diode? I >>> mean a two zeners solution, one zener to Vss and the other to >>>Vdd >> >>Wasn't "undershoot" the problem ? R+Z will limit V on the PIC >>pin to 4V7, but adding another ZD to Vdd won't do anything to >>stop sub-0V transitions. A zener has the same Vf as a normal >>P-N diode (like the PIC's internal ones), whereas the Schottky's >>metal-N composition has a lower Vf and will conduct first, which >>is what you need > >If you put a 4.7V zener, anode to your I/O pin and cathode to Vdd, >if will conduct when the I/O pin is below -4.7V respect to Vdd, i.e. >when it's below ~0.2V respect to Vss. > >It works.. I checked it.. but I wish I had an oscilloscope to check >the transients as well. For this application though (low frequency) >the rise/fall time is so slow that it's not going to be a problem.. >with (and probably also without) a cap. But I like the idea of the >double 4V7 zeners (one to Vss and one to Vdd) and was wondering how >they behave with transients, at high frequences. > >Greets, >Andrea > >-- >http://www.piclist.com hint: To leave the PICList >mailto:piclist-unsubscribe-request@mitvma.mit.edu > -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu --=====================_1077703864==_ Content-Type: image/gif; name="clamp.GIF"; x-mac-type="47494666"; x-mac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UYuU/4eXGAcDtXM9XSs8594dwPGJaKLITi6+g0isM+692SLOtMixwrihx PrBociVtLuduyCmswq9KKLAf++e///Lmh17neSIrUgnoVNiGeP6xer6ETQnnstKygg7pdm6Ue07p Lzsrlo7nhUIoj14sPQzmq6HqYY4l3G0ca/3q3C3ksr7KsV7rlkzruN7Fur7rPXzrvt7DvR7sFwzs 3B26ncvOjCy6z1nQhny796zYyH6kAhw8WRrQ2WmStkvt9UzmzL65XxqlyP7bZh7typ7sgWzblmzs xI6+w97u3cvu8H697z7vyyvv9m689Z7vibvv/O6m+P7vburvSCzH367YgNzAzz7t89y6z77m0u7s tluNFDuE5u7w2n7uexzx7+y6Z17mqKvI547s4Y7xaK7wCK2zxttJXC7wMfxGLe/yL3FPgDJf88VU wjaf8x2hPjGv8zPvwz4f9BlhLz0v9D8vgkaf9EOP9EpfE7Vb7qCburOX7SMv9R5/sEiaH+qz8eIu cxIfpYkN9g2P8icvv5kb9T7K2Giv7k3f9m7/9nAf93I/93Rf93Z/93if93q/90UREAA7 --=====================_1077703864==_ Content-Type: text/plain; charset="us-ascii" Regards Roland -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu --=====================_1077703864==_--