| Electronic Components Datasheet Search |
|
AN3371 Datasheet(PDF) 35 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3371 Datasheet(HTML) 35 Page - STMicroelectronics |
|
35 / 45 page ![]() AN3371 RTC firmware driver API Doc ID 018624 Rev 5 35/45 3.1.4 Outputs configuration The RTC has two different outputs: ● AFO_ALARM, used to manage the RTC alarm A, alarm B and WaKeUp signals. To output the selected RTC signal on RTC_AF1 pin, use the RTC_OutputConfig() function. ● AFO_CALIB, used to manage the RTC Clock divided by a 64 (512 Hz) signal and the calendar clock (1 Hz). To output the RTC Clock on the RTC_AF1 pin, use the RTC_CalibOutputCmd() function. 3.1.5 Digital calibration configuration To configure the RTC Coarse calibration value and the corresponding sign, use the RTC_CoarseCalibConfig() function. To enable the RTC Coarse calibration, use the RTC_CoarseCalibCmd() function. To configure the RTC smooth calibration value and the calibration period, use the RTC_SmoothCalibConfig() function. 3.1.6 TimeStamp configuration To configure the RTC_AF1 trigger and enable the RTC TimeStamp, use the RTC_TimeStampCmd() function. To read the RTC TimeStamp Time and Date register, use the RTC_GetTimeStamp() function. To read the RTC TimeStamp sub-second register, use the RTC_GetTimeStampSubSecond() function. The TAMPER1 alternate function can be mapped either to RTC_AF1(PC13) or RTC_AF2 (PI8) depending on the value of TAMP1INSEL bit in RTC_TAFCR register. You can use the RTC_TimeStampPinSelection() function to select the corresponding pin. 3.1.7 Tamper configuration To configure the RTC Tamper trigger, use the RTC_TamperConfig() function. To configure the RTC Tamper filter, use the RTC_TamperFilterConfig() function. To configure the RTC Tamper sampling frequency, use the RTC_TamperSamplingFreqConfig() function. To configure the RTC Tamper pins input precharge duration, use the RTC_TamperPinsPrechargeDuration() function. To enable the precharge of the Tamper pin, use the RTC_TamperPullUpCmd() function. To enable the TimeStamp on Tamper detection event, use the RTC_TimeStampOnTamperDetectionCmd() function. To enable the RTC Tamper, use the RTC_TamperCmd() function. The TIMESTAMP alternate function can be mapped to either RTC_AF1 or RTC_AF2 depending on the value of the TSINSEL bit in the RTC_TAFCR register. You can use the RTC_TamperPinSelection() function to select the corresponding pin. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |