Joined: 20 Nov 2007 Posts: 2128 Location: albany ny
stream association for 18f8722 with TWO hardware uarts
Posted: Tue Mar 01, 2011 12:47 pm
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
Posted: Tue Mar 01, 2011 12:59 pm
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.
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