Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed the week of November 23.

This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Can multiple EDMA3 events trigger the same ISR?

I'm in the process of converting our FPGA -> DSP data transfers from blocking while loops to DMA reads.  I *think* I've got the transfers setup correctly, but I'm not sure how to setup the ISR, and I'll explain why.

I have 4 DMA channels, all being triggered off of GPINT events on different pins.  The different events indicate data is ready from different FIFOs in our FPGA.  Again, I think I have the DMA channels all setup correctly to respond to those events and do the transfers correctly.  I have them setup to ping pong as well. 

I want to generate a completion event any time the DMA channels ping or pong.  Again, I think I've got that setup correctly too.

However, I'd like to have just one "data ready" ISR that would be triggered by ANY of those DMA channels completing a transfer.  The data is all logically the same, and should be handled in the same way once the DMA is completed.  I don't want to create 4 ISRs that are carbon copies of each other just so that each one can be mapped one to one with a completion event.  I'd prefer to have one ISR that was simply passed something like the TCC so it could determine where the data came from.

So, what I want to figure out is "How can I create a single ISR that will respond to any one of my 4 DMA completion events?"  i.e. a many to one event to ISR mapping.

Is that possible?  I haven't found how to do it yet.  If so, how do I set that up?  Is there an event mask instead of event number option for the SYS/BIOS config?

More information.  We're using a 6455.  SYS/BIOS 6.32.5.54.  CCSv5.2.  CSL for the EDMA setup, not the EDMA driver.  (I could use the EDMA driver if it is the way to do this.  I was just using CSL since I was already using it elsewhere.)

  • Fourier,

    You can use EDMA3CC_GINT (event no: 24) "EDMA3 channel global completion interrupt" for taking one interrupt for transfer completion on any of the 4 DMA channels. Make sure you enable the required bits in the global IER register corresponding to the DMA channels used. The interrupt pending status for all the 4 DMA channels can be determined through the corresponding bits in the global IPR register. For more information about EDMA inetrrupts, refer to section 2.9.1.1 "Enabling Transfer Completion Interrupts" in C6455 EDMA3 users guide (SPRU966C).

    I hope this helps.

  • Karthik,

           Thanks for the speedy reply.  That's just the sort of thing I was looking for.  

           Separate, but related question : What's the deal with "Regions" in the DMA controller?  Do I need to concern myself with them?

    -The FFT.

  • The EDMA shadow regions are useful, if you want to use EDMA from multiple cores. However, as the C6455 is single core DSP, there is no need worry about the EDMA shadow regions.