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 #303 background imageLoading...
Page #303 background image
UM1581
Power control (PWR)
DocID023800 Rev 1
303/584
 WKUP pin rising edge, RTC alarm (Alarm A and Alarm B), RTC wakeup, tamper
event, time-stamp event, external reset in NRST pin, IWDG reset.
Auto-wakeup (AWU) from low-power mode
The MCU can be woken up from low-power mode by an RTC Alarm event, a tamper
event, a time-stamp event, or a comparator event, without depending on an external
interrupt (Auto-wakeup mode).
ï‚· RTC auto-wakeup (AWU) from the Stop mode
 To wake up from the Stop mode with an RTC alarm event, it is necessary to:
 Configure the EXTI Line 17 to be sensitive to rising edges (Interrupt or
Event modes) using the EXTI_Init() function.
 Enable the RTC Alarm Interrupt using the RTC_ITConfig() function
 Configure the RTC to generate the RTC alarm using the RTC_SetAlarm()
and RTC_AlarmCmd() functions.
 To wake up from the Stop mode with an RTC Tamper or time stamp event, it is
necessary to:
 Configure the EXTI Line 19 to be sensitive to rising edges (Interrupt or
Event modes) using the EXTI_Init() function.
 Enable the RTC Tamper or time stamp Interrupt using the RTC_ITConfig()
function.
 Configure the RTC to detect the tamper or time stamp event using the
RTC_TimeStampConfig(), RTC_TamperTriggerConfig() and
RTC_TamperCmd() functions.
ï‚· RTC auto-wakeup (AWU) from the Standby mode
 To wake up from the Standby mode with an RTC alarm event, it is necessary to:
 Enable the RTC Alarm Interrupt using the RTC_ITConfig() function.
 Configure the RTC to generate the RTC alarm using the RTC_SetAlarm()
and RTC_AlarmCmd() functions.
 To wake up from the Standby mode with an RTC Tamper or time stamp event, it
is necessary to:
 Enable the RTC Tamper or time stamp Interrupt using the RTC_ITConfig()
function.
 Configure the RTC to detect the tamper or time stamp event using the
RTC_TimeStampConfig(), RTC_TamperTriggerConfig() and
RTC_TamperCmd() functions.
ï‚· Comparator auto-wakeup (AWU) from the Stop mode
 To wake up from the Stop mode with a comparator wakeup event, it is necessary
to:
 Configure the correspondant comparator EXTI Line to be sensitive to the
selected edges (falling, rising or falling and rising) (Interrupt or Event modes)
using the EXTI_Init() function.
 Configure the comparator to generate the event.
ï‚· PWR_EnterSleepMode()
ï‚· PWR_EnterSTOPMode()
ï‚· PWR_EnterSTANDBYMode()
17.2.5 Flags management functions
ï‚· PWR_GetFlagStatus()
ï‚· PWR_ClearFlag()

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