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.

TMS320F280041C: CMPSS and EPWM Configurations

Part Number: TMS320F280041C

Objective: Multiple CMPSS modules work together in one EPWM, such as CMPSS7-->EPWM4 CBC,OST not trigger ;CMPSS3-->EPWM4 OST,CBC not trigger;

Actual: When CMPSS7 triggers EPWM4 CBC,EPWM4 OST is also triggered.But check that CMPSS3 registers are not triggered (CmpssxRegs.COMPSTS.all);

            Check the TZFLG register, where OST, CBC, DCAEVT1, DCAEVT2 are all triggered (EPwm4Regs.TZFLG);

EPWM configurations are as follows:

Please help to check whether there is any error in the above configuration and whether the configuration achieves the target function. If there is a problem with the configuration, is there any other way to achieve the target function?

  • Hello ,

    Thank you for your patience.

    I will take a look at the issue and get back to you as soon as possible.

    Regards,

    Hadi

  • Hello,

    Thank you for your patience.

    I checked your register values and found that you didn't configure DCAEVT1 and DCBEVT1 events to  provide a one-shot trip (OST)  or a cycle-by-cycle (CBC) event to the module. To configure a PWM for CBC or OST, you need to set the associated bit in TZSEL register. you can refer to Table 18-64. TZSEL Register Field Descriptions in the device Technical Reference Manual to find out which bit you should set. 

    Regards,

    Hadi