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.

TMS320F28374S: can not find detailed Trip flag

Part Number: TMS320F28374S

Hi expert,

My customer is using F28374S on a project. when they testing ,they find there is occasionally a trip happens.

However, when they check the detailed Trip source, they can not find it.

by the way,they do not use TZFRC to trip.

they have checked all the flag bit in the OST flag register, since there is no find and they do not use these trips, they delete them in the final code.

I found we have other trip zone in the module.

I want to know where to find these bit? could you kindly tell me the whole register name?

BR

Emma

  • Hi,

    The subject matter expert assigned to this thread is out of office this week due to the the US holiday so you may not get a qualified answer until Tuesday or Wednesday next week.  I apologize for the delay.

    Regards,

    Himanshu

  • You have flags for:

    TZFLG

    TZCBCFLG

    TZOSTFLG

    They have all the information for your flags.

    Nima

  • Hi Nima,

    I am the guy who meet the matter.

     On my a F28374S project, there is a ocaasionally trip happen that I get it in TZFLG[OST].

    But, when I check the detail tip source in TZOSTFLG, I find nothing in all bits.

    In addition, I do not use CBC function and TZFRC to trip.

    As Emma said, could some other reasions to set the TZFLG[OST] flag? where to find the tip source bit?

    I am absolutlly sure can't find in TZCBCFLG and TZOSTFLG.

    BR

    Kim

  • Okay so TZFLG[OST] is set but the TZOSTFLG, TZCBCFLG are all ZEROs. Let me look i'll respond shortly.

    Nima

  • TZFLG[OST] is only set from the following signals:

    TZFRC[OSHT],

    TZ1 to TZ6, (IF ENABLED)

    DCAEVT1 (IF ENABLED)

    DCBEVT1 (IF ENABLED)

    They get enabled by TZSEL.

    TZOSTFLG is what has the status of all of the signals above.

    This register will have the flag of whether the signals are set or not.

    The only explanation is you could be clearing the TZOSTFLG register using the TZOSTCLR register before reading it.

    "when a one-shot trip event occurs, the one-shot trip event flag (TZFLG[OST]) is set and a EPWMx_TZINT interrupt is generated if it is enabled in the TZEINT register and PIE peripheral. A corresponding flag for the event that caused the OST event is also set in register TZOSTFLG. The one-shot trip condition must be cleared manually by writing to the TZCLR[OST] bit. If desired, TZOSTFLG register bit should be cleared by manually writing to the corresponding bit in the TZOSTCLR register"

    Nima