MCP23016
1.7.1
DATA PORT REGISTERS
Two registers provide access to the two GPIO ports:
• GP0 (provides access to data port GP0)
• GP1 (provides access to data port GP1)
A read from this register provides status on pins of
these ports. A write to these registers will modify the
output latch registers (OLAT0, OLAT1) and data output.
REGISTER 1-1:
R/W-0
GP0.7
bit 7
bit 7-0
GP0 - GENERAL PURPOSE I/O PORT REGISTER 0
R/W-0
GP0.6
R/W-0
GP0.5
R/W-0
GP0.4
R/W-0
GP0.3
R/W-0
GP0.2
R/W-0
GP0.1
R/W-0
GP0.0
bit 0
GP0.0:GP0.7:
Reflects the logic level on the pins.
1
= Logic ‘1’
0
= Logic ‘0’
Legend:
R = Readable bit
- n = Value at POR
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
x = Bit is unknown
REGISTER 1-2:
R/W-0
GP1.7
bit 7
bit 7-0
GP1 - GENERAL PURPOSE I/O PORT REGISTER 1
R/W-0
GP1.6
R/W-0
GP1.5
R/W-0
GP1.4
R/W-0
GP1.3
R/W-0
GP1.2
R/W-0
GP1.1
R/W-0
GP1.0
bit 0
GP1.0:GP1.7:
Reflects the logic level on the pins.
1
= Logic ‘1’
0
= Logic ‘0’
Legend:
R = Readable bit
- n = Value at POR
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
x = Bit is unknown
DS20090C-page 6
©
2007 Microchip Technology Inc.