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.

TMS570LS0714: ePWM TZ function, how to know which TZ pin are triggered?

Part Number: TMS570LS0714

Hi 

In ePWM TZ function, we use TZ1 and TZ2.  how to know which TZ pin are triggered? 

Once fault happen, what can we do to know TZ1 or TZ2 are triggered? 

Thanks!

  • Hello,
    You can use Digital Compare Submodule. Digital Compare Submodule is described in Section 17.8.9 of Technical Reference Manual.
    TZ1..3 inputs generateDigital Compare A High/Low and Digital Compare B High/Low signals (DCAH/L and DCBH/L). DCAH/L and DCBH/L can trigger events generating a trip zone interrupt. You can configure when different events are triggering interrupt.

    Best regards,
    Miro
  • Each of the nTZx pins are multiplexed with N2HET functions.
    nTZ1 is muxed with N2HET1[29],
    nTZ2 is muxed with N2HET1[27] and
    nTZ3 is muxed with N2HET1[10]

    You can read the input pin status of each of these three N2HET1 pins to identify which trip-zone input was asserted.

    Regards,
    Sunil
  • Hi Sunil,

    Due to we are not familiar with how to use pin muxed function. Is there any example code or application note that we can refer to?

    Thanks!
    PY Tsai
  • Hi,

    Refer to the I/O Multiplexing Module chapter in the TRM. This chapter shows all the multiplexed functions and their controls. Generally multiplexing is only implemented on the output functionality and the input path is broadcast to all connected modules. So when a tripzone input is driven in on nTZ3 for example, you can read the pin status by reading the input pin status of N2HET1[10].

    Regards,
    Sunil