Download RM0038 Reference manual

Transcript
RM0038
5.3.4
Power control (PWR)
Low power run mode (LP run)
To further reduce the consumption when the system is in Run mode, the regulator can be
configured in low power mode. In this mode, the system frequency should not exceed
f_MSI range1.
Please refer to the product datasheet for more details on voltage regulator and peripherals
operating conditions.
Note:
To be able to read the RTC calendar register when the APB1 clock frequency is less than
seven times the RTC clock frequency (7*RTCLCK), the software must read the calendar
time and date registers twice.
If the second read of the RTC_TR gives the same result as the first read, this ensures that
the data is correct. Otherwise a third read access must be done.
Low power run mode can only be entered when VCORE is in range 2. In addition, the
dynamic voltage scaling must not be used when Low power run mode is selected. Only Stop
and Sleep modes with regulator configured in Low power mode is allowed when Low power
run mode is selected.
Note:
In Low power run mode, all I/O pins keep the same state as in Run mode.
Entering Low power run mode
To enter Low power run mode proceed as follows:
•
Each digital IP clock must be enabled or disabled by using the RCC_APBxENR and
RCC_AHBENR registers.
•
The frequency of the system clock must be decreased to not exceed the frequency of
f_MSI range1.
•
The regulator is forced in low power mode by software (LPRUN and LPSDSR bits set)
Exiting Low power run mode
To exit Low power run mode proceed as follows:
5.3.5
•
The regulator is forced in Main regulator mode by software.
•
The Flash memory is switched on, if needed.
•
The frequency of the clock system can be increased.
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 the Sleep mode entry mechanism,
depending on the SLEEPONEXIT bit in the Cortex®-M3 System Control register:
Note:
•
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, the MCU enters Sleep mode as soon as
it exits the lowest priority ISR.
In Sleep mode, all I/O pins keep the same state as in Run mode.
Refer to Table 28: Sleep-now and Table 29: Sleep-on-exit for details on how to enter Sleep
mode.
DocID15965 Rev 13
111/901
125