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 CCS Technical Support

serial output on non tx/rx hardware pin
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Bill Boucher



Joined: 04 Feb 2005
Posts: 34
Location: Chatham,ON,CA

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Fri Feb 04, 2005 2:51 pm     Reply with quote

Sure you can. Just use the "stream=somename" in the #use RS232( statement. Define a different streamname for each PIC in the system. If your master always talks first, the listens (meaning slaves do not talk until spoken to), then you can define tx & rx pins as the same pin, thereby using just one Master PIC pin for each slave PIC. Alternatively, you could connect just one Master tx pin to the rx pins of all slave PICs (thru 220ohm resistors) and all slave PIC tx pins to the master's rx pin (again thru resistors). Just keep the slave tx pins tristated when not talking. Then introduce an "address" byte in all messages sent to the slaves. Naturally, each slave would have to be programmed with a specific matching address. Keeping the lines separated eliminates the need for the addresses.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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