This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F2800137: EPWM don't working well

Part Number: TMS320F2800137

Hi,

Im working with EPWM1 on my board, Up count mode and the following AQ:


And when CMPB is between 290-300 counts I received faulty signal on EPWMB on the output


Blue - epwmA ; Green - epwmB
As you can see, every several cycles, there is a faulty cycle.

Any ideas why?
When 300 < CMPB <  290 This phenomena doesn't happen and epwm working well.

Thanks!
Michael

  • Hi Michael,

    Are you using any dead band or updating your variables inside a control loop of some sort? 

    Have all you've done was configure TBPRD = 600, CMPA = 49, and CMPB = 293, with AQ events as stated in your configuration?

    I'm not sure why there is a missing AQ event on CMPB Up, unless the CMPB value changed during that time. What is your shadow load settings for CMP registers? If you're using immediate mode or switching between loading settings, this may cause the issue you're seeing.

    Best,

    Ryan Ma