WooHoo, that's great.
That's odd about the voltage in sleep mode. The only thing I can see is the voltage divider coming from the battery. If RC4 were set to input when going to sleep, it would leave just a 10K resistor between the batteries and RA1. Since the battery voltage is higher than VDD, it would conduct through the protection diodes of the RA1 pin to VDD. With 10K and 6V you could easily push 100uA or more thru that way. With the pic in sleep mode it will draw less current than is flowing thru the diode, causing VDD to rise.
However, I don't see any reason why it shouldn't still be doing that. Like I said ... That's odd.
Added: Unless the battery voltage has dropped to a point where it's not pushing as much current thru the diode??
... there are voltage regulators that have a low battery alarm built into the chip ...
The MIC2954-08BM is similar to what you're using but also has an ERROR output that goes low when the output voltage drops below it's regulation point. But its an 8-pin SOP package, so it may not be the best choice if you're making a through hole board.
About the dead battery detection, hopefully somebody else here can answer that one. I don't know enough about them.




Bookmarks