2012-10-08 07:07 AM
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.2012-10-08 07:54 AM
EOC is set/reset by the ADC. Disabling the ADC should work.
Cheers, Hal