Reply by Tarang Dadia August 2, 20042004-08-02
Offir- On Sun, 01 Aug 2004 15:54:30 -0000, silvera_tristan
<> wrote:
> Hi all,
> 1) Is writing to the CIPR is enough to trigger an EDMA transfer?

No. Its not enough nor is it anywhere near to enough.
Writing a 1 to the corresponding event (If your destination is McBSP1
then write to Event 14) will trigger an EDMA event. For more info
refer to SPRU234 EDMA controller reference guide, page no. 1-6

> 2) IS using the command EDMA_setChannel is enough to trigger an EDMA
> transfer?
Yes. I think this event essentially writes to Event set register so it
should do the trick.

> I want to trigger an EDMA transfer when a certain flag is set.
> the source is a buffer in memory and the destination is the McBsp.
> could some please explain me the procedure or send me a refference
> code?
>

FIrst step would be to configure the EDMA channel as you want, set
source and destination address , set the options registers and all
other parameters in PARAM table.

Then as soon as you detect that flag is set, call EDMA_setChannel
routine and pass the required channel handle.

Hope this shud work.

-Tarang

P.S. For details abt how to set-up EDMA parameters and stuff , I am
refering to MCBSP- UART document. spra633b. Go thru the code to know
how to setup the EDMA channel. > please answer this,
> thanks, Offir.
>
> _____________________________________
> Note: If you do a simple "reply" with your email client, only the author of
this message will receive your answer. You need to do a "reply all" if you want
your answer to be distributed to the entire group.
>
> _____________________________________
> About this discussion group:
>
> To Join: Send an email to
>
> To Post: Send an email to
>
> To Leave: Send an email to
>
> Archives: http://www.yahoogroups.com/group/c6x
>
> Other Groups: http://www.dsprelated.com
>
> Yahoo! Groups Links




Reply by Bernhard Gustl Bauer August 2, 20042004-08-02
silvera_tristan wrote:
> Hi all,

Hello Offir,

> 1) Is writing to the CIPR is enough to trigger an EDMA transfer?

No, CIPR is used to trigger an IRQ by EDMA after a EDMA has been finished.

> 2) IS using the command EDMA_setChannel is enough to trigger an EDMA
> transfer?

Yes.

> I want to trigger an EDMA transfer when a certain flag is set.
> the source is a buffer in memory and the destination is the McBsp.
> could some please explain me the procedure or send me a refference
> code?

If this flag is from a McBASP register you should read capture 12 of
spru190d. There a some EDMA that could be triggerd automatically by a
McBSP transmit/receive signal.

HTH Gustl


Reply by silvera_tristan August 1, 20042004-08-01
Hi all,
1) Is writing to the CIPR is enough to trigger an EDMA transfer?
2) IS using the command EDMA_setChannel is enough to trigger an EDMA
transfer?
I want to trigger an EDMA transfer when a certain flag is set.
the source is a buffer in memory and the destination is the McBsp.
could some please explain me the procedure or send me a refference
code?

please answer this,
thanks, Offir.