We are trying to develop an I2C slave function on a PIC16F876A to communicate with the master device a PIC18F452. The master is successfully talking to other slaves on the bus, but we are struggling to get our own slave working. We have encountered the following conditions:
-The slave matches the address from the master and enters the interrupt routine.
-However the slave is not sending an ACK on reception of the address.
-It is also not clearing the buffer upon reading the address. Therefore SSPBUF is never anything but the address of the slave
Initially we had the master waiting fo