Serial number |
Running state |
Enter command ( stm32f2xx_pwr.c ) |
Exit Criteria |
State |
IO pin Status |
Measures to further reduce power consumption |
class= xl65 "" > run mode |
< Span class= "font9" > power up / default mode after system reset, HCLK driver cpu run code |
can be entered into other modes via instruction |
power supply all normal, Clock is in default settings |
user set State |
1 2 |
2 |
Sleep mode |
__WFI () or __wfe () |
Arbitrary interrupts and wake-up events |
1, can be divided into two kinds, one is immediately entered, the other is from the lowest priority exit after entering; 2, the core clock stops, peripherals continue to operate; |
I don't know for a moment. |
Before entering: 1. Reduce the peripheral clock used 2. Close the clock without peripherals |
3 |
Standby mode |
void Pwr_enterstandbymode (void); |
1, pa0 rising edge wake 2 , RTC alarm 3 RTC Wakeup 4 Span class= "Font9", tamper event 5 , time-stamp event 6 external Reset in NRST pin 7 IWDG reset |
1, switch off the 1.2V voltage domain power loss; 2, internal SRAM and register content loss; 3,pll/hsi/hse closed; 4,iwdg/rtc/lsi/lse can be determined by the user whether to run; 5, voltage regulator off |
All Pin Place Z State, except Reset and PC13,PI8 and PA0 . |
close backup before entering SRAM |
4 |
Stop mode |
void Pwr_enterstopmode (uint32_t pwr_regulator, uint8_t pwr_stopentry) |
Arbitrary internal and external interrupts Or event wake-up |
1, The clock in the 1.2V voltage domain all stops; 2, internal SRAM and register contents remain; 3,pll/hsi/hse closed; 4,iwdg/rtc/lsi/lse can be determined by the user whether to run; 5, voltage regulator can set low power consumption and operating state |
All Pin Keep State of the same run mode |
Before entering 1, the VR configuration to low-power mode 2. Configure Flash to OFF mode 3. Turn off Adc/dac if not required |