EasyManua.ls Logo

ST STM32F31xx

ST STM32F31xx
584 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
Loading...
Power control (PWR)
UM1581
306/584
DocID023800 Rev 1
17.2.9 Low power mode configuration functions
17.2.9.1 PWR_EnterSleepMode
Function Name
void PWR_EnterSleepMode ( uint8_t PWR_SLEEPEntry)
Function Description
Enters Sleep mode.
Parameters
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 : enter SLEEP mode with WFI
instruction
PWR_SLEEPEntry_WFE : enter SLEEP mode with
WFE instruction
Return values
None.
Notes
In Sleep mode, all I/O pins keep the same state as in Run
mode.
17.2.9.2 PWR_EnterSTOPMode
Function Name
void PWR_EnterSTOPMode ( uint32_t PWR_Regulator, uint8_t
PWR_STOPEntry)
Function Description
Enters STOP mode.
Parameters
PWR_Regulator : specifies the regulator state in STOP
mode. This parameter can be one of the following values:
PWR_Regulator_ON : STOP mode with regulator ON
PWR_Regulator_LowPower : STOP mode with
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 : enter STOP mode with WFI
instruction
PWR_STOPEntry_WFE : enter STOP mode with WFE
instruction
Return values
None.
Notes
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

Table of Contents

Related product manuals