Datasheet

Table Of Contents
MCP23016
DS20090C-page 6 © 2007 Microchip Technology Inc.
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: GP0 - GENERAL PURPOSE I/O PORT REGISTER 0
REGISTER 1-2: GP1 - GENERAL PURPOSE I/O PORT REGISTER 1
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
GP0.7GP0.6GP0.5GP0.4GP0.3GP0.2GP0.1GP0.0
bit 7 bit 0
bit 7-0 GP0.0:GP0.7: Reflects the logic level on the pins.
1 = Logic ‘1
0 = Logic ‘0
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
- n = Value at POR 1’ = Bit is set 0’ = Bit is cleared x = Bit is unknown
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
GP1.7GP1.6GP1.5GP1.4GP1.3GP1.2GP1.1GP1.0
bit 7 bit 0
bit 7-0 GP1.0:GP1.7: Reflects the logic level on the pins.
1 = Logic ‘1
0 = Logic ‘0
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
- n = Value at POR 1’ = Bit is set 0’ = Bit is cleared x = Bit is unknown