THCV231-Q_THCV236-Q_Rev.2.60_E
Table 36. THCV236-Q GPIO Control Register Map
Address (Hex)
Default
(Hex)
Bit#
R/W
Name
Description
Note
Sub-Link
Master
0x40
7:5
4
R
0x0
1
Reserved
GPIO4 type select
-
-
RW
GPIO4_TYPE
0: Programmable GPIO
1: Through GPIO
GPIO3 type select
0: Programmable GPIO
1: Through GPIO
GPIO2 type select
0: Programmable GPIO
0 Fix
GPIO1 type select
0: Programmable GPIO
0 Fix
GPIO0 type select
0: Programmable GPIO
0 Fix
3
2
1
0
RW
R
1
0
0
0
GPIO3_TYPE
GPIO2_TYPE
GPIO1_TYPE
GPIO0_TYPE
-
-
-
R
R
-
-
0x41
0x42
7:5
4
3
2
1
0
7:5
4
3
2
1
0
7:5
4
3
R
R
R
R
R
0x0
0
0
0
0
0
0x0
0
0
0
Reserved
GPIO4_INPUT_MONITOR
GPIO3_INPUT_MONITOR
GPIO2_INPUT_MONITOR
GPIO1_INPUT_MONITOR
GPIO0_INPUT_MONITOR
GPIO4 input value
GPIO3 input value
GPIO2 input value
GPIO1 input value
GPIO0 input value
Reserved
GPIO4 output value setting
GPIO3 output value setting
GPIO2 output value setting
GPIO1 output value setting
GPIO0 output value setting
Reserved
(*1)
-
R
R
RW
RW
RW
RW
RW
R
RW
RW
RW
R
GPIO4_OUT
GPIO3_OUT
GPIO2_OUT
GPIO1_OUT
GPIO0_OUT
(*2)
0
0
0x43
0x44
0x0
(*3)
(*3)
0x7
0x0
-
-
-
GPIO input/output direction setting
See Table 28, Table 29 and Table 30
GPIO_IO_SEL
2:0
7:5
Reserved
GPIO4 input filter enable
0: Disable
1: Enable
GPIO3 input filter enable
0: Disable
1: Enable
GPIO2 input filter enable
0: Disable
1: Enable
GPIO1 input filter enable
0: Disable
4
3
2
1
RW
RW
RW
RW
1
1
1
1
GPIO4_FILT_ENABLE
GPIO3_FILT_ENABLE
GPIO2_FILT_ENABLE
GPIO1_FILT_ENABLE
GPIO0_FILT_ENABLE
(*4)
1: Enable
GPIO0 input filter enable
0: Disable
0
7:5
4
RW
R
1
0x0
1
1: Enable
0x45
Reserved
GPIO4 interrupt enable
0: Disable
1: Enable
GPIO3 interrupt enable
0: Disable
1: Enable
GPIO2 interrupt enable
0: Disable
1: Enable
GPIO1 interrupt enable
0: Disable
-
RW
GPIO4_INT_ENABLE
GPIO3_INT_ENABLE
GPIO2_INT_ENABLE
GPIO1_INT_ENABLE
GPIO0_INT_ENABLE
3
2
1
0
RW
RW
RW
RW
1
1
1
1
(*5)
1: Enable
GPIO0 interrupt enable
0: Disable
1: Enable
*1
*2
*3
*4
*5
Active only when GPIO is set as input port.
Active only when GPIO type is set as "Programmable GPIO" and set as output port.
Default value depends on RXDEFSEL setting when Power on sequence. RXDEFSEL=1 → default value is 0 , RXDEFSEL=0 → default value is 1.
Filter eliminates input glitch shorter than tOSC/2.
GPIO input transition is counted as GPIO_INT(0x02 bit3).
Copyright©2017 THine Electronics, Inc.
THine Electronics, Inc.
37/58
Security E