I2C PIC Interfacing Tutorial

Data & Observations
           The test program for making sure that the I2C communication is working properly is not the most entertaining thing in the world but it does the job of shows you that a random number is generated and written to memory with the switch to the left and then when the switch is moved to the right, the memory is read and it outputs the value that was just written. If all works properly, these two values should be the same. If they are different, something went wrong.

           So, proof that things are working correctly and that I2C can easily be implemented in the PIC, especially when talking to a small memory device such as the 24LC02B.