Is it possible to let the standard timer (0/1/2) run in deep-sleep. I think in the user manual is written no:
For a wireless application I need to track time. If possible with a resolution of 32us. Therefore I used the timer 0 with a external 32kHz crystal as RTC clock. The RTC clock is used in sleep-mode for the timer 0. But in deep-sleep this didn't work.
Do I have to use the RTC-Timer (Alarm), to keep track of time?
I would like to have a 32kHz Timer in low-power mode meanwhile the RTC seems to be max 1kHz (wakeup-timer).
Is there a solution for my question?
解決済! 解決策の投稿を見る。
It seems not possible to let digital peripherie running in the power-down mode.
I solve this with the 32bit rtc timer. Keep in mind, that the RTC has 2 internal timers:
1x 16bit one-shot timer, counting down to zero, 1kHz input
1x 32bit rtc, counting up endless, 1Hz input
I set a rtc alarm, after wakeup I update my 32kHz fast internal timer with 32000*rtc_time_passed.
Hi Simon Wyss,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
It seems not possible to let digital peripherie running in the power-down mode.
I solve this with the 32bit rtc timer. Keep in mind, that the RTC has 2 internal timers:
1x 16bit one-shot timer, counting down to zero, 1kHz input
1x 32bit rtc, counting up endless, 1Hz input
I set a rtc alarm, after wakeup I update my 32kHz fast internal timer with 32000*rtc_time_passed.