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 wh...