Re: PIC32MX795F512L PCAP demo board I2C2 usage causing random screen flickering
I used the same interrupt handler and priority for the I2C2 that I was using with I2C3 when all was working without flickering. I am initializing the pins the same way for I2C2 that I was when using I2C3. Do you believe it could have anything to do with the routing of the board on this demo board? On the demo board the I2C3 lines run over directly to the test connector whereas the I2C2 lines run around the oscillator and to the pads for J6. I2C2 is supposed to be used for the touch controller on this board, but I am not using the touch controller for my project so I went ahead and cut the traces going to the touch controller so that it was completely out of the circuit, but that did not seem to help either.