>For example if R1=10k >and R2=100 then the output voltage will be 50mV which should be low enough >to trigger the interrupt. It better! The logic low for I/O pins is generally around 0.8-1.2 V. To be safe, I would say anything <500 mV will generate a logic LOW on a pin. Just noting this to give you an idea of how close you need to cut it (or how close you don't need to, rather). --Andrew _________________________________________________________________ Join the world s largest e-mail service with MSN Hotmail. http://www.hotmail.com -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body