RTC Wakeup configuration
ï‚· Configure the RTC Wakeup Clock source use the RTC_WakeUpClockConfig()
function.
ï‚· Configure the RTC WakeUp Counter using the RTC_SetWakeUpCounter() function
ï‚· Enable the RTC WakeUp using the RTC_WakeUpCmd() function
ï‚· To read the RTC WakeUp Counter register, use the RTC_GetWakeUpCounter()
function.
Outputs configuration
The RTC has 2 different outputs:
ï‚· AFO_ALARM: this output is used to manage the RTC Alarm A, Alarm B and WaKeUp
signals. To output the selected RTC signal on RTC_AF pin, use the
RTC_OutputConfig() function.
ï‚· AFO_CALIB: this output is 512Hz signal or 1Hz . To output the RTC Clock on
RTC_AF pin, use the RTC_CalibOutputCmd() function.
Smooth digital Calibration configuration
ï‚· Configure the RTC Original Digital Calibration Value and the corresponding
calibration cycle period (32s,16s and 8s) using the RTC_SmoothCalibConfig()
function.
TimeStamp configuration
ï‚· Configure the RTC_AF trigger and enables the RTC TimeStamp using the
RTC_TimeStampCmd() function.
ï‚· To read the RTC TimeStamp Time and Date register, use the RTC_GetTimeStamp()
function.
ï‚· To read the RTC TimeStamp SubSecond register, use the
RTC_GetTimeStampSubSecond() function.
Tamper configuration
ï‚· Configure the Tamper filter count using RTC_TamperFilterConfig() function.
ï‚· Configure the RTC Tamper trigger Edge or Level according to the Tamper filter (if
equal to 0 Edge else Level) value using the RTC_TamperConfig() function.
ï‚· Configure the Tamper sampling frequency using RTC_TamperSamplingFreqConfig()
function.
ï‚· Configure the Tamper precharge or discharge duration using
RTC_TamperPinsPrechargeDuration() function.
ï‚· Enable the Tamper Pull-UP using RTC_TamperPullUpDisableCmd() function.
ï‚· Enable the RTC Tamper using the RTC_TamperCmd() function.
ï‚· Enable the Time stamp on Tamper detection event using
RTC_TSOnTamperDetecCmd() function.
Backup Data Registers configuration
ï‚· To write to the RTC Backup Data registers, use the RTC_WriteBackupRegister()
function.
ï‚· To read the RTC Backup Data registers, use the RTC_ReadBackupRegister()
function.