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.

CC3235S: CC3235S I2C problem

Part Number: CC3235S

   It takes 0.3 seconds for me to use I2C to set the register.  It took too long.

   How can I solve this problem?         

   The following is my I2C setting 

    i2cParams.bitRate = I2C_400kHz;
    i2c = I2C_open(CONFIG_I2C_0, &i2cParams);

    i2cTransaction.slaveAddress = ucDevAddr;
    i2cTransaction.writeBuf   = txBuffer;
    i2cTransaction.writeCount = 2;
    i2cTransaction.readBuf    = rxBuffer;
    i2cTransaction.readCount  = 0;

    txBuffer[0] = Register;
    txBuffer[1] = Data;

    I2C_transfer(i2c, &i2cTransaction)

  • Hi,

    Is the 0.3 seconds just for the I2C_transfer() call, or is it also including all of the setup in I2C_open()?

    In general, if you are measuring just I2C_transfer and seeing 0.3s for a transfer, then there isn't much that can be done unfortunately.