Content originally posted in LPCWare by grtester on Wed Nov 26 10:35:56 MST 2014
Thanks for the response. I am still confused about the last digit.
The schematic shows that 24LC128's inputs A0 is hardwired to high, and the A1 and A2 are low. So, I believe we need to access A0 for the I2C slave address.
The 24LC128 datasheet says to address A0, we need to send:
2_10100010 (0xA2) in 8-bit addressing
or as R2D2 suggested,
2_01010001 (0x51) in 7-bit addressing
However, i2c.c defines
line 69: #define I2C_SLAVE_EEPROM_ADDR 0x5A
Does anyone know why its 0x5A? Perhaps I am misinterpreting the datasheet?