SERIAL COMMUNICATION BETWEEN PIC 16F628A

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

Moderator: Benj

Genilsonsa
Posts: 146
Joined: Mon Oct 15, 2012 5:19 pm
Has thanked: 9 times
Been thanked: 17 times
Contact:

SERIAL COMMUNICATION BETWEEN PIC 16F628A

Postby Genilsonsa » Thu Oct 26, 2017 8:26 pm

Hello i come once more humbly ask for help to Foristas .i'm thinking about implementing a project that consists in communicating two pic 16f628A by serial communication.Because i thought in use via RS232 it would be very easy ,but one of the pic is already using RS232 for another communication with PC.I am thinking of doing serial communication I2C .I would like to know if someone has already implemented a project with this protocol and is reliable communication at I2C .

Genilsonsa
Posts: 146
Joined: Mon Oct 15, 2012 5:19 pm
Has thanked: 9 times
Been thanked: 17 times
Contact:

Re: SERIAL COMMUNICATION BETWEEN PIC 16F628A

Postby Genilsonsa » Fri Oct 27, 2017 3:17 pm

Hello everyone I have a transmission with the serial communication I2C MASTER ,but i doubt how to receive this data and treats it in I2C SLAVE.Someone can explain me how it works the I2C SLAVE or has some example how to use it ?

User avatar
LeighM
Matrix Staff
Posts: 1429
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 369 times
Been thanked: 520 times
Contact:

Re: SERIAL COMMUNICATION BETWEEN PIC 16F628A

Postby LeighM » Fri Oct 27, 2017 3:40 pm

Hi,
Have a look at this thread viewtopic.php?f=7&t=19166
It uses the CAL I2C component, to find them, use the Flowcode menu "Search" for CAL

Genilsonsa
Posts: 146
Joined: Mon Oct 15, 2012 5:19 pm
Has thanked: 9 times
Been thanked: 17 times
Contact:

Re: SERIAL COMMUNICATION BETWEEN PIC 16F628A

Postby Genilsonsa » Sat Oct 28, 2017 9:20 pm

Hello thank LeighM the tip above very good .But a doubt,in the programs above uses pic 16f1937 that already comes with I2C and dedicated embedded already.is that with PIC 16F628A which does not have dedicated I2C programs that works ??Can I make this announcement by SOFTWARE?

User avatar
LeighM
Matrix Staff
Posts: 1429
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 369 times
Been thanked: 520 times
Contact:

Re: SERIAL COMMUNICATION BETWEEN PIC 16F628A

Postby LeighM » Sat Oct 28, 2017 10:32 pm

Ah, right, sorry I missed that fact.
That forum thread and the I2C Slave only works in hardware/peripheral mode.
Are your Pics on the same board or close?
Perhaps if you have plenty of spare IO you could use a parallel data with handshake lines.
Depends how much data you need to pass verses whether you have other time critical processing being done.
That is, a serial comms is going to need more processing but fewer data connection pins than a parallel solution, which needs less processing.

Genilsonsa
Posts: 146
Joined: Mon Oct 15, 2012 5:19 pm
Has thanked: 9 times
Been thanked: 17 times
Contact:

Re: SERIAL COMMUNICATION BETWEEN PIC 16F628A

Postby Genilsonsa » Tue Oct 31, 2017 2:57 pm

Hello LeighM thanks again.actually have a few pins to saida /entry,why must be serial communication so i use a little door.But thanks for the tip.

Genilsonsa
Posts: 146
Joined: Mon Oct 15, 2012 5:19 pm
Has thanked: 9 times
Been thanked: 17 times
Contact:

Re: SERIAL COMMUNICATION BETWEEN PIC 16F628A

Postby Genilsonsa » Tue Oct 31, 2017 3:15 pm

Is it possible i implement this serial communication I2C IN SOFTWARE mode between two pic 16f628A?i already used this icone I2C Master FLOWCODE to read and send an EEPROM and works well ,but i don't know if it will work between the pic 16f628A. Then why this doubt

User avatar
Benj
Matrix Staff
Posts: 12979
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 3740 times
Been thanked: 3595 times
Contact:

Re: SERIAL COMMUNICATION BETWEEN PIC 16F628A

Postby Benj » Tue Oct 31, 2017 4:01 pm

Hello,

You can use a software channel for the master, the slave will require a hardware channel.

The I2C Master can be connected to multiple slave devices as long as the slave address is different on each connected slave.

Genilsonsa
Posts: 146
Joined: Mon Oct 15, 2012 5:19 pm
Has thanked: 9 times
Been thanked: 17 times
Contact:

Re: SERIAL COMMUNICATION BETWEEN PIC 16F628A

Postby Genilsonsa » Mon Jan 08, 2018 10:31 pm

Thank Benj once more.I could here the project concludes that needed. :D