MCP23008 interface with PIC16F877A

PIC16F877A interfacing with MCP23008 + Proteus Simulation



This post provides how to interface MCP23008 with the PIC16F877a microcontroller. This code is written in C language using MPLAB X IDE V3.30 with the XC8 compiler. You can download this code from the 'Downloads' section at the bottom of this page.

It is assumed that you know the basics of I2C communication. If you don't then please read this link before proceeding with this article.



Simulation Results :


Figure1: Simulation


Example code :

Figure2: Example code 

Downloads:

This code was compiled in MPLAB X IDE v3.30 with XC8 V1.38 compiler and simulation was made in Proteus v8. To download code and Proteus simulation click here.

























Popular posts from this blog

Exploring USB Device Detection with Arduino and USB Host Shield

555 Timer Astable mode, Lt spice simulation, and real-time testing

PIC12F675 LED Blinking Code