How do i check a flag bit inside a conditional statement without using HAL?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-07-06 7:19 AM
Im using the ADC of an STM32F031K6 without using HAL. As im using discontinuous mode, I need to check the EOC bit to see if each conversion has finished, if yes store the data and start the next conversion. How do I write an 'if' statement that will check the EOC bit inside the ISR register, without using HAL?
Labels:
- Labels:
-
ADC
-
STM32F0 Series
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
2020-07-06 8:48 AM
Maybe
if ((ADC1->ISR) & ADC_ISR_EOC) ...
