Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed the week of November 23.

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.

TMS320F280023: Confirmation regarding flag clearing with CMPSS2

Part Number: TMS320F280023

Hi,

Thank you for sharing your findings.

Hi Daniel,

You are describing what we have discovered PZ silicon x39c appears to be undocumented ePWM errata. Can you check the suffix on the MCU, the typical driverlib commands will Not clear these TZOST flags once they have been set. Yet there is a work around for DCA1, DCB1 flags can be cleared, it's not the TZOST flags in this case rather the DACA1, DACB1 remain tripped making CCS debug almost impossible to determine the cause!

This issue has been resolved in this post link below and later discovered CMPSS1 is completely unrespecting of clearing latched or filter events. They remain set unless the DACVALL trip level is set very high in the inverted output. Seemingly calibration might help but it was simply easier to switch CMPSS2. We purchased two from TI store (LaunchXL-39c) sent with PZ silicon, both MCU have the same issue. For some reason this group refuses to be honest in the errata document to tell developers PZ silicon means TI experimental MCU class to avoid placing in production boards. TI should pull these devices off the store shelf or at the very least update the errata documents along with many other datasheets with latest information!

Just to confirm: after switching from CMPSS1 to CMPSS2, can the corresponding latched CMPSS and digital-filter event flags be cleared normally using the DriverLib commands?

Also, does using CMPSS2 allow the DCA1/DCB1 and TZOST flags to be cleared without having to temporarily set the DACVALL trip threshold to a very high value?

Could you please confirm exactly which flags can be reset reliably when using CMPSS2 and which DriverLib commands you use to clear them?

Best regards,
Manuel

  • Hi Manuel,

    The following flags can be cleared reliably with CMPSS2 using standard DriverLib:

    Flag Type Register DriverLib Command
    One-Shot Trip (OST) TZFLG EPWM_clearTripZoneFlag(base, EPWM_TZ_FLAG_OST)
    DCAEVT1 TZFLG / TZOSTFLG EPWM_clearTripZoneFlag(base, EPWM_TZ_FLAG_DCAEVT1) + EPWM_clearOneShotTripZoneFlag(base, EPWM_TZ_OST_FLAG_DCAEVT1)
    DCBEVT1 TZFLG / TZOSTFLG EPWM_clearTripZoneFlag(base, EPWM_TZ_FLAG_DCBEVT1) + EPWM_clearOneShotTripZoneFlag(base, EPWM_TZ_OST_FLAG_DCBEVT1)
    TZ Interrupt TZFLG EPWM_clearTripZoneFlag(base, EPWM_TZ_INTERRUPT)

    Recommended Clearing Sequence

    Per TI's reference implementation 2, the proper sequence is:

    1. Wait for the CMPSS CTRIP signal to de-assert before clearing flags:
      while((CMPSS_getStatus(myCMPSS_BASE) & CMPSS_STS_HI_FILTOUT) != 0U) {}
    2. Then clear the trip flags:
      EPWM_clearTripZoneFlag(myEPWM_BASE, EPWM_TZ_INTERRUPT | EPWM_TZ_FLAG_OST | EPWM_TZ_FLAG_DCAEVT1);

    No DACVALL manipulation should be necessary with CMPSS2—the comparator condition simply needs to resolve (input drops below threshold) before the flags will stay cleared 2.

    • If CMPSS_clearFilterLatchStatus() is needed for the CMPSS digital filter latch, it should also function normally with CMPSS2.


    1. TMS320F280023: ePWM Trip Zone Flags are not being cleared - E2E Forum
    2. C2000 Lab System Design - Trip Zone with CMPSS
    Best Regards,
    Zackary Fleenor