I am usinng STM32H7 nucleo board. I want to generate 20KHz pwm wave. How can I control the resolution (that is a value from 0-10000 that corresponds to 0-100%)?
So I adjusted the ARR and Prescalar values to adjust the pwm frequency(20KHz). Timer Clock is 200MHz
I want to change the resolution in the run time with a function. How can I change it?
Changing the ARR value will change the resolution?
Thanks in advance