>Your idea just needs one R from battery + to the pin, >with the cap to gnd. Then pull the pin low and count for >it to get high again. With a 560k resistor and the pin >held high by software, your circuit would use much less >power too. Good way to measure a battery voltage with >just a digital pin (not ADC). Pretty cool! >-Roman You would probably need a small R from cap to the pin to limit the current discharge when the I/O pin is pulled low. Nice idea. James -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body