2013-03-21 03:29 PM
hi all,
please i need help. I have to generate 2 signals PWM like this:I think that we should insert a dead time. How to do it plz?2013-03-21 04:14 PM
Set up two timers, with 50/50 duty, and frequency you want. Program the 90 degree phase difference via the CNT register of one timer with respect to the other.
2013-03-22 03:07 AM
Thx Clive, i'll try it
2013-03-22 04:50 AM
2013-03-22 06:25 AM
If
TIM_TimeBaseStructure.TIM_Period = 300 - 1; For Duty TIM_OCInitStructure.TIM_Pulse = 300 / 2; // 50% for duty For Phase Delta in CNT for one timer vs other will be 75, ie 300 / 4 for 25% or 90 degree phase shift