Power control (PWR)
Stop mode
Mode entry
Mode exit
Wakeup latency
162/1043
Table 37. Stop mode
WFI (Wait for Interrupt) or WFE (Wait for Event) while:
– No interrupt (for WFI) or event (for WFE) is pending.
– SLEEPDEEP bit is set in Cortex
– PDDS bit = 0 in Power Control register (PWR_CR)
– WUF bit = 0 in Power Control/Status register (PWR_CSR)
– MSI or HSI16 RC oscillator are selected as system clock for Stop mode
exit by configuring the STOPWUCK bit in the RCC_CFGR register.
Note: To enter the Stop mode, all EXTI Line pending bits (in
Section 13.5.6: EXTI pending register
interrupt pending bits, the RTC Alarm (Alarm A and Alarm B), RTC
wakeup, RTC tamper, and RTC time-stamp flags, must be reset.
Otherwise, the Stop mode entry procedure is ignored and program
execution continues.
On return from ISR while:
– No interrupt is pending.
– SLEEPDEEP bit is set in Cortex
– SLEEPONEXIT = 1
– PDDS bit = 0 in Power Control register (PWR_CR)
– WUF bit = 0 in Power Control/Status register (PWR_CSR)
– MSI or HSI16 RC oscillator are selected as system clock for Stop mode
exit by configuring the STOPWUCK bit in the RCC_CFGR register.
Note: To enter the Stop mode, all EXTI Line pending bits (in
Section 13.5.6: EXTI pending register
interrupt pending bits, the RTC Alarm (Alarm A and Alarm B), RTC
wakeup, RTC tamper, and RTC time-stamp flags, must be reset.
Otherwise, the Stop mode entry procedure is ignored and program
execution continues.
If WFI or return from ISR was used for entry:
Any EXTI Line configured in Interrupt mode (the corresponding EXTI
Interrupt vector must be enabled in the NVIC). Refer to
vectors.
If WFE was used for entry and SEVONPEND = 0
Any EXTI Line configured in event mode. Refer to
Wakeup event management on page 293
If WFE was used for entry and SEVONPEND = 1
– Any EXTI Line configured in event mode (even if the corresponding EXTI
interrupt is disabled in the NVIC). The interrupt source can be an external
interrupt or a peripheral with wakeup capability (refer to
vectors).
– A wakeup event (refer to
page
293)
MSI or HSI16 RC wakeup time + regulator wakeup time from Low-power
mode + FLASH wakeup time
RM0367 Rev 7
Description
®
-M0+ System Control register
(EXTI_PR)), all peripherals
®
-M0+ System Control register
(EXTI_PR)), all peripherals
Section 13.3.2: Wakeup event management on
RM0367
Table 55: List of
Section 13.3.2:
Table 55: List of
Need help?
Do you have a question about the STM32L0x3 and is the answer not in the manual?