deckle studio
Open the editor
Behavioural mixed-signal modelMCP23017-E/SPmcp23017

MCP23017 (16 I/O expander, I²C)

16 extra digital inputs / outputs on I²C (address 20h + A2…A0): direction, input polarity, weak pull-ups (about 67 kΩ), interrupt on change or against a default value with INTCAP, INTA / INTB (mirrored, open drain or push-pull), both register banks and the byte / sequential modes as in the Microchip data sheet. Use it e.g. with Adafruit_MCP23X17 (pinMode, digitalWrite, digitalRead on pins 0–15: GPA0–7, GPB0–7).

VDDVSSSCLSDAA0A1A2/RESETINTAINTBGPA0GPA1GPA2GPA3GPA4GPA5GPA6GPA7GPB0GPB1GPB2GPB3GPB4GPB5GPB6GPB7MCP23017-E/SP
Schematic symbol

Key data

Category
ICs
Simulation model
Behavioural mixed-signal model
Manufacturer part number
MCP23017-E/SP
Reference prefix
U
Pins
26
Land pattern
DIP-28_W7.62mm

Simulation model

A behavioural model implements the interface of the chip (registers, protocol, timing) at its pins. The pins are connected to the analog circuit like CMOS pins.

Model
mcp23017
Supply pins
VDD / VSS

Pins 26

PinNameUse
VDDVDDSupply pinSupply input: decouple with 100 nF close to the pin
VSSVSSGround pinGround
SCLSCLInput pinI²C clock: sensors, displays; pull-up (about 4.7 kΩ) to the supply
SDASDAI/O pinI²C data: pull-up (about 4.7 kΩ) to the supply
A0A0Input pinLogic input: never leave open (tie unused inputs to VCC or GND)
A1A1Input pinLogic input: never leave open (tie unused inputs to VCC or GND)
A2A2Input pinLogic input: never leave open (tie unused inputs to VCC or GND)
RESET/RESETInput pinActive-low control input: low = active; tie high when unused
INTAINTAOutput pinLogic output: drives the next input; do not tie outputs together
INTBINTBOutput pinLogic output: drives the next input; do not tie outputs together
GPA0GPA0I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
GPA1GPA1I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
GPA2GPA2I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
GPA3GPA3I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
GPA4GPA4I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
GPA5GPA5I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
GPA6GPA6I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
GPA7GPA7I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
GPB0GPB0I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
GPB1GPB1I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
GPB2GPB2I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
GPB3GPB3I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
GPB4GPB4I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
GPB5GPB5I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
GPB6GPB6I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
GPB7GPB7I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)

PCB

Verified land patternDIP-28_W7.62mm
PackageLand patternStatusSource
DIP-28DIP-28_W7.62mmVerified land patternKiCad 10.0.7: symbol MCP23017x-x-SP, footprint Package_DIP:DIP-28_W7.62mm; pads by pin name from the KiCad symbol; Microchip MCP23017 data sheet
  • RESET To VDD (directly or 10 kΩ) or a GPIO; low holds the chip in reset
  • A0 To GND or VDD (address bit)
  • A1 To GND or VDD (address bit)
  • A2 To GND or VDD (address bit)
  • VDD 1.8–5.5 V with 100 nF