cancel
Showing results for 
Search instead for 
Did you mean: 

Upsd3234A-40 / Second UART not working / upsd_uart.c

sylvain2399
Associate II
Posted on January 31, 2007 at 10:44

Upsd3234A-40 / Second UART not working / upsd_uart.c

3 REPLIES 3
sylvain2399
Associate II
Posted on May 17, 2011 at 12:10

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) ;

--------------------------------------------------------------

Sylvain

sylvain2399
Associate II
Posted on May 17, 2011 at 12:10

Just found the problem in upsd_uart.c.

upsd_init_serial() PCON was set to 0xC0 instead of 0x0C (RCLK1/TCLK1).

tufantuncer
Associate II
Posted on May 17, 2011 at 12:10

where is the upsd_uart.c, i can't find, is there any link