AnsweredAssumed Answered

STM32L1xx ADC EOC when using DMA

Question asked by Mr_M_from_G on Jul 20, 2016
Latest reply on Jul 26, 2016 by Clive One
Hello,

I use STM32L1xx ADC in scan mode with DMA with these settings:
ADC_CR1_SCAN set
ADC_CR2_CONT cleared
ADC_CR2_DDS and ADC_CR2_DMA set
ADC_CR2_EOCS cleared
I scan 4 channels after trigerering with ADC_CR2_SWSTART. Next scan is also started by just setting ADC_CR2_SWSTART.
Should I get ADC_SR_EOC set after the last conversion of the scan is done and data are stored in memory? For me it remains cleared. How else can I determine end of scan?

Thanks

Martin

Outcomes