Page 1 of 1

I2C master slave help please

Posted: Tue Apr 27, 2021 9:10 am
by Pharaoh1989
hello, can anyone help me please, I have 3 pics set up and i am wanting to send and receive data, the master is a pic16f877a and the two slaves are pic16f886, I have attached the programs for you to look at, I cant seem to get it working correctly, any help would be very much appreciated.

thank you

Re: I2C

Posted: Tue Apr 27, 2021 1:11 pm
by medelec35
Hi Pharaoh1989,
I posted a project here which works with DS1307 and Ds3231 RTC.
Perhaps you can compare with the datasheet?
Note: Images missing due to a server issue.

Re: I2C

Posted: Tue Apr 27, 2021 2:24 pm
by Pharaoh1989
Hi medelec35

thank you for your reply, ill have a look see if I can follow it.

cheers

Re: I2C

Posted: Tue Apr 27, 2021 6:08 pm
by Bachman
What is your I2C slave device? Be careful, different devices most of the times needs different type/sequence of commands.