Sign in

username:

password:



Not a member?

Search c55x



Search tips

Subscribe to c55x



c55x by Keywords

AIC23 | C5509 | CCS | CSL | EMIF | EVM | GEL | GPIO | HPI | Interfacing | JTAG | McBSP | OMAP | Omap15 | OMAP59 | RTDX | SDRAM | TMS320VC5509 | USB | XDS5

Discussion Groups

Discussion Groups | TMS320C55x | McBsp and DMA synchronization

Technical discussions about the TI C55x DSPs (including the c5501, c5502, c5503, c5507, c5509, c5510 and OMAP5910).

  

Post a new Thread

McBsp and DMA synchronization - iewil2000 - Oct 22 13:04:42 2007



Dear group,

McBsp receives L&R channel of audio. It sends out a REVT to DMA to 
enable DMA's transfer. It has worked well for a while. But when I 
require the DMA alwasy start from audio sample of left channel, I don't 
have any means to do that. McBsp don't have "left channel REVT", it 
sends REVT for each recieving word.

I appreciate any input.

Wei



(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )

Re: McBsp and DMA synchronization - iewil2000 - Oct 26 17:04:41 2007

I solved the problem with:

1. Set McBsp to read 32 bit instead of 16 bit. So the DRR2 has left 
channel and DRR1 has right channel. McBsp issues an EVENT to DMA only 
after received both left and right channel.
2. Configure DMA as double indexing both on source and destination. 
An EVENT from McBsp triggers a trasmission of a frame. DMA reads DRR2 
first and then DRR1 second, as two element of one frame. DMA writes 
to bufferL and bufferR with double indexing to seperate left and 
right channel.

Wei
--- In c...@yahoogroups.com, "iewil2000" <liwei2000@...> wrote:
>
> Dear group,
> 
> McBsp receives L&R channel of audio. It sends out a REVT to DMA to 
> enable DMA's transfer. It has worked well for a while. But when I 
> require the DMA alwasy start from audio sample of left channel, I 
don't 
> have any means to do that. McBsp don't have "left channel REVT", it 
> sends REVT for each recieving word.
> 
> I appreciate any input.
> 
> Wei
>



(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )

Re: Re: McBsp and DMA synchronization - Jeff Brower - Oct 27 14:14:22 2007

Wei-

> I solved the problem with:
>
> 1. Set McBsp to read 32 bit instead of 16 bit. So the DRR2 has left
> channel and DRR1 has right channel. McBsp issues an EVENT to DMA only
> after received both left and right channel.
> 2. Configure DMA as double indexing both on source and destination.
> An EVENT from McBsp triggers a trasmission of a frame. DMA reads DRR2
> first and then DRR1 second, as two element of one frame. DMA writes
> to bufferL and bufferR with double indexing to seperate left and
> right channel.

Not only is that a slick software solution, but seems very efficient also -- cuts down on
internal mem bus bandwidth.

-Jeff

> --- In c...@yahoogroups.com, "iewil2000" <liwei2000@...> wrote:
>>
>> Dear group,
>>
>> McBsp receives L&R channel of audio. It sends out a REVT to DMA to
>> enable DMA's transfer. It has worked well for a while. But when I
>> require the DMA alwasy start from audio sample of left channel, I
> don't
>> have any means to do that. McBsp don't have "left channel REVT", it
>> sends REVT for each recieving word.
>>
>> I appreciate any input.
>>
>> Wei
>



(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )