MCP23017/MCP23S17
3.5.9 INTERRUPT CAPTURED REGISTER
The INTCAP register captures the GPIO port value at
the time the interrupt occurred. The register is
read-only and is updated only when an interrupt
occurs. The register remains unchanged until the
interrupt is cleared via a read of INTCAP or GPIO.
REGISTER 3-9: INTCAP: INTERRUPT CAPTURED VALUE FOR PORT REGISTER (ADDR 0x08)
R-x
ICP7
bit 7
R-x
ICP6
R-x
ICP5
R-x
ICP4
R-x
ICP3
R-x
ICP2
R-x
ICP1
R-x
ICP0
bit 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
bit 7-0
ICP<7:0>: Reflects the logic level on the port pins at the time of interrupt due to pin change <7:0>
1 = Logic-high
0 = Logic-low
3.5.10 PORT REGISTER
The GPIO register reflects the value on the port.
Reading from this register reads the port. Writing to this
register modifies the Output Latch (OLAT) register.
REGISTER 3-10: GPIO: GENERAL PURPOSE I/O PORT REGISTER (ADDR 0x09)
R/W-0
GP7
bit 7
R/W-0
GP6
R/W-0
GP5
R/W-0
GP4
R/W-0
GP3
R/W-0
GP2
R/W-0
GP1
R/W-0
GP0
bit 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
bit 7-0
GP<7:0>: Reflects the logic level on the pins <7:0>
1 = Logic-high
0 = Logic-low
2005-2016 Microchip Technology Inc.
DS20001952C-page 23