Associate II
January 28, 2019
Question
Implementing phase shifted PWM on STM32F302R8 with asymmetric PWM module.
- January 28, 2019
- 7 replies
- 5086 views
Hello,
Iam trying to implement a phase shifted 4 channel PWM on STM32F302R8 .The PWM signals should look like the first picture. I use CH and CHN complementary PWM generation with deadtime insertion. PWM mode ist asymmetric PWM Mode 1 for both channels.. But I cant create an overlap of channel 1 and 3. Turn on time of all pwms should be equal I just want to adjust the phase shift. Right now PWM looks like the second picture. I use the following compare values:
TIM1->CCR1 = 0
TIM1->CCR2 = 800
TIM1->CCR3 = 500
TIM1->CCR4 = 300
thanks!