2024-09-01 05:40 AM
I am using stm32h750vbt6 for pmsm foc. I want to know if there is a way to use hrtim in center aligned mode as it would be needed for svpwm.
Right now I'm updating the duty cycle with the following settings.
Set comparator value: counter value/2 - duty/2
Reset comparator value: counter value/2 + duty/2
And I'm updating on timer update event.
Is there any suggestions or I'm doing it right?