ADC Triggered by Timer
Hello Team,
In my application using STM32G431KCU6 at 160MHz, I want to trigger ADC2 channel by TIM1 channel.
I aim to read ADC value synchronously with 1.1kHz pwm signal. When I set up the CubeMX config, i can see that TIM1 trigger OutputCompareCallback function but i can not trigger ADC_ConvCpltCallback. Shared my ADC and TIM1 configuration below:





Also I am confused about starting ADC on software because ADC is not continuous conversion mode. Should i start and stop ADC as below or any suggest?

My finalize code as below:

Thanks for your help.
Best Regards,
Basri.