cancel
Showing results for 
Search instead for 
Did you mean: 

HRTIM changing values of Compare register doesnt do anything

Javier1
Principal

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

 

 

Available for consulting/freelancing , hit me up in https://github.com/javiBajoCero
1 ACCEPTED SOLUTION

Accepted Solutions
Javier1
Principal

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

Javier1_0-1738939879116.png

 

Available for consulting/freelancing , hit me up in https://github.com/javiBajoCero

View solution in original post

1 REPLY 1
Javier1
Principal

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

Javier1_0-1738939879116.png

 

Available for consulting/freelancing , hit me up in https://github.com/javiBajoCero