EOC not set when attempting to manually read ADC
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2010-09-23 2:09 AM
Posted on September 23, 2010 at 11:09
EOC not set when attempting to manually read ADC
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2011-05-17 5:08 AM
Posted on May 17, 2011 at 14:08
Strange:
I first change these things:Instead of using ADC_SoftwareStartConvCmd(ADC1, ENABLE);
I changed code to: ADC1->SR = ~(u32)ADC_FLAG_EOC; ADC1->CR2 |= 0x1; // ADC Messung starten and there this: // Wait until conversion completion //while(ADC_GetFlagStatus(ADC1, ADC_FLAG_EOC) == RESET); // while(ADC1->SR & ADC_FLAG_EOC == 0); Then this seemed to work, it got through the loop... But I changed back the code to the lib functions, and now that works, too, like from what I remember to have been the case yesterday! (I did clear target, build all, and manually uploaded to device, just to be sure!) This is rather odd.