GL640USB, GL640USB-A
010
1:8
011
1:16
100
1:32
101
1:64
110
1:128
111
1:256
Value on POR: “- - - - 1 1 1 1”
PORT2CON (Address 86h, Port 1 direction control register)
R/W
R/W
R/W
R/W
P1CON3 P1CON2 P1CON1 P1CON0
All Port 1 pins have data direction control bits which can configure these pins as output or input.
Setting a PORT1CON register bit put the corresponding output driver in a hi-impedance mode.
Clearing a bit in the PORT1CON register puts the contents of the output latch on the selected pin.
Value on POR: “- - - - 1 1 1 1”
PORT2CON (Address 87h, Port 2 direction control register)
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
P2CON7 P2CON6 P2CON5 P2CON4 P2CON3 P2CON2 P2CON1 P2CON0
All Port 2 pins have data direction control bits which can configure these pins as output or input.
Setting a PORT2CON register bit put the corresponding output driver in a hi-impedance mode.
Clearing a bit in the PORT2CON register puts the contents of the output latch on the selected pin.
Value on POR: “1 1 1 1 1 1 1 1”
7.3 I/O Register Summary
Mnemonic
IODEVCTL
ENDPCTL
GPI
Address
Description
(Hex)
90 device control for I/O
91 endpoint control
92 GPI3-1 register
Revision 1.1
-15-
Jun. 7, 1999