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.

Problem with Inbuilt EEPROM in PIC16F877A

Status
Not open for further replies.

Manjust

Newbie level 4
Joined
Jun 18, 2013
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
42
Hi,

I am facing a problem with inbuilt EERPOM in PIC. I write data in the EEPROM particular address and reading it and printing on LCD display is working fine. Once i comment the writing function and redump the code and then try accessing data from the same location from EEPROM, data is junk at this time.

Am i writing the data of EEPROM in data memory or while redumping the code is it erasing EEPROM memory along with program memory? If so, what should i do to protect EEPROM Memory from erasing. I have made WRT1:WRT0 as 00 in configuration bits.

Thanks in advance.
 

Before doing reprogramming just restart your PIC and then read the data in EEPROM.
 

Before doing reprogramming just restart your PIC and then read the data in EEPROM.


Thanks for the reply.
I tried doing it. Not working. I doubt that program memory is utilizing EEPROM Memory. How do i protect my EEPROM Memory
 

Every time you reprograme the PIC the eeprom also gets erased.

Try hobbyckts solution
 

**broken link removed**

See page number 14 in the datasheet. May be that will be useful.


Could you tell me the EECON1 control register status? Are you using it for program memory or data memory??
 

A programmer will erase all memory sections including EEPROM by default.

There are options in the MPLAB programmer and debugger settings to keep the EEPROM content during programming.
 

**broken link removed**

See page number 14 in the datasheet. May be that will be useful.


Could you tell me the EECON1 control register status? Are you using it for program memory or data memory??


EEPGD bit is low. i.e., i am accessing data memory.
 

A programmer will erase all memory sections including EEPROM by default.

There are options in the MPLAB programmer and debugger settings to keep the EEPROM content during programming.

Thanks. So how should i do it. Please help me out.
 

Check in the MPLAB programmer for an option of avoiding the EEPROM erasing.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top