ADC - Continuous mode stops after one conversion
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2013-07-19 4:16 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2013-07-24 6:02 AM
Posted on July 24, 2013 at 15:02
Now fixed. The following line was missing:
ADC_CommonInitStruct.ADC_TwoSamplingDelay = ADC_TwoSamplingDelay_5Cycles;