2023-03-31 09:47 AM
Hi,
I am using ADC with external trigger mode and DMA. The external trigger is TIM1 CH1 PWM out FALLING EDGE.
I wanted to verify if the trigger instance is correctly set for which I am probing the PWM output and a GPIO that toggles inside the ADC_ConvCpltCallback() function.
I can observe the GPIO signal toggling at an instance after the PWM falling edge occurs, which is creating a doubt that the ADC is not being triggered at the right instance. However, I understand that the ADC_ConvCpltCallback() function is called when all the ADC conversions are complete.
So, I would like to know if there is way(may be an interrupt) where I can toggle a GPIO at an instance where the ADC is triggered/begins conversion?
Regards,
Tinkerer
2023-04-02 02:56 AM
Any inputs will be great help? Am I missing any additional data here?
2023-04-02 08:58 AM
Is there any possibility?