Login

Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.

ARM Community: ADC interrupt - ARM Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

ADC interrupt EOC flag Rate Topic: -----

#2 User is offline   Gerardo10 

  • Member
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 26-August 10

Posted 31 August 2010 - 10:17 AM

Hello guys

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*/


}
0

#3 User is offline   Joseph Yiu 

  • Regular Contributor
  • PipPipPip
  • Group: Members.
  • Posts: 217
  • Joined: 01-March 10

Posted 31 August 2010 - 11:02 AM

Which microcontroller?
0

#4 User is offline   Gerardo10 

  • Member
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 26-August 10

Posted 31 August 2010 - 11:16 AM

Oh sorry, i´ve forgotten to type it.

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

0

#5 User is offline   Joseph Yiu 

  • Regular Contributor
  • PipPipPip
  • Group: Members.
  • Posts: 217
  • Joined: 01-March 10

Posted 31 August 2010 - 11:38 AM

I haven't use the ADC in STM32 so can't give you an answer.
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
0

#6 User is offline   Gerardo10 

  • Member
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 26-August 10

Posted 31 August 2010 - 12:01 PM

I´ve done it hehehe :lol:

https://my.st.com/public/STe2ecommunities/m...currentviews=20
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic