![ARTERY AT32F435 Series Reference Manual Download Page 344](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592344.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 344
Rev 2.03
4.
According to your needs, enable tamper detection pull-up (setting TPPU=1). When TPPU=1 is
asserted, tamper detection pre-charge time must be configured through the TPPR bit
5.
According to your needs, configure whether to activate a time stamp on a tamper event
(TPTSEN=1)
6.
According to your needs, enable a tamper interrupt (TPIEN=1)
7.
To use TAMP1 mode, select ERTC_MUX1 or ERTC_MUX2 (through the TP1PIN bit), and enable
TAMP1 (setting TP1EN=1 ); To use TAMP2 mode, just need enable TAMP2 (TP2EN=1)
In the case of edge detection mode, the following two points deserve our attention:
1.
If a rising edge is configured to enable tamper detection, and the tamper detection pin turns to high
level before tamper detection is enabled, then a tamper event will be detected right after the tamper
detection is enabled;
2.
If a falling edge is configured to enable tamper detection, and the tamper detection pin turns to low
level before tamper detection is enabled, then a tamper event will be detected right after the tamper
detection is enabled;
Note: Tamper detection is still active even when the VDD power is OFF.
17.3.8 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.
Alarm clock B (OUTSEL=2)
4.
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.9 ERTC wakeup
ERTC can be woken up by alarm clocks, periodic auto wakeup feature, 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. Enable an ERTC interrupt
Table 17-2 lists the ERTC clock sources, events and interrupts that are able to wakeup low-power
modes.