[SOLVED] My EEPROM read function does not work on 16F876A internal EEPROM?

Status
Not open for further replies.

hamed8419215

Member level 5
Joined
Mar 3, 2010
Messages
86
Helped
26
Reputation
52
Reaction score
26
Trophy points
1,298
Location
mashhad
Activity points
1,795
Hi to all (Salam)
I want to read from internal EEPROM of a PIC16F876A.
I wrote a function for read and also a function to write.
The write function works fine but the read function does not work.
these are my functions (In mikroC PRO):
I wrote these function just like PIC16F87xA data sheet.
I also debug it with Proteus. in read function EEADR always filled with 0xA1 not with EEReadAddress.:?
 

Opps! a little bug with big bad result!
I change my code. read function also works fine, but in Proteus EEADR always have 0xA1?
(Thank you very much).

---------- Post added at 18:00 ---------- Previous post was at 17:54 ----------

My problem solved totally.
thanks a lot.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…