2007-01-31 01:44 AM
Upsd3234A-40 / Second UART not working / upsd_uart.c
2011-05-17 03:10 AM
I am trying to use both UART (Upsd3234A-40). Uart 0 work fine but Uart 1 is not working. I am using UPSD_UART.C/.H from DK3200_DD directory.
------------------------------------------------------------- // UART0...Works upsd_init_serial(0x54,uPSD_UART_Timer(0, 9600, 2)) ; EA = 1 ; uPSD_UART_Putchar('8',0) ; ------------------------------------------------------------- // UART1...Not working upsd_init_serial(0x55,uPSD_UART_Timer(1, 9600, 2)) ; EA = 1 ; uPSD_UART_Putchar('8',1) ; -------------------------------------------------------------- Sylvain2011-05-17 03:10 AM
Just found the problem in upsd_uart.c.
upsd_init_serial() PCON was set to 0xC0 instead of 0x0C (RCLK1/TCLK1).2011-05-17 03:10 AM
where is the upsd_uart.c, i can't find, is there any link