AT32F425
Series Reference Manual
2022.03.30
Page 290
Ver 2.01
17.3.7 Multiplexed function output
ERTC provides a set of multiplexed function output for the following events:
1.
Clocks calibrated (OUTSEL=0 and CALOEN=1)
Output 512Hz (CALOSEL=0)
Output 1Hz (CALOSEL=1)
2.
Alarm clock A (OUTSEL=1)
3.
Wakeup events (OUTSEL=3)
When alarm clock or wakeup events are selected (OUTSEL≠0), it is possible to select output type (open-
drain or push-pull) with the OUTTYPE bit, and output polarity with the OUTP bit.
17.3.8 ERTC wakeup
ERTC can be woken up by alarm clocks, periodic auto wakeup, time stamps or tamper events. To
enable an ERTC interrupt, configure as follows:
1.
Configure the EXINT line corresponding to ERTC interrupts as an interrupt mode and enable it,
and select a rising edge
2.
Enable a NVIC channel corresponding to ERTC interrupts
3. Eanble an ERTC interrupt
Table 17-2 lists the ERTC clock sources, events and interrupts that are able to wakeup low-power
modes.
Table 17-2 ERTC low-power mode wakeup
Clock sources
Events
Wake up Sleep
Wake
up
Deepsleep
Wakeup Standby
HEXT
Alarm clock A
√
×
×
Periodic automatic
wakeup
√
×
×
Time stamp
√
×
×
Tamper event
√
×
×
LICK
Alarm clock A
√
√
√
Periodic automatic
wakeup
√
√
√
Time stamp
√
√
√
Tamper event
√
√
√
LEXT
Alarm clock A
√
√
√
Periodic automatic
wakeup
√
√
√
Time stamp
√
√
√
Tamper event
√
√
√
Table 17-3 Interrupt control bits
Interrupt events
Event flag
Interrupt enable bit
EXINT line
Alarm clock A
ALAF
ALAIEN
17
Periodic
automatic
wakeup
WATF
WATIEN
20
Time stamp
TSF
TSIEN
19
Tamper event
TP1F/TP2F
TPIEN
19