This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

i2c routine

-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

Parents
  • 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

Reply
  • 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

Children
No data