ESP32S3 Sleep behaviour using alarm instead of timer
Posted: Wed Apr 20, 2022 2:49 pm
Hi,
1. I'm trying to implement a constant alarm for ESP32S3 to wake up from deep sleep, instead of using the esp_sleep_enable_timer_wakeup(TIME) function.
2. There are normal alarm timers that can be set to generate interrupt in normal mode. But I want an alarm that generates interrupt even in deep sleep mode.
3. There is a resource available in the python version saying that we can set the alarm for deep sleep mode.
- The link for the same is here: https://docs.circuitpython.org/en/lates ... index.html
NOTE: The difference between alarm setting and the esp_sleep_enable_timer_wakeup(TIME) function:
a. In the case of alarm setting the device generates interrupt after every desired interval of time even if the device is [/b]in deep sleep mode. And we need to set the alarm setting only once.
b. In the case of the esp_sleep_enable_timer_wakeup(TIME) function the device wakes up after a desired interval of time after going to deep sleep which means I have to set the timer every time before going to deep sleep.
Is there any version available in C for the above resource I have attached? or
Is there any way we can set the alarm timer that works in deep sleep?
Could someone please help me with this?
Thanks & Regards,
Kowshik.
1. I'm trying to implement a constant alarm for ESP32S3 to wake up from deep sleep, instead of using the esp_sleep_enable_timer_wakeup(TIME) function.
2. There are normal alarm timers that can be set to generate interrupt in normal mode. But I want an alarm that generates interrupt even in deep sleep mode.
3. There is a resource available in the python version saying that we can set the alarm for deep sleep mode.
- The link for the same is here: https://docs.circuitpython.org/en/lates ... index.html
NOTE: The difference between alarm setting and the esp_sleep_enable_timer_wakeup(TIME) function:
a. In the case of alarm setting the device generates interrupt after every desired interval of time even if the device is [/b]in deep sleep mode. And we need to set the alarm setting only once.
b. In the case of the esp_sleep_enable_timer_wakeup(TIME) function the device wakes up after a desired interval of time after going to deep sleep which means I have to set the timer every time before going to deep sleep.
Is there any version available in C for the above resource I have attached? or
Is there any way we can set the alarm timer that works in deep sleep?
Could someone please help me with this?
Thanks & Regards,
Kowshik.