AnsweredAssumed Answered

Single ADC/DMA multi-channel setup

Question asked by John Hite on Feb 28, 2017
Latest reply on Feb 28, 2017 by Clive One

Device: STM32F437

 

The code I am working on was setup to use interleaving but after doing some reading I get the impression that interleaving is only for multiple ADCs and we are using 2 channels on ADC3. So it seems we should use ADC_Mode_Independent. It is still not working and at least 3 questions come to mind.

 

Is interleaving only for multiple DMAs?

 

Can ADC_RegularChannelConfig() be used in non-interleaved mode? I changed .ADC_Mode to ADC_Mode_Independent but the data still seems interleaved.

 

We are using 2 channels on ADC3 with DMA interrupts but there is only one interrupt for DMA2 stream 0. When will the interrupt occur, after one channel is transferred or both? Is this the purpose of ADC_DMARequestAfterLastTransferCmd()?

 

Thanks,

JH

Outcomes