Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

programming about EEPROM in PIC

Status
Not open for further replies.

bikash123

Member level 2
Joined
Feb 19, 2012
Messages
48
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Tezpur University
Activity points
1,672
plz if any friends have knowledge on programming for external eeprom with pic16f877a microcontroller , compiler is microc. plz help me,
 

You have to first tell us which EEPROM you are using. The protocol and interface used for communication with PIC must be known. This depends on the EEPROM you are using or are required to use. You may have to use SPI, I2C or even parallel communication. But you must tell us which EEPROM you are using.
 
It uses I2C/TWI. So, you can use the I2C library of mikroC. Here's the related link with an example of 24C02.
https://www.mikroe.com/download/eng/documents/compilers/mikroc/pro/pic/help/i2c_library.htm

Read the datasheet of the 24C04 and you can program the EEPROM as required.

You can find an example here:
https://www.edaboard.com/threads/180942/

Keep in mind that the code was written with an older version of mikroC. You're going to need to change parts of it. Such as, instead of WriteI2C you're going to have to use I2C1_Wr. Go through the code and the I2C library functions mentioned above. Also the datasheet of 24C04. You can find more examples on Google if you search.

Hope this helps.
Tahmid.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top