2020-07-06 07: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?
2020-07-06 08:48 AM
Maybe
if ((ADC1->ISR) & ADC_ISR_EOC) ...