cancel
Showing results for 
Search instead for 
Did you mean: 

Additional ADC1 interrupts

wfd
Associate II
Posted on October 07, 2016 at 16:29

In terms of number of interrupts, the STM32F302 has what appears to be one interrupt for Analog conversions, the �ADC1_IRQn�.  Can that be changed? I was thinking that optimally I would like one interrupt for starting the ADC conversions and then one more for the completion of the interrupts.  Do I have to use the ADC1_IRQn interrupt and follow the entire ADC conversion from start to the finishing point where it writes the data to the struct we have created from the JSQR1-4 registers?

Thanks!

#nucleo #stm32f302
1 REPLY 1
Posted on October 07, 2016 at 17:34

If you are sampling multiple channels, then use the DMA TC interrupt to indicate once they are all completed. Don't use the ADC EOC interrupt.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..