AT32F425
Series Reference Manual
2022.03.30
Page 285
Ver 2.01
17
Enhanced real-time clock (ERTC)
17.1
ERTC introduction
The real-time clock provides a calendar clock function. The time and date can be modified by modifying
the ERTC_TIME and ERTC_DATE register.
The RTC module is in battery powered domain, which means that it keeps running and free from the
influence of system reset and VDD power off as long as VBAT is powered.
17.2
ERTC main features
Real-time calendar, one programmable alarm
Periodic auto-wakeup
Reference clock detection
1x programmable tamper detection, supporting time stamp feature
Supports fine calibration
5 x battery powered registers
4 x interrupts: alarm A, periodic auto-wakeup, tamper detection and time stamp
Multiplexed function output, calibration clock output, alarm event or wakeup event
Multiplexe function input, reference clock input, one-channel tamper detection and time stamp
Figure 17-1 ERTC block diagram
PCLK1
1.2V power domain
ERTC registers
APB
interface
VBAT domain
Not powered in
Standby mode
LEXT
LICK
HEXT_DIV
ERTCSEL
ERTC_CLK
Smooth
calibration
Auto Wakeup
DIVA
DIVB
TIME
、
DATE
Value
Alarm
ALAF
WUTF
ERTC_ALARM
ERTC_CAL
ERTC Output
selection
1Hz
512Hz
CALOSEL
OUTSEL
ERTC_OUT
BPR
TAMP
TIMESTAMP
TAMP1
TAMP
CONTROL
ERTC_MUX1
TP1F
TSF
ERTC_MUX1
ck_a
ck_b
17.3
ERTC function overview
17.3.1 ERTC clock
ERTC clock source (ERTC_CLK) is selected via clock controller from a LEXT, LICK, and HEXT/32.
The ERTC embeds two dividers: A and B, programmed by the DIVA[6: 0] and DIVB[14: 0] respectively.
It is recommended that the DIVA is configured to a higher value in order to minimum power consumption
.
After being divided by prescaler A and B, the ERTC_CLK generates ck_a and ck_b clocks, respectively.