DSPRelated.com
Forums

DSP Bios and multiple UARTS

Started by rakadar January 5, 2007
Hello,

I am working on a FleXDS evaluation board of the DSP TMSC5509A from
FleXDS.
The board contains the three terminals McBSP's ports.
To communicate with Windows hyperterminal, I use the software UART
minidriver
from the Texas Instrument DDK 1.20. The exemple of the Software UART
provided in the DDK works well.
But, in my project, I want to use two McBSP's ports. To test both
McBSP's ports I have changed
the exemple of the Software UART in the DDK.
I declare two UART handle in the file "uarttest_params.c":


I register both UARTs (I name it "uart" and "uart1") in the DSP/BIOS.

In the file "uarttest.c", I create input and output channels in the
echo() task:

When I run the program, inchan1 and outchan1 are NULL pointer, so the
communication by the port MCBSP_PORT1 doesn't work.

Do tou have any solution to this problem?

In other words: Is-it possible to realise a multi device asynchronus
communication with the McBSPs port? If yes how it can be done?
Thank you very much for your reply.
Rakadar-

> I am working on a FleXDS evaluation board of the DSP TMSC5509A from
> FleXDS.
> The board contains the three terminals McBSP's ports.
> To communicate with Windows hyperterminal, I use the software UART
> minidriver
> from the Texas Instrument DDK 1.20. The exemple of the Software UART
> provided in the DDK works well.
> But, in my project, I want to use two McBSP's ports. To test both
> McBSP's ports I have changed
> the exemple of the Software UART in the DDK.

Since a software UART takes CPU resources (processing time), I'm going to guess that
having two of them active at the same time may cause some problems.

A couple of debug suggestions might be:

-disable all other code except for the 2 UARTs

-use lowest possible baud rate

Your baud rates below are specified at 115.2 kbaud. A typical software UART samples
from 8 to 16 times faster than that, let's say 1 MHz in this case. But you're
asking for twice that -- seems like you could be pushing things for a 5509 device.

-Jeff

> I declare two UART handle in the file "uarttest_params.c":
>
>
>
> I register both UARTs (I name it "uart" and "uart1") in the DSP/BIOS.
>
> In the file "uarttest.c", I create input and output channels in the
> echo() task:
>
>
>
> When I run the program, inchan1 and outchan1 are NULL pointer, so the
> communication by the port MCBSP_PORT1 doesn't work.
>
> Do tou have any solution to this problem?
>
> In other words: Is-it possible to realise a multi device asynchronus
> communication with the McBSPs port? If yes how it can be done?