Retention Standby 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 Standby Mode for power save. There are 4 wake-up retention sources. The system will count down 5s then go to Stand By 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 Standby mode are listed in these two tables below.
RTL8735B module power consumption test results
Wake-up source |
Module power consumption (uA) |
|---|---|
Stand By Mode (measure at 3V3) |
|
AON timer |
41.22 |
AON GPIO |
41.28 |
PON GPIO |
41.07 |
Gtimer0 |
41.48 |
AMB82-MINI board Power Consumption
Wake-up source |
Development board power consumption Approximate measurement (mA) |
|
|---|---|---|
Normal Mode |
Standby Mode |
|
AON timer |
53.15 |
4.79 |
AON GPIO |
53.12 |
4.81 |
PON GPIO |
55.09 |
4.87 |
Gtimer0 |
55.59 |
4.83 |
Open example in File -> Examples -> AmebaPowerMode -> RetentionStandbyMode
Next is setting up the system and entering the power mode. Please refer to the following steps for entering Standby 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
SLP_AON_TIMER (BIT0) - AON Timer wakeupSLP_AON_GPIO (BIT1) - AON GPIO wakeupSLP_PON_GPIO (BIT4) - PON GPIO wakeupSLP_GTIMER (BIT7) - GTimer wakeupNote
SLP_RTC is not supported with retention SLP_GTIMER is automatically added when retention is enabled
For 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.
For PON GPIO, please set the PON_GPIO_PIN to value between 0 and 11. The GPIO pin is set to active high, please refer to the following connection.
For GTimer, please set the value for GTIMER_DURATION, the timer sleep duration in seconds.
To define retention variables, please refer to the following diagram.





