MCP23S17T-E/SO Microchip Technology, MCP23S17T-E/SO Datasheet - Page 24

IC I/O EXPANDER SPI 16B 28SOIC

MCP23S17T-E/SO

Manufacturer Part Number
MCP23S17T-E/SO
Description
IC I/O EXPANDER SPI 16B 28SOIC
Manufacturer
Microchip Technology
Datasheet

Specifications of MCP23S17T-E/SO

Interface
SPI
Number Of I /o
16
Interrupt Output
Yes
Frequency - Clock
10MHz
Voltage - Supply
1.8 V ~ 5.5 V
Operating Temperature
-40°C ~ 125°C
Mounting Type
Surface Mount
Package / Case
28-SOIC (7.5mm Width)
Chip Configuration
16 Bit
Bus Frequency
10MHz
Ic Interface Type
Serial, SPI
No. Of I/o's
16
Supply Voltage Range
4.5V To 5.5V
Digital Ic Case Style
SOIC
No. Of Pins
28
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
MCP23X17EV - BOARD EVAL FOR MCP23X17GPIODM-KPLCD - BOARD DEMO LCD GPIO EXP KEYPAD
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MCP23S17T-E/SO
Manufacturer:
MICROCHIP
Quantity:
2 000
Part Number:
MCP23S17T-E/SO
0
MCP23017/MCP23S17
1.7
If enabled, the MCP23X17 activates the INTn interrupt
output when one of the port pins changes state or when
a pin does not match the preconfigured default. Each
pin is individually configurable as follows:
• Enable/disable interrupt via GPINTEN
• Can interrupt on either pin change or change from
Both conditions are referred to as Interrupt-on-Change
(IOC).
The interrupt control module uses the following
registers/bits:
• IOCON.MIRROR – controls if the two interrupt
• GPINTEN – Interrupt enable register
• INTCON – Controls the source for the IOC
• DEFVAL – Contains the register default for IOC
1.7.1
There are two interrupt pins: INTA and INTB. By
default, INTA is associated with GPAn pins (PortA) and
INTB is associated with GPBn pins (PortB). Each port
has an independent signal which is cleared if its
associated GPIO or INTCAP register is read.
1.7.1.1
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-7:
DS21952B-page 24
* Port n = GPIOn or INTCAPn
default as configured in DEFVAL
pins mirror each other
operation
GPIOA and
Condition
Interrupt
GPIOA
GPIOB
GPIOB
Interrupt Logic
INTA AND INTB
Mirroring the INT pins
INTERRUPT OPERATION
(IOCON.MIRROR = 1)
Both PortA and
Table
Read Portn *
PortA
PortB
PortA
PortB
PortA
PortB
PortB
1-7).
Interupt Result
Unchanged
Unchanged
Unchanged
Unchanged
Clear
Clear
Clear
1.7.2
If enabled, the MCP23X17 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. Refer to
Register
1.7.3
If enabled, the MCP23X17 will generate an interrupt if
a mismatch occurs between the DEFVAL register and
the port. Only IOC enabled pins will be compared.
Refer to
1.7.4
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
(IOINTEN 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 interrupt will remain active until the
INTCAP or GPIO register is read. 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.
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.
Note:
Register
1-5.
IOC FROM PIN CHANGE
IOC FROM REGISTER DEFAULT
INTERRUPT OPERATION
The value in INTCAP can be lost if GPIO is
read before INTCAP while another IOC is
pending. After reading GPIO, the interrupt
will clear and then set due to the pending
IOC, causing the INTCAP register to
update.
1-3,
Register 1-5
© 2007 Microchip Technology Inc.
and
Register 1-3
Register
1-4.
and

Related parts for MCP23S17T-E/SO