AT32WB415
Series Reference Manual
2022.04.13
Page 233
Ver 2.00
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 ERTC 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, two programmable alarms
Periodic auto-wakeup
Reference clock detection
2x programmable tamper detection, supporting time stamp feature
Supports fine and coarse calibration
20 x battery powered registers
5 x interrupts: alarm A/B, periodic auto-wakeup, tamper detection and time stamp
Multiplexed function output, calibration clock output, alarm events or wakeup events
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
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
TAMP
CONTROL
ERTC_MUX1
TP1F
TSF
ERTC_MUX1
ck_a
ck_b