At 03:36 PM 1/1/01 +1100, Roman Black wrote: >Since your code seems simple I guess you may have a >hardware problem! If I understand your circuit properly >you are using one pin to ground the C through R, then >the other pin to sense the voltage. And the third pin >hopefully floats so it doesn't affect anything. The third is set as input, so that would be the general expectation. I've been away from pics for a while, so I expect that I'm missing something peculiar to pic port pins. >Since it is not detecting low, my guess is the voltage >on the capsense pin is not going below the bottom >threshold. This could be caused by three things; I hear you, but Mr Scope says otherwise. It droops to zero, and sits there. I'm trying various perversions to diagnose where it's falling apart, without butchering the routine too much. >If you capsense is schmitt input that might explain >it?? What value is your discharge resistor?? 1k-10k for a 0.1uF cap. I generally avoid high impedances where practical. Happy new year :) -- Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9 -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body