我发送数据的时候一直停在while (CHKBIT(i2c->ICSTR, BB))检测上,死循环。一上电clk脚被拉低,iic总线一直处于忙状态。
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.
我发送数据的时候一直停在while (CHKBIT(i2c->ICSTR, BB))检测上,死循环。一上电clk脚被拉低,iic总线一直处于忙状态。
自己做的板子。iic后面接的是camera,我什么都不接的时候,开机还是会卡在这里,就是在主机作为master发送数据之前做busy检测的时候BB一直为1,死循环了。请问有可能是什么原因导致初始化iic之后BB一直为1
请问I2C配置是按照下面的手册第21.2.11.1 Configuring the I2C in Master Receiver Mode and Servicing Receive Data via CPU章节的流程来配的吗?
http://www.ti.com/lit/ug/spruh79a/spruh79a.pdf
如果BB位一直为1,CLK为低的话,感觉像是I2C一直在reset状态,IRS位没有置1来enable I2C.