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

Processor to Processor Communications via UART

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



Joined: 30 Dec 2011
Posts: 55

View user's profile Send private message

Processor to Processor Communications via UART
PostPosted: Fri May 04, 2012 4:48 pm     Reply with quote

Hello all,

I'm considering using the built-in UARTs to communicate between a single "master" PIC and multiple "slave" PICs - similar to RS-485. All devices will be located within 2 ft of each other and I plan to connect RX/TX lines directly - without any transceivers. Since only one PIC will be transmitting at a time, I plan on being able to tri-state the inactive TX lines. Is there any problem with this approach?

Thanks in advance!
Dan
temtronic



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

View user's profile Send private message

PostPosted: Fri May 04, 2012 7:36 pm     Reply with quote

Well, it should only take you a few hours to cut code,breadboard the PICs and see what happens. You should have some kind of background timer to be sure the slaves are always set to HiZ mode unless commanded to transmit and then set HiZ when done or timedout.

I'm also assuming they're powered from a common power supply so logic levels and grounding won't be an issue.
temtronic



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

View user's profile Send private message

PostPosted: Fri May 04, 2012 7:37 pm     Reply with quote

Come to think of it, CCS gave an example of this in their manual back in '99. Might be in the current issue, haven't looked.
dyeatman



Joined: 06 Sep 2003
Posts: 1924
Location: Norman, OK

View user's profile Send private message

PostPosted: Sat May 05, 2012 5:37 am     Reply with quote

Yep, still there on page 335.
_________________
Google and Forum Search are some of your best tools!!!!
MotoDan



Joined: 30 Dec 2011
Posts: 55

View user's profile Send private message

PostPosted: Sat May 05, 2012 10:16 am     Reply with quote

Thanks for the replies. I did find the reference in the CCS manual.
Dan
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