GD32F3x0 User Manual
9
15.3.8. RTC shift function ............................................................................................................... 227
15.3.9. RTC reference clock detection ........................................................................................... 228
15.3.10. RTC smooth digital calibration ............................................................................................ 229
15.3.11. Time-stamp function ........................................................................................................... 231
15.3.12. Tamper detection ................................................................................................................ 231
15.3.13. Calibration clock output ...................................................................................................... 232
15.3.14. Alarm output ........................................................................................................................ 232
15.3.15. RTC power saving mode management .............................................................................. 233
15.3.16. RTC interrupts ..................................................................................................................... 233
15.4. Register definition .................................................................................................... 234
15.4.1. Time register (RTC_TIME) .................................................................................................. 234
15.4.2. Date register (RTC_DATE) ................................................................................................. 234
15.4.3. Control register (RTC_CTL) ................................................................................................ 235
15.4.4. Status register (RTC_STAT) ............................................................................................... 237
15.4.5. Prescaler register (RTC_PSC) ........................................................................................... 239
15.4.6. Alarm 0 time and date register (RTC_ALRM0TD) .............................................................. 239
15.4.7. Write protection key register (RTC_WPK) .......................................................................... 241
15.4.8. Sub second register (RTC_SS) .......................................................................................... 241
15.4.9. Shift function control register (RTC_SHIFTCTL) ................................................................ 241
15.4.10. Time of time stamp register (RTC_TTS) ............................................................................. 242
15.4.11. Date of time stamp register (RTC_DTS) ............................................................................. 243
15.4.12. Sub second of time stamp register (RTC_SSTS) ............................................................... 243
15.4.13. High resolution frequency compensation register (RTC_HRFC) ....................................... 244
15.4.14. Tamper register (RTC_TAMP) ............................................................................................ 245
15.4.15. Alarm 0 sub second register (RTC_ALRM0SS) ................................................................. 247
15.4.16. Backup registers (RTC_BKPx) (x = 0..4) ............................................................................ 248
16. Timer (TIMERx) ................................................................................................. 250
16.1. Advanced timer (TIMERx ,x=0)................................................................................ 251
16.1.1. Overview ............................................................................................................................. 251
16.1.2. Characteristics .................................................................................................................... 251
16.1.3. Block diagram ..................................................................................................................... 252
16.1.4. Function overview ............................................................................................................... 253
16.1.5. Register definition ............................................................................................................... 279
16.2. General level0 timer (TIMERx, x=1, 2) .................................................................... 306
16.2.1. Overview ............................................................................................................................. 306
16.2.2. Characteristics .................................................................................................................... 306
16.2.3. Block diagram ..................................................................................................................... 307
16.2.4. Function overview ............................................................................................................... 308
16.2.5. Register definition ............................................................................................................... 323
16.3. General level2 timer (TIMERx, x=13) ...................................................................... 348
16.3.1. Overview ............................................................................................................................. 348
16.3.2. Characteristics .................................................................................................................... 348