Low Power Mode Configuration Functions - ST STM32F31xx User Manual

Table of Contents

Advertisement

Power control (PWR)
17.2.9

Low power mode configuration functions

17.2.9.1
PWR_EnterSleepMode
Function Name
Function Description
Parameters
Return values
Notes
17.2.9.2
PWR_EnterSTOPMode
Function Name
Function Description
Parameters
Return values
Notes
306/584
void PWR_EnterSleepMode ( uint8_t PWR_SLEEPEntry)
Enters Sleep mode.
PWR_SLEEPEntry : specifies if SLEEP mode in entered
with WFI or WFE instruction. This parameter can be one of
the following values:
PWR_SLEEPEntry_WFI :
instruction
PWR_SLEEPEntry_WFE :
WFE instruction
None.
In Sleep mode, all I/O pins keep the same state as in Run
mode.
void PWR_EnterSTOPMode ( uint32_t PWR_Regulator, uint8_t
PWR_STOPEntry)
Enters STOP mode.
PWR_Regulator : specifies the regulator state in STOP
mode. This parameter can be one of the following values:
PWR_Regulator_ON :
PWR_Regulator_LowPower :
regulator in low power mode
PWR_STOPEntry : specifies if STOP mode in entered with
WFI or WFE instruction. This parameter can be one of the
following values:
PWR_STOPEntry_WFI :
instruction
PWR_STOPEntry_WFE :
instruction
None.
In Stop mode, all I/O pins keep the same state as in Run
mode.
When exiting Stop mode by issuing an interrupt or a wakeup
event, the MSI RC oscillator is selected as system clock.
When the voltage regulator operates in low power mode, an
additional startup delay is incurred when waking up from Stop
DocID023800 Rev 1
enter SLEEP mode with WFI
enter SLEEP mode with
STOP mode with regulator ON
STOP mode with
enter STOP mode with WFI
enter STOP mode with WFE
UM1581

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F31xx and is the answer not in the manual?

This manual is also suitable for:

Stm32f30xx

Table of Contents