Problem with I2C
Hello, I have strange problem with I2C. Master is PIC32MZ2048efh100 , Harmony 2.06. It works well, but I need to do communication errorless - between i2c slave and i2c master is cable - about 30cm. There is not problem with communication. But I test next situation:
When system is communicating, I2C data wire I connect hard to ground for some seconds and then disconnect from ground. From this point i2c is not communicating. All while loops in I2C are protected with timer for situation when slave not answer and not communicating. I got status, that communication with I2C is lost, when data wire grounded to zero. But after disconnect from zero, It look like communication continues. Above situation does not do problem with main application loop, only i2c will not communicate correctly.
In debugging I found that when I will not send stop bit in i2c communication, this will fix the problem. But It's not correct solution. What can cause this problem with I2C ?