2022-09-24 11:49 PM
Hello
I am familiar with STM32. I have a simple project with CubeMX
One ADC reads 3 channels, continuousmade disable , DMA active.
I turn everything on and start the first ADC conversion with a function
HAL_ADC_Start_DMA.
My questions
Thanks you
Solved! Go to Solution.
2022-09-25 12:23 AM
Typically you would start the conversion in timer interrupt routine. This is also a convenient place to handle the results of a previous conversion, before starting the new one. Another possibility is to use hardware triger via timer for starting the conversion and handling the results in DMA channel interupt. Alternatively, without DMA interrupt, you may test the DMA transfer complete flag.
2022-09-25 12:23 AM
Typically you would start the conversion in timer interrupt routine. This is also a convenient place to handle the results of a previous conversion, before starting the new one. Another possibility is to use hardware triger via timer for starting the conversion and handling the results in DMA channel interupt. Alternatively, without DMA interrupt, you may test the DMA transfer complete flag.