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
Hello @B.Kaya,
First let me thank you for posting and welcome to the ST Community.
I advise you to consult this Post. It explains how to configure an STM32 Timer to trigger ADC conversions.
Thanks.
Mahmoud.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-11-27 12:27 AM
Hello @B.Kaya,
First let me thank you for posting and welcome to the ST Community.
I advise you to consult this Post. It explains how to configure an STM32 Timer to trigger ADC conversions.
Thanks.
Mahmoud.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.