Hello,
I am struggling with I2C to communicate between PIC16F877A and a PIC16F87.
I have been looking at all the great examples in the forum and manage to get communication between two PIC16F877A but not when using a PIC16F87.
The problem I am having is during compilation which halt on the instruction:
SSPCON2 = 0
Checking the data sheet, I can see that this register is only available with PIC16F877A, so I tried to remove the instruction and compilation went through but it did not communicate.
So what do I need to do to make it work?
Just a quick overview of what I am doing. I want to have the PIC16F877A as a master and few other PIC as slave to either acquire data, or receive serial data and decode it. This is for a monitoring system on a boat, so it involves some sensors and NMEA data. Right now, most of the things work but only with the 877A when I could really use the 87.

I would really appreciate a code example for PIC16F87 in slave mode as I am stuck on this problem.
thanks,
Olivier