MCP23016
1.7.3
INPUT POLARITY REGISTERS
These registers allow the user to configure the polarity
of the input port data (GP0 and GP1). If a bit in this reg-
ister is set, the corresponding input port (GPn) data bit
polarity will be inverted.
• IPOL0 (controls the polarity of GP0)
• IPOL1 (controls the polarity of GP1)
REGISTER 1-5:
R/W-0
IGP0.7
bit 7
bit 7-0
IPOL0 - INPUT POLARITY PORT REGISTER 0
R/W-0
IGP0.6
R/W-0
IGP0.5
R/W-0
IGP0.4
R/W-0
IGP0.3
R/W-0
IGP0.2
R/W-0
IGP0.1
R/W-0
IGP0.0
bit 0
IGP0.0:IGP0.7:
Controls the polarity inversion for the input pins
1
= Corresponding GP0 bit is inverted
0
= Corresponding GP0 bit is not inverted
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-6:
R/W-0
IGP1.7
bit 7
bit 7-0
IPOL1 - INPUT POLARITY PORT REGISTER 1
R/W-0
IGP1.6
R/W-0
IGP1.6
R/W-0
IGP1.4
R/W-0
IGP1.3
R/W-0
IGP1.2
R/W-0
IGP1.1
R/W-0
IGP1.0
bit 0
IGP1.0:IGP1.7:
Controls the polarity inversion for the input pins
1
= Corresponding GP1 bit is inverted
0
= Corresponding GP1 bit is not inverted
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 8
©
2007 Microchip Technology Inc.