Retention DeepSleep Mode
Materials
AMB82-mini x 1
Optional: Push button x 1
Optional: Register 220 ohms x 1
Example
In this example, the development board will demo the retention Deep Sleep Mode for power save. There are 2 wake-up retention sources for Deep Sleep Mode which are: AON Timer, and AON GPIO. The system will count down 5s then go to Deep Sleep mode. Upon the wake-up source being triggered, the system will be reboot and wake up again without losing the retention value.
The module and board power consumption report under Deep Sleep mode are listed in these two tables below.
RTL8735B module power consumption test results
Wake-up source |
Module power consumption (uA) |
|---|---|
Deep Sleep Mode (measure at 3V3) |
|
AON timer |
32.78 |
AON GPIO |
40.98 |
AMB82 MINI board Power Consumption
Wake-up source |
Development board power consumption Approximate measurement (mA) |
|
|---|---|---|
Normal Mode |
Standby Mode |
|
AON timer |
53.01 |
4.59 |
AON GPIO |
52.97 |
4.74 |
Open example in File -> Examples -> AmebaPowerMode -> RetentionDeepSleepMode
Next is setting up the system and entering the power mode. Please refer to the following steps for entering Deep Sleep mode.
Use the USE_MULTIPLE_WAKEUP_SOURCES configuration flag to set for multiple or single wakeup sources.
Multiple Wake-up Sources
You can use bitwise OR to setup multiple wakeup sources for MULTI_WAKEUP_SOURCE
DS_AON_TIMER (BIT0) - AON Timer wakeupDS_AON_GPIO (BIT1) - AON GPIO wakeupFor AON timer, please set CLOCK value to 0 or 1, 0:100kHz, 1:4MHz, SLEEP_DURATION unit is in seconds.
For AON GPIO, please set the AON_GPIO_PIN value to 21 or 22.
To define retention variables, please refer to the following diagram.




