cancel
Showing results for 
Search instead for 
Did you mean: 

ADC in continuous mode

beatle7
Associate
Posted on October 08, 2012 at 16:07

Hello!

I have a couple of questions on using ADC module in continuous mode.

1. Is there any possibility to stop ADC conversions with timer, kind of timer clock gating mode?

2. Now I use timer ISR in a following way. Is it safe enough?

ADC1->CR2 &= ~ADC_CR2_CONT;

while(!(ADC1->SR & ADC_SR_EOC));

ADC1->SR &= ~ADC_SR_EOC;

Best regards, Ivan.

1 REPLY 1
raptorhal2
Lead
Posted on October 08, 2012 at 16:54

EOC is set/reset by the ADC. Disabling the ADC should work.

Cheers, Hal