This may be an obvious question, If I am using a micro. (Normally Microchip devices) and I have a pin set high. If I put the micro to sleep, does this pin stay hi or do all the pins go low ?
Background is I want to measure a battery voltage that also powers the micro.If this drops to a low value, I want the micro to go to sleep, and enable a FET. i.e switch on an output pin.
This FET switches out the potential divider that I'm using to measure the battery voltage with the micro.
The leakage current of the circuit is then reduced.
Thanks
