参数资料
型号: MCP23S18T-E/MJ
厂商: Microchip Technology
文件页数: 24/56页
文件大小: 0K
描述: IC I/O EXPANDER SPI 16B 24QFN
标准包装: 3,300
接口: SPI
输入/输出数: 16
中断输出:
频率 - 时钟: 10MHz
电源电压: 1.8 V ~ 5.5 V
工作温度: -40°C ~ 125°C
安装类型: 表面贴装
封装/外壳: 24-VFQFN 裸露焊盘
供应商设备封装: 24-QFN(4x4)
包装: 带卷 (TR)
MCP23018/MCP23S18
DS22103A-page 30
2008 Microchip Technology Inc.
1.7
Interrupt Logic
If enabled, the MCP23X18 activates the INTn interrupt
output when one of the port pins changes state or when
a pin does not match the pre-configured default. Each
pin is individually configurable as follows:
Enable/disable interrupt via GPINTEN
Can interrupt on either pin change or change from
default as configured in DEFVAL
Both conditions are referred to as Interrupt on Change
(IOC).
The Interrupt Control (INT) Module uses the following
registers/bits:
IOCON.MIRROR - controls if the two interrupt
pins mirror each other.
GPINTEN - Interrupt enable register
INTCON - Controls the source for the IOC
DEFVAL - Contains the register default for IOC
operation
1.7.1
INTA AND INTB
There are two interrupt pins, INTA and INTB. By
default, INTA is associated with GPAn pins (Port A) and
INTB is associated with GPBn pins (Port B). Each port
has an independent signal which is cleared if its
associated GPIO or INTCAP register is read.
1.7.1.1
Mirroring the INT pins
Additionally, the INTn pins can be configured to mirror
each other so that any interrupt will cause both pins to
go active. This is controlled via IOCON.MIRROR.
If IOCON.MIRROR = 0, the internal signals are routed
independently to the INTA and INTB pads.
If IOCON.MIRROR = 1, the internal signals are OR’ed
together and routed to the INTn pads. In this case, the
interrupt will only be cleared if the associated GPIO or
INTCAP is read (see Table 1-6).
TABLE 1-6:
INTERRUPT OPERATION
(IOCON.MIRROR = 1)
1.7.2
IOC FROM PIN CHANGE
If enabled, the MCP23X18 will generate an interrupt if
a mismatch condition exists between the current port
value and the previous port value. Only IOC enabled
pins will be compared. See GPINTEN and INTCON
registers.
1.7.3
IOC FROM REGISTER DEFAULT
If enabled, the MCP23X18 will generate an interrupt if
a mismatch occurs between the DEFVAL register and
the port. Only IOC enabled pins will be compared. See
GPINTEN, INTCON, and DEFVAL registers.
1.7.4
INTERRUPT OPERATION
The INTn interrupt output can be configured as “active
low”, “active high”, or “open drain” via the IOCON
register.
Only those pins that are configured as an input (IODIR
register)
with
interrupt-on-change
(IOC)
enabled
(GPINTEN register) can cause an interrupt. Pins
defined as an output have no effect on the interrupt
output pin.
Input change activity on a port input pin that is enabled
for IOC will generate an internal device interrupt and
the device will capture the value of the port and copy it
into INTCAP.
The first interrupt event will cause the port contents to
be copied into the INTCAP register. Subsequent
interrupt conditions on the port will not cause an
interrupt to occur as long as the interrupt is not cleared
by a read of INTCAP or GPIO.
1.7.5
CLEARING INTERRUPTS
The interrupt will remain active until the INTCAP or
GPIO register is read (depending on IOCON.INTCC).
Writing to these registers will not affect the interrupt.
The interrupt condition will be cleared after the LSb of
the data is clocked out during a Read command of
GPIO or INTCAP (depending on IOCON.INTCC).
Interrupt
Condition
Read Port N*
Interupt
Result
GPIOA
Port A
Clear
Port B
Unchanged
GPIOB
Port A
Unchanged
Port B
Clear
GPIOA and
GPIOB
Port A
Unchanged
Port B
Unchanged
Both Port A
and Port B
Clear
* Port n = GPIOn or INTCAPn
Note:
Assuming IOCON.INTCC = 0 (INT cleared
on GPIO read): The value in INTCAP can
be lost if GPIO is read before INTCAP
while another IOC is pending. After read-
ing GPIO, the interrupt will clear and then
set due to the pending IOC, causing the
INTCAP register to update.
相关PDF资料
PDF描述
ATTINY261-15XZ MCU AVR 2K FLASH 15MHZ 20-TSSOP
MCP23016T-I/SO IC I/O EXPANDER I2C 16B 28SOIC
1888021-8 CONN MINISAS RCPT SHIELD 36POS
ATTINY261-15MZ MCU AVR 2K FLASH 15MHZ 32-QFN
1888021-4 CONN MINISAS RCPT SHIELD 36POS
相关代理商/技术参数
参数描述
MCP23X08/17 制造商:MICROCHIP 制造商全称:Microchip Technology 功能描述:Unique Features of the MCP23X08/17 GPIO Expanders
MCP23X08EV 功能描述:界面开发工具 MCP23X08 8b GPIO Exp Eval Brd RoHS:否 制造商:Bourns 产品:Evaluation Boards 类型:RS-485 工具用于评估:ADM3485E 接口类型:RS-485 工作电源电压:3.3 V
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