To read a word via I2C I need to add a second start condition to the procedure. What would be the easiest way to accomplish this?
From the datasheet from the slave device: "First the host must write a command to the slave device. Then it must follow that command with a repeated start condition to denote a read from that device's address. The slave then returns two bytes of data.
Note that there is not a stop condition before the repeated start condition, and that a "Not Acknowledge" signifies the end of the read transfer."
The data format:
S - Device Addr - Wr - A Cmd Code - A - S - Device Addr - Rd - A - Data Byte Low - A - Data High - !A - P
The Slave's responses are underlined.
Any ideas?
Thanks,
Richard