MCP23S17 Expander: Features, Pinout, and Datasheet

Sophie

Published: 13 December 2021 | Last Updated: 13 December 2021

4192

MCP23S17-E/SO

MCP23S17-E/SO

Microchip Technology

28 Termination 5V Tin I/O Expander MCP23S17 28 Pin 5V 28-SOIC (0.295, 7.50mm Width)

Purchase Guide

28 Termination 5V Tin I/O Expander MCP23S17 28 Pin 5V 28-SOIC (0.295, 7.50mm Width)

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.

This video will show you the shortest (and simplest) way to wire the MCP23S17 into a circuit.

Short Circuit: Episode 1 (MCP23S17)

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

pinout.jpg

Pinout

Pin NumberPin NameDescription
1GPB0Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
2GPB1Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
3GPB2Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
4GPB3Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
5GPB4Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
6GPB5Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
7GPB6Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
8GPB7Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
9VDDPower
10VSSGround
11CSNC (MCP23017)/Chip Select (MCP23S17)
12SCKSerial clock input
13SISerial data I/O (MCP23017)/Serial data input (MCP23S17)
14SONC (MCP23017)/Serial data out (MCP23S17)
15A0Hardware address pin. Must be externally biased.
16A1Hardware address pin. Must be externally biased.
17A2Hardware address pin. Must be externally biased.
18RESETHardware reset. Must be externally biased.
19INTBInterrupt output for PORTB. Can be configured as active-high, active-low or open-drain.
20INTAInterrupt output for PORTA. Can be configured as active-high, active-low or open-drain.
21GPA0Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
22GPA1Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
23GPA2Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
24GPA3Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
25GPA4Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
26GPA5Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
27GPA6Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.
28GPA7Bidirectional I/O pin. Can be enabled for interrupt-on-change and/or internal weak pull-up resistor.


MCP23S17 CAD Model

symbol.png

Symbol

footprint.png

Footprint

3D Model.jpg

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.
  • Type
    Parameter
  • Factory Lead Time
    12 Weeks
  • Contact Plating

    Contact plating (finish) provides corrosion protection for base metals and optimizes the mechanical and electrical properties of the contact interfaces.

    Tin
  • Mount

    In electronic components, the term "Mount" typically refers to the method or process of physically attaching or fixing a component onto a circuit board or other electronic device. This can involve soldering, adhesive bonding, or other techniques to secure the component in place. The mounting process is crucial for ensuring proper electrical connections and mechanical stability within the electronic system. Different components may have specific mounting requirements based on their size, shape, and function, and manufacturers provide guidelines for proper mounting procedures to ensure optimal performance and reliability of the electronic device.

    Surface Mount
  • Mounting Type

    The "Mounting Type" in electronic components refers to the method used to attach or connect a component to a circuit board or other substrate, such as through-hole, surface-mount, or panel mount.

    Surface Mount
  • Package / Case

    refers to the protective housing that encases an electronic component, providing mechanical support, electrical connections, and thermal management.

    28-SOIC (0.295, 7.50mm Width)
  • Number of Pins
    28
  • Weight
    2.214806g
  • Number of I/Os
    16
  • Operating Temperature

    The operating temperature is the range of ambient temperature within which a power supply, or any other electrical equipment, operate in. This ranges from a minimum operating temperature, to a peak or maximum operating temperature, outside which, the power supply may fail.

    -40°C~125°C
  • Packaging

    Semiconductor package is a carrier / shell used to contain and cover one or more semiconductor components or integrated circuits. The material of the shell can be metal, plastic, glass or ceramic.

    Tube
  • Published
    2005
  • JESD-609 Code

    The "JESD-609 Code" in electronic components refers to a standardized marking code that indicates the lead-free solder composition and finish of electronic components for compliance with environmental regulations.

    e3
  • Pbfree Code

    The "Pbfree Code" parameter in electronic components refers to the code or marking used to indicate that the component is lead-free. Lead (Pb) is a toxic substance that has been widely used in electronic components for many years, but due to environmental concerns, there has been a shift towards lead-free alternatives. The Pbfree Code helps manufacturers and users easily identify components that do not contain lead, ensuring compliance with regulations and promoting environmentally friendly practices. It is important to pay attention to the Pbfree Code when selecting electronic components to ensure they meet the necessary requirements for lead-free applications.

    yes
  • Part Status

    Parts can have many statuses as they progress through the configuration, analysis, review, and approval stages.

    Active
  • Moisture Sensitivity Level (MSL)

    Moisture Sensitivity Level (MSL) is a standardized rating that indicates the susceptibility of electronic components, particularly semiconductors, to moisture-induced damage during storage and the soldering process, defining the allowable exposure time to ambient conditions before they require special handling or baking to prevent failures

    1 (Unlimited)
  • Number of Terminations
    28
  • ECCN Code

    An ECCN (Export Control Classification Number) is an alphanumeric code used by the U.S. Bureau of Industry and Security to identify and categorize electronic components and other dual-use items that may require an export license based on their technical characteristics and potential for military use.

    EAR99
  • Max Power Dissipation

    The maximum power that the MOSFET can dissipate continuously under the specified thermal conditions.

    700mW
  • Voltage - Supply

    Voltage - Supply refers to the range of voltage levels that an electronic component or circuit is designed to operate with. It indicates the minimum and maximum supply voltage that can be applied for the device to function properly. Providing supply voltages outside this range can lead to malfunction, damage, or reduced performance. This parameter is critical for ensuring compatibility between different components in a circuit.

    1.8V~5.5V
  • Terminal Position

    In electronic components, the term "Terminal Position" refers to the physical location of the connection points on the component where external electrical connections can be made. These connection points, known as terminals, are typically used to attach wires, leads, or other components to the main body of the electronic component. The terminal position is important for ensuring proper connectivity and functionality of the component within a circuit. It is often specified in technical datasheets or component specifications to help designers and engineers understand how to properly integrate the component into their circuit designs.

    DUAL
  • Terminal Form

    Occurring at or forming the end of a series, succession, or the like; closing; concluding.

    GULL WING
  • Peak Reflow Temperature (Cel)

    Peak Reflow Temperature (Cel) is a parameter that specifies the maximum temperature at which an electronic component can be exposed during the reflow soldering process. Reflow soldering is a common method used to attach electronic components to a circuit board. The Peak Reflow Temperature is crucial because it ensures that the component is not damaged or degraded during the soldering process. Exceeding the specified Peak Reflow Temperature can lead to issues such as component failure, reduced performance, or even permanent damage to the component. It is important for manufacturers and assemblers to adhere to the recommended Peak Reflow Temperature to ensure the reliability and functionality of the electronic components.

    250
  • Supply Voltage

    Supply voltage refers to the electrical potential difference provided to an electronic component or circuit. It is crucial for the proper operation of devices, as it powers their functions and determines performance characteristics. The supply voltage must be within specified limits to ensure reliability and prevent damage to components. Different electronic devices have specific supply voltage requirements, which can vary widely depending on their design and intended application.

    5V
  • Time@Peak Reflow Temperature-Max (s)

    Time@Peak Reflow Temperature-Max (s) refers to the maximum duration that an electronic component can be exposed to the peak reflow temperature during the soldering process, which is crucial for ensuring reliable solder joint formation without damaging the component.

    40
  • Base Part Number

    The "Base Part Number" (BPN) in electronic components serves a similar purpose to the "Base Product Number." It refers to the primary identifier for a component that captures the essential characteristics shared by a group of similar components. The BPN provides a fundamental way to reference a family or series of components without specifying all the variations and specific details.

    MCP23S17
  • Pin Count

    a count of all of the component leads (or pins)

    28
  • Qualification Status

    An indicator of formal certification of qualifications.

    Not Qualified
  • Output Type

    The "Output Type" parameter in electronic components refers to the type of signal or data that is produced by the component as an output. This parameter specifies the nature of the output signal, such as analog or digital, and can also include details about the voltage levels, current levels, frequency, and other characteristics of the output signal. Understanding the output type of a component is crucial for ensuring compatibility with other components in a circuit or system, as well as for determining how the output signal can be utilized or processed further. In summary, the output type parameter provides essential information about the nature of the signal that is generated by the electronic component as its output.

    Push-Pull
  • Power Supplies

    an electronic circuit that converts the voltage of an alternating current (AC) into a direct current (DC) voltage.?

    5V
  • Number of Channels
    1
  • Interface

    In electronic components, the term "Interface" refers to the point at which two different systems, devices, or components connect and interact with each other. It can involve physical connections such as ports, connectors, or cables, as well as communication protocols and standards that facilitate the exchange of data or signals between the connected entities. The interface serves as a bridge that enables seamless communication and interoperability between different parts of a system or between different systems altogether. Designing a reliable and efficient interface is crucial in ensuring proper functionality and performance of electronic components and systems.

    SPI
  • Number of Ports

    A port is identified for each transport protocol and address combination by a 16-bit unsigned number,.

    2
  • Nominal Supply Current

    Nominal current is the same as the rated current. It is the current drawn by the motor while delivering rated mechanical output at its shaft.

    1mA
  • Output Current

    The rated output current is the maximum load current that a power supply can provide at a specified ambient temperature. A power supply can never provide more current that it's rated output current unless there is a fault, such as short circuit at the load.

    25mA
  • Number of Bits
    16
  • Clock Frequency

    Clock frequency, also known as clock speed, refers to the rate at which a processor or electronic component can execute instructions. It is measured in hertz (Hz) and represents the number of cycles per second that the component can perform. A higher clock frequency typically indicates a faster processing speed and better performance. However, it is important to note that other factors such as architecture, efficiency, and workload also play a significant role in determining the overall performance of a component. In summary, clock frequency is a crucial parameter that influences the speed and efficiency of electronic components in processing data and executing tasks.

    10MHz
  • Interrupt Output

    In electronic components, "Interrupt Output" refers to a feature that allows a device to signal the occurrence of a specific event or condition that requires immediate attention from the system or user. When the specified event occurs, the interrupt output generates a signal to pause the normal operation of the device and divert the attention to handle the urgent task. This feature is commonly used in microcontrollers, processors, and other integrated circuits to efficiently manage tasks and prioritize critical operations. By utilizing interrupt outputs, electronic systems can respond promptly to important events, improve overall performance, and enhance real-time responsiveness.

    Yes
  • Features

    In the context of electronic components, the term "Features" typically refers to the specific characteristics or functionalities that a particular component offers. These features can vary depending on the type of component and its intended use. For example, a microcontroller may have features such as built-in memory, analog-to-digital converters, and communication interfaces like UART or SPI.When evaluating electronic components, understanding their features is crucial in determining whether they meet the requirements of a particular project or application. Engineers and designers often look at features such as operating voltage, speed, power consumption, and communication protocols to ensure compatibility and optimal performance.In summary, the "Features" parameter in electronic components describes the unique attributes and capabilities that differentiate one component from another, helping users make informed decisions when selecting components for their electronic designs.

    POR
  • Height Seated (Max)

    Height Seated (Max) is a parameter in electronic components that refers to the maximum allowable height of the component when it is properly seated or installed on a circuit board or within an enclosure. This specification is crucial for ensuring proper fit and alignment within the overall system design. Exceeding the maximum seated height can lead to mechanical interference, electrical shorts, or other issues that may impact the performance and reliability of the electronic device. Manufacturers provide this information to help designers and engineers select components that will fit within the designated space and function correctly in the intended application.

    2.65mm
  • Width
    7.5mm
  • REACH SVHC

    The parameter "REACH SVHC" in electronic components refers to the compliance with the Registration, Evaluation, Authorization, and Restriction of Chemicals (REACH) regulation regarding Substances of Very High Concern (SVHC). SVHCs are substances that may have serious effects on human health or the environment, and their use is regulated under REACH to ensure their safe handling and minimize their impact.Manufacturers of electronic components need to declare if their products contain any SVHCs above a certain threshold concentration and provide information on the safe use of these substances. This information allows customers to make informed decisions about the potential risks associated with using the components and take appropriate measures to mitigate any hazards.Ensuring compliance with REACH SVHC requirements is essential for electronics manufacturers to meet regulatory standards, protect human health and the environment, and maintain transparency in their supply chain. It also demonstrates a commitment to sustainability and responsible manufacturing practices in the electronics industry.

    No SVHC
  • RoHS Status

    RoHS means “Restriction of Certain Hazardous Substances” in the “Hazardous Substances Directive” in electrical and electronic equipment.

    ROHS3 Compliant
  • Lead Free

    Lead Free is a term used to describe electronic components that do not contain lead as part of their composition. Lead is a toxic material that can have harmful effects on human health and the environment, so the electronics industry has been moving towards lead-free components to reduce these risks. Lead-free components are typically made using alternative materials such as silver, copper, and tin. Manufacturers must comply with regulations such as the Restriction of Hazardous Substances (RoHS) directive to ensure that their products are lead-free and environmentally friendly.

    Lead Free
0 Similar Products Remaining

Parts with Similar Specs

The three parts on the right have similar specifications to Microchip Technology & MCP23S17-E/SO.

MCP23S17 Functional Block Diagram

Functional Block Diagram.png

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 - IO Port Expanding PIC Microcontroller.png

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 NumberDescriptionManufacturer
MCP23S17-E/SSMICROCONTROLLERS AND PROCESSORS16 I/O, PIA-GENERAL PURPOSE, PDSO28, 5.30 MM, PLASTIC, SSOP-28Microchip Technology Inc
MCP23S17T-E/SSMICROCONTROLLERS AND PROCESSORS16 I/O, PIA-GENERAL PURPOSE, PDSO28, 5.30 MM, PLASTIC, SSOP-28Microchip Technology Inc


MCP23S17 Applications

• Embedded Design & Development

• Automation & Process Control


MCP23S17 Package

package.png    

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.


Trend Analysis

Datasheet PDF

Download datasheets and manufacturer documentation for Microchip Technology MCP23S17-E/SO.
MCP23S17-E/SO

Microchip Technology

In Stock: 20

United States

China

Canada

Japan

Russia

Germany

United Kingdom

Singapore

Italy

Hong Kong(China)

Taiwan(China)

France

Korea

Mexico

Netherlands

Malaysia

Austria

Spain

Switzerland

Poland

Thailand

Vietnam

India

United Arab Emirates

Afghanistan

Åland Islands

Albania

Algeria

American Samoa

Andorra

Angola

Anguilla

Antigua & Barbuda

Argentina

Armenia

Aruba

Australia

Azerbaijan

Bahamas

Bahrain

Bangladesh

Barbados

Belarus

Belgium

Belize

Benin

Bermuda

Bhutan

Bolivia

Bonaire, Sint Eustatius and Saba

Bosnia & Herzegovina

Botswana

Brazil

British Indian Ocean Territory

British Virgin Islands

Brunei

Bulgaria

Burkina Faso

Burundi

Cabo Verde

Cambodia

Cameroon

Cayman Islands

Central African Republic

Chad

Chile

Christmas Island

Cocos (Keeling) Islands

Colombia

Comoros

Congo

Congo (DRC)

Cook Islands

Costa Rica

Côte d’Ivoire

Croatia

Cuba

Curaçao

Cyprus

Czechia

Denmark

Djibouti

Dominica

Dominican Republic

Ecuador

Egypt

El Salvador

Equatorial Guinea

Eritrea

Estonia

Eswatini

Ethiopia

Falkland Islands

Faroe Islands

Fiji

Finland

French Guiana

French Polynesia

Gabon

Gambia

Georgia

Ghana

Gibraltar

Greece

Greenland

Grenada

Guadeloupe

Guam

Guatemala

Guernsey

Guinea

Guinea-Bissau

Guyana

Haiti

Honduras

Hungary

Iceland

Indonesia

Iran

Iraq

Ireland

Isle of Man

Israel

Jamaica

Jersey

Jordan

Kazakhstan

Kenya

Kiribati

Kosovo

Kuwait

Kyrgyzstan

Laos

Latvia

Lebanon

Lesotho

Liberia

Libya

Liechtenstein

Lithuania

Luxembourg

Macao(China)

Madagascar

Malawi

Maldives

Mali

Malta

Marshall Islands

Martinique

Mauritania

Mauritius

Mayotte

Micronesia

Moldova

Monaco

Mongolia

Montenegro

Montserrat

Morocco

Mozambique

Myanmar

Namibia

Nauru

Nepal

New Caledonia

New Zealand

Nicaragua

Niger

Nigeria

Niue

Norfolk Island

North Korea

North Macedonia

Northern Mariana Islands

Norway

Oman

Pakistan

Palau

Palestinian Authority

Panama

Papua New Guinea

Paraguay

Peru

Philippines

Pitcairn Islands

Portugal

Puerto Rico

Qatar

Réunion

Romania

Rwanda

Samoa

San Marino

São Tomé & Príncipe

Saudi Arabia

Senegal

Serbia

Seychelles

Sierra Leone

Sint Maarten

Slovakia

Slovenia

Solomon Islands

Somalia

South Africa

South Sudan

Sri Lanka

St Helena, Ascension, Tristan da Cunha

St. Barthélemy

St. Kitts & Nevis

St. Lucia

St. Martin

St. Pierre & Miquelon

St. Vincent & Grenadines

Sudan

Suriname

Svalbard & Jan Mayen

Sweden

Syria

Tajikistan

Tanzania

Timor-Leste

Togo

Tokelau

Tonga

Trinidad & Tobago

Tunisia

Turkey

Turkmenistan

Turks & Caicos Islands

Tuvalu

U.S. Outlying Islands

U.S. Virgin Islands

Uganda

Ukraine

Uruguay

Uzbekistan

Vanuatu

Vatican City

Venezuela

Wallis & Futuna

Yemen

Zambia

Zimbabwe

Related Parts More