EasyManua.ls Logo

ST STM32F31xx

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
Loading...
Real-time clock (RTC)
UM1581
360/584
DocID023800 Rev 1
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.

Table of Contents

Related product manuals