Skip to main content
Zain
Associate III
Sep 1, 2024 12:40 PM UTC
Question

Stm32h750vbt6 hrtim center aligned mode

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?

 

This topic has been closed for replies.

5 replies

ST_Sophia
ST Employee
Sep 3, 2024 1:40 PM UTC

Hello, 

The HRTIMER counters can operate in Up‐Down counting. This mode presents advantages for fixed switching frequency power converters. The HRTIM is natively designed with up-counters. It offers however an operating mode with up-down counters, also called center-aligned mode.

You can configure it by STM32CubeMx: "Up Down Mode",

 

Best regards.

Zain
ZainAuthor
Associate III
Sep 4, 2024 5:15 AM UTC

I am using stm32h750vbt6, does this mcu has center aligned mode in hrtim because i dont see any option in stm32cubemx for it.

Zain_0-1725426893807.png

 

ST_Sophia
ST Employee
Sep 4, 2024 6:43 AM UTC

Hello, 

Yes indeed, this feature is available for STM32G4 chip which contains an Hrtim version different from the one in h7.

 

Best regards.