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.

TM4C1294XL dma gpio trigger

Hi All,

I am very new to DMA and I want to use uDMA to read from GPIO with rising edge of an other GPIO. For example at every rising edge of PD2 i want to write PK(0-7) to a RAM address. All examples that I encountered, trigger the DMA channel with software. But I couldn't able to trigger with GPIO.

Thanks for your help.

huseyin

  • Hello Huseyin,

    To use the GPIO as a DMA Trigger, you need to first select the edge of the GPIO that you have to trigger on and then enable the DMA capability for the pin in the GPIODMAEN register.

    Just like the other examples the uDMA structure needs to be initialized and the only difference now is that instead of using software dma trigger use the uDMAChannelAssign(...) with the Macro value mentioning the GPIO and DMA Channel as given in udma.h

    Regards

    Amit

  • For a example for DMA GPIO trigger, check:

    https://sites.google.com/site/luiselectronicprojects/tutorials/tiva-tutorials/tiva-dma

  • Luis,

    "Understanding dma part" of the site  was my starting point. But I missed the GPIO example. Thanks again. It seemed very confusing at first sight I managed to trigger dma. 

    Amit,

    You are like super-hero, thank you.

    huseyin