MCP23017 16-bit I/O expander
Adds 16 GPIO pins over I2C with interrupts.
Function16-bit I/O expander
Supply voltage1.8 to 5.5 V
Inputs and outputsI2C (0x20 to 0x27)
PackageDIP-28
Integrated CircuitsReviewedMPN MCP23017-E/SPUsed in 2 projects
In short
What is the MCP23017 16-bit I/O expander and what is it used for?
Adds 16 GPIO pins over I2C with interrupts. Makers use it for keypads and many LEDs.
How it works
An I2C peripheral with two 8-bit ports, direction and interrupt registers.
Key specifications
| Integrated circuit spec | Value |
|---|---|
| Function | 16-bit I/O expander |
| Supply voltage | 1.8 to 5.5 V |
| Inputs and outputs | I2C (0x20 to 0x27) |
| Package | DIP-28 |
Pinout
1to 8GPB0 to GPB7
9VDD
10VSS
11NC (CS on the SPI version)
12SCL
13SDA
14NC
15to 17A0 to A2 address
18RESET, active LOW, tie HIGH
19and 20INTA and INTB
21to 28GPA0 to GPA7
How to use it
Address 0x20 to 0x27. Use the Adafruit MCP23017 library: each pin can be input, output or input with a 100 kΩ pull-up. Tie RESET HIGH or the chip stays in reset.
Applications
Keypads and many LEDs
Builds that use it
Alternatives
- PCF8574 I/O expander8 pins, simpler
Common questions
What is the MCP23017 16-bit I/O expander used for?
In maker projects: keypads and many LEDs.
How does the MCP23017 16-bit I/O expander work?
An I2C peripheral with two 8-bit ports, direction and interrupt registers.
What voltage does the MCP23017 16-bit I/O expander need?
1.8 to 5.5 V.
What can I use instead of the MCP23017 16-bit I/O expander?
PCF8574 I/O expander.
