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.

Need help on ADC + DMA sampling

Other Parts Discussed in Thread: HALCOGEN, TMS570LC4357

Hi,

I'm working on a project where I'd like to sample many ADC channels (about 20) continuously and store all samples in a buffer. Then, after all samples have been collected, trigger an interrupt and process the samples (basically do averaging and pass the data on).

How can I use/configure both ADC and DMA modules to achieve this. Halcogen does not provide any DMA configuration options and I can't find any project or code examples. I think this is a common use case so I believe someone has already done this before.

It would be great to see a working example for the above application (continuous sampling, store in buffer etc)

Thanks a lot

Kevin

  • Unfortunately we are not able to create examples for every use case. Did you look at the "example_sci_dma" in HALCoGen? It shows how to setup DMA channels. You did not mention which device you are using. If it is a cache based device (TMS570LC4357 or RM57..) then there are some additional considerations.