
GD32L23x User Manual
275
1: Enable auto-wakeup timer interrupt
13
ALRM1IE
RTC alarm-1 interrupt enable
0: Disable alarm interrupt
1: Enable alarm interrupt
12
ALRM0IE
RTC alarm-0 interrupt enable
0: Disable alarm interrupt
1: Enable alarm interrupt
11
TSEN
Time-stamp function enable
0: Disable time-stamp function
1: Enable time-stamp function
10
WTEN
Auto-wakeup timer function enable
0: Disable function
1: Enable function
9
ALRM1EN
Alarm-1 function enable
0: Disable alarm function
1: Enable alarm function
8
ALRM0EN
Alarm-0 function enable
0: Disable alarm function
1: Enable alarm function
7
Reserved
Must be kept at reset value.
6
CS
Clock System
0: 24-hour format
1: 12-hour format
Note: Can only be written in initialization state
5
BPSHAD
Shadow registers bypass control
0: Reading calendar from shadow registers
1: Reading calendar from current real-time calendar
Note: If frequency of APB1 clock is less than seven times the frequency of
RTCCLK, this bit must set to 1.
4
REFEN
Reference clock detection function enable
0: Disable reference clock detection function
1: Enable reference clock detection function
Note: Can only be written 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-wakeup timer clock selection
0x0:RTC Clock divided by 16