2015-08-06 05:24 AM
Hello!
I configured the ADC with DMA to fill a table in RAM. AfterADC_StartConversion (ADC1);
I use
while (!DMA_GetFlagStatus (DMA1_FLAG_TC1)) ;
until the DMA is full. This works fine for one complete transfer. But now I want to do the same again. How can I reset the DMA to overwrite the table with new ADC data?
Thanks!
2015-08-06 05:59 AM
If you're configuring the DMA in Normal mode, the very least you'll need to do is reconfigure the DMA again before starting the ADC.
2015-08-06 07:26 AM
Hi weilguni.michael.001,
You can also configure the DMA in circular mode. -Shahrazad-