Abhilashhegde94
Member level 1

Hey guys ,
I have coded the master device in the i2c bus.Basically my hardware consists of 4 pic16f886 devices of which 3 are slaves and 1 is master,I have coded for the master properly,now I2C coding for slave is left out,I saw many help sections for coding I2C slave in pic,My masters assigns 3 address namely 0x01,0x02,0x03 for the 3 slaves.
I use XC8 compiler.
Can anyone post a helpful code for pic16f886 slave communication,All i have to do is get the text sent on I2c bus to the particular slave and then use the Text for other purposes,Any help in this Regard will be appreciated.
If you either post the procedures that i need to use or code for I2C slave and how to initiatlize the slave as an I2C read only device etc ,it will be very helpful.Pls help ASAP
Regards
I have coded the master device in the i2c bus.Basically my hardware consists of 4 pic16f886 devices of which 3 are slaves and 1 is master,I have coded for the master properly,now I2C coding for slave is left out,I saw many help sections for coding I2C slave in pic,My masters assigns 3 address namely 0x01,0x02,0x03 for the 3 slaves.
I use XC8 compiler.
Can anyone post a helpful code for pic16f886 slave communication,All i have to do is get the text sent on I2c bus to the particular slave and then use the Text for other purposes,Any help in this Regard will be appreciated.
If you either post the procedures that i need to use or code for I2C slave and how to initiatlize the slave as an I2C read only device etc ,it will be very helpful.Pls help ASAP
Regards