Haplo
Joined: 06 Sep 2003 Posts: 659 Location: Sydney, Australia
|
|
Posted: Wed Aug 25, 2004 12:56 am |
|
|
Use two #use rs232 statements with different stream identifiers, like:
Code: |
#use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8,restart_wdt,errors,stream=Ser1) //Using hardware UART of PIC16F870
#use rs232(baud=19200,parity=N,xmit=PIN_C3,rcv=PIN_C2,bits=8,stream=Ser2) /Software UART
|
and then:
Code: | putc (data1,Ser1);
putc (data2,Ser2); |
|
|