THCV231-Q_THCV236-Q_Rev.2.60_E
Table 34. THCV231-Q GPIO Control Register Map
Address (Hex)
Defaul
Bit#
R/W
t
Name
Description
Note
Sub-Link Slave
(Hex)
0xC0
7:5
4
R
0x0
Reserved
GPIO4 type select
-
-
RW
1
1
GPIO4_TYPE
0: Programmable GPIO
1: Through GPIO
GPIO3 type select
0: Programmable GPIO
1: Through GPIO
Reserved
3
RW
GPIO3_TYPE
-
2:0
7:5
4
R
R
R
R
R
0x0
0x0
0
-
-
0xC1
0xC2
0xC3
0xC4
Reserved
GPIO4_INPUT_MONITOR
GPIO3_INPUT_MONITOR
GPIO4 input value
GPIO3 input value
Reserved
(*1)
3
0
2:0
7:5
4
3
2:0
7:5
0x0
0x0
0
0
0x0
0x0
-
-
R
Reserved
RW
RW
RW
R
GPIO4_OUT
GPIO3_OUT
GPIO4 output value setting
GPIO3 output value setting
Reserved
(*2)
-
-
Reserved
GPIO input/output direction setting
See Table 28, Table 29 and Table 30
Reserved
4:3
RW
0x0
GPIO_IO_SEL
-
2:0
7:5
RW
R
0x7
0x0
-
-
Reserved
GPIO4 input filter enable
0: Disable
1: Enable
GPIO3 input filter enable
0: Disable
4
3
RW
RW
1
1
GPIO4_FILT_ENABLE
GPIO3_FILT_ENABLE
(*3)
1: Enable
2:0
7:5
RW
R
0x7
0x0
Reserved
Reserved
GPIO4 interrupt enable
0: Disable
-
-
0xC5
0xC6
4
3
RW
RW
1
1
GPIO4_INT_ENABLE
GPIO3_INT_ENABLE
1: Enable
(*4)
GPIO3 interrupt enable
0: Disable
1: Enable
2:0
7:5
RW
R
0x7
0x0
Reserved
Reserved
-
-
GPIO4 output buffer select
0: GPIO4 is open-drain output
1: GPIO4 is push pull output
GPIO3 output buffer select
0: GPIO3 is open-drain output
1: GPIO3 is push pull output
Reserved
4
3
RW
RW
0
0
GPIO4_OUTBUF_SEL
GPIO3_OUTBUF_SEL
-
-
2:0
7:0
RW
R
0x0
0x00
-
-
0xC7-0xCF
Reserved
*1
*2
*3
*4
Active only when GPIO is set as input port.
Active only when GPIO type is set as "Programmable GPIO" and set as output port.
Filter eliminates input glitch shorter than tOSC/2.
GPIO input transition is counted as GPIO_INT(0x82 bit3).
Copyright©2017 THine Electronics, Inc.
THine Electronics, Inc.
35/58
Security E