AT32F425
Series Reference Manual
2022.03.30
Page 293
Ver 2.01
1: Wakeup timer enabled
Bit 9
Reserved
0x0
resd
Kept at its default value.
Bit 8
ALAEN
0x0
rw
Alarm A enable
0: Alarm A disabled
1: Alarm A enabled
Bit 7
Reserved
0x0
resd
Kept at its default value.
Bit 6
HM
0x0
rw
Hour mode
0: 24-hour format
1: 12-hour format
Bit 5
DREN
0x0
rw
Date/time register direct read enable
0: Date/time register direct read disabled. ERTC_TIME,
ERTC_DATE and ERTC_SBS values are taken from the
synchronized registers, which are updated once every two
ERTC_CLK cycles
1: Date/time register direct read enabled. ERTC_TIME,
ERTC_DATE and ERTC_SBS values are taken from the
battery powered domain.
Bit 4
RCDEN
0x0
rw
Reference clock detection enable
0: Reference clock detection disabled
1: Reference clock detection enabled
Bit 3
TSEDG
0x0
rw
Timestamp trigger edge
0: Rising edge
1: Falling edge
Bit 2: 0
WATCLK
0x0
rw
Wakeup timer clock selection
000: ERTC_CLK/16
001: ERTC_CLK/8
010: ERTC_CLK/4
011: ERTC_CLK/2
10x: ck_a
11x: ck_a is selected. 2
16
is added to the wakeup counter
value, and wakeup time =E2
16
.
Note: The write access to this field is supported when
WATEN=0 and WATWF=1.
17.4.4 ERTC initialization and status register (ERTC_STS)
Bit
Register
Reset value
Type
Description
Bit 31: 17 Reserved
0x0000
resd
Kept at its default value.
Bit 16
CALUPDF
0x0
ro
Calibration value update complete flag
0: Calibration value update is complete
1: Calibration value update is in progress
This bit is automatically set when software writes to the
ERTC_SCAL register. It is automatically cleared when a
new calibration value is taking into account. When this bit is
set, the write access to the ERTC_SCAL register is not
allowed.
Bit 15: 14 Reserved
0x0
resd
Kept at its default value.
Bit 13
TP1F
0x0
rw0c
Tamper detection 1 flag
0: No tamper event
1: Tamper event occurs
Bit 12
TSOF
0x0
rw0c
Timestamp overflow flag
0: No timerstamp overflow
1: Timestamp overflow occurs
If a new time stamp event is detected when time stamp flag
(TSF) is already set, this bit will be set by hardware.
Bit 11
TSF
0x0
rw0c
Timestamp flag
0: No timestamp event
1: Timestamp event occurs
It is recommended to double check the TSOF flag after
reading a timestamp and clearing the TSF. Otherwise, a new
timestamp event may be detected while clearing the TSF.
Note: The clearing operation of this bit takes effect after two
APB_CLK cycles.
Bit 10
WATF
0x0
rw0c
Wakeup timer flag
0: No wakeup timer event