Page 1 of 1

SERIAL COMMUNICATION BETWEEN PIC 16F628A

Posted: Thu Oct 26, 2017 8:26 pm
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 .

Re: SERIAL COMMUNICATION BETWEEN PIC 16F628A

Posted: Fri Oct 27, 2017 3:17 pm
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 ?

Re: SERIAL COMMUNICATION BETWEEN PIC 16F628A

Posted: Fri Oct 27, 2017 3:40 pm
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

Re: SERIAL COMMUNICATION BETWEEN PIC 16F628A

Posted: Sat Oct 28, 2017 9:20 pm
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?

Re: SERIAL COMMUNICATION BETWEEN PIC 16F628A

Posted: Sat Oct 28, 2017 10:32 pm
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.

Re: SERIAL COMMUNICATION BETWEEN PIC 16F628A

Posted: Tue Oct 31, 2017 2:57 pm
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.

Re: SERIAL COMMUNICATION BETWEEN PIC 16F628A

Posted: Tue Oct 31, 2017 3:15 pm
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

Re: SERIAL COMMUNICATION BETWEEN PIC 16F628A

Posted: Tue Oct 31, 2017 4:01 pm
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.

Re: SERIAL COMMUNICATION BETWEEN PIC 16F628A

Posted: Mon Jan 08, 2018 10:31 pm
by Genilsonsa
Thank Benj once more.I could here the project concludes that needed. :D