![ARTERY AT32F435 Series Reference Manual Download Page 338](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592338.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 338
Rev 2.03
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 (automatic processing of month days, including 28 (February in a common
year), 29 (February in a leap year), 30 (a lunar month of 30 days) and 31 (a solar month of 31
days), where the current register being a multiple of 4 indicates a leap year), two programmable
alarms
Periodic auto-wakeup
Reference clock detection
Two programmable tamper detection, supporting time stamp feature
Supports fine calibration and coarse calibration
20 x battery powered registers
5 x interrupts: alarm A, alarm B, 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, two-way 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
Coarse
calibration
DIVB
TIME
、
DATE
Value
Alarm
ALAF
ALBF
WUTF
ERTC_ALARM
ERTC_CAL
ERTC Output
selection
1Hz
512Hz
CALOSEL
OUTSEL
ERTC_OUT
BPR
TAMP
TIMESTAMP
TAMP1
TAMP2
TAMP
CONTROL
ERTC_MUX1
ERTC_MUX2
TP1F
TP2F
TSF
ERTC_MUX1
ck_a
ck_b