GD32W51x User Manual
419
16.4.
Register definition
RTC secure access base address: 0x5000 2800
RTC non-secure access base address: 0x4000 2800
16.4.1.
Time register (RTC_TIME)
Address offset: 0x00
System reset value: 0x0000 0000 when BPSHAD = 0.
Not affected when BPSHAD = 1.
This register is write protected and can only be written in initialization state
This register can be write-protected to prevent
non-secure access or non-privileged access
This register has to be accessed by word (32-bit)
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
PM
HRT[1:0]
HRU[3:0]
rw
rw
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
MNT[2:0]
MNU[3:0]
Reserved
SCT[2:0]
SCU[3:0]
rw
rw
rw
rw
Bits
Fields
Descriptions
31:23
Reserved
Must be kept at reset value.
22
PM
AM/PM mark
0: AM or 24-hour format
1: PM
21:20
HRT[1:0]
Hour tens in BCD code
19:16
HRU[3:0]
Hour units in BCD code
15:
Reserved
Must be kept at reset value.
14:12
MNT[2:0]
Minute tens in BCD code
11:8
MNU[3:0]
Minute units in BCD code
7
Reserved
Must be kept at reset value.
6:4
SCT[2:0]
Second tens in BCD code
3:0
SCU[3:0]
Second units in BCD code
16.4.2.
Date register (RTC_DATE)
Address offset: 0x04
System reset value: 0x0000 2101 when BPSHAD = 0.