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.

TM4C1294NCPDT: TM4C1294NCPDT: ADC with DMA configuration example not working

Part Number: TM4C1294NCPDT
Other Parts Discussed in Thread: EK-TM4C1294XL

Tool/software:

regarding an earlier question "CCS/TM4C1294NCPDT: ADC with DMA configuration" and answer from 

Bob Crosby including an example he attached:

Here is a sample program that might help you. It uses the timer to trigger the ADC conversions, but then uses the uDMA in ping-pong mode to collect the data. Use the "File"->"Import" feature of Code Composer to import this project into your workspace.

/cfs-file/__key/communityserver-discussions-components-files/908/3125.ADCwDMA.zip

I downloaded it and set it up, I see after 3 seconds or so the data getting to the 2 ping pong buffers but then no interrupt happens especially the ADC_handler - that reinitiates the DMA - I could not get it to happen.

what is missing?

Another question is, can I get the DMA to work constantly (with chain DMA ?) without the CPU restarting it?

Regards

Maccabi

  • Hi,

      There is an updated version of ADC with DMA in the TivaWare SDK. You can find the example at C:\ti\TivaWare_C_Series-2.2.0.295\examples\boards\ek-tm4c1294xl\adc_udma_pingpong. This example will continue to run. You can open a terminal to see the ongoing ADC results like below screenshot.