Go Down

Topic: timer keep going under sleep mode ? (Read 53 times) previous topic - next topic

Hi, All

Currently I am working at the timer of a project. The goal is to set the LCD into sleep_mode_pwr_down from a certain set time and then countdown. It will display the remain time for a few seconds once push the button ( an interrupt ).  So my question is how to keep the timer running while in sleep mode ?  Any one can give me some hints or a link of similar project ?

From the code I have by now, it stops to countdown once the sleep mode starts.

Please give me as much suggestions as possible. Many thanks in advance.

Best~,

Peter_n

#1
Dec 18, 2014, 10:21 am Last Edit: Dec 18, 2014, 11:13 am by Peter_n
I think the "IDLE" mode is the shallowest sleep of all and it will keep the timers running.

I think the "IDLE" mode is the shallowest sleep of all and it will keep the timers running.
Thank you for your reply, Peter_n. However,  the "IDLE" mode only has the least power savings. Any suggestions under the " POWER_DOWN" or " POWER_SAVE" mode ?

Peter_n

No, but the WatchDog has also a timer, you can keep that running and power everything else down. It is very (very) inaccurate, so an RTC is needed to know the time.

Go Up