Trigger multiple DMA's off same event?
Eg. McBSP codec receive event triggers a receive DMA which reads data
from that McBSP.
Same receive event triggers a different DMA that writes to a different
McBSP's transmit register.
Can this be done?
Brian C. Lane (W7BCL) Programmer
www.shinemicro.com RF, DSP & Microcontroller Design
TI docs doesnt mention anywhere that you cannot do
this. But, the RRDY is the bit that directly drives
the REVT, for DMA triggering.This bit is cleared when
the DRR is read by the DMA which is synchronised to
it. In our case, there can be a contention for
clearing this RRDY bit.
In any case, how will you ensure that dma write to the
other mcbsp for transmit is synchronised? i mean, if
the dma writes to the transmit register before the
data has been driven out on DX, the transmission is in
may be you can synchronise the mcbsp recive event to
one dma and transmit event of other mcbsp to second
dma. Data transfer between the dma can be done by
managing a buffer. you can even make use of the half
full interrupt of the receive dma to inform the cpu to
initialise second dma which works on the transmit sync
--- "Brian C. Lane" <brian@bria...> wrote:
> Is it possible to trigger 2 DMA's off the same McBSP
> Eg. McBSP codec receive event triggers a receive DMA
> which reads data
> from that McBSP.
> Same receive event triggers a different DMA that
> writes to a different
> McBSP's transmit register.
> Can this be done?
> Brian C. Lane (W7BCL)
> www.shinemicro.com RF, DSP & Microcontroller
> Design >
Start your day with Yahoo! - Make it your home page!