Hi:
I list some codes in my programme as below:
"
EWALLOW;
EPwm1Regs.CPMA.half.CMPA = u16_TempDuty1;//---Line1
EPwm1Regs.CPMB = u16_TempDuty2;//---Line2
EDIS;
"
Other ISR will happen between line1 and line2.
By coincidence PWM counter reaches at zero or period during this ISR, the compare value of PWM1_A will be loaded and the value of PWM1_B still remains unchanged.
As a result, PWM_A and PWM_B pulses will probably be ON simultaneously----It is too dangerous.
Unfortunately, I can not set PWM1_A and PWM1_B to be DB(Dead Beat) mode in the programme.
So, my question is:
Line1 and Line2 can be set to be parallel-processing mode?
so, the compare register of PWM1_A and PWM1_B will be loaded at the same time. The ON simultaneous phenomenon between A and B will not happen.
Would you like to give me some advices?
Thank you for your help.