2023-11-26 10:26 PM - edited 2023-11-26 11:54 PM
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.
Solved! Go to Solution.
2023-11-27 12:27 AM
2023-11-27 12:27 AM