Quick Links
ADC interrupt EOC flag
#2
Posted 31 August 2010 - 10:17 AM
I suffocate in a water glass.
My program enters in the ADC Interrupt but I can´t reset EOC flag. What is the matter with my code?
void ADC_IRQHandler(void)
{
IT_tick=1;
ADC1ConvertedValue = ADC1->DR; /* Dato convertido */
ADC1->SR &=~ 0x0000001F; /* DOESN´T WRITES SR */
/* ADC_ClearITPendingBit(ADC1, ADC_IT_EOC); */ /* DOESN´T WRITES SR EITHER*/
}
#4
Posted 31 August 2010 - 11:16 AM
SMT32f103VE
It seems that it is unwrittable or something like that, althought in Reference manual says that reading ADC1 DR (Data register) clears the EOC flag. I´ve tried it and I´ve tried to clear the flag directly too but I couldnt.
This post has been edited by Gerardo10: 31 August 2010 - 11:20 AM
#5
Posted 31 August 2010 - 11:38 AM
One thing you can try is to post your question on the STM32 forum:
https://my.st.com/public/STe2ecommunities/m...2/AllItems.aspx
Hope this helps.
regards,
Joseph














