Dir sir,
Datasheet Page 72 “Target ID and R/W Bit: The first byte includes the 7-bit I2C target ID (0x60).....", but the address measured by Logic analyzer on the evm board is 0xC0, why?
Thanks!
BR
Joe
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Dir sir,
Datasheet Page 72 “Target ID and R/W Bit: The first byte includes the 7-bit I2C target ID (0x60).....", but the address measured by Logic analyzer on the evm board is 0xC0, why?
Thanks!
BR
Joe
Hi Joe,
The I2C target ID is 7 bits, but a whole byte was transmitted. The last bit in this byte is the Read/Write bit.
The data that was transmitted was 1100 0000. If you interpret the whole byte as the address, like the logic analyzer did, and convert it to hex, you get 0xC0. If you interpret the first 7 bits as the address (110 0000) and convert it to hex, you get the expected 0x60. The final bit is 0, indicating a write, but you would have seen 0xC1 if it was a read.
Regards,
Hong