ï€ 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()