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 问题

Guru**** 2556140 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/1001633/cc3235s-cc3235s-i2c-problem

器件型号:CC3235S

  使用 I2C 设置寄存器需要0.3秒。  时间太长了。

  如何解决此问题?         

  以下是我的 I2C 设置  

   I2C_Params_init (&i2cParams);
   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]=寄存器;
   txBuffer[1]=数据;

   I2C_transfer (i2c、&i2cTransaction)

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    0.3秒是仅用于 I2C_TRANSFORT()调用,还是还包括 I2C_OPEN()中的所有设置?

    通常、如果您仅测量 I2C_transfer 并看到传输为0.3s、那么遗憾的是、这方面的工作并不多。

    此致、

    Michael