
RM0453 Rev 2
1011/1454
RM0453
Real-time clock (RTC)
1049
32.6.2
RTC date register (RTC_DR)
The RTC_DR is the calendar date shadow register. This register must be written in
initialization mode only. Refer to
Calendar initialization and configuration on page 999
and
Reading the calendar on page 1001
.
This register is write protected. The write access procedure is described in
.
Address offset: 0x04
Backup domain reset value: 0x0000 2101
System reset value: 0x0000 2101 when BYPSHAD = 0. Not affected when BYPSHAD = 1.
Note:
The calendar is frozen when reaching the maximum value, and can’t roll over.
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
YT[3:0]
YU[3:0]
rw
rw
rw
rw
rw
rw
rw
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
WDU[2:0]
MT
MU[3:0]
Res.
Res.
DT[1:0]
DU[3:0]
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
Bits 31:24 Reserved, must be kept at reset value.
Bits 23:20
YT[3:0]
: Year tens in BCD format
Bits 19:16
YU[3:0]
: Year units in BCD format
Bits 15:13
WDU[2:0]
: Week day units
000: forbidden
001: Monday
...
111: Sunday
Bit 12
MT
: Month tens in BCD format
Bits 11:8
MU[3:0]
: Month units in BCD format
Bits 7:6 Reserved, must be kept at reset value.
Bits 5:4
DT[1:0]
: Date tens in BCD format
Bits 3:0
DU[3:0]
: Date units in BCD format