DSPRelated.com
Forums

Loopback at McBSP in 6711

Started by dipakonline2 January 27, 2006
Hi Friends,
I need some help to solve the an issue.
I am using 2 DSP boxes i.e. tms320c6711 & tms320c6701.I have
configured the McBsp1 of DSP-I(6711) to send the data to the DUART of
DSP-II(6701). I am using a standard off-the-shelf RS232 cable to
connect McBsp1 of DSP-I to the DUART of DSP-II.
Now the problem is that, although most of the time we get proper
data in DSP-II, sometimes one value gets corrupted. I have tried a
lot things to find the source of this corruption but nothing has
helped so far.
I had implemented Digital loopback & verified that the values sent
out through McBsp1 is fine.
Now I read in one of the threads here that we can use
"External Loopback ". If I'm not wrong we can check if there's any
error in transmission due to the RS232 cable by External loopback.
If anyone knows how External loopback works & how to implement
it please let me know.I have been stuck with this issue for quiet some
time now & the situation is desperate.

Thanks in advance.
dipak.


Hello Dipak,

--- dipakonline2 <dipakonline2@dipa...> wrote:

> Hi Friends,
> I need some help to solve the an issue.
> I am using 2 DSP boxes i.e. tms320c6711 &
> tms320c6701.I have
> configured the McBsp1 of DSP-I(6711) to send the
> data to the DUART of
> DSP-II(6701).
It is strange that you are connecting a McBSP to a
UART. I assume that the 6701's McBSPs are not
available.

>I am using a standard off-the-shelf
> RS232 cable to
> connect McBsp1 of DSP-I to the DUART of DSP-II.
FYI- there is no such thing as a 'standard
off-the-shelf RS232 cable'. Normally there are
several different styles of RS232 cables
'on-the-shelf'.

> Now the problem is that, although most of the
> time we get proper
> data in DSP-II, sometimes one value gets corrupted.
> I have tried a
> lot things to find the source of this corruption but
> nothing has
> helped so far.
You problem is probably on the data recovery end.
1. what is the UART clock rate??
2. what is the McBSP clock rate??
3. are you using the '1 McBSP frame=1 UART bit'
technique??
> I had implemented Digital loopback & verified
> that the values sent
> out through McBsp1 is fine.
> Now I read in one of the threads here that we
> can use
> "External Loopback ". If I'm not wrong we can check
> if there's any
> error in transmission due to the RS232 cable by
> External loopback.
> If anyone knows how External loopback works &
> how to implement
> it please let me know.
You probably do not have a cable problem. Have you
tried slowing the data rate?? [I don't know what speed
you are using]
Loop back is very straight forward. Not knowing which
McBSP signals are connected to pins, the easiest way
is to setup the MCBSP to generate FS and CLK on the Tx
port and use that FS and CLK for the Rx port. Once
you do that, just connect Tx and Rx pins together. Run
your tests at the next higher clock rate just to be
sure.

>I have been stuck with this
> issue for quiet some
> time now & the situation is desperate.
Keep in mind that the root cause of the 'failure to
solve' a problem that you have been fighting for a
long time is often a false assumption that has been
made.

mikedunn
>
> Thanks in advance.
> dipak. >
>
> c6x-unsubscribe@c6x-... >



Hi Mike
Thanks for the help.
Here are the inputs to your queries.

We have set the CLKGDV of McBsp as 63
& the Duart Divisor is 3 to get a baud rate of 76800 bytes/sec.

We are using 1 McBsp frame = 1 DUART bit technique.

We are basically sending 3 short integers(6 bytes) from McBsp.
We are also adding 1 start bit & 2 stop bits to every frame so for
every byte the frame length is
8bits+1stop bit+2startbits = 11bits
& after this, for each bit we send one byte/frame
i.e. 0xFFFF or 0x0000
(using 1 McBsp frame = 1 DUART bit technique.)

So we send 6*11= 66 bytes/msec OR 66000bytes/sec.

On the data recovery end we DMA the values from
the DUART into a buffer.
Here, we always get the 1st two & the
last two bytes correctly & the corruption, whenever it occurs,
is always in the middle(3rd & 4th ) bytes. These corruptions occur
sometimes, have no set pattern nor fixed time interval.

Dipak

PS:
Link of the RS232 cable that we'r using(incase its of any help)
http://www.radioshack.com/product/index.jsp?parentPage=search&cp=&productId 62209&kw=rs232+cable&tab=summary
--- In c6x@c6x@..., Mike Dunn <mike-dunn@s...> wrote:
>
> Hello Dipak,
>
> --- dipakonline2 <dipakonline2@y...> wrote:
>
> > Hi Friends,
> > I need some help to solve the an issue.
> > I am using 2 DSP boxes i.e. tms320c6711 &
> > tms320c6701.I have
> > configured the McBsp1 of DSP-I(6711) to send the
> > data to the DUART of
> > DSP-II(6701).
> It is strange that you are connecting a McBSP to a
> UART. I assume that the 6701's McBSPs are not
> available.
>
> >I am using a standard off-the-shelf
> > RS232 cable to
> > connect McBsp1 of DSP-I to the DUART of DSP-II.
> FYI- there is no such thing as a 'standard
> off-the-shelf RS232 cable'. Normally there are
> several different styles of RS232 cables
> 'on-the-shelf'.
>
> > Now the problem is that, although most of the
> > time we get proper
> > data in DSP-II, sometimes one value gets corrupted.
> > I have tried a
> > lot things to find the source of this corruption but
> > nothing has
> > helped so far.
> You problem is probably on the data recovery end.
> 1. what is the UART clock rate??
> 2. what is the McBSP clock rate??
> 3. are you using the '1 McBSP frame=1 UART bit'
> technique??
> > I had implemented Digital loopback & verified
> > that the values sent
> > out through McBsp1 is fine.
> > Now I read in one of the threads here that we
> > can use
> > "External Loopback ". If I'm not wrong we can check
> > if there's any
> > error in transmission due to the RS232 cable by
> > External loopback.
> > If anyone knows how External loopback works &
> > how to implement
> > it please let me know.
> You probably do not have a cable problem. Have you
> tried slowing the data rate?? [I don't know what speed
> you are using]
> Loop back is very straight forward. Not knowing which
> McBSP signals are connected to pins, the easiest way
> is to setup the MCBSP to generate FS and CLK on the Tx
> port and use that FS and CLK for the Rx port. Once
> you do that, just connect Tx and Rx pins together. Run
> your tests at the next higher clock rate just to be
> sure.
>
> >I have been stuck with this
> > issue for quiet some
> > time now & the situation is desperate.
> Keep in mind that the root cause of the 'failure to
> solve' a problem that you have been fighting for a
> long time is often a false assumption that has been
> made.
>
> mikedunn
> >
> > Thanks in advance.
> > dipak.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > c6x-unsubscribe@c6x-...
> >
> >
> >
> >
> >
> >
>




Dipak,

--- dipakonline2 <dipakonline2@dipa...> wrote:

> Hi Mike
> Thanks for the help.
> Here are the inputs to your queries.
>
> We have set the CLKGDV of McBsp as 63
> & the Duart Divisor is 3 to get a baud rate of 76800
> bytes/sec.
Can you try 21 and 1 as divisors?? If this helps, it
might indicate that the combination of 'rs232 driver
chip/cable length/cable capacitance/rs232 receiver
chip/data rate' will not work. -OR- The transmitter
cannot service the data rate.

As an experiment you may want to try sending several
[10?] stop bits. Stop bits have no effect except to
establish 'minimum spacing' between messages. If this
works, it would indicate that the receiver cannot
service the data rate
>
> We are using 1 McBsp frame = 1 DUART bit technique.
>
> We are basically sending 3 short integers(6 bytes)
> from McBsp.
> We are also adding 1 start bit & 2 stop bits to
> every frame so for
> every byte the frame length is
> 8bits+1stop bit+2startbits = 11bits
I assume that you mean 1 Start + 2 stop bits.

> & after this, for each bit we send one byte/frame
> i.e. 0xFFFF or 0x0000
> (using 1 McBsp frame = 1 DUART bit technique.)
>
> So we send 6*11= 66 bytes/msec OR 66000bytes/sec.
>
> On the data recovery end we DMA the values from
> the DUART into a buffer.
> Here, we always get the 1st two & the
> last two bytes correctly & the corruption, whenever
> it occurs,
> is always in the middle(3rd & 4th ) bytes. These
> corruptions occur
> sometimes, have no set pattern nor fixed time
> interval.
You will probably locate the problem with one of the
above techniques. If not, you may want to try the
following test.
Set up a test to send all 1's for each of the 6 bytes.
With a fixed and known pattern, the Rx data pattern
[corrupted] may give a clue as to what is going on.

Let us know what happens.

mikedunn
>
> Dipak
>
> PS:
> Link of the RS232 cable that we'r using(incase its
> of any help)



Hi Mike,
    
Sorry for the delay, the person who used to test this was indisposed
till yesterday, so I just tested this today.

As you suggested I tried the following things:

1. Tried clkgdv! & Divisor=1, here corruption increases.

2. Sent 1 extra stop bit(i.e. 2+1) with the same setup i.e clkgdvc &
Divisor=3. But still see the corrupted bits.

3. Sent 10 stop bits, set the CLKGDV of McBsp as 41 & the Duart
Divisor as 2. This also doesn't make any difference. In fact the
corruption increased a little. 

4. Also sent values from -32768 to +32767 (range of a short
int)incremented by 1, for the 3rd & 4th bytes. Here too we get wrong
values sometimes. Here there's one value that comes in corrupted
sometimes.

5. When a fixed pattern was sent for the 3rd & 4th bytes i.e. 0x22 &
0x22, it works & we don't get any corrupted bits. It shows a smooth
straight line.
 
Thank you for your help. Please suggest how I can fix this.
	dipak.
	--- In c6x@c6x@..., Mike Dunn <mike-dunn@...> wrote:
>
> Dipak,
> 
> --- dipakonline2 <dipakonline2@...> wrote:
> 
> > Hi Mike
> > 	Thanks for the help.
> > Here are the inputs to your queries.
> > 
> > We have set the CLKGDV of McBsp as 63
> > & the Duart Divisor is 3 to get a baud rate of 76800
> > bytes/sec.
> Can you try 21 and 1 as divisors?? If this helps, it
> might indicate that the combination of 'rs232 driver
> chip/cable length/cable capacitance/rs232 receiver
> chip/data rate' will not work. -OR- The transmitter
> cannot service the data rate.
> 
> As an experiment you may want to try sending several
> [10?] stop bits.  Stop bits have no effect except to
> establish 'minimum spacing' between messages. If this
> works, it would indicate that the receiver cannot
> service the data rate
> > 
> > We are using 1 McBsp frame = 1 DUART bit technique.
> > 
> > We are basically sending 3 short integers(6 bytes)
> > from McBsp.
> > We are also adding 1 start bit & 2 stop bits to
> > every frame so for
> > every byte the frame length is 
> > 8bits+1stop bit+2startbits = 11bits 
> I assume that you mean 1 Start + 2 stop bits.
> 
> > & after this, for each bit we send one byte/frame 
> > i.e. 0xFFFF or 0x0000 
> > (using 1 McBsp frame = 1 DUART bit technique.)
> > 
> > So we send 6*11= 66 bytes/msec OR 66000bytes/sec.
> > 
> > On the data recovery end we DMA the values from 
> > the DUART into a buffer.
> > Here, we always get the 1st two & the 
> > last two bytes correctly & the corruption, whenever
> > it occurs,
> > is always in the middle(3rd & 4th ) bytes. These
> > corruptions occur
> > sometimes, have no set pattern nor fixed time
> > interval.
> You will probably locate the problem with one of the
> above techniques.  If not, you may want to try the
> following test.
> Set up a test to send all 1's for each of the 6 bytes.
>  With a fixed and known pattern, the Rx data pattern
> [corrupted] may give a clue as to what is going on.
> 
> Let us know what happens.
> 
> mikedunn
> > 
> > Dipak
> > 
> > PS:
> > Link of the RS232 cable that we'r using(incase its
> > of any help)
>
	
Hello Dipak,

I apologize.
I must have been "inverted" when I made the
suggestions :-)

I should have said to increase the divisors [X3 or X4]
to slow down the data rate - I am not sure what i was
thinking...

sorry 'bout that.

mikedunn

--- dipakonline2 <dipakonline2@dipa...> wrote:

> Hi Mike,
>     
> Sorry for the delay, the person who used to test
> this was indisposed
> till yesterday, so I just tested this today.
> 
> As you suggested I tried the following things:
> 
> 1. Tried clkgdv! & Divisor=1, here corruption
> increases.
> 
> 2. Sent 1 extra stop bit(i.e. 2+1) with the same
> setup i.e clkgdvc &
> Divisor=3. But still see the corrupted bits.
> 
> 3. Sent 10 stop bits, set the CLKGDV of McBsp as 41
> & the Duart
> Divisor as 2. This also doesn't make any difference.
> In fact the
> corruption increased a little. 
> 
> 4. Also sent values from -32768 to +32767 (range of
> a short
> int)incremented by 1, for the 3rd & 4th bytes. Here
> too we get wrong
> values sometimes. Here there's one value that comes
> in corrupted
> sometimes.
> 
> 5. When a fixed pattern was sent for the 3rd & 4th
> bytes i.e. 0x22 &
> 0x22, it works & we don't get any corrupted bits. It
> shows a smooth
> straight line.
>  
> Thank you for your help. Please suggest how I can
> fix this.
>  
> 
> dipak.
> 
> 
> 
> 
> --- In c6x@c6x@..., Mike Dunn
> <mike-dunn@...> wrote:
> >
> > Dipak,
> > 
> > --- dipakonline2 <dipakonline2@...> wrote:
> > 
> > > Hi Mike
> > > 	Thanks for the help.
> > > Here are the inputs to your queries.
> > > 
> > > We have set the CLKGDV of McBsp as 63
> > > & the Duart Divisor is 3 to get a baud rate of
> 76800
> > > bytes/sec.
> > Can you try 21 and 1 as divisors?? If this helps,
> it
> > might indicate that the combination of 'rs232
> driver
> > chip/cable length/cable capacitance/rs232 receiver
> > chip/data rate' will not work. -OR- The
> transmitter
> > cannot service the data rate.
> > 
> > As an experiment you may want to try sending
> several
> > [10?] stop bits.  Stop bits have no effect except
> to
> > establish 'minimum spacing' between messages. If
> this
> > works, it would indicate that the receiver cannot
> > service the data rate
> > > 
> > > We are using 1 McBsp frame = 1 DUART bit
> technique.
> > > 
> > > We are basically sending 3 short integers(6
> bytes)
> > > from McBsp.
> > > We are also adding 1 start bit & 2 stop bits to
> > > every frame so for
> > > every byte the frame length is 
> > > 8bits+1stop bit+2startbits = 11bits 
> > I assume that you mean 1 Start + 2 stop bits.
> > 
> > > & after this, for each bit we send one
> byte/frame 
> > > i.e. 0xFFFF or 0x0000 
> > > (using 1 McBsp frame = 1 DUART bit technique.)
> > > 
> > > So we send 6*11= 66 bytes/msec OR
> 66000bytes/sec.
> > > 
> > > On the data recovery end we DMA the values from 
> > > the DUART into a buffer.
> > > Here, we always get the 1st two & the 
> > > last two bytes correctly & the corruption,
> whenever
> > > it occurs,
> > > is always in the middle(3rd & 4th ) bytes. These
> > > corruptions occur
> > > sometimes, have no set pattern nor fixed time
> > > interval.
> > You will probably locate the problem with one of
> the
> > above techniques.  If not, you may want to try the
> > following test.
> > Set up a test to send all 1's for each of the 6
> bytes.
> >  With a fixed and known pattern, the Rx data
> pattern
> > [corrupted] may give a clue as to what is going
> on.
> > 
> > Let us know what happens.
> > 
> > mikedunn
> > > 
> > > Dipak
> > > 
> > > PS:
> > > Link of the RS232 cable that we'r using(incase
> its
> > > of any help)
> >
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>     c6x-unsubscribe@c6x-...
> 
>  
> 
> 
> 
>
	
Hello Mike,

Thanks for your help.
We tried sending data at a slower rate i.e. clkgdv = 80
& divisor = 4 making the baud rate 57.6K but the corruption
still occurs. 

Any other reason that could be causing these corrupted bits
of data.

dipak.

--- In c6x@c6x@..., Mike Dunn <mike-dunn@...> wrote:
>
> Hello Dipak,
> 
> I apologize.
> I must have been "inverted" when I made the
> suggestions :-)
> 
> I should have said to increase the divisors [X3 or X4]
> to slow down the data rate - I am not sure what i was
> thinking...
> 
> sorry 'bout that.
> 
> mikedunn
> 
> --- dipakonline2 <dipakonline2@...> wrote:
> 
> > Hi Mike,
> >     
> > Sorry for the delay, the person who used to test
> > this was indisposed
> > till yesterday, so I just tested this today.
> > 
> > As you suggested I tried the following things:
> > 
> > 1. Tried clkgdv! & Divisor=1, here corruption
> > increases.
> > 
> > 2. Sent 1 extra stop bit(i.e. 2+1) with the same
> > setup i.e clkgdvc &
> > Divisor=3. But still see the corrupted bits.
> > 
> > 3. Sent 10 stop bits, set the CLKGDV of McBsp as 41
> > & the Duart
> > Divisor as 2. This also doesn't make any difference.
> > In fact the
> > corruption increased a little. 
> > 
> > 4. Also sent values from -32768 to +32767 (range of
> > a short
> > int)incremented by 1, for the 3rd & 4th bytes. Here
> > too we get wrong
> > values sometimes. Here there's one value that comes
> > in corrupted
> > sometimes.
> > 
> > 5. When a fixed pattern was sent for the 3rd & 4th
> > bytes i.e. 0x22 &
> > 0x22, it works & we don't get any corrupted bits. It
> > shows a smooth
> > straight line.
> >  
> > Thank you for your help. Please suggest how I can
> > fix this.
> >  
> > 
> > dipak.
> > 
> > 
> > 
> > 
> > --- In c6x@c6x@..., Mike Dunn
> > <mike-dunn@> wrote:
> > >
> > > Dipak,
> > > 
> > > --- dipakonline2 <dipakonline2@> wrote:
> > > 
> > > > Hi Mike
> > > > 	Thanks for the help.
> > > > Here are the inputs to your queries.
> > > > 
> > > > We have set the CLKGDV of McBsp as 63
> > > > & the Duart Divisor is 3 to get a baud rate of
> > 76800
> > > > bytes/sec.
> > > Can you try 21 and 1 as divisors?? If this helps,
> > it
> > > might indicate that the combination of 'rs232
> > driver
> > > chip/cable length/cable capacitance/rs232 receiver
> > > chip/data rate' will not work. -OR- The
> > transmitter
> > > cannot service the data rate.
> > > 
> > > As an experiment you may want to try sending
> > several
> > > [10?] stop bits.  Stop bits have no effect except
> > to
> > > establish 'minimum spacing' between messages. If
> > this
> > > works, it would indicate that the receiver cannot
> > > service the data rate
> > > > 
> > > > We are using 1 McBsp frame = 1 DUART bit
> > technique.
> > > > 
> > > > We are basically sending 3 short integers(6
> > bytes)
> > > > from McBsp.
> > > > We are also adding 1 start bit & 2 stop bits to
> > > > every frame so for
> > > > every byte the frame length is 
> > > > 8bits+1stop bit+2startbits = 11bits 
> > > I assume that you mean 1 Start + 2 stop bits.
> > > 
> > > > & after this, for each bit we send one
> > byte/frame 
> > > > i.e. 0xFFFF or 0x0000 
> > > > (using 1 McBsp frame = 1 DUART bit technique.)
> > > > 
> > > > So we send 6*11= 66 bytes/msec OR
> > 66000bytes/sec.
> > > > 
> > > > On the data recovery end we DMA the values from 
> > > > the DUART into a buffer.
> > > > Here, we always get the 1st two & the 
> > > > last two bytes correctly & the corruption,
> > whenever
> > > > it occurs,
> > > > is always in the middle(3rd & 4th ) bytes. These
> > > > corruptions occur
> > > > sometimes, have no set pattern nor fixed time
> > > > interval.
> > > You will probably locate the problem with one of
> > the
> > > above techniques.  If not, you may want to try the
> > > following test.
> > > Set up a test to send all 1's for each of the 6
> > bytes.
> > >  With a fixed and known pattern, the Rx data
> > pattern
> > > [corrupted] may give a clue as to what is going
> > on.
> > > 
> > > Let us know what happens.
> > > 
> > > mikedunn
> > > > 
> > > > Dipak
> > > > 
> > > > PS:
> > > > Link of the RS232 cable that we'r using(incase
> > its
> > > > of any help)
> > >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >     c6x-unsubscribe@c6x-...
> > 
> >  
> > 
> > 
> > 
> >
>
	
Hello Dipak,

You can try this...

plan A
1. Set up DSP1 to send a 'test pattern' of 6 bytes -
define the bytes so that each one is an ascii
character. 
2. Replace DSP2 with a PC run a terminal emulator at
the correct baud rate.
3. observe

plan B [a bit more work]
1. Set up DSP2 to receive test pattern
2. replace DSP1 with a PC running a program to output
a continuous 6 byte test pattern.
3. observe

The results might give a clue.

mikedunn

--- dipakonline2 <dipakonline2@dipa...> wrote:

> Hello Mike,
> 
> Thanks for your help.
> We tried sending data at a slower rate i.e. clkgdv > 80
> & divisor = 4 making the baud rate 57.6K but the
> corruption
> still occurs. 
> 
> Any other reason that could be causing these
> corrupted bits
> of data.
> 
> dipak.
> 
> --- In c6x@c6x@..., Mike Dunn
> <mike-dunn@...> wrote:
> >
> > Hello Dipak,
> > 
> > I apologize.
> > I must have been "inverted" when I made the
> > suggestions :-)
> > 
> > I should have said to increase the divisors [X3 or
> X4]
> > to slow down the data rate - I am not sure what i
> was
> > thinking...
> > 
> > sorry 'bout that.
> > 
> > mikedunn
> > 
> > --- dipakonline2 <dipakonline2@...> wrote:
> > 
> > > Hi Mike,
> > >     
> > > Sorry for the delay, the person who used to test
> > > this was indisposed
> > > till yesterday, so I just tested this today.
> > > 
> > > As you suggested I tried the following things:
> > > 
> > > 1. Tried clkgdv! & Divisor=1, here corruption
> > > increases.
> > > 
> > > 2. Sent 1 extra stop bit(i.e. 2+1) with the same
> > > setup i.e clkgdvc &
> > > Divisor=3. But still see the corrupted bits.
> > > 
> > > 3. Sent 10 stop bits, set the CLKGDV of McBsp as
> 41
> > > & the Duart
> > > Divisor as 2. This also doesn't make any
> difference.
> > > In fact the
> > > corruption increased a little. 
> > > 
> > > 4. Also sent values from -32768 to +32767 (range
> of
> > > a short
> > > int)incremented by 1, for the 3rd & 4th bytes.
> Here
> > > too we get wrong
> > > values sometimes. Here there's one value that
> comes
> > > in corrupted
> > > sometimes.
> > > 
> > > 5. When a fixed pattern was sent for the 3rd &
> 4th
> > > bytes i.e. 0x22 &
> > > 0x22, it works & we don't get any corrupted
> bits. It
> > > shows a smooth
> > > straight line.
> > >  
> > > Thank you for your help. Please suggest how I
> can
> > > fix this.
> > >  
> > > 
> > > dipak.
> > > 
> > > 
> > > 
> > > 
> > > --- In c6x@c6x@..., Mike Dunn
> > > <mike-dunn@> wrote:
> > > >
> > > > Dipak,
> > > > 
> > > > --- dipakonline2 <dipakonline2@> wrote:
> > > > 
> > > > > Hi Mike
> > > > > 	Thanks for the help.
> > > > > Here are the inputs to your queries.
> > > > > 
> > > > > We have set the CLKGDV of McBsp as 63
> > > > > & the Duart Divisor is 3 to get a baud rate
> of
> > > 76800
> > > > > bytes/sec.
> > > > Can you try 21 and 1 as divisors?? If this
> helps,
> > > it
> > > > might indicate that the combination of 'rs232
> > > driver
> > > > chip/cable length/cable capacitance/rs232
> receiver
> > > > chip/data rate' will not work. -OR- The
> > > transmitter
> > > > cannot service the data rate.
> > > > 
> > > > As an experiment you may want to try sending
> > > several
> > > > [10?] stop bits.  Stop bits have no effect
> except
> > > to
> > > > establish 'minimum spacing' between messages.
> If
> > > this
> > > > works, it would indicate that the receiver
> cannot
> > > > service the data rate
> > > > > 
> > > > > We are using 1 McBsp frame = 1 DUART bit
> > > technique.
> > > > > 
> > > > > We are basically sending 3 short integers(6
> > > bytes)
> > > > > from McBsp.
> > > > > We are also adding 1 start bit & 2 stop bits
> to
> > > > > every frame so for
> > > > > every byte the frame length is 
> > > > > 8bits+1stop bit+2startbits = 11bits 
> > > > I assume that you mean 1 Start + 2 stop bits.
> > > > 
> > > > > & after this, for each bit we send one
> > > byte/frame 
> > > > > i.e. 0xFFFF or 0x0000 
> > > > > (using 1 McBsp frame = 1 DUART bit
> technique.)
> > > > > 
> > > > > So we send 6*11= 66 bytes/msec OR
> > > 66000bytes/sec.
> > > > > 
> > > > > On the data recovery end we DMA the values
> from 
> > > > > the DUART into a buffer.
> > > > > Here, we always get the 1st two & the 
> > > > > last two bytes correctly & the corruption,
> > > whenever
> > > > > it occurs,
> > > > > is always in the middle(3rd & 4th ) bytes.
> These
> > > > > corruptions occur
> > > > > sometimes, have no set pattern nor fixed
> time
> > > > > interval.
> > > > You will probably locate the problem with one
> of
> > > the
> > > > above techniques.  If not, you may want to try
> the
> > > > following test.
> > > > Set up a test to send all 1's for each of the
> 6
> > > bytes.
> > > >  With a fixed and known pattern, the Rx data
> > > pattern
> > > > [corrupted] may give a clue as to what is
> going
> > > on.
> > > > 
> > > > Let us know what happens.
> > > > 
> > > > mikedunn
> > > > > 
> > > > > Dipak
> > > > > 
> > > > > PS:
> > > > > Link of the RS232 cable that we'r
> using(incase
> > > its
> > > > > of any help)
> > > >
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > NEW!  You can now post a message or access and
> > > search the archives of this group on
> DSPRelated.com:
> > > http://www.dsprelated.com/groups/c6x/1.php
> 
=== message truncated ==