ATTENTION: Due to increased demand and order volume, processing time may take an additional 1-3 business days.
HomeCommunitySubjectMCP23S17 Expander: Features, Pinout, and Datasheet

MCP23S17 Expander: Features, Pinout, and Datasheet

Interface - I/O Expanders 28-SOIC (0.295, 7.50mm Width) 1.8V~5.5V -40°C~125°C 10MHz MCP23S17 POR 5V MICROCHIP - MCP23S17-E/SO - I/O-Erweiterung, 16bit, 10 MHz, Seriell, SPI, 4.5 V, 5.5 V, SOIC

1416

Nov 6, 2021

Candice Emma

Short Circuit: Episode 1 (MCP23S17)

 

Interface - I/O Expanders 28-SOIC (0.295, 7.50mm Width) 1.8V~5.5V -40°C~125°C 10MHz MCP23S17 POR 5V MICROCHIP - MCP23S17-E/SO - I/O-Erweiterung, 16bit, 10 MHz, Seriell, SPI, 4.5 V, 5.5 V, SOIC

The MCP23S17 is a 16-bit I/O Expander, provides general-purpose parallel I/O expansion for I²C bus or SPI applications. It consists of multiple 8-bit configuration registers for input, output and polarity selection. This article mainly introduce features, pinout, datasheet and other detailed information about Microchip Technology MCP23S17.

MCP23S17-E/SO

11In Stock
Min.: 1 Mult.: 1
Quantity Unit Price Ext. Price
1+ $2.07469$2.07
10+ $1.95726$19.57
100+ $1.84647$184.65
500+ $1.74195$870.98
1000+ $1.64335$1643.35
Unit Price:$2.07469
Subtotal: $2.07
Looking for a better price? Want a lower wholesale price? Please send an RFQ, and we will respond immediately.
Quick Links

MCP23S17 Description

For I²C bus or SPI applications, the MCP23S17 device family enables 16-bit general-purpose parallel I/O expansion. The MCP23017 is the same as the MCP23017. The serial interface is the only difference between the two devices:

• MCP23017 – I²C interface

• MCP23S17 – SPI interface

Multiple 8-bit configuration registers for input, output and polarity selection make up the MCP23X17. By writing the I/O configuration bits (IODIRA/B), the system master can activate the I/Os as either inputs or outputs.

The data for each input or output is stored in the input or output register that corresponds to it. The Polarity Inversion register inverts the polarity of the Input Port register. The system master has access to all registers.

The 16-bit I/O port is actually two 8-bit ports connected together (PORTA and PORTB). IOCON.BANK can be used to set the MCP23X17 to work in either 8-bit or 16-bit mode.

INTA and INTB are two interrupt pins that can be linked to their respective ports or logically ORed together to activate both pins if either port triggers an interrupt.

The interrupt output can be set to activate under two (mutually exclusive) conditions:

1. When the state of any input differs from the state of the Input Port register. This is used to notify the system master when a status has changed on an input.

2. When an input state differs from a register value that has been pre-configured (DEFVAL register).

The Interrupt Capture register saves the interrupt state by capturing port values at the moment of the interrupt.

The Power-on Reset (POR) resets the device state machine and resets the registers to their default values.

To determine the device address, the hardware address pins are employed.

 

MCP23S17 Pinout

 

Pin Number Pin Name Description
1 GPB0 Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
2 GPB1 Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
3 GPB2 Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
4 GPB3 Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
5 GPB4 Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
6 GPB5 Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
7 GPB6 Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
8 GPB7 Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
9 VDD Power
10 VSS Ground
11 CS NC (MCP23017)/Chip Select (MCP23S17)
12 SCK Serial clock input
13 SI Serial data I/O (MCP23017)/Serial data input (MCP23S17)
14 SO NC (MCP23017)/Serial data out (MCP23S17)
15 A0 Hardware address pin. Must be externally biased.
16 A1 Hardware address pin. Must be externally biased.
17 A2 Hardware address pin. Must be externally biased.
18 RESET Hardware reset. Must be externally biased.
19 INTB Interrupt output for PORTB. Can be configured as active-high, active-low or open-drain.
20 INTA Interrupt output for PORTA. Can be configured as active-high, active-low or open-drain.
21 GPA0 Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
22 GPA1 Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
23 GPA2 Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
24 GPA3 Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
25 GPA4 Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
26 GPA5 Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
27 GPA6 Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
28 GPA7 Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.

MCP23S17 CAD Model

Symbol

Footprint

3D Model

MCP23S17 Features

• 16-Bit Remote Bidirectional I/O Port:

- I/O pins default to input

• High-Speed I2C Interface (MCP23017):

- 100 kHz

- 400 kHz

- 1.7 MHz

• High-Speed SPI Interface (MCP23S17):

- 10 MHz (maximum)

• Three Hardware Address Pins to Allow Up to

Eight Devices On the Bus

• Configurable Interrupt Output Pins:

- Configurable as active-high, active-low or

open-drain

• INTA and INTB Can Be Configured to Operate

Independently or Together

• Configurable Interrupt Source:

- Interrupt-on-change from configured register

defaults or pin changes

• Polarity Inversion Register to Configure the

Polarity of the Input Port Data

• External Reset Input

• Low Standby Current: 1 µA (max.)

• Operating Voltage:

- 1.8V to 5.5V @ -40°C to +85°C

- 2.7V to 5.5V @ -40°C to +85°C

- 4.5V to 5.5V @ -40°C to +125°C

Specifications

Microchip Technology MCP23S17-E/SO technical specifications, attributes, parameters and parts with similar specifications to Microchip Technology MCP23S17-E/SO.

MCP23S17-E/SO Tech Specifications

Microchip Technology MCP23S17-E/SO technical specifications, attributes, parameters and parts with similar specifications to Microchip Technology MCP23S17-E/SO.

Product Attribute Attribute Value
Factory Lead Time12 Weeks
Contact PlatingTin
MountSurface Mount
Mounting TypeSurface Mount
Package / Case28-SOIC (0.295, 7.50mm Width)
Number of Pins28Pins
Weight2.214806g
Number of I/Os16I/Os
Operating Temperature-40°C~125°C
PackagingTube
Published2005
JESD-609 Codee3
Pbfree Codeyes
Part StatusActive
Moisture Sensitivity Level (MSL)1 (Unlimited)
Product Attribute Attribute Value
Number of Terminations28Terminations
ECCN CodeEAR99
Max Power Dissipation700mW
Voltage - Supply1.8V~5.5V
Terminal PositionDUAL
Terminal FormGULL WING
Peak Reflow Temperature (Cel)250
Supply Voltage5V
Time@Peak Reflow Temperature-Max (s)40
Base Part NumberMCP23S17
Pin Count28
Qualification StatusNot Qualified
Output TypePush-Pull
Power Supplies5V
Number of Channels1Channel
Product Attribute Attribute Value
InterfaceSPI
Number of Ports2Ports
Nominal Supply Current1mA
Output Current25mA
Number of Bits16Bits
Clock Frequency10MHz
Interrupt OutputYes
FeaturesPOR
Height Seated (Max)2.65mm
Width7.5mm
REACH SVHCNo SVHC
RoHS StatusROHS3 Compliant
Lead FreeLead Free
0 Products View Similar

MCP23S17 Functional Block Diagram

Functional Block Diagram

How to use MCP23S Expander

Expanding I/O Ports of PIC Microcontroller using MCP23S1717 Expander

A microcontroller usually comes with a set of IO ports known as General Purpose Input Output (GPIO) ports. However, some applications require more IO ports than a microcontroller can provide. In these circumstances, IO Port Expanders can be used to expand a microcontroller's IO functionality. Microchip's MCP23017 and MCP23S17 are two such 16-bit IO expanders with Serial Interface. The MCP23017 employs a high-speed I2C interface, whereas the MCP23S17 employs a high-speed SPI interface.

Then, using the MCP23S17, we'll show how to extend the IO ports of a PIC Microcontroller. The built-in libraries in MikroC Pro for PIC Microcontroller allow you to communicate with the MCP23S17 via the SPI interface. Using the three address pins on the SPI Bus, we can link up to eight MCP23S17.

To demonstrate the operation of MCP23S17, we use the PIC 16F877A in this example project. MCP23S17's PORTA and PORTB are set to Input and Output, respectively. SPST switches and the MCP23S17's inbuilt PULL UP are connected to PORTA, while LEDs are attached to PORTB via current limiting resistors. Because the status of the SPST switches linked to PORTA is the status of the LEDs connected to PORTB, the LEDs connected to PORTB will GLOW according to the condition of the SPST switches connected to PORTA.

Circuit Diagram - I/O Port Expanding PIC Microcontroller

 

Notes: The PIC Microcontroller's VDD, VSS, and MCP23S17 are not depicted in the circuit design. VSS should be linked to OV and VDD should be connected to +5V.

 

When a switch is turned on, the associated LED is turned off, and when it is turned off, the corresponding LED is turned on. MCP23S17's address is 0 since all three address pins are grounded.

MCP23S17 Alternatives

Part Number Description Manufacturer
MCP23S17-E/SSMICROCONTROLLERS AND PROCESSORS 16 I/O, PIA-GENERAL PURPOSE, PDSO28, 5.30 MM, PLASTIC, SSOP-28 Microchip Technology Inc
MCP23S17T-E/SSMICROCONTROLLERS AND PROCESSORS 16 I/O, PIA-GENERAL PURPOSE, PDSO28, 5.30 MM, PLASTIC, SSOP-28 Microchip Technology Inc

MCP23S17 Applications

• Embedded Design & Development

• Automation & Process Control

MCP23S17 Package

MCP23S17 Manufacturer

Microchip Technology Incorporated is a leading manufacturer of smart, networked, and secure embedded control solutions. Customers may create optimal designs using the company's simple development tools and broad product choices, which reduce risk while lowering overall system costs and time to market. The company's technologies are used by over 120,000 clients in the industrial, automotive, consumer, aerospace and defense, communications, and computing sectors. Microchip Technology Inc., based in Chandler, Arizona, offers outstanding technical assistance as well as reliable delivery and quality.

Datasheet PDF

MCP23S17-E/SO Documents

Download datasheets and manufacturer documentation for MCP23S17-E/SO

TAGS

Share