GD32W51x User Manual
920
Bits
Fields
Descriptions
31:2
Reserved
Must be kept at reset value
1
MNERR
Max Cycle Number Error
This bit is set by hardw are after charge-transfer sequence stops because it reaches
the max cycle number defined by MCN[2:0]. This bit is cleared by w riting 1 to
CMNERR bit in TSI_ICR register.
0: No Max Count Error
1: Max Count Error
0
CTCF
Charge-Transfer complete flag
This bit is set by hardw are after charge-transfer sequence stops because all enabled
group’s sample pins reach the threshold voltage or because the cycle number
reaches the value defined by MCN[2:0]. This bit is cleared by w riting 1 to CCTCF bit
in TSI_ICR register.
0: Charge-Transfer not complete
1: Charge-Transfer complete
26.4.5.
Pin hysteresis mode register(TSI_PHM)
Address offset: 0x10
Reset value: 0xFFFF FFFF
This register can be accessed by 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
G2P3
G2P2
G2P1
G2P0
G1P3
G1P2
G1P1
G1P0
G0P3
G0P2
G0P1
G0P0
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
Bits
Fields
Descriptions
31:12
Reserved
Must be kept at reset value
11:0
GxPy
Pin hysteresis mode
This bit is set and cleared by softw are.
0: Pin GxPy Schmitt trigger hysteresis mode disabled
1: Pin GxPy Schmitt trigger hysteresis mode enabled
26.4.6.
Analog switch register(TSI_ASW)
Address offset: 0x18
Reset value: 0x0000 0000