AnsweredAssumed Answered

ADC DMA

Question asked by Pascal Schroeer on Jun 25, 2014
Latest reply on Jun 30, 2014 by Mark Butcher

Hi at all,

 

At the moment, I'm writing the last things of my application for my bachelor thesis. For this project

I need to measure every 200us the internal adc. Then I store the measured values into a ringbuffer

and try to send them out to the UART. Well, this application works! But without the use of DMA.

 

In this project I have got a FTM timer which generates every 200us an interrupt request. Now I

start the adc and wait for the adc complete interrupt. If this interrupt fires, I write the data into the

ringbuffer and send them to the UART.

 

I think this is a typical application for dma use or? So I have tried to implement it, but it doesen't

work. I have tried to implement some code examples of the community but it doesn't work too.

Can anyone explain what to do and in which order? or does anyone has got an example code for

this specific case?! I use a MK10DX128VLH7 cpu.

 

Thanks a lot!

 

Pascal

Outcomes