cancel
Showing results for 
Search instead for 
Did you mean: 

STM32f30 EOC flag

ArturasV
Senior
Posted on April 19, 2016 at 12:59

Hello, i have a question about ADC operation and EOC flag on stm32f30 mcu. Let'say i have a single conversion mode and i want to read 5 channels (let's also say that for some unbelievable reasons i can't use DMA for that). Now i am starting a conversion by setting the ADSTART bit in the ADC_CR register. When the first channel conversion is completed, i will get EOC flag set. And the question comes here: will second ADC channel conversion start automatically, or it will wait and start second channel conversion only after i read the ADC_DR register(which will clear EOC flag). To be more specific:

Will i loose data of converted ADC_channels, if i do something like this in the loop with delay being too big?

  1. for(i = 0; i <5; i++)
  2. {
  3. delay(x_cycles);
  4. data[i] = ADC->DR;
  5. }

#stm32f030-adc
0 REPLIES 0