81
/
838
Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
Mode
Condition
Enter
Exit
Peripheral clocks, all digital blocks and
voltage regulators are still running.
HSE/HSI/PLL is turned off.
LSE/LSI, RTC or other peripherals can be
configured to wake up.
All SRAM data retention, all IO ports,
IWDG and RTC can be used to wake up the
CPU.
After waking up, HSI is turned on, and the
code starts from where it hangs.
1
)
SCB_SCR.SLEEPDEEP =
1
,
PWR_CTRL.PDS
=
0
,
2
)
PWR_CTRL.LPS=0/1
,
Select the main voltage
regulator operating mode
1) If entered by WFI, any from
external interrupt/event line
(NVIC enabled), it can be external
interrupt or internal peripheral
2) If entered by WFE,
SCB_SCR.SEVONPEND=0, any
event line from external
3) If entered by WFE,
SCB_SCR.SEVONPEND=1, any
interrupt from external or internal
peripheral
STOP2
[2]
CPU deep sleep mode:
CPU registers are maintained, and all core
digital logic areas are powered off.
The main voltage regulator (MR) is turned
off and the HSE/HSI/PLL is turned off.
LSE/LSI configurable,
GPIO is maintained, and peripheral IO
multiplexing is not maintained. 16KB R-
SRAM data retention, other SRAM and
register data are lost.
84B BK register retention.
GPIOs and EXTI are enabled.
WFI/WFE
:
1
)
SCB_SCR.SLEEPDEEP =
1
2
)
PWR_CTRL2.STOP2S =1
wake:
1) If entered by WFI, any from
external interrupt/event line
(NVIC enabled), it can be external
interrupt or internal peripheral
2) If entered by WFE,
SCB_SCR.SEVONPEND=0, any
event line from external
3) If entered by WFE,
SCB_SCR.SEVONPEND=1, any
interrupt from external or internal
peripheral
STANDBY
The main voltage regulator is turned off and
the HSE/HSI/PLL is turned off.
LSE/LSI is configurable.
16KB bytes of R-SRAM retention,
configured through
PWR_CTRL2.SR2STBRET. Other SRAM
and register data are lost.
Except for the following
NRST/PA0_WKUP/PC13-TAMPER/PC14-
OSC32_IN/PC15-OSC32_OUT, other IOs
are high impedance.
The 84-byte BK register data retention,
IWDG, RTC/PA0WKUP/NRST/TAMPER
can wake up the CPU.
WFI/WFE
:
1
)
SCB_SCR.SLEEPDEEP =
1
interrupt/event
2
)
PWR_CTRL.PDS=1
WKUP rising edge, RTC alarm
rising edge, NRST reset, IWDG
reset
VBAT
CPU off, all peripherals off, main voltage
regulator off, LSE/LSI configurable,
HSE/HSI/PLL off. Except for NRST/PC13-
TAMPER/PC14-OSC32_IN/PC15-
OSC32_OUT, most IO ports are in high
VDD disable
VDD enable