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.

MCF8316A: I2C communication data format

Part Number: MCF8316A

Hi team,

The I2C data format requirements are as follows,  I2C data sent by the host to the 8316 should be transmitted with the upper byte first followed by the lower byte as described:

The following figure shows the recommended configuration data in the MCF8316A tuning guide document: 

The following is a screenshot of the configuration data sent to the 8316 by the host using the logic analyzer: 

The data 0x44638c20 is configured first, with an endian conversion before sending, so that the data is transmitted with the upper byte and then the lower byte. The data is then configured, no endian conversion is performed, and the data is transmitted with the low byte and then the high byte. Is the correct data format to be endian and then transmitted? 

Could you please help check this case? Thanks.

Best Regards,

Cherry

  • Hi Cherry,

    The correct format is least significant byte first. So, in the logic analyzer capture, number 2 is the correct way to write the default value 0x283AF064 to address 0x00000082.

    This is mentioned in Section 7.6.2.2 of the datasheet, where it says "While sending data bytes, the LSB byte is sent first".

    Some examples of I2C transactions can be found in Section 7.6.2.4. Here is a screenshot of table 7-10 in that section:

    You can see that when writing 0x1234ABCD, it transmits CD, then AB, then 34, then 12.

    Regards,

    Hong