2006-05-28 01:21 PM
2011-05-17 03:09 AM
Hi Everybody,
I am using the two UARTs in my aplication. I manage to operate UART0 and partly of UART1, I can send data from UART0 to UART1 but I can't send from UART1 to UART0. I am using timer2 for the baud rate(for both of them). I think that UART1 interrupt service routine is not working when I send data(It works with polling). My UART1 configuration is: PCON = 0x3C; SCON1 =0x50; P1SFS0 |= 0x0C; P1SFS1 &= 0xF3; IPA |= 0x10; IEA |= 0x10; Do I miss something? If anyone have good Init of UART1 I will be glad to receive it. Thanks KH2011-05-17 03:09 AM
That is because you forget to enable UART0 receive. You neeed to add the statement
SCON0 = 0x50; to your program. han-way huang