How to Save Data using EEPROM in PIC16F877A Microcontroller

Saving Data using EEPROM in PIC16F877A In this tutorial we will learn how easy it is to save data using the EEPROM present in the PIC16F877A Microcontroller. In most real time projects we might have to save some data which should not be erased even when the power is turned off. This might sound like a complicated process, but with the help of XC8 Compiler this task can be done by just using a single line of ...

Read more

PIC12F675 internal EEPROM code and Proteus simulation

This post provides the internal EEPROM reading and writing code for PIC12F675 microcontroller. As we know, PIC12F675 microcontroller has 128 bytes of built in EEPROM data space with an address range of 0x00 to 0x7F. This code is written in C language using MPLAB with HI-TECH C compiler. You can download this code from the 'Downloads' section at the bottom of this page. It is assumed that you know how to bli ...

Read more

PIC16F84A internal EEPROM code and Proteus simulation

This post provides the internal EEPROM reading and writing code for PIC16F84A microcontroller. As we know[1], PIC16F84A microcontroller has 64 bytes of built in EEPROM data space with an address range of 0x00 to 0x3F. This code is written in C language using MPLAB with HI-TECH C compiler. You can download this code from the 'Downloads' section at the bottom of this page. It is assumed that you know how to b ...

Read more

Interfacing of PIC12F675 with (i2c based) 24LC64 EEPROM (code + Proteus simulation)

This post provides the code for interfacing 24LC64 EEPROM with PIC12F675 microcontroller. This 24LC64 EEPROM has i2c based interface and PIC12F675 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. You can download this code from the 'Downloads' section at the bottom of this page. It is assumed that yo ...

Read more

PIC12F1840 + I2C 24FC1025 EEPROM

The 24FC1025 is a serial I2C EEPROM memory fabricated by microchip, it has 1024Kbits (128KB) of memory space and it is divided in two parts each one of 512Kbits (64KB); the first part goes from address 0x0000 to 0xFFFF and the second part goes from 0x10000 to 0x1FFFF. Features: 128KB of memory space 2-Wire serial interface (I2C) Compatibility with 100 KHz, 400 KHz and 1.0 MHz clocks 2 hardware address bits ...

Read more

Interfacing of PIC16F84A with (i2c based) 24LC64 EEPROM (Code + Proteus simulation)

This post provides the code for interfacing 24LC64 EEPROM with PIC16F84A microcontroller. 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. You can download this code from the 'Downloads' section at the bottom of this page. It is assumed that yo ...

Read more

Data logging with an EEPROM

Contents    1 Original Assignment 2 Overview 3 Circuit 4 Code 4.1 PIC Code 4.2 Matlab Code 5 Example Output 6 Further Reading Original Assignment Your task is to use the PIC to log data from an analog input on an EEPROM, and after the data collection is over, to send the data back from the EEPROM to a PC running matlab. Use an interrupt service routine to read an analog input and write the value to an exter ...

Read more

PIC and EEPROM Programmer

Project Summary In this project we are building a JDM programmer that can handle PIC12, PIC16 and PIC18 family microcontrollers and some popular 24C family EEPROMs. The programmer also provides ICSP feature that allows In-Circuit Serial Programming. So if you desire, you will not have to carry your MCU each time when you reprogram it. The circuit is connected to the PC via serial port and no external power ...

Read more

Interfacing external EEPROM with PIC Microcontroller

In this project “Interfacing external EEPROM with PIC Microcontroller”, we will see how we can easily interface EEPROM via I2C Protocol. The need of external EEPROM as a permanent storage of data in any project is enhanced. So now question how to interface external EEPROM with PIC Microcontroller? Project description: In this project “Interfacing external EEPROM with PIC Microcontroller”, I used FM24C64 (EE ...

Read more

Interfacing of PIC16F877 with (i2c based) 24LC64 EEPROM (Code + Proteus simulation)

This post provides the code for interfacing 24LC64 EEPROM with PIC16F877 microcontroller. This 24LC64 EEPROM has i2c based interface. This code is written in C language using MPLAB with HI-TECH C compiler. You can download this code from the 'Downloads' section at the bottom of this page. It is assumed that you know how to interface LCD with PIC16F877 microcontroller in 4bit mode. If you don't then please r ...

Read more
Scroll to top