I2C master slave help please

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
Pharaoh1989
Posts: 4
Joined: Mon Apr 19, 2021 10:50 am
Contact:

I2C master slave help please

Post 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
Attachments
I2C Slave 886 send and receive.fcfx
(13.48 KiB) Downloaded 111 times
I2C Master test 877A send and receive.fcfx
(17.48 KiB) Downloaded 120 times
Last edited by Pharaoh1989 on Wed Apr 28, 2021 4:17 pm, edited 2 times in total.

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: I2C

Post 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.
Martin

Pharaoh1989
Posts: 4
Joined: Mon Apr 19, 2021 10:50 am
Contact:

Re: I2C

Post by Pharaoh1989 »

Hi medelec35

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

cheers

User avatar
Bachman
Posts: 116
Joined: Sun Sep 07, 2014 11:37 am
Location: Hungary
Has thanked: 9 times
Been thanked: 53 times
Contact:

Re: I2C

Post by Bachman »

What is your I2C slave device? Be careful, different devices most of the times needs different type/sequence of commands.

Post Reply