AN1043
INTERRUPT FEATURES
The MCP23X08 has one interrupt pin and the
MCP23X17 has two interrupt pins.
For the MCP23X17, each interrupt pin is associated
with an 8-bit port. INTA is associated with Port A and
INTB is associated with Port B.
Interrupt Mapping
The MCP23X17 interrupt pins can be mapped in two
ways (see Figure 2) as controlled by IOCON.MIRROR:
Interrupt Conditions
There are several configurable interrupt conditions
which allow flexible configurations.
INTERRUPT-ON-PIN-CHANGE
Pins configured for interrupt-on-pin-change will
cause an interrupt to occur if a pin changes to the
opposite state. The default state is reset after an
interrupt is serviced. For example, an interrupt occurs
by an input changing from 1 to 0 . The interrupt is then
serviced while the pin state is still 0 by reading GPIO or
1.
2.
Interrupt pins operate independently. INTA
reflects interrupt conditions on Port A and INTB
reflects interrupt conditions on Port B.
Both interrupt pins go active when an interrupt
occurs on either port.
INTCAP register. The new initial state for the pin is a
logic 0 . Likewise, if the pin is toggled back to a logic 1
before servicing the interrupt, the new default state is a
logic 1 .
The interrupt condition is cleared by reading either
INTCAP or GPIO register. The new pin state default is
Interrupt Polarity and Open-Drain
The interrupts can be configured to operate in three
modes:
set when the interrupt is cleared.
INTERRUPT-ON-CHANGE FROM DEFVAL
REGISTER VALUE
1.
Active-High.
Pins configured for
interrupt-on-change from
2. Active-Low.
3. Open-Drain.
The interrupt polarity and open-drain is configured via
INTPOL and ODR bits in the IOCON register.
register value will cause an interrupt to occur if the
corresponding input pin differs from the register bit. The
interrupt condition will remain as long as the condition
exists, regardless if the INTCAP or GPIO is read.
For example, if DEFVAL<b0> = 0 . An interrupt will
Note:
For the MCP23X17, the polarity and open-
drain configuration of the INTA and INTB
pins are not independent. Both pins are
configured the same.
occur if the pin changes to a logic 1 and the interrupt
will remain as long as the pin remains a logic 1 . The
interrupt condition will clear if the pin changes back to
a logic 0 and INTCAP or GPIO is read.
FIGURE 2:
INTERRUPT BLOCK DIAGRAM
IOCON.ODR
IOCON.INTPOL
IOCON.MIRROR
0
1
INTA
A
B
Polarity
Control
Open-
Drain
Control
INTB
0
1
? 2006 Microchip Technology Inc.
DS01043A-page 3
相关PDF资料
MCP23X17EV BOARD EVAL FOR MCP23X17
MCP2515DM-PTPLS BOARD DAUGHTER PICTAIL MCP2515
MCP3905EV BOARD DEMO FOR MCP3905
MCP402XEV BOARD EVAL FOR MCP402X
MCP42XXEV BOARD EVALUATION MCP42XX
MCP43XXEV BOARD EVALUATION MCP43XX
MCP46XXDM-PTPLS BOARD PICTAIL DIGI POT MCP4XXX
MCP46XXEV EVAL BOARD FOR MCP46XX
相关代理商/技术参数
MCP23X17EV 功能描述:其他开发工具 MCP23X17 EVAL BRD RoHS:否 制造商:Parallax 产品:ELEV-8 Hex Upgrade Kits 类型:Robotics 工具用于评估:ELEV-8 Quadcopter 工作电源电压:
MCP-24 制造商:Taiyo Electric Ind. 功能描述:
MCP-240-00002-00 制造商:SUPER MICRO COMPUTER, INC. 功能描述:SPARE PARTS - Trays
MCP-240-00031-00 制造商:SUPER MICRO COMPUTER, INC. 功能描述:2U, REAR WINDOW ACCESSORY KITS, SC825'S (RISER CARD SOLUTION - Bulk
MCP-240-00032-00 制造商:SUPER MICRO COMPUTER, INC. 功能描述:2U, REAR WINDOW ACCESSORY KITS, SC825'S (RISER CARD SOLUTION - Bulk
MCP-240-00063-0N 制造商:Supermicro Computer Inc 功能描述:REAR WINDOW ACCESSORY KIT FOR 2U 825 制造商:SUPER MICRO COMPUTER, INC. 功能描述:3XFH ADD ON CARD REAR I/O PANEL FOR SC825 CHASSIS. - Bulk
MCP-240-00064-0N 制造商:SUPER MICRO COMPUTER, INC. 功能描述:BACK PANEL FOR THE CSE-825TQ-R700LPB - Bulk
MCP-240-00098-0N 制造商:SUPER MICRO COMPUTER, INC. 功能描述:WIO REAR WINDOW FOR SC113, SC815 REDUNDANT PWS - Bulk