19.2.5 RTC and low power modes
The MCU can be woken up from a low power mode by an RTC alternate function.
The RTC alternate functions are the RTC alarms (Alarm A and Alarm B), RTC wakeup,
RTC tamper event detection and RTC time stamp event detection. These RTC alternate
functions can wake up the system from the Stop and Standby lowpower modes. The
system can also wake up from low power modes without depending on an external
interrupt (Auto-wakeup mode), by using the RTC alarm or the RTC wakeup events.
The RTC provides a programmable time base for waking up from the Stop or Standby
mode at regular intervals. Wakeup from STOP and Standby modes is possible only when
the RTC clock source is LSE or LSI.
19.2.6 Selection of RTC_AF alternate functions
The RTC_AF pin (PC13) can be used for the following purposes:
ï‚· Wakeup pin 2 (WKUP2) using the PWR_WakeUpPinCmd() function.
ï‚· AFO_ALARM output
ï‚· AFO_CALIB output
ï‚· AFI_TAMPER
ï‚· AFI_TIMESTAMP
Table 15: Selection of RTC_AF alternate functions
Pin
configuration
and
functions
RTC_TIMESTAMP
input enabled
Calibration
out output PP
TIMESTAMP
and TAMPER
input floating
Wakeup pin
or Standard
GPIO