At 10:27 PM 9/26/01 -0400, you wrote: >3: Read the input. If it is high then the switch must be closed because the >capacitor is > discharging thru the 47K. If it is low then the switch is open. I don't think this will work because of the effective 300R to ~3V (the resistor/LED) swamps the 47K resistor. Maybe you could do it with the output impedance of the PIC port pin and the capacitor time constant, but.. Best regards, Spehro Pefhany --"it's the network..." "The Journey is the reward" speff@interlog.com Info for manufacturers: http://www.trexon.com Embedded software/hardware/analog Info for designers: http://www.speff.com /.-.\ (( * )) \\ // Please help if you can: \\\ http://dailynews.yahoo.com/fc/US/Emergency_Information/ //\\\ /// \\\ \/ \/ -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body