SERIAL COMMUNICATION BETWEEN PIC 16F628A

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

Moderator: Benj

Post Reply
Genilsonsa
Posts: 150
Joined: Mon Oct 15, 2012 5:19 pm
Has thanked: 12 times
Been thanked: 18 times
Contact:

SERIAL COMMUNICATION BETWEEN PIC 16F628A

Post by Genilsonsa »

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: 150
Joined: Mon Oct 15, 2012 5:19 pm
Has thanked: 12 times
Been thanked: 18 times
Contact:

Re: SERIAL COMMUNICATION BETWEEN PIC 16F628A

Post by Genilsonsa »

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: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: SERIAL COMMUNICATION BETWEEN PIC 16F628A

Post by LeighM »

Hi,
Have a look at this thread http://www.matrixtsl.com/mmforums/viewt ... =7&t=19166
It uses the CAL I2C component, to find them, use the Flowcode menu "Search" for CAL

Genilsonsa
Posts: 150
Joined: Mon Oct 15, 2012 5:19 pm
Has thanked: 12 times
Been thanked: 18 times
Contact:

Re: SERIAL COMMUNICATION BETWEEN PIC 16F628A

Post by Genilsonsa »

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: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: SERIAL COMMUNICATION BETWEEN PIC 16F628A

Post by LeighM »

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: 150
Joined: Mon Oct 15, 2012 5:19 pm
Has thanked: 12 times
Been thanked: 18 times
Contact:

Re: SERIAL COMMUNICATION BETWEEN PIC 16F628A

Post by Genilsonsa »

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: 150
Joined: Mon Oct 15, 2012 5:19 pm
Has thanked: 12 times
Been thanked: 18 times
Contact:

Re: SERIAL COMMUNICATION BETWEEN PIC 16F628A

Post by Genilsonsa »

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: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: SERIAL COMMUNICATION BETWEEN PIC 16F628A

Post by Benj »

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: 150
Joined: Mon Oct 15, 2012 5:19 pm
Has thanked: 12 times
Been thanked: 18 times
Contact:

Re: SERIAL COMMUNICATION BETWEEN PIC 16F628A

Post by Genilsonsa »

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

Post Reply