We are interfacing AT24c256 EEPROM to i2c-cpm (power pc 8280) . To test this interface we are using i2c tools (i2cget,i2cset)
but we are not able to read / write data in EEPROM.
Problem looks to be in the addressing of memory location ,basically byte address is getiing generated instead of word address ,
for eg if we want to read 4th location in EEPROM
following sequence should be generated as per data sheet
0xa0 ACK 0x00 ACK 0x04 ACK stop start 0xA1 ACK 0x04
But via i2cget following sequence is generated on wire as seen on scope
0xa0 ACK 0x04 ACK stop start 0xA1 ACK 0xFF
i2c tool package was downloded from below link
Can any one please share with us where in code we need to change code for generating 2 bytes of address any other informmation related to it would be of great help.
Thakns & Regards