Skip to main content
Javier1
Principal
February 7, 2025
Solved

HRTIM changing values of Compare register doesnt do anything

  • February 7, 2025
  • 1 reply
  • 1234 views

Using stm32G474RE nucleo board and following this guide, i know my way around old "advanced" Timers from stm, im just getting started with HRTIM

Changing PER register has effect in the PWM frecuency, but changing CMP1 doesnt do anything :(

Javier1_0-1738937828106.png

Im not able to change the duty cycle of the PWM , it remains 50% for any Compare register value

 

Javier1_2-1738938038099.png

 

 

My cubeMx setup is 

Javier1_3-1738938089315.pngJavier1_4-1738938110806.png

 

 

This topic has been closed for replies.
Best answer by Javier1

Turns out im using centered mode instead of upcounting, so i shouldnt use any Active Set sources

Javier1_0-1738939879116.png

 

1 reply

Javier1
Javier1AuthorBest answer
Principal
February 7, 2025

Turns out im using centered mode instead of upcounting, so i shouldnt use any Active Set sources

Javier1_0-1738939879116.png

 

hit me up in https://www.linkedin.com/in/javiermuñoz/