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.

DMA and ADC

how to use DMA and ADC to Sampling 500Khz,please give me some advice and example. thanks.I use TM4C123 launchpad.

  • Hi guopeng,

    You seem to be just asking someone to do the work for you. But well, i understand if you don't any way to do that you of course need some examples.

    Here is how to blink 8 LEDs with the TM4C1294 launchpad. It should be similar to the TM4C123, still it is necessary for you to read the TM4C123 datasheet. Try to understand how the DMA works. Then adapt it o the ADC.

    http://forum.stellarisiti.com/topic/2108-tm4c1294ncpdt-8-pins-blinky-with-dma/

  • Hello Guopeng,

    There is no readily available code for ADC+DMA @ 500K. What you would need to do is to take the ADC example in the examples/peripherals/adc which works at 1MSPS and then by modifying the ADCPC register configure it for 500KSPS. This will of course be interrupt based only.

    Once you have converted the example for 500K, then see the uart_dma example on how to interface the UDMA. You ay also search the E2E forum on UDMA examples.

    Regards

    Amit