EasyManuals Logo

ST STM32F10 Series User Manual

ST STM32F10 Series
519 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #37 background imageLoading...
Page #37 background image
UM0306 Power control (PWR)
37/519
3.3.2 Peripheral clock gating
In Run mode, the HCLK and PCLKx for individual peripherals and memories can be stopped
at any time to reduce power consumption.
To further reduce power consumption in SLEEP mode the peripheral clocks can be disabled
prior to executing the WFI or WFE instructions.
Peripheral clock gating is controlled by the AHB Peripheral Clock enable register
(RCC_AHBENR), APB1 Peripheral Clock enable register (RCC_APB1ENR) and APB2
Peripheral Clock enable register (RCC_APB2ENR).
3.3.3 SLEEP mode
Entering SLEEP mode
The SLEEP mode is entered by executing the WFI (Wait For Interrupt) or WFE (Wait for
Event) instructions. Two options are available to select SLEEP mode entry mechanism,
depending on the SLEEPONEXIT bit in the Cortex-M3 System Control register:
SLEEP-NOW: if the SLEEPONEXIT bit is cleared, the MCU enters SLEEP mode as
soon as WFI or WFE instruction is executed.
SLEEP-ON-EXIT: if the SLEEPONEXIT bit is set when the WFI or WFE instruction is
executed, the MCU enters SLEEP mode as soon as it exits the lowest priority ISR.
Refer to Ta bl e 5 and Table 6 for details on how to enter SLEEP mode.
Exiting SLEEP mode
If the WFI instruction is used to enter SLEEP mode, any peripheral interrupt acknowledged
by the Nested Vectored Interrupt Controller (NVIC) can wake up the device from SLEEP
mode.
If the WFE instruction is used to enter SLEEP mode, the MCU exits SLEEP mode as soon
as an event occurs. This event can be either an interrupt enabled in the peripheral control
register but not in the NVIC, or an EXTI line configured in event mode.
This mode offers the lowest wake-up time as no time is wasted in interrupt entry/exit.
Refer to Ta bl e 5 and Table 6 for more details on how to exit SLEEP mode.
Table 5. SLEEP-NOW mode
Mode Entry
WFI (Wait for Interrupt) or WFE (Wait for Event) while:
SLEEPDEEP = 0 and
SLEEPONEXIT = 0
Refer to the Cortex-M3 System Control register.
Mode Exit
If WFI was used for entry:
Interrupt: Refer to Table 27: Vector table
If WFE was used for entry
Wake-up event: Refer to Section 6.2.3: Wake-up event management
Wake-up latency None
www.BDTIC.com/ST

Table of Contents

Other manuals for ST STM32F10 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F10 Series and is the answer not in the manual?

ST STM32F10 Series Specifications

General IconGeneral
BrandST
ModelSTM32F10 Series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals