Advanced Pulse Width Modulation (TIM1 PWM)
Timer 1 (TIM1) is an advance timer and so the PWMs generated by it have several additional features
that are not available with other timers. For example, it is possible to generate complimentary PWMs
with TIM1. Up to three sets of complementary PWMs can be generated. Such PWMs are useful in
designing three phase inverters, rectifiers and other power-related tasks. TIM1 PWMs are also very
useful for motor control applications. It is also possible to add dead-time and brake. Apart from these
TIM1 can also generate PWMs just like GP timers. In this mode however, complimentary PWM outputs
are unavailable and up to four independent PWM channels can be made available.
In this example, I have demonstrated how to create complementary PWMs in TIM1 PWM channel 1.
Hardware Connection