having problem reading from page in eeprom
Kindly tell me what's the problem
Here is the debugging of eeprom
Red line indicates reading from page is not correct
C-like:
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();
}
Here is the debugging of eeprom
Red line indicates reading from page is not correct

Attachments
-
187.3 KB Views: 2
Last edited by a moderator: