请问一下,DSP作为I2C(寄存器的方式)主机时,在通讯过程发生了I2C总线占线,是否能通过I2C复位使I2C回到空闲状态?
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.
I2C的通讯模式决定I2C本身的占线可能性少很多,不过你说的I2C复位是指通过什么方式复位?
你是收到总线忙的报错了吗?I2C_BUS_BUSY_ERROR
如果是的话可以重新初始化 I2C。也可以考虑使用 NACK,发送停止条件(设置 I2CMDR.STP),清除 NACK 标志(写入 1 以清除 I2CSTR.NACK),等待停止条件发送,然后重试传输。