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.

MSPM0G3507: MSPM0G3507 IIC problem

Part Number: MSPM0G3507
Other Parts Discussed in Thread: MSPM0L1306

I am using the IIC communication of MSPM0G3507, the reference is i2c_tmp_LP_MSPM0G3507_freeftos_ticlang; The parameter is set to:

X0a uint8_t txBuffer [8] = {0x0a, 0x0b, 0x03, 0 x04, 0 x05, 0 x06, 0 x07, 0 x08};

/* Common I2C transaction setup */

i2cTransaction.writeBuf = txBuffer;

i2cTransaction.writeCount = 1;

i2cTransaction.readBuf = rxBuffer;

i2cTransaction.readCount = sizeof(rxBuffer);

i2cTransaction.targetAddress=0x1e;

Use the function: I2C_transfer(i2c, &i2cTransaction);

However, through logic analysis (as shown in the attached picture), When i2cTransaction.writeCount=1,data is 0x00. When i2cTransaction.writeCount=3, data is 0x0a,0x00,0xff.

i think the right result is :When i2cTransaction.writeCount=1,data should be 0x0a. When i2cTransaction.writeCount=3, data should be 0x0a, 0x0b, 0x03

writeCount=1

writeCount=3