Hi expert,
I am helping customer coding with F280025, when testing PWM sync function, I met a abnormal thing.
Here is the sync setting code:
EPWM1Regs.EPWMSYNCOUTEN.bit.ZEROEN =1; EPWM2Regs.EPWMSYNCINSEL.bit.SEL=1;
For PWM clock, it is 100MHz.
- In the 1st test
For PWM1- 6KHz- updown mode, period = 8333;
For PWM2- 5KHz- updown mode, period = 10000;
For both, CMPA =2500, set the PWM on CAU, clear the PWM on CAD.
But during the test, there is only PWM1 and PWM1 is missing(always low)
- In the 2nd test
We changed the frequences for PWM1 and PWM2.
PWM1 - Period =10000;
PWM2 - Period =8333;
This time, PWM1 and PWM2 are all 5KHz.
- In the 3rd test
We keep the frequences.
For PWM1- 6KHz- updown mode, period = 8333;
For PWM2- 5KHz- updown mode, period = 10000;
For both, set the PWM on ZRO, clear the PWM on PRD.
This time, PWM1 and PWM2 are all 6KHz, and the rising edge are aligned.
I just want to know , why in the 1st test, the PWM1 wave is missing?
since my customer needs to use the first testing wave patten.
BR
Emma