Question
STM32 PWM Duty Cycle Setting.
Hello,
In my motor control project, I'm reading potentiometer value and set it as a duty cycle value. Initially I'm using "htim1.Instance->CCR1 = 50;" this function for pwm. but this is not giving correct phase voltage. Can anyone please tell me which is better way to to set pwm duty cycle.
and difference between htim1.Instance->CCR1 = 0; and TIM1->CCR1 = 50 command.
Thanks
