DocID025202 Rev 7
104/1080
RM0365
Power control (PWR)
112
8.3.4 Stop
mode
The Stop mode is based on the ARM
®
Cortex
®
-M4 deepsleep mode combined with
peripheral clock gating. The voltage regulator can be configured either in normal or low-
power mode in the STM32F302xx devices. In the Stop mode, all I/O pins keep the same
state as in the Run mode.
Entering Stop mode
for details on how to enter the Stop mode.
To further reduce power consumption in Stop mode, the internal voltage regulator can be put
in low-power mode. This is configured by the LPDS bit of the
If Flash memory programming is ongoing, the Stop mode entry is delayed until the memory
access is finished.
If an access to the APB domain is ongoing, The Stop mode entry is delayed until the APB
access is finished.
In Stop 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 24. Sleep-now
Sleep-now mode
Description
Mode entry
WFI (Wait for Interrupt) or WFE (Wait for Event) while:
– SLEEPDEEP = 0 and
– SLEEPONEXIT = 0
Refer to the ARM
®
Cortex
®
-M4 System Control register.
Mode exit
If WFI was used for entry:
Interrupt: Refer to
Table 40: STM32F302xB/C/D/E vector table
and
Table 41: STM32F302x6/8 vector table
.
If WFE was used for entry
Wakeup event: Refer to
Section 13.2.3: Wakeup event management
Wakeup latency
None
Table 25. Sleep-on-exit
Sleep-on-exit
Description
Mode entry
WFI (wait for interrupt) while:
– SLEEPDEEP = 0 and
– SLEEPONEXIT = 1
Refer to the ARM
®
Cortex
®
-M4 System Control register.
Mode exit
Interrupt: refer to
Table 40: STM32F302xB/C/D/E vector table
and
Table 41: STM32F302x6/8 vector table
Wakeup latency
None