For boards with STM32G431, the ADC2 is used for fast current measurement, synchronized with the half bridge switching PWM. With this change, the ADC2 is triggered in the center of high-side MOSFET ON signal using a second PWM output of TIM1.
For boards with STM32G431, the ADC2 is used for fast current measurement, synchronized with the half bridge switching PWM. With this change, the ADC2 is triggered in the center of high-side MOSFET ON signal using a second PWM output of TIM1.