Reading from EEPROM not working

Status
Not open for further replies.
Oh I see then where is your data saving if there is no org 0x2100 location in your coding?
Sorry for asking too much questions.
 
Suraj143 said:
Sorry for asking too much questions.
Nono, no problem

The EEPROM write routine (0x55 and 0xaa into EECON2 and so on) in the datasheet is also writing into this location. This location belongs to the EEPROM.
If you have written to org 0x2100 in your program, that is just the initial value of the EEPROM, so you can read from it in the beginning of your program.
I didn't read from EEPROM in the beginning of my program when the first time turning on the device, so I have no problem even there is no value in the EEPROM.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…