![ARTERY AT32F435 Series Скачать руководство пользователя страница 348](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592348.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 348
Rev 2.03
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_b
11x: ck_b 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
Reserved
0x0
resd
Kept at its default value.
Bit 14
TP2F
0x0
rw0c
Tamper detection 2 flag
0: No tamper event
1: Tamper event occurs
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 timestamp 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
1: Wakeup timer event occurs
Note: The clearing operation of this bit takes effect after two
APB_CLK cycles.
Bit 9
ALBF
0x0
rw0c
Alarm clock B flag
0: No alarm clock event
1: Alarm clock event occurs
Note: The clearing operation of this bit takes effect after two
APB_CLK cycles.
Bit 8
ALAF
0x0
rw0c
Alarm clock A flag
0: No alarm clock event
1: Alarm clock event occurs
Note: The clearing operation of this bit takes effect after two
APB_CLK cycles.
Bit 7
IMEN
0x0
rw
Initialization mode enable
0: Initialization mode disabled