cancel
Showing results for 
Search instead for 
Did you mean: 

How do i check a flag bit inside a conditional statement without using HAL?

deep_rune
Associate III

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?

1 REPLY 1
Mike_ST
ST Employee

Maybe

if ((ADC1->ISR) & ADC_ISR_EOC) ...