DSPRelated.com
Forums

Missing bits from TI DSP

Started by jaco...@extenprise.net January 19, 2006
Hi guys,

I am having some trouble of missing some bits of data when I
sent out data between two TI DSP processors using McBSP of one(DSP-I which
is TMS 6711) to the UART of another(DSP-II which is TMS 6701).

I have a setup in which I recieve digital data(somewhat sine wave-ish)
though a serial port of a DSP-I, which is filtered there and
also converted from float data to short, then using the ping pong buffers
sent out this data out thru the McBSP using an RS232 cable.

The other end of the cable is connected to the DUART on the DSP-II
and this further processes it and sends it to a display device
using another of its DUART ports.

When we sent out data which consists of 6 bytes, from DSP6711, of which
2 bytes are of 1's added to its beginning to identify that this is start
of data, and the remaining 4 bytes contain the actual data.

The McBSP being sync and the DUART being a async device, we add
1 start bit and 2 stop bits to each byte the data before we sent it out.
That means each byte sent has 11 bits(8+3)

And so, we sent out 66 bits(6x11) in each cycle.

Now each of these bits are converted to short i.e. 1's to 0xFFFF and
0s to 0x0000, and are sent out

DSP-I is also connected to a PC thru a USB port where we can view
the signal plot as it is sent.

Now our trouble is that although we always see good data on the PC
connected to DSP-I, the data that is seen in the display connected
to DSP-II sometimes shows corrupted data.

How can this corruption be avoided ? Does this have something to
do with the use of RS232 cable ?

A diagram of the setup can be found at
http://geocities.com/toaizak/dsp_design.jpg

My register settings are at
http://geocities.com/toaizak/register_settings.txt

thanks
/anish