I am in a strange problem and no idea how TI has managed the tandom read sequence for 24C02 I2C EEPROM.
Random read for 24C02 says that there has to be the following sequence from I2C Master to the Slave:
START | <CHIP ADDRESS WITH WRITE> | ACK FROM SLAVE | <START ADDRESS FOR READING SAY 00000000 > | ACK FROM SLAVE | START | <CHIP ADDRESS WITH READ> | ACK FROM SLAVE | <DATA 0 FROM SLAVE > | ACK FROM MASTER <DATA 1 FROM SLAVE > | ACK FROM MASTER | ................ | <DATA LAST FROM SLAVE > | NACK FROM MASTER | STOP FROM MASTER
Now while using the internal USCI module (B) I cannot generate the sequence of sending the device address with a read bit and with a repeated start. Because without a stop from the master transmitter , I cannot initialize the master reader to send data bits to 24C02.
Can you please help me with some sample codes where 24C02 communication has been done IN RANDOM READ MODE.
THANKS