Can we latch encoder timer synchronized current measurement? (STM32H5)
Dear All,
I am developing a motor control system(FOC) with STM32H5.
In the FOC process, while completing the ADC conversion for current measurement, it enters the ADC interrupt, where I read the TIM2 counter(for Encoder interface) to obtain rotor angle information.
What I’m considering is that since the motor is rotating, reading the TIM2 value after ADC converts(current measurement) may not ensure that they are synchronized (althought the time difference is minimal).
Does STM32H5 have any features that can trigger TIM2 to latch the counter simultaneously when sampling the current?
Best Regards,
