THCV235-Q_THCV236-Q_Rev.3.40_E
Copyright
©
2016 THine Electronics, Inc.
THine Electronics, Inc.
44/68
Security E
Table 42.
THCV235-Q GPIO Control Register Map
Address (Hex)
Bit#
R/W
Default
(Hex)
Name
Description
Note
Sub-Link
Master
Sub-Link
Slave
0x40 0xC0
7:5
R 0x0
Reserved
-
4 RW 1 GPIO4_TYPE
GPIO4 type select
0: Programmable GPIO
1: Through GPIO
-
3 RW 1 GPIO3_TYPE
GPIO3 type select
0: Programmable GPIO
1: Through GPIO
-
2 R 0 GPIO2_TYPE
GPIO2 type select
0: Programmable GPIO
0 Fix
-
1 R 0 GPIO1_TYPE
GPIO1 type select
0: Programmable GPIO
0 Fix
-
0 R 0 GPIO0_TYPE
GPIO0 type select
0: Programmable GPIO
0 Fix
-
0x41 0xC1
7:5
R 0x0
Reserved
-
4 R 0 GPIO4_INPUT_MONITOR
GPIO4
input
value
(*1)
3 R 0 GPIO3_INPUT_MONITOR
GPIO3
input
value
2 R 0 GPIO2_INPUT_MONITOR
GPIO2
input
value
1 R 0 GPIO1_INPUT_MONITOR
GPIO1
input
value
0 R 0 GPIO0_INPUT_MONITOR
GPIO0
input
value
0x42 0xC2
7:5
R 0x0
Reserved
4
RW
0
GPIO4_OUT
GPIO4 output value setting
(*2)
3
RW
0
GPIO3_OUT
GPIO3 output value setting
2
RW
0
GPIO2_OUT
GPIO2 output value setting
1
RW
0
GPIO1_OUT
GPIO1 output value setting
0
RW
0
GPIO0_OUT
GPIO0 output value setting
0x43 0xC3
7:5
R 0x0
Reserved
-
4:0 RW 0x07 GPIO_IO_SEL
GPIO input/output direction setting
See Table 36, Table 37 and Table 38
-
0x44 0xC4
7:5
R 0x0
Reserved
-
4 RW 1 GPIO4_FILT_ENABLE
GPIO4 input filter enable
0: Disable
1: Enable
(*3)
3 RW 1 GPIO3_FILT_ENABLE
GPIO3 input filter enable
0: Disable
1: Enable
2 RW 1 GPIO2_FILT_ENABLE
GPIO2 input filter enable
0: Disable
1: Enable
1 RW 1 GPIO1_FILT_ENABLE
GPIO1 input filter enable
0: Disable
1: Enable
0 RW 1 GPIO0_FILT_ENABLE
GPIO0 input filter enable
0: Disable
1: Enable
*1
Active only when GPIO is set as input port.
*2
Active only when GPIO type is set as "Programmable GPIO" and set as output port.
*3
Filter eliminates input glitch shorter than t
OSC
/2.