Having problem during reading page in eeprom 24c64

Viewed 37

debugging result of eeprom Red line indicate that reading is not correct

reading from page..help me in this,what I am doing wrong

write to page

write to I2c read from I2c

function of read page from eeprom...help me find the solution

Unsigned int 
  read_page_from_eeprom(unsigned char 
   addr)
   {
   StartI2c();
   While(writeI2c(device_addr + 0)==1)
   {
   StartI2c();
   }
   writeI2c(addr>>8)
   writeI2c(unsigned char) addr);
   Repeated_start_i2c();
   writeI2c(device_addr + 1);
   Delay();
   rxdata=readI2c();
   SendNak();
   Stopi2c();
   }
0 Answers
Related