PIC18F25K80 - I²C Stops Working in an Interrupt Driven System
In an interrupt driven system, the I2C may freeze if an interrupt occurs during an I2C operation.
We recommend doing one of the following in order to avoid this condition:
- Disable interrupts while an I2C operation is being performed.
- Synchronize interrupts in such a way that it does not interfere with the I2C operations.