cancel
Showing results for 
Search instead for 
Did you mean: 

uart

jones2
Associate II
Posted on February 23, 2004 at 02:21

uart

2 REPLIES 2
jones2
Associate II
Posted on May 17, 2011 at 11:58

Hello,

can I use a different baudrate for each uart.

I'm currently using timer2 as baudrate generator.

Thanks.

hanan54
Associate II
Posted on May 17, 2011 at 11:58

hi

Yes you can use a different baudrate for each uart.

Uart0 use timer2 and uart1 will use timer1.

To select timer2 for uart0 set RCLK = 1 ,TCLK= 1 in T2CON

To select timer1 for uart1 set RCLK1 = 0 ,TCLK1= 0 in PCON

see T2CON,PCON Register detail in the data sheet

hanan

[ This message was edited by: hanan54 on 23-02-2004 06:53 ]