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.

C2000的I2C查询操作



在使用I2C进行读写时,还用查询一下总线的状态吗,比如

if (I2caRegs.I2CMDR.bit.STP == 1) 和  if (I2caRegs.I2CSTR.bit.BB == 1)

有的说不需要查询,因为I2C模块是纯硬件的,硬件自己会去检测,在总线空闲的时候发送/接收。请问是这样吗?