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

I couldn't able to read data from EEPROM AT24C256B

Hi friends,

I am trying to interface EEPROM with
AT89C51.For that i have written a I2C driver , in that
i can able to write* the data to EEPROM but unable to read data from it.

*I have just conformed while checking SDA(Serial Data Pin) and SCL(Serial Clock Pin) of EEPROM.

>> while i am checking with CRO ,i can able to get all the clock pulse , Start , Stop , Acknowledgment's, slave address , data which i am witting to slave etc ,but except the Data which i am reading from slave ...

Project Details

/*
 * Hardware : Controller  -> AT89C51
 *            XTAL        -> 11.0592 MHz
 *            Mode        -> 12 Clock/MC
 *            EEPROM      -> AT24C256 with device address 0XA0
                             (EEPROM's A0 & A1 connected to GND)
 * Compiler : Keil micro version 3
 *
 * Hardware :
 *           1)2.2k is connected between  Vcc(+5v) to SCL & SDA lines for pull up .
 *           2)Write Protected Pin & NC pin is Conted to GND
 */

0