Shawn Van Every wrote: > I have been trying to implement a basic I2C demonstration between > 2 PIC 16F877s using CCS PIC C. One PIC is the master and the other > the slave. Unfortunately I am a bit unclear about the wiring and > the code. I know nothing about CCS's I2C library, but I can explain the wiring. > First, do I need to have a common ground between the PICs? Yes. Once you have that, you'll want to tie the two SDA lines (RC3) together, and tie the two SCL lines (RC4) together. On one of the PICs, wire a 10K resistor from RC3 to Vcc and a 10K resistor from RC4 to Vcc. -Andy === Andrew Warren -- aiw@cypress.com === Principal Design Engineer === Cypress Semiconductor Corporation === === Opinions expressed above do not === necessarily represent those of === Cypress Semiconductor Corporation -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.