English
Language : 

W83697HG Datasheet, PDF (83/109 Pages) Winbond – WINBOND LPC I/O
W83697HF/ HG
7.12 Logical Device 9 (GPIO Port 2 ~ GPIO Port 4 )
CR30 (Default 0x00)
Bit 7 ~ 3: Reserved.
Bit 2: = 1 Activate GPIO4.
= 0 GPIO4 is inactive
Bit 1: = 1 Activate GPIO3.
= 0 GPIO3 is inactive
Bit 0: = 1 Activate GPIO2.
= 0 GPIO2 is inactive.
CR60,61(Default 0x00,0x00).
These two registers select the GP2,3,4 base address(0x100:FFE) ON 3 bytes boundary.
IO address: : CRF1 base address
IO address + 1 : CRF3 base address
IO address + 2 : CRF7 base address
CRF0 (GP2 I/O selection register. Default 0xFF )
When set to a '1', respective GPIO port is programmed as an input port.
When set to a '0', respective GPIO port is programmed as an output port.
CRF1 (GP2 data register. Default 0x00 )
If a port is programmed to be an output port, then its respective bit can be read/written.
If a port is programmed to be an input port, then its respective bit can only be read.
CRF2 (GP2 inversion register. Default 0x00 )
When set to a '1', the incoming/outgoing port value is inverted.
When set to a '0', the incoming/outgoing port value is the same as in data register.
CRF3 (GP3 I/O selection register. Default 0xFF )
When set to a '1', respective GPIO port is programmed as an input port.
When set to a '0', respective GPIO port is programmed as an output port.
CRF4 (GP3 data register. Default 0x00 )
If a port is programmed to be an output port, then its respective bit can be read/written.
If a port is programmed to be an input port, then its respective bit can only be read.
CRF5 (GP3 inversion register. Default 0x00 )
When set to a '1', the incoming/outgoing port value is inverted.
When set to a '0', the incoming/outgoing port value is the same as in data register.
CRF6 (GP4 I/O selection register. Default 0xFF )
When set to a '1', respective GPIO port is programmed as an input port.
When set to a '0', respective GPIO port is programmed as an output port.
- 80 -