2022-10-31 03:20 PM
2022-10-31 06:24 PM
Take a timer with at least 3 channels.
How many steps for duty cycle will be the minimum overflow period. Say 100 for 1% increment. Set Timer clock x 100 to be the desired frequency, then set each channel compare to the desired duty cycle and activate the pwm generation.
2022-11-01 03:40 AM
But I want to make a phase shift from the other two PWM that are 50% duty cycle and complementary one with each other. I want to vary the first PWM independent from the other and want to phase shift. I don´t know how to put this in code to change the value of phase shift.