DSPRelated.com
Forums

DMA interrupts

Started by hakpax September 26, 2002
hi there!
im using the TMS230C5402 DSK
my goal is to process a large amount of audio sampels which comes
from the McBSP.
i decided to use the DMA cause the memory is not big enough.
i have managed to use the dma to seperate the input to frames and i
enabled the interrupt (DMAC2)
i need to know when interrupt happened so the main processing
program begin to work (end of frame).
how do i make this connection between the interrupt and the
processing program?
im kinda new to DSP and i cant find the info in the TI tutorial.

thanks alot
hakpax



hi

you have to "hook" your interrupt service routine
(isr) with the interrupt generated by your DMA channel
(the interrupt trap). If you are writing in C using
Code Composer Studio, there is a header file intr.h
that can help you with this. Defined in this file are
macros. For example, if your isr is function() and the
interrupt trap number of the DMA channel is trap_num
then you can hook the isr to the interrupt by calling
the macro:

INTR_HOOK(trap_num, function);

best regards,
marlo

--- hakpax <> wrote:
> hi there!
> im using the TMS230C5402 DSK
> my goal is to process a large amount of audio
> sampels which comes
> from the McBSP.
> i decided to use the DMA cause the memory is not big
> enough.
> i have managed to use the dma to seperate the input
> to frames and i
> enabled the interrupt (DMAC2)
> i need to know when interrupt happened so the main
> processing
> program begin to work (end of frame).
> how do i make this connection between the interrupt
> and the
> processing program?
> im kinda new to DSP and i cant find the info in the
> TI tutorial.
>
> thanks alot
> hakpax >
> _____________________________________
> 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/c54x
>
> Other Groups: http://www.dsprelated.com > ">http://docs.yahoo.com/info/terms/


__________________________________________________



-thanks for the reply
is it possible just to use the
INTR_CHECK_FLAG(flag)?
i dont have a ISR for the interrupt cause i dont want it to do
anything. just to notify me about the frame being completed.
and then i can continue my major process.
you think i should make the main process as the funciton
and then hook it with the interrupt?
maybe its wrong to work this way but this is how i see it.
any suggesions to improve it are welcome. -- In c54x@y..., Marlo Flores <marlo_ti@y...> wrote:
> hi
>
> you have to "hook" your interrupt service routine
> (isr) with the interrupt generated by your DMA channel
> (the interrupt trap). If you are writing in C using
> Code Composer Studio, there is a header file intr.h
> that can help you with this. Defined in this file are
> macros. For example, if your isr is function() and the
> interrupt trap number of the DMA channel is trap_num
> then you can hook the isr to the interrupt by calling
> the macro:
>
> INTR_HOOK(trap_num, function);
>
> best regards,
> marlo
>
> --- hakpax <hakpax@y...> wrote:
> > hi there!
> > im using the TMS230C5402 DSK
> > my goal is to process a large amount of audio
> > sampels which comes
> > from the McBSP.
> > i decided to use the DMA cause the memory is not big
> > enough.
> > i have managed to use the dma to seperate the input
> > to frames and i
> > enabled the interrupt (DMAC2)
> > i need to know when interrupt happened so the main
> > processing
> > program begin to work (end of frame).
> > how do i make this connection between the interrupt
> > and the
> > processing program?
> > im kinda new to DSP and i cant find the info in the
> > TI tutorial.
> >
> > thanks alot
> > hakpax
> >
> >
> >
> > _____________________________________
> > 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
> > c54x-subscribe@y...
> >
> > To Post: Send an email to c54x@y...
> >
> > To Leave: Send an email to
> > c54x-unsubscribe@y...
> >
> > Archives: http://www.yahoogroups.com/group/c54x
> >
> > Other Groups: http://www.dsprelated.com
> >
> >
> > ">http://docs.yahoo.com/info/terms/
> >
> > __________________________________________________
>