I’ll research the MCP23017T-E/SO datasheet and primary sources, then write a cited application guide covering wiring, layout, alternatives, and sourcing in the project files.
I verified an important caveat: the current datasheet specifies GPA7 and GPB7 as output-only, despite older guides describing all 16 pins as bidirectional. I’ll highlight that restriction and clearly distinguish functional alternatives from drop-in replacements.
The Microchip MCP23017T-E/SO is an I²C GPIO expander in a tape-and-reel, extended-temperature, 28-lead wide SOIC package, providing two eight-bit ports with configurable interrupt outputs. It is commonly used to add push-button, keypad, indicator, and peripheral-control signals to a microcontroller; importantly, the current datasheet restricts GPA7 and GPB7 to outputs, so new designs must not assume 16 usable inputs.
1. Quick Specifications
Absolute maximum ratings are stress limits, not recommended operating points. Do not multiply the per-pin current limit by 16: aggregate VDD/VSS curren...
The guide highlights the GPA7/GPB7 output-only restriction, mixed-voltage I²C risks, and alternatives that require PCB and firmware changes. Unverified sourcing and library-quality details are explicitly flagged.
The Microchip MCP23017T-E/SO is an I²C GPIO expander in a tape-and-reel, extended-temperature, 28-lead wide SOIC package, providing two eight-bit ports with configurable interrupt outputs. It is commonly used to add push-button, keypad, indicator, and peripheral-control signals to a microcontroller; importantly, the current datasheet restricts GPA7 and GPB7 to outputs, so new designs must not assume 16 usable inputs.
1. Quick Specifications
Table
Parameter
Recommended operation / characterized condition
Absolute maximum / mechanical specification
Supply voltage, VDD
1.8–5.5 V at −40 to +85°C; 4.5–5.5 V for operation through +125°C. Typical integration rails: 3.3 V or 5 V.
−0.3 to +5.5 V relative to VSS.
I²C clock
100 kHz at 1.8–5.5 V; 400 kHz at 2.7–5.5 V; 1.7 MHz at 4.5–5.5 V. These limits are supply-dependent, not a universal 1.7 MHz rating.
Not an absolute-maximum parameter.
Active supply current, IDD
1 mA maximum with SCL/SCK = 1 MHz; add load and external pull-up currents separately.
VDD current into the device: 125 mA maximum.
Standby supply current
1 µA maximum for −40 to +85°C; this does not include external loads.
VSS current out of the device: 150 mA maximum.
GPIO load capability
VOL ≤ 0.6 V at 8 mA sink, VDD = 4.5 V; VOH ≥ VDD − 0.7 V at 3 mA source, VDD = 4.5 V. These are specified test points, not guarantees at every supply.
25 mA maximum source or sink per output pin. Do not use this stress limit as the continuous design target.
Input thresholds: GPIO, SCL, SDA, RESET
VIL ≤ 0.2 × VDD; VIH ≥ 0.8 × VDD. At VDD = 5 V, the calculated minimum high level is 4 V.
Do not infer 5 V tolerance when powered at 3.3 V.
Package and pitch
SOIC-28, wide 7.50 mm body; 1.27 mm BSC lead pitch.
Mechanical specification, not electrical rating.
Total power dissipation
Calculate load-related dissipation and check the package thermal conditions.
700 mW absolute maximum; not a guaranteed allowable dissipation at every ambient temperature.
Absolute maximum ratings are stress limits, not recommended operating points. Do not multiply the per-pin current limit by 16: aggregate VDD/VSS current limits also apply.
2. Pinout & Connections
The following numbering applies specifically to the 28-lead SOIC, not the QFN. Pin assignments and functions are from Table 2-1. Best-practice values below are engineering starting points, not manufacturer-mandated resistor or capacitor values.
Table
Pin Number
Pin Name
Description
Best Practice
1
GPB0
Port B bit 0, bidirectional GPIO
Configure direction; bias an undriven input.
2
GPB1
Port B bit 1, bidirectional GPIO
Use a pull-up for a switch to GND; debounce in firmware.
3
GPB2
Port B bit 2, bidirectional GPIO
Keep input levels within the supply domain.
4
GPB3
Port B bit 3, bidirectional GPIO
Add a series resistor if driving an LED.
5
GPB4
Port B bit 4, bidirectional GPIO
Use an external driver for relays or significant loads.
6
GPB5
Port B bit 5, bidirectional GPIO
Set the output latch before enabling output direction.
7
GPB6
Port B bit 6, bidirectional GPIO
Enable a pull-up or otherwise define an unused input.
8
GPB7
Port B bit 7, output only on MCP23017
Clear IODIRB bit 7; do not use as a switch input.
9
VDD
Positive supply
Connect to the regulated rail; place a 100 nF ceramic bypass capacitor adjacent to pins 9/10.
10
VSS
Ground
Connect to a low-impedance ground plane and the MCU ground.
11
NC
No connection
Leave unconnected.
12
SCL
I²C serial-clock input; some shared drawings label it SCK
Connect to MCU SCL with an external bus pull-up.
13
SDA
I²C serial-data input/output
Connect to MCU SDA with an external bus pull-up.
14
NC
No connection
Leave unconnected; this is not an SPI data pin.
15
A0
Hardware address bit 0; requires external bias
Tie directly to VSS or VDD for a fixed address.
16
A1
Hardware address bit 1; requires external bias
Tie directly to VSS or VDD; never float.
17
A2
Hardware address bit 2; requires external bias
Tie directly to VSS or VDD; never float.
18
RESET, active-low
Hardware reset; requires external bias
Use a 10 kΩ pull-up to VDD and optionally an MCU open-drain reset signal.
19
INTB
Port B interrupt output
For open-drain mode, add a pull-up; leave unconnected if unused.
20
INTA
Port A interrupt output
For open-drain mode, add a pull-up; leave unconnected if unused.
21
GPA0
Port A bit 0, bidirectional GPIO
Suitable for a switch input with pull-up and firmware debounce.
22
GPA1
Port A bit 1, bidirectional GPIO
Configure direction before normal use.
23
GPA2
Port A bit 2, bidirectional GPIO
Add a series resistor for an LED.
24
GPA3
Port A bit 3, bidirectional GPIO
Define undriven input levels.
25
GPA4
Port A bit 4, bidirectional GPIO
Use an external driver for inductive loads.
26
GPA5
Port A bit 5, bidirectional GPIO
Budget source/sink current with other outputs.
27
GPA6
Port A bit 6, bidirectional GPIO
Enable an internal pull-up or add external bias as appropriate.
28
GPA7
Port A bit 7, output only on MCP23017
Clear IODIRA bit 7; do not use as an input.
3. Standard Application Circuit
Recommended starting circuit: 3.3 V MCU GPIO expansion
Use a shared 3.3 V rail for the MCU interface and expander and start at 100 kHz I²C. This avoids mixed-voltage input-threshold problems; 400 kHz is permitted by the expander's supply condition, but still requires bus timing verification.
Power: connect VDD pin 9 to 3.3 V and VSS pin 10 to GND. As practical engineering guidance, fit one 100 nF X7R/X5R ceramic capacitor between them, with the shortest possible loop. An optional nearby 1 µF ceramic capacitor supplies additional local charge if the rail is long or multiple outputs switch; it is not a verified datasheet requirement.
Bus: connect pins 12/13 to MCU SCL/SDA. Start with one 4.7 kΩ pull-up per line to 3.3 V for a short, lightly loaded 100 kHz bus. This is a starting value, not a universal solution: measure rise time and VOL, account for other pull-ups in parallel, and choose resistance against total bus capacitance and all devices' sink capability. TI's I²C Bus Pullup Resistor Calculation explains the speed-versus-current trade-off; the MCP23017 timing table itself uses 1 kΩ and 135 pF test conditions, not a blanket BOM recommendation.
Address: tie A2/A1/A0 to GND for 7-bit address 0x20. Other combinations give 0x20–0x27, derived from the datasheet address field 0100 A2 A1 A0. Do not pass the shifted control-byte value 0x40 as the address to an API expecting a 7-bit address.
Reset: pull pin 18 up to VDD with 10 kΩ. If firmware must reset the expander, add a compatible open-drain pull-down; ensure the signal is not driven above VDD. For slow or unreliable power ramps, use a reset supervisor and verify reset timing rather than assuming a resistor-capacitor network is sufficient.
Interrupts, optional: connect INTA/INTB to MCU interrupt inputs. Select IOCON.ODR = 1 for open-drain operation, then fit a 10 kΩ pull-up on each used interrupt net to the compatible logic rail. ODR overrides INTPOL. Do not wire push-pull interrupt outputs together.
Inputs: connect a button between GPA0 and GND and enable its GPPU bit. The internal pull-up is nominally 100 kΩ, so an external 10 kΩ pull-up is a useful engineering option for noisier wiring. Neither pull-up provides mechanical-contact debouncing.
5 V integration warning: powering the expander at 5 V while pulling SCL/SDA to 3.3 V does not meet its 0.8 × VDD minimum-high requirement; pulling the bus to 5 V can instead damage a non-5-V-tolerant MCU. Use a properly selected bidirectional I²C level translator, or operate both sides in a compatible supply domain.
Firmware initialization that avoids output glitches
With the reset/default BANK = 0 register layout, IODIRA/B are at 0x00/0x01, GPPUA/B at 0x0C/0x0D, and OLATA/B at 0x14/0x15. IODIR resets to 0xFF and pull-ups reset disabled.
Write the desired safe output values to OLATA/B before enabling outputs; writing OLAT changes the latch and outputs already configured as outputs.
Then write the direction masks. For seven input-capable bits per port and bit 7 as output, use IODIRA = IODIRB = 0x7F. The current datasheet explicitly requires IO7 to be written to zero for MCP23017.
Enable only the necessary pull-ups and input interrupts. For interrupt handling, capture the relevant port state by reading INTCAP or GPIO; an appropriate read clears the interrupt, whereas writing those registers does not.
Keep a software shadow of output latch values to avoid unintentionally changing other outputs during updates. Provide external bias on safety-relevant driver inputs because firmware initialization is not instantaneous.
Optional GPIO-driven LED example
The component is not a constant-current LED driver. For a simple indicator, connect VDD → resistor → LED anode, then LED cathode to a GPIO; output-low turns it on. As an illustrative design calculation, assume a red LED with VF = 2.0 V and choose no more than approximately 2 mA using the conservative ideal-low model R ≥ (VDD − VF)/I:
Table
Rail
Calculation
Suggested standard value
Ideal-low current
3.3 V
(3.3 − 2.0)/0.002 = 650 Ω
680 Ω
1.91 mA
5 V
(5.0 − 2.0)/0.002 = 1500 Ω
1.5 kΩ
2.00 mA
These are illustrative calculations, not verified specifications for an unspecified LED. Actual current is (VDD − VF − VOL)/R; check minimum VF, maximum supply, resistor tolerance, and output VOL for the real parts. At 5 V with 1.5 kΩ, the ideal-low resistor dissipation is 6 mW. Use one resistor per LED and include all simultaneously illuminated LEDs in the aggregate current budget; use an external LED driver for higher current or controlled brightness. The 25 mA per-pin rating is an absolute maximum, not the chosen operating current.
4. PCB Layout & Routing Guidelines
The following are engineering recommendations rather than a manufacturer-provided, board-specific layout approval:
Decoupling loop: place the 100 nF bypass capacitor immediately beside pins 9/10. Connect its ground terminal into the plane with a short path; avoid routing the supply through a long branch before the capacitor.
SOIC footprint and assembly: use the wide SOIC-28 package, not a narrow SOIC or SSOP. Match the manufacturer's 7.50 mm body and 1.27 mm pitch; mark pin 1 clearly and verify solder-mask clearances against the intended fabrication rules.
I²C routing: keep SCL/SDA short with few stubs and a continuous ground reference; separate them from switching-node and motor-drive traces. These are single-ended signals, not a differential pair—controlled differential impedance and pair-length matching are not requirements. Evaluate capacitance and edge timing rather than just clock frequency.
GPIO/load paths: size supply, ground, and GPIO traces for actual simultaneous load, copper thickness, allowable temperature rise, and voltage drop. No universal high-current trace width is justified for this signal-expander IC; put substantial load currents through external drivers, not the package. Aggregate current must remain below the VDD/VSS stress limits with design margin.
Thermal relief and return paths: use assembly-compatible thermal relief where needed on plane-connected pads, but avoid a long or narrow return that compromises bypassing. This SOIC has no QFN-style exposed thermal pad; do not copy the QFN thermal-pad footprint. Check output-stage dissipation under simultaneous loading rather than treating the 700 mW stress limit as an unconditional thermal budget.
5. Common Pitfalls / Things to Watch Out For
Copying an older “16 bidirectional GPIOs” implementation. GPA7/GPB7 are output-only under the current datasheet. Configure bit 7 in both direction registers as zero, and reserve button/sensor inputs for GPA0–6/GPB0–6. The reset direction-register value does not override this restriction.
Treating I²C as automatically voltage-compatible and self-biased. Define RESET and A0–A2 externally, provide correctly sized bus pull-ups, and do not assume 3.3 V is a valid high at VDD = 5 V. A device may appear to work on the bench outside its guaranteed thresholds; that is not a reliable production design.
6. Popular Alternatives & Equivalents
No cross-manufacturer, drop-in replacement for this 28-pin SOIC pinout and register map was verified. The following two real devices are functionally similar only: neither is pin-compatible, footprint-compatible, nor firmware-compatible with MCP23017T-E/SO. Plan a PCB and driver migration rather than a BOM-only substitution.
16-bit GPIO expansion; 2.3–5.5 V supply, up to 400 kHz, 24-pin TSSOP option; port pins have internal high-value pull-ups and default to inputs.
Functionally similar only. Replace footprint/net mapping and use its 0x00–0x07 register map; do not reuse the MCP23017 firmware unchanged.
Both candidates were found in the Flux library, but their indexed package labels contain inconsistencies; the NXP entry also points to an unrelated certification PDF. The links establish library presence, not validated symbol/footprint quality. Use the manufacturer datasheets below and inspect the actual 24-pin footprint before placing either part. Exact internal pull-up resistance tolerance for PCA9555 was not verified and should not be used as a precision timing element.
7. Sourcing & Purchasing Guide
Table
Attribute
Details
Primary Distributors
Start with Microchip's product/purchasing page and franchised channels such as DigiKey and Mouser. A DigiKey listing identifies the T-E/SO tape-and-reel/cut-tape variant. LCSC lists the exact MPN as C629440, useful for investigating a JLCPCB assembly BOM. LCSC's authorized-channel status and current JLCPCB assembly availability were not verified here.
Packaging Options
Manufacturer suffix T means tape-and-reel, E extended temperature, and /SO wide SOIC-28. Distributors can sell pieces cut from the reel; cut tape is not a different silicon variant. The T identifier is not printed on the package marking.
Standard MOQ
Distributor-dependent: LCSC's exact-MPN listing offers a 1-piece tier and specifies 1,600 pieces/full reel; DigiKey's alternate packaging listing also states 1 cut-tape piece and 1,600 for tape-and-reel. Confirm the selected carrier and MOQ at checkout. LCSC listing; DigiKey listing.
Sourcing Advice
Prefer manufacturer-direct or franchised distributors with lot traceability. Avoid unknown marketplace stock: counterfeit, remarked, and mishandled material can defeat electrical validation. Match the full MPN, temperature grade, package, and carrier; /SS, /SP and /ML must not be substituted for /SO without redesign. Check lot information against the current datasheet rather than relying on older all-input examples.
Purchasing information was checked on 7 October 2026. Live stock, lead time, current prices, distributor-specific reel services, and JLCPCB assembly classification were not verified; obtain a current quote before committing a build. Do not treat manufacturer packing suffixes as proof that an arbitrary seller ships a full reel.
Sources
Microchip, MCP23017/MCP23S17 datasheet, DS20001952D, Revision D, June 2022: manufacturer PDF. Sections used: absolute maximum ratings; DC and I²C timing characteristics; Table 2-1 pin descriptions; register descriptions; SOIC package drawing; product identification system. Revision/date verified from its revision history.
Microchip MCP23017 product page: manufacturer overview and purchase entry point. For limits and the GPA7/GPB7 restriction, use the detailed datasheet rather than abbreviated product descriptions.
Texas Instruments TCA9535 datasheet: manufacturer PDF. The retrieved technical evidence was from the earlier indexed document; the live product page advertises Rev. F dated 16 September 2026. Latest-revision equivalence was not independently established, so recheck that revision before a redesign.
NXP PCA9555 datasheet, Rev. 10, 8 November 2017: manufacturer PDF, for functional alternatives, package options, port pull-ups, and register map.
LCSC, MCP23017T-E/SO, C629440, for exact orderable MPN, single-piece tier, and full-reel quantity; these are distributor claims, not electrical design limits.
This is an integration guide, not a completed schematic, PCB review, or qualification of any existing footprint. Passive values identified as recommendations and unspecified-LED calculations require verification against the actual application.
1. Quick Specifications
2. Pinout & Connections
3. Standard Application Circuit
Recommended starting circuit: 3.3 V MCU GPIO expansion
Firmware initialization that avoids output glitches