Summary of Interfacing Internal EEPROM with PIC Microcontroller
This project demonstrates interfacing a PIC microcontroller's internal EEPROM to permanently store and retrieve data. Data is received via the UART port, written to specific memory addresses using `EEPROM_Write`, and later read back using `EEPROM_Read` to display on Port B LEDs.
Parts used in the Interfacing Internal EEPROM with PIC Microcontroller:
- PIC Microcontroller
- Internal EEPROM
- UART Port
- Keyboard
- LEDs
- Port B
In this project “ Interfacing internal EEPROM with PIC Microcontroller ”, we will see how we can easily interface EEPROM, send data from microcontroller, store data in EEPROM and read data from EEPROM. In many time we feel that we need to store some data for long time permanently. For this case we need some additional memory device where we can store data for long time. We can use EEPROM for this purpose. EEPROM stands for Electrically Erasable Programming Read Only Memory. And store data inside EEPROM will live until rewrite the memory place again.
Project description:
In this project “Interfacing internal EEPROM with PIC Microcontroller”, I used internal EEPROM of pic microcontroller and UART Port to receive data which have to be store. For interfacing EEPROM with PIC , see in figure that the internal block diagram of microcontroller and see how internal EEPROM connected with processor. Data from microcontroller is being send serially and store accordingly with given address. So for storing data to EEPROM we should send the address first to store the data. See the command for sending/writing data in EEPROM for Mikroc for PIC is
EEPROM_Write(“address of EEPROM”, Data);
And for reading data from microcontroller is
Take (Unsigned Variable) = EEPROM_Read(“address of EEPROM”);
Now for my project I used UART port to getting data to be store in EEPROM that means through UART port you can attach Keyboard and store the data as you want. For getting knowledge on How to interface UART port with PIC Micrcotroller? See my previous post
Interfacing Proteus with Matlab
See at below the circuit diagram of my complete project where I take input from UART port then store it to EEPROM and read the data from EEPROM and finally display it through LED attached with port B.
For more detail: Interfacing Internal EEPROM with PIC Microcontroller
- What is EEPROM?
EEPROM stands for Electrically Erasable Programming Read Only Memory. - How does data persist in EEPROM?
Data stored inside EEPROM lives until the memory place is rewritten again. - How do you write data to the internal EEPROM in Mikroc for PIC?
You use the command EEPROM_Write with the address of EEPROM and the data. - How do you read data from the microcontroller?
You assign an unsigned variable to the result of EEPROM_Read using the address of EEPROM. - What interface is used to receive data for storage?
The UART port is used to receive data which has to be stored. - Can a keyboard be attached to this project?
Yes, through the UART port you can attach a keyboard and store data as desired. - How is the retrieved data displayed?
The data read from EEPROM is finally displayed through LEDs attached with Port B. - Why is an additional memory device needed?
An additional memory device like EEPROM is needed when data must be stored permanently for a long time.

