This is a multi-part message in MIME format. ------=_NextPart_000_005D_01C3FB87.7B86E2A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit > I also just noticed a pretty obvious thing that was causing > problems: if we let the internal protection diodes of the chip > kick in, that will create a low impedance path to Vdd or Vss, > and thus may cause problems if one expects the PIC input > to behave as high impedance Don't rely on the internal diodes, the whole chip may latch up. If it does you can probably kiss at least that pin goodbye. I've had it happen. 12V signal (through 1k with a 4V7 zener to 0V) had noise on it that went below ground to the tune of ~0.8V. The PIC locked up and fried. I added a BAT46 Schottky diode and 10n cap to 0V, no more problems -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body ------=_NextPart_000_005D_01C3FB87.7B86E2A0 Content-Type: image/gif; name="pin_prot.gif" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="pin_prot.gif" R0lGODlhjwBFAIAAAAAAAP///ywAAAAAjwBFAAAC/oyPqcvtD6OcFIGKs968m+uF4kg+YImmKnau 7gsHbUzX3mznuoTv/m8BCocyonHX4x2Sxwzg+Uy0oNHlsirVYJnNytQ6C4NOOG7jQv50OV91ODh2 mOXgNZuaftdl0MX8fGXHFlSkZmUYZ0jotCfIQoi3GJmWpdXoSPGlVwh5uPiIiOlFpahYdtXzJ7pK x+oKOpH62qXqllU7CzOGx7vlSdYbLDxMXGx8jFxs+YbL0BfznInFaKnQDFhzXUq9pr3h7e1JawPe Ef5yDutlLpi+zl3dTR5P3+SeWa9uPw/ff3QfK987ednokVJiByBCfdtaEWxYopy1gAk/OUOFz0Qy 3ooRt6E5+GGYRlMcsVX6hqLKJk6laqEhyWdaTF4XpcgcKOIlTHGcokVIVIiSk2k+GbIT2sbZzVaU hN4AaRQlS508LUA1AdOpuasZc4KkytIaV2xNq2qh6S/EyrBWI/3EuHOmW41zcY5Yy6QXNIFdxxVM 23ff36glBdOQKPXhXsCF//EjvNDvYb6NjSh8yziy4cWQMSvWRVmz48F2O/+4DAFxaCCosWb2LJlz 6dk+iKUUeQZ34Fy8J9pDq0LvT+C0e/durXZpiqLDzyE3jgS6dLPTZz2vPhm78eva0RkoAAA7 ------=_NextPart_000_005D_01C3FB87.7B86E2A0--