
AT32F413
Series Reference Manual
2022.06.27
Page 262
Rev 2.00
17.5.2 RTC control register low (RTC_CTRLL)
Bit
Register
Reset value
Type
Description
Bit 15: 6
Reserved
0x000
resd
Kept at its default value.
Bit 5
CFGF
0x1
ro
RTC configuration finish
Indicates whether the last write operation on the RTC
registers has been completed or not. Write access to the
RTC registers is allowed only when this bit is set.
0: Last write operation on RTC registers is ongoing
1: Last write operation on RTC registers ends.
Bit 4
CFGEN
0x0
rw
RTC Configuration enable
This bit is set to enter configuration mode in order to enable
write access to the CNT, ALA, DIVCNT registers.
0: Exit configuration mode
1: Enter configuration mode
Bit 3
UPDF
0x0
rw0c
RTC update finish flag
This bit indicates wheter the update of the RTC registers
has been completed or not. This bit is set by hardware
when the CNT and DIVCNT are updated. Before any read
operation, this bit must be cleared by software, and the
user must wait until this bit is set.
0: RTC registers not updated.
1: RTC registers updated.
Bit 2
OVFF
0x0
rw0c
Overflow flag
This bit is set when the counter overflows. An interrupt is
generarted if OVFIEN
=1.
0: Overflow not detected.
1: Overflow occurred.
Bit 1
TAF
0x0
rw0c
Time alarm flag
This bit is set when an alarm event is detected. An interrupt
is generated if TAIEN
=1.
0: Alarm not detected.
1: Alarm detected.
Bit 0
TSF
0x0
rw0c
Time second flag
This bit is set when a second event is detected. An interrupt
is generated if TSIEN
=1.
0: Second event not detected.
1: Second event detected.
17.5.3 RTC divider register (RTC_ DIVH/RTC_DIVL)
RTC divider register high (RTC_DIVH)
Bit
Register
Reset value
Type
Description
Bit 15: 4
Reserved
0x000
resd
Kept at its default value.
Bit 3: 0
DIV
0x0
wo
RTC divider
This field is used to define the counter clock frequency
according to the formula:
fLN_CLK = fRTCCLK/(DIV[19: 0]+1)
RTC divider register high (RTC_DIVL)
Bit
Register
Reset value
Type
Description
Bit 15: 0
DIV
0x8000
wo
RTC divider
This field is used to define the counter clock frequency
according to the formula:
fLN_CLK = fRTCCLK/(DIV[19: 0]+1)
Note: the zero value is not recommended.