I2c eeprom programmer
24LC64 EEPROM is the slave device, while PIC16F84A is configured to be the master. Both of these pins are pulled up using 10K resistors as required for i2c protocol. In the above circuit, RA4 pin is being used as SDA pin and RB0 pin is the SCK pin. The result of simulating the code in Proteus is shown below.
I2c eeprom programmer how to#
You should also read how to write/read a byte in/from 24LC64 EEPROM from it’s datasheet. It is also assumed that you know how to create software i2c module in PIC16F84A, if you don’t then please read this page first. If you don’t then please read this page first, before proceeding with this article.
It is assumed that you know how to interface LCD with PIC16F84A microcontroller in 4bit mode. You can download this code from the ‘ Downloads‘ section at the bottom of this page. This 24LC64 EEPROM has i2c based interface and PIC16F84A doesn’t have any built in i2c modules, so software i2c module is created in the code. This code is written in C language using MPLAB with HI-TECH C compiler. This post provides the code for interfacing 24LC64 EEPROM with PIC16F84A microcontroller.