Thank you for your answer. >You really need to explain the question in a little more detail to be sure >that the answer suits your applications. Sorry, I didn't realise there could be so many answers to this question :) >Assuming you are using the pin as an input which is pulled high by a >mechanical single pole switch connected to Vdd and which is pulled low by >the pull down then: This is almost how it works... Actually I have a zener from an external power supply but that probably doesn't matter. It looks something like this: ~12V in-|=2k=|--|----|-----|------PIC pin | | | Z C R | | | |----|-----|------ GND Z= 5,1V C= 100n R= 100k -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body