Skip to main content
sylvain2399
Associate
January 31, 2007
Question

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

  • January 31, 2007
  • 3 replies
  • 879 views
Posted on January 31, 2007 at 10:44

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

This topic has been closed for replies.

3 replies

sylvain2399
Associate
May 17, 2011
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).

sylvain2399
Associate
May 17, 2011
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

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

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