AT32F421
Series Reference Manual
2022.11.11
Page 304
Rev 2.02
1: Push-pull output
Bit 17: 16 Reserved
0x0
resd
Kept at its default value
Bit 15
TPPU
0x0
rw
Tamper detection pull-up
0: Tamper detection pull-up enabled
1: Tamper detection pull-up disabled
Bit 14: 13 TPPR
0x0
rw
Tamper detection pre-charge time
0: 1 ERTC_CLK cycle
1: 2 ERTC_CLK cycles
2: 4 ERTC_CLK cycles
3: 8 ERTC_CLK cycles
Bit 12: 11 TPFLT
0x0
rw
Tamper detection filter time
0: No filter
1: Tamper is detected after 2 consecutive samples
2: Tamper is detected after 4 consecutive samples
3: Tamper is detected after 8 consecutive samples
Bit 10: 8
TPFREQ
0x0
rw
Tamper detection frequency
0: ERTC_CLK/32768
1: ERTC_CLK/16384
2: ERTC_CLK/8192
3: ERTC_CLK/4096
4: ERTC_CLK/2048
5: ERTC_CLK/1024
6: ERTC_CLK/512
7: ERTC_CLK/256
Bit 7
TPTSEN
0x0
rw
Tamper detection timestamp enable
0: Tamper detection timestamp disabled
1: Tamper detection timestamp enabled. Save timestamp
on a tamper event.
Bit 6: 3
Reserved
0x0
resd
Kept at its default value
Bit 2
TPIEN
0x0
rw
Tamper detection interrupt enable
0: Tamper detection interrupt disabled
1: Tamper detection interrupt enabled
Bit 1
TP1EDG
0x0
rw
Tamper detection 1 valid edge
If TPFLT=0:
0: Rising edge
1: Falling edge
If TPFLT>0:
0: Low
1: High
Bit 0
TP1EN
0x0
rw
Tamper detection 1 enable
0: Tamper detection 1 disabled
1: Tamper detection 1 enabled