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 reading value from PIC16f873A EEPROM

Status
Not open for further replies.

zeroskj1988

Member level 2
Joined
Jul 7, 2011
Messages
46
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,588
i am using pic16f873a eeprom to store value. in ccs compiler i write program like this
ROM 0x2100={35,27}

hc=read_eeprom(0);
lc=read_eeprom(1);
to read eeprom


write_eeprom(0,hc);
write_eeprom(1,lc);
to write eeprom


when i complete one cycle of this operation, iam not able to read the lc value.but no problem eith reading of hc
can any body point out what is the problem with this program.thanks in advance
 
Last edited:

Re: 16f873A eeprom error

Which address are you ucing for hc and lc when writing to eeprom?

The answer to your problem is right in front of your nose :smile:

HINT: 0 (zero)
 

Re: 16f873A eeprom error

sorry ,it is only a typing mistake.i alreday edited my post. the problem still exist
 

i think the problem is not with eeprom.some times when error value shows,i just switch off and on system.on again reading eeprom no problem with eeprom. so what is the problem with this pic(16f873a) thanks inadvance
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top