Tag: interrupt-on-change

1 articles found.

MCP23017 I/O Expander Library for Proteus Simulation

MCP23017 I/O Expander Library for Proteus Simulation: the MCP23017 board, eight LEDs, a DIP switch and an Arduino UNO V4.0

Hello friends, I hope you all are doing great. Today, I am going to share the new MCP23017 I/O Expander Library for Proteus Simulation. The MCP23017 gives an Arduino sixteen more pins over the two I2C wires, and unlike the simplest expanders it gives them the features of real microcontroller pins: a direction for every pin, push-pull outputs, built-in pull-ups, inverted inputs, and an interrupt that tells you which pin changed and what the port looked like at that moment. With this library you can run a full Proteus simulation of the MCP23017 board and watch all twenty-two of its registers at work. The demo runs a light back and forth on eight LEDs, reads a DIP switch with the chip's own pull-ups, and uses a loop-back wire so the interrupt-on-change fires by itself every time the light reaches the end of the row. NOTICE: Our team has put a lot of effort into these small parts: the bodies, the animation and the pop-ups are all our own design, and you get them free. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below or in the LCD board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the MCP23017 I/O Expander Library for Proteus Simulation: A 16-bit I/O port on I2C, organised as two 8-bit ports, A and B. Each port is controlled by a set of registers, the same way a microcontroller's own ports are: one register sets which pins are inputs or outputs, another switches on ...