View previous topic :: View next topic |
Author |
Message |
akekachai
Joined: 03 Feb 2013 Posts: 1
|
PIC communication 1 master to 3 slave by RS232 |
Posted: Sun Feb 03, 2013 10:21 am |
|
|
Hi, everybody
I will create a new project using PIC and CCS compiler.
This project is consist of 1 master and 3 slave that will communicate through RS232.
As I know, The general concept is that the master will send address to the slave. If the address is match which one, the slave will send data to master.
Please help me.
How to use command to contact the slave and then send data to master ?
How to do format and protocol ?
Thank you |
|
|
Mike Walne
Joined: 19 Feb 2004 Posts: 1785 Location: Boston Spa UK
|
|
Posted: Sun Feb 03, 2013 10:29 am |
|
|
Do you mean RS485?
Mike |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9226 Location: Greensville,Ontario
|
|
Posted: Sun Feb 03, 2013 12:30 pm |
|
|
Technically it is possible to use RS-232 for multiPIC communications though RS-485 is the generaly accepted 'standard'
Also, providing they are reasonably close(1-2 feet,maybe a metre), CCS supplies examples of PIC2PIC on a single wire (NOT One wire !).
Any of these 3 methods works fine...it's up to the designer/programmer
to choose based on his criteria(speed,distance,traffic collisions,etc.).
hth
jay |
|
|
|