Dears
We have problem about using the ECAP as APWM output
1. We using the ECAP to drive the IGBT in APWM mode, tECAP is synchronous with the EPWM( EPWM is used to drive other IGBT)
2. Want to change the CTRPHS while working , and the duty is not 0
3. Turn out that if I do that , there will be a wrong duty output , for example ,
a. CAP1(PWM period) is 3750 , if CTRPHS change from 2500 to 500, while the CAP2 is 2400(duty 36% )
b. if the TSCTR=2400, output become high , the if the TSCTR =2500, the CTRPHS(which was 500) was loaded to the TSCTR, that means , TSCTR recount from 500
c. after TSCTR = CAP1, output become low,
d, So the output duty indeed large more than 36%, which could be 89%((3750-2400+2000)/3750), that is dangerous and unacceptable
So
A. Did the ECAP have some register like EPwmxRegs.AQCSFRC in EPWM , that I could set the APWM output high or low ?If Yes , I could set the APWM low while I change the CTRPHS
B. Could I set the CTRPHS load when the TSCTR =CAP1 ?
C. Besides two above ,any solutions to solve this peoblem ?
Thans very mucn for hep!