English
Language : 

W83627THF_06 Datasheet, PDF (26/142 Pages) Winbond – Winbond LPC I/O
W83627THF/W83627THG
4. GENERAL PURPOSE I/O
W83627THF provides 36 input/output ports that can be individually configured to perform a simple
basic I/O function or a pre-defined alternate function. Those 36 GP I/O ports are divided into five
groups . The first and fifth groups are configured through control registers in logical device 7, the
second group in logical device 8, and the third and forth groups in logical device 9. Users can
configure each individual port to be an input or output port by programming respective bit in selection
register (CRF0/F3: 0 = output, 1 = input). Invert port value by setting inversion register (CRF2/F5: 0 =
non-inverse, 1 = inverse). Port value is read/written through data register (CRF1/CRF4). Table 4-1
and 4-2 give more details on GPIO's assignment. Figure 4-1 shows the GP I/O port's structure. After
power-on reset those ports default to perform basic input function which maintains its previous settings
until a battery loss condition.
SELECTION BIT
0 = OUTPUT
1 = INPUT
0
0
1
1
INVERSION BIT
0 = NON INVERSE
1 = INVERSE
0
1
0
1
Table 4-1
BASIC I/O OPERATIONS
Basic non-inverting output
Basic inverting output
Basic non-inverting input
Basic inverting input
GP I/O PORT DATA REGISTER
GP1(VCC POWER)
GP2(VCC POWER)
REGISTER BIT ASSIGNMENT
BIT 0
BIT 1
BIT 2
BIT 3
BIT 4
BIT 5
BIT 6
BIT 7
BIT 0
BIT 1
BIT 2
BIT 3
BIT 4
BIT 5
BIT 6
GP I/O PORT
GP10
GP11
GP12
GP13
GP14
GP15
GP16
GP17
GP20
GP21
GP22
GP23
GP24
GP25
GP26
- 19 -
Publication Release Date: September 26, 2006
Revision 1.2