Preliminary
THCV245A_Rev.0.90_E
Copyright©2020 THine Electronics, Inc.
THine Electronics, Inc.
Security C
42/67
6.23 GPIO setting
Setting of GPIO can be configurable by 2-wire access to internal register.
6.23.1
Sub-Link Polling GPIO input/output
Local GPIO input is continuously reflected to remote GPIO output via Sub-Link polling. Input pins become
target of interrupt monitoring.
Table 35.
Sub-Link Polling GPIO setting
As default setting with THCV236-Q as Sub-Link Master communication (THCV245A as Sub-Link Slave),
GPIO1 Sub-Link Polling bridges output from THCV236-Q-GPIO4 Through Mode and GPIO0 Sub-Link Polling
bridges output from THCV236-Q-GPIO3 Through Mode respectively.
As default setting with THCV242 or THCV244 as Sub-Link Master communication (THCV245A as Sub-Link
Slave), GPIO1/0 Sub-Link Polling bridges output from THCV242 or THCV244-GPIO Through Mode and
GPIO3/2 Sub-Link Polling bridges input to THCV242 or THCV244-GPIO Through Mode respectively.
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
[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(f or GPIO Output Mode)
[3]:GPIO3, [2]:GPIO2, [1]:GPIO1, [0]:GPIO0
0:OpenDrain
1:CMOS
4'h0