Project Files of MCP23017 I/O Expander Library for Proteus Simulation
13d21dcbabc9481fb6b20059d4770b27.zip

MCP23017 I/O Expander Library for Proteus V1.0
MCP23017 I/O Expander Library for Proteus V1.0 comes as a ZIP archive of 19 files (2.1 MB, 6.3 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, an Arduino sketch and compiled HEX firmware.
- LIBProteus library
- DLLProteus model
- DSNProteus simulation
- INOArduino sketch
- HEXHEX firmware
Description
MCP23017-IO-Expander-Library-for-Proteus-v1.0.zip with the MCP23017 I/O expander for Proteus simulation (TEPMCP23017.LIB and TEPMCP23017.DLL), our LEDs, resistors and DIP switch, our Arduino UNO V4.0, the A3 demo, its sketch and a README.
File Structure
3.4 KB201.9 KB1.6 MB21.8 KB24.7 KB306.9 KB883.5 KB279.5 KB289.5 KB303.5 KB311 KB27.5 KB18.5 KB883.5 KB279.5 KB289.5 KB303.5 KB311 KB13.2 KBGallery12 images from the tutorialOpen the tutorial
The circuit, the board and the results as they appear in MCP23017 I/O Expander Library for Proteus Simulation. Open an image for its full size.
README
MCP23017 I/O EXPANDER LIBRARY FOR PROTEUS SIMULATION - V1.0 (sixteen more pins on two wires, a pop-up)
Designed by The Engineering Projects
www.TheEngineeringProjects.com
IMPORTANT LINKS
Article (read it first - pictures, step by step, every feature explained):
https://www.theengineeringprojects.com/2026/12/mcp23017-io-expander-library-for-proteus.html
Report a bug or suggest a feature (our forum):
https://www.theengineeringprojects.com/forum/category/lcd-proteus-library
The demo runs on our Arduino UNO V4.0 (included) - working LEDs, RESET and a
built-in serial monitor, no Virtual Terminal to wire - its own article:
https://www.theengineeringprojects.com/2026/10/arduino-uno-library-for-proteus-v40.html
Support us (the libraries are free):
https://www.theengineeringprojects.com/donate
FILE STRUCTURE
MCP23017-IO-Expander-TEP-v1.0/
|-- Proteus Library Files/
| |-- ArduinoV4TEP.LIB 201.9 KB TEP Arduino boards V4.0 (UNO) -> LIBRARY
| |-- TEPDIP.LIB 1.63 MB a part the demo uses -> LIBRARY folder
| |-- TEPLED5MM.LIB 21.8 KB a part the demo uses -> LIBRARY folder
| |-- TEPMCP23017.LIB 24.7 KB the library -> LIBRARY folder
| |-- TEPRESISTOR.LIB 306.9 KB a part the demo uses -> LIBRARY folder
|-- Proteus Model Files/
| |-- TEPARDUINO.DLL 883.5 KB the Arduino board model -> MODELS folder
| |-- TEPDIP.DLL 279.5 KB its model -> MODELS folder
| |-- TEPLED5MM.DLL 289.5 KB its model -> MODELS folder
| |-- TEPMCP23017.DLL 303.5 KB the model -> MODELS folder
| |-- TEPRESISTOR.DLL 311.0 KB its model -> MODELS folder
|-- Proteus Simulation/
| |-- MCP23017_Demo.hex 18.5 KB the demo firmware
| |-- MCP23017-Running-Light-ArduinoUnoV4.pdsprj 27.5 KB the demo project
| |-- TEPARDUINO.DLL 883.5 KB copy of the board model
| |-- TEPDIP.DLL 279.5 KB copy of its model
| |-- TEPLED5MM.DLL 289.5 KB copy of its model
| |-- TEPMCP23017.DLL 303.5 KB copy of the model
| |-- TEPRESISTOR.DLL 311.0 KB copy of its model
|-- Arduino Code/
| |-- MCP23017_Demo/MCP23017_Demo.ino 3.4 KB the demo sketch (source of the .hex)
|-- README.txt ~13.7 KB this file
Total: 6.27 MB (unzipped). The C++ source code of the models is not included.
WHAT IS IT?
The common MCP23017 16-bit I/O expansion board, drawn from the top at its real size: the 25 x 42 mm
blue board, the MCP23017, the
pull-ups, the PWR LED, the host header VCC GND SDA SCL RST A0 A1 A2 INTA INTB on the left and GPA0 -
GPA7, GPB0 - GPB7 on the right. The
drawing is our own; the model follows the MCP23017 datasheet:
* An I2C slave at 0x20 - 0x27 (A2 A1 A0; left open they take the ADDRESS property) with 22
registers, 11 per port: IODIR, IPOL,
GPINTEN, DEFVAL, INTCON, IOCON, GPPU, INTF, INTCAP, GPIO, OLAT - the IOCON.BANK = 0 map and the
BANK = 1 map.
* The register address first, then the data; the pointer moves on by itself (IOCON.SEQOP = 0), so
one write can set several registers.
* Outputs are push-pull (they source and sink); inputs float or get the 100 k pull-up (GPPU); IPOL
inverts an input.
* Interrupt-on-change: GPINTEN per pin, INTCON 0 = any change, 1 = differs from DEFVAL; INTF says
which pin, INTCAP holds the port at
that moment; INTA / INTB follow IOCON.MIRROR, ODR (open drain) and INTPOL; reading GPIO or
INTCAP clears it. RST low resets it all.
* Click the board for the pop-up: the 16 pins (direction, level, pull-up, interrupt) and every
register; graphs, an event log and a
check page.
The body is drawn as on the real part and to true scale against our Arduino.
The TEP signature and the pop-up are TEP additions.
ONE DEVICE (search "MCP23017" or "expander" in Pick Devices):
IOEXPMCP23017TEP "MCP23017 IO Expander V1.0" in TEPMCP23017.LIB (Modules > Interface), prefix U,
model TEPMCP23017.DLL (mixed).
Pins: VCC GND SDA SCL RST A0 A1 A2 INTA INTB (left), GPA0 - GPA7, GPB0 - GPB7
(right).
The demo also uses our 5 mm LEDs (TEPLED5MM), resistors (TEPRESISTOR) and the 4-way DIP switch
(TEPDIP).
THE POP-UP
Click the part at Run. Tabs:
Expander The 16 pins (IN / OUT, the level, pull-up, interrupt, the pin that interrupted), the
11 registers of ports A and B; tiles:
the address and the supply, the pins, OLAT, IOCON, the interrupts, INTA / INTB, the
writes and reads, the last access.
Graphs the live values over the last 2, 6 or 15 s. Live / Freeze.
Event log every change and warning; filters All / Changes / Warnings, Pause, Clear
Check what the part is doing and what to look at, each with a verdict (green = fine, amber
= check, red = wrong)
Settings theme, text size, open at Run, window size
Help report a bug, suggest a feature, article, updates, donate, forum; Copy diagnostics
for a bug report
TEST STATUS
V1.0: verified in Proteus 8.5 on 21 Nov 2026 (the demo project as shipped: an A3 sheet, an Arduino UNO V4.0).
What the runs showed (the model's own numbers and the sketch's monitor):
* The project loads and starts cleanly; the demo ran 3.2 simulated seconds in about 1 minute 52
seconds on our PC with the pop-up open
and the pictures being taken.
* Power-on as the datasheet: all 16 pins inputs, no pull-ups, IOCON.BANK = 0. The set-up writes
between 68.8 and 70.2 ms: IODIRA 0x00,
IODIRB 0xFF, GPPUB 0x0F, IPOLB 0x0F, INTCONB 0x00, GPINTENB 0x8F; read back "IODIRA 0x0 IODIRB
0xFF".
* The running light on port A (OLATA 0x01 at 94.8 ms, a step every 120 ms): 0x20 at 0.73 s, 0x80
at 0.97 s, 0x10 at 2.29 s, 0x08 at 3.20 s.
* The switches (1 and 3 ON) on GPB0 - GPB3 with the chip's pull-ups: pins 0x0A, read through IPOL
as 0x05 - "Switches 1-4: 1010".
* The loop-back GPA7 -> GPB7: interrupts at 0.934 s (GPB7 high), 1.054 s (low), 2.614 s and 2.734
s; INTFB 0x80 each time, INTCAPB read
0x85 / 0x05 / 0x85 / 0x05, INTB released by the read. No interrupt on port A, none from the
switches.
* In all: 49 writes, 18 reads, 0 NACKs, 0 resets.
* The pop-up (Expander, Graphs, Event log, Check) followed the run; the Check page showed all five
lines green.
INSTALLATION (about 2 minutes)
1. Close Proteus. Extract the WHOLE ZIP to a normal folder (e.g. Desktop).
2. Copy everything in "Proteus Library Files" (TEPMCP23017.LIB, TEPLED5MM.LIB, TEPRESISTOR.LIB,
TEPDIP.LIB and our Arduino library V4.0, ArduinoV4TEP.LIB, with the ARDUINO UNO V4.0 used by the
demo) to the LIBRARY folder of Proteus, for example:
C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY
(use the folder that already holds Proteus's own .LIB files).
3. Copy TEPMCP23017.DLL, TEPLED5MM.DLL, TEPRESISTOR.DLL, TEPDIP.DLL and TEPARDUINO.DLL from "Proteus
Model Files" to the MODELS folder (...\Proteus 8 Professional\MODELS).
4. Delete TEPMCP23017.IDX from the LIBRARY folder if it is there (Proteus makes a new index).
5. Start Proteus. In Pick Devices (P) search "MCP23017".
RUN THE DEMO
"Proteus Simulation\MCP23017-Running-Light-ArduinoUnoV4.pdsprj" (an A3 sheet) - keep the .hex file
and the DLLs beside the project.
ARD1: Arduino UNO V4.0 running MCP23017_Demo.hex (window "TEP Arduino UNO - ARD1"): A4 / A5 =
SDA / SCL, D2 = INTB.
U1: the MCP23017 at 0x20: GPA0 - GPA7 drive D1 - D8 (red LEDs through R1 - R8, 220 ohm, to
GND); GPB0 - GPB3 read SW1 (a 4-way DIP
switch to GND, switches 1 and 3 ON) with the chip's pull-ups, inverted; GPB7 is wired back
to GPA7.
The sketch runs a light back and forth on port A, reads the switches on port B, and takes the
interrupt-on-change: every time the light
reaches GPA7 the loop-back changes GPB7 and INTB fires - the sketch reads INTFB and INTCAPB.
Closed the monitor? Click the UNO's USB port.
WIRING (the same in Proteus and on a real board)
VCC 1.8 - 5.5 V and GND, SDA / SCL to the I2C bus (the board has the pull-ups), RST high (the
board pulls it up), A0 - A2 for the
address. An LED: from the pin through a resistor to GND (write OLAT 1) or from VCC to the pin
(write 0). A switch: from the pin to GND
with GPPU on. INTA / INTB to interrupt pins.
REAL HARDWARE:
* Each pin sources or sinks up to 25 mA; the whole chip about 150 mA.
* Power-on: all pins inputs (IODIR 0xFF), no pull-ups, BANK 0 - write IODIR before using a pin as
an output.
* Read INTF and INTCAP (or GPIO) in the interrupt handler, or INT stays active.
* MIRROR = 1 gives one interrupt line for both ports; ODR = 1 lets several chips share one line.
THE DEMO SKETCH ON THE SERIAL MONITOR (MCP23017_Demo V1.0, 9600 baud)
MCP23017_Demo prints the set-up, the switches and every interrupt. EXPECTED MONITOR OUTPUT
(shortened)
MCP23017 at 0x20: port A = 8 LEDs, port B = switches + a loop-back
IODIRA 0x0 IODIRB 0xFF
Switches 1-4: 1010
INT #1: INTFB 0x80 (GPB7, the loop-back) INTCAPB 0x85
PROPERTIES (double-click the part > Edit Properties)
ADDRESS The A2 A1 A0 pins when they are left open: 0 - 7 (I2C 0x20 - 0x27). Default 0.
Every run starts again from the properties.
LINKS.INI (OPTIONAL)
The Help page cards of the pop-up open web pages. To point them somewhere else without a new DLL,
put a text file named links.ini next to TEPMCP23017.DLL with lines KEY=URL, for example:
ARTICLE=https://www.theengineeringprojects.com/...
Keys: WEBSITE, FORUM, BUG_REPORT, FEATURE_REQUEST, ARTICLE, USER_GUIDE,
UPDATE_CHECK, DONATE. Only http:// and https:// links are used; lines starting
with # are comments.
TROUBLESHOOTING
* An output stays low: IODIR still has a 1 for that pin (an input) - write IODIR first.
* A switch reads a floating value: GPPU is off - turn the pull-up on (or add one).
* Writes land in the wrong register: IOCON.BANK was changed - the addresses move with it.
* INTA / INTB stays active: the sketch never reads GPIO or INTCAP of that port.
* The part is not simulated: TEPMCP23017.DLL is missing from MODELS and from the project folder.
* The part is not simulated: TEPMCP23017.DLL is missing from MODELS and from the project folder. No
UNO / no monitor window: TEPARDUINO.DLL is missing, or click the UNO's USB port.
BUG REPORTS AND FEATURE REQUESTS
Please post them in our forum with a screenshot, the Serial Monitor text, the
simulation log and the pop-up's Copy diagnostics text:
https://www.theengineeringprojects.com/forum/category/lcd-proteus-library
SUPPORT US
This library is free. If it saves you time, please support our work:
https://www.theengineeringprojects.com/donate
WEBSITE
https://www.theengineeringprojects.com/
LICENCES AND THIRD-PARTY NOTES
* The model (TEPMCP23017.DLL), the symbols and artwork, the other parts of ours in the demo and the
Arduino Library V4.0 (ArduinoV4TEP.LIB / TEPARDUINO.DLL, with its built-in TEP Serial Monitor
Advance) are made by The Engineering Projects. The models use only standard Windows libraries; no
Visual C++ redistributable is needed.
The C++ source code is not included.
* Arduino UNO V4.0 (ArduinoV4TEP.LIB / TEPARDUINO.DLL, our Arduino Library V4.0 - its
microcontroller is Proteus's own AVR model): The Engineering Projects,
https://www.theengineeringprojects.com/2026/10/arduino-uno-library-for-proteus-v40.html
* The .hex file is built from the demo sketch and the Arduino AVR core 1.8.6, which includes
LGPL-licensed code; its source code is available at
https://github.com/arduino/ArduinoCore-avr/tree/1.8.6
* Proteus is a product of Labcenter Electronics and is not included. Arduino is a trademark of Arduino SA.
This library is not made or endorsed by Arduino or Labcenter.
REBUILDING THE FIRMWARE (OPTIONAL)
The HEX file is supplied; Arduino IDE is not needed to run the demo. To edit the sketch, open
Arduino Code\MCP23017_Demo\MCP23017_Demo.ino, select Arduino Uno and use Sketch > Export Compiled
Binary. Replace the simulation's .hex with the exported HEX. The sketch needs 6,740 bytes of flash
and 432 bytes of RAM.
MODEL SCOPE AND LIMITS
Modelled: the I2C slave, the 22 registers (both BANK maps, SEQOP), push-pull outputs, inputs with
pull-ups and IPOL, interrupt-on-change
(previous value / DEFVAL), INTF, INTCAP, INTA / INTB with MIRROR, ODR and INTPOL, RST, the address
pins.
Our figures: an output is a strong high / low, a pull-up a weak high.
Not modelled: the pin current limits, DISSLW (slew rate), the HAEN bit (the SPI version MCP23S17
only), the 1.7 MHz bus mode.
VERSION
TEP MCP23017 IO Expander library V1.0 (Nov 2026). Device IOEXPMCP23017TEP (TEPMCP23017.LIB /
TEPMCP23017.DLL). Demo sketch MCP23017_Demo V1.0 (Wire only). Demo board: ARDUINO UNO V4.0 (TEP
Arduino Library V4.0) with its built-in serial monitor; our 5 mm LED, resistor and DIP switch
libraries.Development1 release
-
V1.0MCP23017 I/O Expander Library for Proteus V1.0this page
V1.0 is the only release in the Download Center so far. When a newer version is published, it appears above with its own download page.
Installation8 steps
From the download to a working project, in order. The steps follow what the package contains.
You will need
- Proteus Design SuiteProteus 8 or newer (Labcenter), on Windows
- Arduino IDE1.8 or 2.x, with the board of the tutorial chosen under Tools → Board
- Any archive toolWindows, macOS and Linux extract ZIP files on their own
Steps
- 1
Extract the archive
Right-click 13d21dcbabc9481fb6b20059d4770b27.zip and choose Extract All (or open it with 7-Zip or WinRAR) into a folder you can find again. Keep its folder structure (MCP23017-IO-Expander-TEP-v1.0) as it is.
- 2
Copy the library files into Proteus
Move ArduinoV4TEP.LIB, TEPDIP.LIB and TEPLED5MM.LIB and 2 more and the files into the LIBRARY folder of your Proteus installation: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY for Proteus 8, or the matching Proteus 7 folder. Older versions keep it under ProgramData\Labcenter Electronics. If Proteus is open, close it first.
- 3
Add the simulation model
Copy TEPARDUINO.DLL, TEPDIP.DLL and TEPLED5MM.DLL and 2 more into the MODELS folder next to LIBRARY, so the component can run, not only be drawn.
- 4
Restart Proteus and place the component
Start Proteus, open a schematic, press P (Pick Devices) and search for the component by the name used in the tutorial. It appears with its pins ready to wire.
- 5
Open the sketch in the Arduino IDE
Open MCP23017_Demo.ino, select your board and port under Tools, then Verify. Sketch → Export Compiled Binary writes the HEX file a simulation needs.
- 6
Load the HEX file
In Proteus double-click the microcontroller, set Program File to MCP23017_Demo.hex and run the simulation. For real hardware, flash the same file with your programmer.
- 7
Open the example simulation
Open MCP23017-Running-Light-ArduinoUnoV4.pdsprj in Proteus to see the wiring exactly as in the tutorial. Check the controller's Program File path, then press Play.
- 8
Follow the tutorial
MCP23017 I/O Expander Library for Proteus Simulation explains every connection and setting in order; keep it open beside the files while you build.
FAQs9 questionsContact TEP
How do I download MCP23017 I/O Expander Library for Proteus V1.0?
Wait for the 30-second guest countdown on this page, then press the download button; the file comes straight from our storage. Members who are logged in skip the wait. If the browser opens the file instead of saving it, use its Save as option. The download link is made for you when the countdown ends and works for 15 minutes; a saved or shared link stops working, so share this page instead.
What is inside the archive?
MCP23017 I/O Expander Library for Proteus V1.0 comes as a ZIP archive of 19 files (2.1 MB, 6.3 MB unpacked) holding Proteus library files, simulation model DLLs, a Proteus simulation, an Arduino sketch and compiled HEX firmware. Open the File Structure tab for the full list of 19 files.
What should I do if the download does not start?
Check the browser's download list first; an ad blocker or a company firewall can also hold it back, so try another browser or network. If the file arrives incomplete, download it again. For an installation problem, read the Install tab or tell us in the comments with your software version and the exact error message.
Is this file free?
Yes. Every file in the TEP Download Center is free for learning, personal and student projects. If you share it, link back to this page or the tutorial so others find the latest version.
How do I check that the file arrived complete?
Compare its SHA-256 with the one on this page, 29b60cf99838c57cd52c32761ac09506362067320c721144b0649b9569c76f26. In PowerShell run Get-FileHash "13d21dcbabc9481fb6b20059d4770b27.zip"; on macOS or Linux run shasum -a 256 "13d21dcbabc9481fb6b20059d4770b27.zip". The same value means the file is exactly the one in our storage; a different one means the download broke off, so download it again.
Do I need WinRAR to open the ZIP file?
No. Windows, macOS and Linux open ZIP archives on their own (Extract All, or double-click). WinRAR and 7-Zip work too. Extract the whole archive before using the files.
Where do I put the LIB and IDX files?
Both files go into the LIBRARY folder of your Proteus installation (Proteus 8: C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\LIBRARY; Proteus 7 has the same folder under its own name). Restart Proteus afterwards and search for the component with P.
Which Proteus version does the library need?
The tutorial names the Proteus version the library was made and tested with. Most TEP libraries work in Proteus 7 and Proteus 8; if the component does not appear after a restart, check that both the LIB and the IDX file were copied and that Proteus was fully closed while copying.
How do I get the HEX file into the simulation?
Compile the sketch in the Arduino IDE (Sketch → Export Compiled Binary gives you the HEX next to the sketch), then in Proteus double-click the board, set Program File to that HEX and run.
Members skip the wait. Log in or join TEP.
- 0Total downloads
- 4%Popularity
- ProteusCategory
- 0Comments
- ssyedzainnasirUploaded by
- 1 Dec 2026Uploaded at
29b60cf99838c57cd52c32761ac09506362067320c721144b0649b9569c76f26



























Comments
0