That's correct. Making sure they add to 50 keeps the proper ratio for setting the PWM frequency. If you look closer in the code, the speed_pos and speed_neg values are put into delay functions. This is what creates the high spots and low spots and for how long in the PWM signal.
Search found 1 match
Search found 1 match • Page 1 of 1