AnsweredAssumed Answered

DMA transfer from ADC to array in memory

Question asked by ra.ho on Dec 13, 2011
Latest reply on Dec 20, 2011 by ra.ho
Hello there,

I'd like to set up an ADC and DMA so that converted data is directly written into an array in memory.
I modified the ADC3_DMA example but it doesn't work correctly.
I replaced "ADC3ConvertedValue" by an array, set DMA_InitStructure.DMA_BufferSize to the array length and enabled DMA_MemoryInc.

The values in the array are correct only for very low frequency signals. It is like they were sampled at approximately 160Hz.

How should I set up ADC and DMA in order to get the transfer working correctly? (I need to sample 4 signals at 100kHz each using 1 or 2 ADCs)
Does anyone have an example using the DMA to write to an array?