Sign in

username:

password:



Not a member?

Search c54x



Search tips

Subscribe to c54x



c54x by Keywords

5409 | 5416 | AD5 | ADC | BIOS | Boot | Booting | Bootloader | C540 | C5402 | C5409 | C5416 | CCS | Codec | DMA | Dmad | DSK | DSKPlus | Dsplib | EVM | FFT | FIR | Flash | GPIO | HPI | Initialization | Interrupt | JTAG | LOG_printf | MCBSP | RFFT | RTDX | Sampling | STLM | UART | VC540

Discussion Groups

Discussion Groups | TMS320C54x | DMA interrupts

Technical discussions about the TI C54x DSPs (including the c5401, c5402, c5402a, c5404, c5407, c5409, c5409a, c5410, c5410a, c5416, c5420, c5421, c5441, c549, c5470 and c5471).

  

Post a new Thread

DMA interrupts - hakpax - Sep 26 12:36:00 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





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

Re: DMA interrupts - Marlo Flores - Sep 27 9:50:00 2002

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 >
> _____________________________________ __________________________________________________





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

Re: DMA interrupts - hakpax - Sep 27 20:45:00 2002

-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
> >
> >
> >
> > _____________________________________
> >
> >
> >
> >
> >
> > __________________________________________________




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