-i am interfacing the 8051 with the 24c64 -in that some values are manually written to eeprom and some are stored using program -i am accessing the location 195th to (195+60)-range which is not used before -i am using a buffer to store the values i.e. required location to buffer and from buffer to eeprom -this is stored properly because i am debuging it and i am getting corret -but when i am trying to read from the eeprom eg-reset the software (eeprom is read at the power on) my values not stored -are they changing anywhere???? -if so then how to debug those areas
hi i changed the location of storing my value and now i m getting the saved value at the power on i.e. at power reset i also tried with my another storing routine which was working fine i changed the location (which i was getting wrong) in my working code and there also i got the same error of location so i changed the position of storing, this was about my 1st location problem -one more thing i noticed with my 2nd one location that my working routine was working well with that location but my new routine wasn't -so i shifted that to some other location and now my new routine is also working -means: 170 to 190 my data1 was stored. From 191 to 211 data2 was stored but it used to give me the wrong value at 191to194 so i shifted the whole data2 at 201 to 221 and now my new code is also working can u explain me this problem???????????????
and i hav checked that there was no overlapping or data overwritten in the location 191
i changed the location of storing my value and now i m getting the saved value at the power on i.e. at power reset fuzzy, fuzzy, fuzzy
Try, say, 8 locations spread across the capacity of the EEPROM and post which works and which fails.
Since you are using a SILabs derivative (not deviate) you can find working code using the CodeArchitect, free from http://www.esacademy.com. Modifying CodeArchitect code to SILabs only takes a few minutes and you may just, in that code, find what your problem is.
Erik
SILabs derivatives: F0x, f1x, f2x SILabs deviates: F3x - up