This is an old revision of the document!


RTC Real-time Clock and Calendar

Time-of-day clock/calendar with subseconds, seconds, minutes, hours (12h/24h format), day (day of week), date (day of month), month, and year.







DU[3:0]Date units in BCD format
DT[1:0]Date tens in BCD format
MU[3:0]Month units in BCD format
MTMonth tens in BCD format
WDU[2:0]Week day units000Forbidden
001Monday
111Sunday
YU[3:0]Year units in BCD format
YT[3:0]Year tens in BCD format

RTC Time Register




SU[3:0]Second units in BCD format
ST[2:0]Second tens in BCD format
MNU[3:0]Minute units in BCD format
MNT[2:0]Minute tens in BCD format
HU[3:0]Hour units in BCD format
HT[1:0]Hour tens in BCD format
PMAM/PM notation0AM or 24-hour format
1PM

RTC Sub Second Register




SS[15:0]Sub second valueSecond fraction = (PREDIV_S - SS)/(PREDIV_S + 1)
  • stm32/peripherals/rtc_real_time_clock.1672163926.txt.gz
  • Last modified: 2022/12/27 17:58
  • by ruan