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

How to read and write from EEPROM

i am using atmel 89c51rd2 controller for developing application. i have interfaced an 2k atmel AT24C02A EEPROM with the controller. can anybody of u tell me how to read and write to the EEPROM. i need the logics in terms of Keil C programming.(C code source code)

Parents
  • Hello,

    I think it's not a timing problem. I think the 8051 isn't that much faster than my 167 at 20MHz. I have worked with different Eeprom types and I've never had any problems with timing.

    I'm using a single NOP between setting the SCL pin and SDA pin. Wires between processor and Eeprom have to be short.

    Perhaps it would help if you watch the signals with an oscilloscope.

    Jochen

Reply
  • Hello,

    I think it's not a timing problem. I think the 8051 isn't that much faster than my 167 at 20MHz. I have worked with different Eeprom types and I've never had any problems with timing.

    I'm using a single NOP between setting the SCL pin and SDA pin. Wires between processor and Eeprom have to be short.

    Perhaps it would help if you watch the signals with an oscilloscope.

    Jochen

Children
No data