ADC interrupt EOC flag
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?
ADC1ConvertedValue = ADC1->DR; /* Dato convertido */
ADC1->SR &=~ 0x0000001F; /* DOESN´T WRITES SR */
/* ADC_ClearITPendingBit(ADC1, ADC_IT_EOC); */ /* DOESN´T WRITES SR EITHER*/
Posted 31 August 2010 - 11:16 AM
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
Posted 31 August 2010 - 11:38 AM
One thing you can try is to post your question on the STM32 forum:
Hope this helps.
Posted 31 August 2010 - 12:01 PM