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



C2000 作为主发送器(使用了FIFO)的时候,如果接受到了一个NACK,后会进入什么状态?

我看例程里 

      if(I2caRegs.I2CSTR.bit.NACK == 1)
      {
         I2caRegs.I2CMDR.bit.STP = 1;
         I2caRegs.I2CSTR.all = I2C_CLR_NACK_BIT;

这个时候如果我的I2CCNT寄存器,在内部的计数器中 还没有减为0,那此处

I2caRegs.I2CMDR.bit.STP = 1; 这句话能产生STOP吗?