EasyManuals Logo

ST STM32F31xx User Manual

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
Page #306 background imageLoading...
Page #306 background image
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

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM32F31xx Specifications

General IconGeneral
BrandST
ModelSTM32F31xx
CategoryMicrocontrollers
LanguageEnglish

Related product manuals