Skip to main content
Javier1
Principal
Feb 7, 2025 2:22 PM UTC
Solved

HRTIM changing values of Compare register doesnt do anything

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.
Javier1
Javier1Best answer
Principal
Feb 7, 2025 2:51 PM UTC

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/

1 reply

Javier1
Javier1AuthorBest answer
Principal
Feb 7, 2025 2:51 PM UTC

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/