| Author |
Message |
bdellabe
Joined: 26 Jun 2007
|
|
Posted: 03 August 2007, 15:03 PM Post subject: CPU Sleep mode |
|
|
I have a ZX-24a microcontroller that I want to have sleep with as little power usage as possible while maintaining its Real Time Clock. I want it to wake up every ten minutes, perform its tasks which require the current time, then go back to sleep. Is there any way I can use the CPUSleep() function, have it wake up after a set amount of time and still have the RTC registers of the microcontroller maintain the correct time?
Thanks |
|
| Back to top |
|
 |
dkinzer Site Admin
Joined: 03 Sep 2005
Location: Portland, OR
|
|
Posted: 03 August 2007, 15:18 PM Post subject: |
|
|
The ZBasic RTC is implemented in software, i.e. it is maintained by responding to a timer interrupt that occurs at a 1024KHz rate. Using a sleep mode that does not allow the CPU to wake up in response to timer interrupts will result in the RTC not being updated correctly.
If you need long sleep times and an accurate RTC, you'll have to use an external RTC. |
|
| Back to top |
|
 |
|