This could be tricky... you may need to find available space for a lead-acid battery or two...
Firstly, the internal Timers are shut off during SLEEP mode and can't wake the processor because all the peripheral logic is shut down. But the processor can be woken by either RB0 or change on some of the PortB pins.
See Special Features of the CPU section in the Datasheet.
Bookmarks