cancel
Showing results for 
Search instead for 
Did you mean: 

Triggerring DMA on timer event for data logging

krunal2
Associate
Posted on June 12, 2015 at 14:25

Hello,

I am trying to find solution for ADC (single channel) data logging at every 1 uSec using DMA. And DMA should inform CPU after 100 reading i.e after 100usec so that I can process these 100 reading at every 100usec. I am not able to use simple 1usec timer for this task because it will consume almost all processing time.

What I have done is as below.

I used DMA2_Stream0 channel2 for ADC reg-> ADCDataBuffer and 

DMA2_Stream1 channel-6 with TIM1 for ADCDataBuffer -> DSTBuffer

I have tried using DMA2_Stream1 and TIM1 but it is updating DSTBuffer(100 reading) in 1 usec instead of 100usec. So how to configure DMA which increment destination address at every 1usec and inform after 100usec

It would be really helpful if you can provide any suggestion or examples guide for this.

Thanks in advance!

#stm32f407-adc-tim-dma
1 REPLY 1