CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Help to choose protocol

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
helmi03



Joined: 12 Apr 2011
Posts: 7

View user's profile Send private message

Help to choose protocol
PostPosted: Wed Apr 13, 2011 5:34 pm     Reply with quote

hi I'm doing communication between 1 master (Pc) and 3 slave (PIC).

The master send data to all pic's and the one with the right address only can read the data and executed.

I'm new and I don't know what to choose. Should I choose CAN, RS485, MODBUS, SPI, I2C ? Please help me.
temtronic



Joined: 01 Jul 2010
Posts: 9174
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Apr 13, 2011 5:51 pm     Reply with quote

Sounds like you're new, so right off a 'normal' PC doesn't have CAN,MODBUS,SPI,I2C or RS485. If, and that's a big IF, it has a real RS232 connector you can do either RS485 with an adapter or I2C(Realterm does it).
However I2C is limited to distance making RS232 or RS485 the better option.CAN and MODBUS are overly complicated protocols for rookies,SPI and I2C are usually for 'onboard' chip to chip use.
RS232 is the easiest to implement and a master- one slave is the place to start.Get that right, then convert the code and required adapters to RS485.
Once your sytem is working right, it's simple to add ONE more slave PIC,add code, get that working.Adding 3 or more slaves will be very easy.Depending on distance,speed and chips used ,you can get 255 slaves 'up and running' within a few hundred feet.
If you look in the examples folder, CCS kindly supplies examples of both, and a good place to start.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group