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.

TM4C1294NCPDT: How to use I2C to continuously transmit 2 bytes of data

Part Number: TM4C1294NCPDT

Hi Expert,

Please tell me about the usage of I2C. The currently used SDK version is "TivaWare_C_Series-2.2.0.295".

The customer needs to be able to continuously transmit 2 bytes of data through I2C. Currently, only the example of "humidity_sht21" has been found.

The I2C_MASTER_CMD_SINGLE_SEND method is used, which can only transmit one Bytes of data.

So the customer refers to "Using Feature Set of I2C Master on TM4C129x", file

Inside I2C_MASTER_CMD_BURST_SEND_START & I2C_MASTER_CMD_BURST_SEND_FINISH,

The method implements the transmission of 2 bytes of data.

But a strange problem will arise,

Sometimes only 1 byte of data is transmitted, and the other byte is not transmitted (as shown below).

The following is the customer's code. I would like to ask if this is how the customer uses it?

If there are examples that you can refer to, please provide them.

Thanks

Daniel