GD32W51x User Manual
423
Note: Can only be w ritten in initialization state and FACTOR_S must be 0x00FF
3
TSEG
Valid event edge of time-stamp
0: rising edge is valid event edge for time-stamp event
1: falling edge is valid event edge for time-stamp event
2:0
WTCS[2:0]
Auto-w akeup timer clock selection
0x0:RTC Clock divided by 16
0x1:RTC Clock divided by 8
0x2:RTC Clock divided by 4
0x3:RTC Clock divided by 2
0x4:0x5: ck_spre (default 1Hz) clock
0x6:0x7: ck_spre (default 1Hz) clock and 2
16
is added to w ake-up counter.
16.4.4.
Initialization control and status register (RTC_ICSR)
Address offset: 0x0C
System reset: Only INITM, INITF and RSYNF bits are set to 0. Others are not affected
Backup domain reset value: 0x0000 0007
This register is writing protected,
the register can be protected globally or individually per bit
can be configured 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
SCPF
r
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
INITM
INITF
RSYNF
YCM
SOPF
WTWF
ALRM1W
F
ALRM0W
F
rw
r
rc_w0
r
r
r
r
r
Bits
Fields
Descriptions
31:17
Reserved
Must be kept at reset value.
16
SCPF
Smooth calibration pending flag
Set to 1 by hardw are w hen softw are w rites to RTC_HRFC w ithout entering
initialization mode and set to 0 by hardw are w hen smooth calibration configuration
is taken into account.
15:8
Reserved
Must be kept at reset value.
7
INITM
Enter initialization mode
0: Free running mode
1: Enter initialization mode for setting calendar time/date and prescaler. Counter w ill
stop under this mode.
6
INITF
Initialization state flag
Set to 1 by hardw are and calendar register and prescaler can be programmed in