How bout using a I2C realtime clock/calandar like the PCA8565.
Keeps track of time ALL the time.
(that was the first item I came across after a simple google)
PIC just stores the real time in a register before shutdown;
Then, when woke up, reads RTC and compares to register.
Wham, Bam.... times up!
T




Bookmarks