How to configure single PWM block two times in .vsm file ?

I have an application where one PWM block needs to be configured in .vsm file two times so that I can generate a specific required PWM pattern. I have attached a pic of the PWM pattern I am trying to generate.
For our appplication, hardware requirements are, At start >> all TOP & BOT switches of inverter should be OFF. STEP1 >> When programe played in EMBED, PWM Signal for TOP & BOT switches is D=0. then User will provide input to start step2 STEP2 >> PWM Signal for BOT Switches is D=1 for time 't1' and D=0 after time 't1', during this opertation TOP switches PWM will remain D=0 then User will provide input to start step3 STEP3 >> ALL TOP switches PWM signal is D=0 and BOT switches PWM signal is D=1. then User will provide input to start step4 STEP4 >> Fixed duty cycle D=0.5 to TOP & BOT switches with both PWM are opposite to each other. { D=Turn ON Duty cycle }
But when I am trying to change the setting of EPWM block in one of the two places where I have used I get an error.
Waiting for reply.
Best Answer
-
Hi Chirag,
Kindly click on the PWM config block and go to fault handling setting and make EPWM1A to Lo and EPWM1B to hi and add enable pin and give the 1m sec delay out side the PWM block and assign variable as first pass .
Please find the attached PWM example module for your reference.
Thanks,
Chandru
0
Answers
-
Hi Chirag,
Could you please attach the vsm file ?
--sreeram
0 -
Hi Chirag,
Kindly click on the PWM config block and go to fault handling setting and make EPWM1A to Lo and EPWM1B to hi and add enable pin and give the 1m sec delay out side the PWM block and assign variable as first pass .
Please find the attached PWM example module for your reference.
Thanks,
Chandru
0 -
Chandra Kumar Manavalan said:
Hi Chirag,
Kindly click on the PWM config block and go to fault handling setting and make EPWM1A to Lo and EPWM1B to hi and add enable pin and give the 1m sec delay out side the PWM block and assign variable as first pass .
Please find the attached PWM example module for your reference.
Thanks,
Chandru
Thanks, Chandru I was able to solve the problem.
0