Preliminary
THCV245A_Rev.0.90_E
Copyright©2020 THine Electronics, Inc.
THine Electronics, Inc.
Security C
44/67
6.23.2
Register GPIO
GPIO input monitoring and output control are available with register. Input pins become target of interrupt
monitoring.
Table 36.
Register GPIO setting and status monitoring
Addr(h)
Bits
Register
w idth
R/W
Description
Default
0x103D
[3:0]
R_GPIO_TYP
4
R/W
GPIO Mode Select
[3]: 0:GPIO3 Register Mode, 1:GPIO3 Sub-Link Polling
[2]: 0:GPIO2 Register Mode, 1:GPIO2 Sub-Link Polling
[1]: 0:GPIO1 Register Mode, 1:GPIO1 Sub-Link Polling*
[0]: 0:GPIO0 Register Mode, 1:GPIO0 Sub-Link Polling*
*Sub-Link Polling is compatible w ith THCV236 GPIO Through mode
4'h0
0x103E
[7:4]
R_GPIO_OUT
4
R/W
GPIO0-3 Output Data Register
[3]:GPIO3, [2]:GPIO2, [1]:GPIO1, [0]:GPIO0
4'h0
0x103E
[3:0]
R_GPIO_OEN
4
R/W
GPIO0-3 Input/Output Select
[3]:GPIO3, [2]:GPIO2, [1]:GPIO1, [0]:GPIO0
0:GPIO Output Mode
1:GPIO Input Mode
4'hf
0x103F
[3:0]
R_GPIO_CMOSEN
4
R/W
GPIO0-3 CMOS/OpenDrain Select(for GPIO Output Mode)
[3]:GPIO3, [2]:GPIO2, [1]:GPIO1, [0]:GPIO0
0:OpenDrain
1:CMOS
4'h0
0x1121
[7:4]
R_GPIO_IMON
4
R
GPIO0-3 Input Monitor Register
[7]:GPIO3, [6]:GPIO2, [5]:GPIO1, [4]:GPIO0
-
0x1121
[3:0]
R_GPIO_INT_DETECT
4
R
Interrput Signal for GPI
[3]:GPIO3, [2]:GPIO2, [1]:GPIO1, [0]:GPIO0
0:No Interrupt
1:Interrupt (detect for asserted or negated of GPI Input)
-
0x1122
[3:0]
R_GPIO_INTC_DETECT
4
W
Interrupt Clear f or GPI
[3]:GPIO3, [2]:GPIO2, [1]:GPIO1, [0]:GPIO0
0:Interrupt No Clear
1:Interrupt Clear
-