DocID025202 Rev 7
106/1080
RM0365
Power control (PWR)
112
8.3.5 Standby
mode
The Standby mode allows to achieve the lowest power consumption. It is based on the
ARM
®
Cortex
®
-M4 deepsleep mode, with the voltage regulator disabled. The 1.8 V domain
is consequently powered off. The PLL, the HSI oscillator and the HSE oscillator are also
switched off. SRAM and register contents are lost except for registers in the RTC domain
and Standby circuitry (see
Entering Standby mode
for more details on how to enter Standby mode.
In Standby mode, the following features can be selected by programming individual control
bits:
•
Independent watchdog (IWDG): the IWDG is started by writing to its Key register or by
hardware option. Once started it cannot be stopped except by a reset. See
Table 26. Stop mode
Stop mode
Description
Mode entry
WFI (Wait for Interrupt) or WFE (Wait for Event) while:
– Set SLEEPDEEP bit in ARM
®
Cortex
®
-M4 System Control register
– Clear PDDS bit in Power Control register (PWR_CR)
– Select the voltage regulator mode by configuring LPDS bit in PWR_CR
Note:
To enter Stop mode, all EXTI Line pending bits (in
), all peripherals interrupt pending bits and RTC Alarm flag
must be reset. Otherwise, the Stop mode entry procedure is ignored and
program execution continues.
If the application needs to disable the external oscillator (external clock)
before entering Stop mode, the system clock source must be first switched
to HSI and then clear the HSEON bit.
Otherwise, if before entering Stop mode the HSEON bit is kept at 1, the
security system (CSS) feature must be enabled to detect any external
oscillator (external clock) failure and avoid a malfunction when entering
Stop mode.
Mode exit
If WFI was used for entry:
– Any EXTI Line configured in Interrupt mode (the corresponding EXTI
Interrupt vector must be enabled in the NVIC).
– Some specific communication peripherals (USART, I2C) interrupts, when
programmed in wakeup mode (the peripheral must be programmed in
wakeup mode and the corresponding interrupt vector must be enabled in
the NVIC).
Refer to
Table 40: STM32F302xB/C/D/E vector table
and
If WFE was used for entry:
Any EXTI Line configured in event mode. Refer to
Wakeup event management on page 213
Wakeup latency
HSI RC wakeup time + regulator wakeup time from Low-power mode