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

recieve signal from two Rs232

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







recieve signal from two Rs232
PostPosted: Thu Nov 17, 2005 8:23 am     Reply with quote

Hey Guys

my question, as follows i m using a PIC16f877A on ACE board by CCS that the one which have 2 rs232 inputs,
i want to use both of them at the same time (i.e. receive and send to both of them)

how can i go about that ??
i will be sending characters to both (i.e. use putc())
can the compiler distinguish between both signals ..??
how can i declare #use rs232 for Two..??
how can i use putc() for two signals....?
do i have to set the receive and transmit for both to the same pin ??
i hope i made it clear

thank you in advance
dyeatman



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

View user's profile Send private message

PostPosted: Thu Nov 17, 2005 8:37 am     Reply with quote

There is lots of code here on this board about using two RS232 I/Os.

Use STREAMS (see #use RS232 in the manual) to differentiate between them.
Bart



Joined: 12 Jul 2005
Posts: 49

View user's profile Send private message

PostPosted: Thu Nov 17, 2005 10:14 am     Reply with quote

1 of the 1000s examples : http://www.ccsinfo.com/forum/viewtopic.php?t=24716

greetings,
Bart
_________________
I like Skype (www.skype.com), my username is BplotM
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