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

stream association for 18f8722 with TWO hardware uarts

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



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

stream association for 18f8722 with TWO hardware uarts
PostPosted: Tue Mar 01, 2011 12:47 pm     Reply with quote

after investigating the #use rs232 statement
and setup_uart():

i am dipped in dog doo -
if i can figure out how i associate
a stream constant with each of the two different hardware UARTS
in the 18f8722 - i'm sure its ez when u know but.....

how do i define a stream identifier for a specific UART ?
dyeatman



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

View user's profile Send private message

PostPosted: Tue Mar 01, 2011 12:59 pm     Reply with quote

Set up two RS232 statements and in each one specify the pins for the
hardware UART and a unique stream name. In place of using the pins you
can specify UART/UART1 and UART2. See page 75 of the manual that deals
with RS232 and the options. There have been posts in the last week on
the subject. Search for the word UART2 in the forum.

http://www.ccsinfo.com/forum/viewtopic.php?t=44658
http://www.ccsinfo.com/forum/viewtopic.php?t=44088
http://www.ccsinfo.com/forum/viewtopic.php?t=44258
_________________
Google and Forum Search are some of your best tools!!!!
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