GD32A50x User Manual
110
31:16
Reserved
Must be kept at reset value.
15
PCSEL
OSC32_IN pin select
0: PC13 is OSC32_IN pin
1: PC14 is OSC32_IN pin
14:2
Reserved
Must be kept at reset value.
1
TPAL
TAMPER pin active level
0: The TAMPER pin is active high
1: The TAMPER pin is active low
0
TPEN
TAMPER detection enable
0: The TAMPER pin is free for GPIO functions
1: The TAMPER pin is dedicated for the Backup Reset function. The active level on
the TAMPER pin resets all data of the BKP_DATAx register.
4.4.4.
Tamper control and status register (BKP_TPCS)
Address offset: 0x34
Reset value: 0x0000 0000
This register can be accessed by half-word (16-bit) or word (32-bit).
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
TIF
TEF
Reserved
TPIE
TIR
TER
r
r
rw
w
w
Bits
Fields
Descriptions
31:10
Reserved
Must be kept at reset value.
9
TIF
Tamper interrupt flag
0: No tamper interrupt occurred
1: A tamper interrupt occurred
This bit is reset by writing 1 to the TIR bit or the TPIE bit being 0.
8
TEF
Tamper event flag
0: No tamper event occurred
1: A tamper event occurred
This bit is reset by writing 1 to the TER bit.
7:3
Reserved
Must be kept at reset value
2
TPIE
Tamper interrupt enable
0: Disable the tamper interrupt
1: Enable the tamper interrupt