Hi there I am trying to write a byte value from a 16f877a to the internal EEPROM of a 16f876a using the i2c bus. I have the 876a set up as an i2c slave using 7 bit addressing. I can poll the SSPIF and read the byte value I am sending ok, but I was hoping that the following commands from the master 877a would write directly to the EEPROM of the slave? I have checked this and nothing seems to be getting written to the EEPROM. Am i mistaken that this is possible? Many thanks

ServoControllerAddress var word
dummydata var byte
EEPROMAddress var word

dummydata=127
servocontrolleraddress=$02
EEPROMAddress=0

start:
I2CWRITE PORTC.4,PORTC.3,ServoControllerAddress,EEPROMAddre ss,[dummydata]
pause 1000
goto start