cancel
Showing results for 
Search instead for 
Did you mean: 

ADC - Continuous mode stops after one conversion

s_
Associate III
Posted on July 19, 2013 at 13:16

I am trying to use the ADC to convert continuously, but I am getting only one conversion each time I start the ADC ???

I am trying to use the ADC in 'analog watchdog' mode, monitoring a single regular channel (channel 9).

CR1=0x00800249, CR2=0x00000003

The CR2.CONT bit is set, but I only seem to get one conversion (DR, SR updated) each time I set CR2.SWSTART

Any suggestions where I'm going wrong ?
1 REPLY 1
s_
Associate III
Posted on July 24, 2013 at 15:02

Now fixed. The following line was missing:

ADC_CommonInitStruct.ADC_TwoSamplingDelay = ADC_TwoSamplingDelay_5Cycles;