1. Application background:
Because the package of APM32F003 is very small, only 20-PIN, and the current is about 3uA in the low power consumption state, it has a large number of applications in products with batteries.
Entering the low-power mode by pressing the button is a relatively routine function, so this demo can help customers quickly realize the APM32F003 entering the low-power mode and wake-up function on customer products.
2. Functions realized by Demo:
Use APM32F003F6P6 MINIBOARD, use KEY1 (PD1) of MINIBOARD as sleep wake-up button, control APM32F003 to enter low power consumption mode and wake up.
Specific functions:
(1)MCU runs in normal mode after power-on.
(2)Press KEY_1 to enter low power consumption mode (RAM, Register data will not be lost).
(3)Press KEY_1 again to wake up the MCU and return to normal mode.
The code part uses the KEY1 button (PD6) of the MINI Board to enter/exit the Halt mode, and uses the WFI command.
Configure other IO pins as input state.
Comments