DSPRelated.com
Forums

SPRA633 : McBSP used as UART does not work with RS-232...

Started by Olivier GRY May 3, 2005
Hi,

I try to use the app not SPRA633B to "convert" the McBSP1 port as an
UART and use it to communicate with a RS-232 link to a computer(LabView
application).

I use a MAX3232CPE to convert RX / TX signals and the computer receive
data but the computer understands whatever chars and it is the same for
the DSP when it receives data from the computer.

What can I modify to the source code to allow this program to work ?

Thanks a lot for your help

P.S : I try to work with 115 200 bauds speed so with the formula given
in the app note and a CPU Core about 225 MHz (C6713DSK from Spectrum
Digital, it seems that CLKGDV = 121)

Regards, Olivier



Oliver, > I use a MAX3232CPE to convert RX / TX signals and the computer receive
> data but the computer understands whatever chars and it is the same for
> the DSP when it receives data from the computer.
>
> What can I modify to the source code to allow this program to work ?
>

I am still not clear on what problem you are facing while
communicating with the PC. It should not hurt to explain the problem
in more detail.

Tarang

On 5/3/05, Olivier GRY <o...@o.gr...> wrote:
> Hi,
>
> I try to use the app not SPRA633B to "convert" the McBSP1 port as an
> UART and use it to communicate with a RS-232 link to a computer(LabView
> application).
>
> Thanks a lot for your help
>
> P.S : I try to work with 115 200 bauds speed so with the formula given
> in the app note and a CPU Core about 225 MHz (C6713DSK from Spectrum
> Digital, it seems that CLKGDV = 121)
>
> Regards, Olivier >
>



Oliver,
 
Even though you have a 225Mhz board, do you have it set to run at 225Mhz??  I believe that the default rate of the DSK is slower.
 
mikedunn

Olivier GRY <o...@sageis-cso.fr> wrote:
Hi,

I try to use the app not SPRA633B to "convert" the McBSP1 port as an
UART and use it to communicate with a RS-232 link to a computer(LabView
application).

I use a MAX3232CPE to convert RX / TX signals and the computer receive
data but the computer understands whatever chars and it is the same for
the DSP when it receives data from the computer.

What can I modify to the source code to allow this program to work ?

Thanks a lot for your help

P.S : I try to work with 115 200 bauds speed so with the formula given
in the app note and a CPU Core about 225 MHz (C6713DSK from Spectrum
Digital, it seems that CLKGDV = 121)

Regards, Olivier

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/c6x/

<*> To unsubscribe from this group, send an email to:
c...@yahoogroups.com

<*



Oliver,
<snip>

> Well, now I have another question about EDMA channels, this UART
> communication uses EDMA channels (XMIT / RECV) but I do not want to use a
> ping-pong buffer because the UART is not in service continuously so what
> kind of code can I use to start a single frame send then wait another event
> to send another single frame ...etc.
> For the moment, I can send only one frame and I cannot "refresh" the EDMA
> channel to allow it to send another frame after the DSP computes new datas
>

Probably what you are looking for is something like CPU initiated
transfer. You can have your CPU trigger a EDMA trasfer as and when
the processing is complete. And if you need you can refresh EDMA
parameters before triggering the request. For more info refer to SPRU234b. Probably there are more efficient
ways to trigger the transfer whenever your processing is complete.

"CPU-triggered transfer request. Allows the CPU to manually trigger a
transfer request (TR) by writing to the event set register (ESR) for a given
channel."

Hope this helps.
Tarang
> Can you help me ?
>
> Thanks,
> Olivier > Tarang Dadia a rit :
> Oliver, >
>
> I use a MAX3232CPE to convert RX / TX signals and the computer receive
> data but the computer understands whatever chars and it is the same for
> the DSP when it receives data from the computer.
>
> What can I modify to the source code to allow this program to work ? > I am still not clear on what problem you are facing while
> communicating with the PC. It should not hurt to explain the problem
> in more detail.
>
> Tarang
>
> On 5/3/05, Olivier GRY <o...@o.gr...> wrote: > Hi,
>
> I try to use the app not SPRA633B to "convert" the McBSP1 port as an
> UART and use it to communicate with a RS-232 link to a computer(LabView
> application).
>
> Thanks a lot for your help
>
> P.S : I try to work with 115 200 bauds speed so with the formula given
> in the app note and a CPU Core about 225 MHz (C6713DSK from Spectrum
> Digital, it seems that CLKGDV = 121)
>
> Regards, Olivier >
>
> -- > 70, avenue des Martyrs
> 38000 GRENOBLE
> Olivier GRY
> Ingieur Electronique > T : 04 76 47 85 88
> Fax : 04 76 46 84 56
> Email : o...@o.gr...