DSPRelated.com
Forums

Re: UART on DSK6713

Started by avin...@gmail.com April 22, 2010
Hi,
All these days since my last post I have been trying to make it work, but unfortunately the problem is same.When i run the programm and check using symbol watch, the xmitbuf has the correct data, i.e. I had transmitted 'M' nad data should be in 8- bit format i.e 1011001.the recvbuf shows 0100110111, fist bit as low start bit, last 2 bits as stop bits(high), and rest 8 middle bits as binary of M in reverse(as of 'M') gets stored first or transmitted first.Each 0 as 0x0000 and each 1 as 0xffff.Now according ti the EDMA configuration, the source of channel 14 is this xmitbuf and destiantion is the DXR register whose address is given by command mcbsp_getXmtaddr().This DXR pushes it to DRR.DRR acts as the source for EDMA 15 channel and destination is recvbuf().

xmitbuf() has correct values.How do i see the contect on DXR register whose address is given by the above command.I know pointers will help, but it's not working.plz suggest a way out and/or there is a command MCBSP_DX_DXR_OF() function.With this command the 32 bit value on DX pin is written in DXR as given in spru589g. but this command is not included in the SPI UART example code in spra633c.zip. Do we need this command at all??

Plz anyone implement the example code in spra633c for spi mode UART on DSK6713, see the problems urself and help.I am stuck with it for a month or more now.

Williams sir, Ricahrd sir, Jeff sir....kindly help plz.

hi all,
>I am a new member of this wonderful website.I have been working on implementation of OFDM on TI's DSK6713 kit.In the process i need to implement UART using McBSP.For this, i used spra633c document from TI.But the example code given there for EDMA using serial port communication does not give correct output.
>
>I searched this website and this groupa nd archives but could not find any relevant thread.
>
>Problems-
>1)When I build it in CCS 3.1 it gives error as 'vector' macro not found....i resolved it by debugging vectors.asm file.
>
>2)Now, the transmit function works properly and the data stored in transmit buffer is correct(i printed it), but the data in receive buffer is different, though it has to be same.I need to know why it is so???
>
>3)When i connect the kit with TRX radio kit, nothing transmission is shown.
>
>I need help on the transmission and receiver part.Plz give me an idea on how to make it work.
>I tried a lot, but failed.
>
>also i would appreciate if u give me some info on ISR of EDMA.
>
>I am very new to DSP so need ur help.
>Thanx.
>
>_____________________________________

_____________________________________
Avin,

You transmitted a 'M' via the DXR signal line.
Have you looked at that signal line to check the 'M' is being transmitted MSB first of LSB first?

Is the McBSP communication set for 8bit or 32 bit?
Is the McBSP communication set to transmit the MSB first or last?

Have you given a careful look at the McBSP clocks.

The T.I. document seems to expect the McBSP bit clock is 4 times the baud rate on xmit and receive.
(this is why each data bit in the transmit buffer occurs 4 times)

Is that how you have the McBSP bit clocks set?

Did you implement the part about replacing every bit to xmit'd with 4 occurrances of that bit?

Did you implement the part about using a 'majority rules' to extract each bit from the recv'd bit stream?

A paste of your McBSP initialization (with comments) and your xmit and recv functions would make it easier for us to help debug.
As it is, all we have to work with are your descriptions.

While your posting, please also include the actual transmitted bit stream for the letter 'M', including the timing of the bits.

R. Williams

---------- Original Message -----------
From: a...@gmail.com
To: c...
Sent: Wed, 21 Apr 2010 23:08:39 -0400
Subject: [c6x] Re: UART on DSK6713

>
>
> Hi,
> All these days since my last post I have been trying to make it work, but unfortunately the problem is same.When i run the programm and check using symbol watch, the xmitbuf has the correct data, i.e. I had transmitted 'M' nad data should be in 8- bit format i.e 1011001.the recvbuf shows 0100110111, fist bit as low start bit, last 2 bits as stop bits(high), and rest 8 middle bits as binary of M in reverse(as of 'M') gets stored first or transmitted first.Each 0 as 0x0000 and each 1 as 0xffff.Now according ti the EDMA configuration, the source of channel 14 is this xmitbuf and destiantion is the DXR register whose address is given by command mcbsp_getXmtaddr().This DXR pushes it to DRR.DRR acts as the source for EDMA 15 channel and destination is recvbuf().
>
> xmitbuf() has correct values.How do i see the contect on DXR register whose address is given by the above command.I know pointers will help, but it's not working.plz suggest a way out and/or there is a command MCBSP_DX_DXR_OF() function.With this command the 32 bit value on DX pin is written in DXR as given in spru589g. but this command is not included in the SPI UART example code in spra633c.zip. Do we need this command at all??
>
> Plz anyone implement the example code in spra633c for spi mode UART on DSK6713, see the problems urself and help.I am stuck with it for a month or more now.
>
> Williams sir, Ricahrd sir, Jeff sir....kindly help plz.
>
> hi all,
> >I am a new member of this wonderful website.I have been working on implementation of OFDM on TI's DSK6713 kit.In the process i need to implement UART using McBSP.For this, i used spra633c document from TI.But the example code given there for EDMA using serial port communication does not give correct output.
> >
> >I searched this website and this groupa nd archives but could not find any relevant thread.
> >
> >Problems-
> >1)When I build it in CCS 3.1 it gives error as 'vector' macro not found....i resolved it by debugging vectors.asm file.
> >
> >2)Now, the transmit function works properly and the data stored in transmit buffer is correct(i printed it), but the data in receive buffer is different, though it has to be same.I need to know why it is so???
> >
> >3)When i connect the kit with TRX radio kit, nothing transmission is shown.
> >
> >I need help on the transmission and receiver part.Plz give me an idea on how to make it work.
> >I tried a lot, but failed.
> >
> >also i would appreciate if u give me some info on ISR of EDMA.
> >
> >I am very new to DSP so need ur help.
> >Thanx.
> >
> >_____________________________________
> >
> >
------- End of Original Message -------