Skip to main content
Zain
Associate III
September 1, 2024
Question

Stm32h750vbt6 hrtim center aligned mode

  • September 1, 2024
  • 5 replies
  • 1660 views

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
September 3, 2024

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
September 4, 2024

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
September 4, 2024

Hello, 

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

 

Best regards.