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.

TMS320F28P650DK: EQEP watchdog

Part Number: TMS320F28P650DK

Tool/software:

Hi champs,

I am asking this for our customer.

The user is trying to implement break detection.

In TRM,

23.7 eQEP Watchdog

Q1: The input of EQEP watchdog is QCLK.

Does QCLK mean any pulse from EQEPx_A and EQEPx_B?

If only EQEPx_A or EQEPx_B breaks (disappears), is there still QCLK to reset EQEP watchdog?

For example, if EQEPx_A breaks but EQEPx_B works, what happens?

Q2: Index and strobe are independent of eQEP Watchdog. Is it right?

Q3: Do you have any comment if the user uses eQEP Watchdog for EQEPx_A and EQEPx_B break detection? Or should they use another two ECAP to detect EQEPx_A and EQEPx_B, respectively?

  • Hi Wayne,

    A1: QCLK refers to the internal quadrature clock signal generated by the eQEP module from the EQEPxA and EQEPxB inputs. It is not any individual pulse from EQEPxA or EQEPxB unless configured to be in this way. QCLK can be sourced though from EQEPA if needed, and QDIR will be selected either from EQEPB, 1, or 0.

    If either EQEPxA or EQEPxB disappears, there will still be transitions on QCLK as long as the other signal is present. . If no quadrature clock event (QCLK) is detected until a period match (QWDPRD = QWDTMR), then the watchdog timer times out and the watchdog interrupt flag is set (QFLG[WTO])

    A2: Yes, your understanding is correct. The index and strobe inputs are independent of the eQEP watchdog. The watchdog is specifically monitoring the QCLK signal derived from QDECCTL.QSRC settings.

    A3: Using the eQEP watchdog for detecting a break in EQEPxA and EQEPxB signals is a reasonable approach. However, it has some limitations:

    - The watchdog will only detect if both signals disappear, but not if only one signal breaks unless you're only monitoring QEPA as the source for QCLK and not the output of the Quadrature decoder.
    - The watchdog timeout period needs to be set appropriately to avoid false triggering during normal operation.

    Using two separate ECAP modules, one for monitoring EQEPxA and another for EQEPxB, can provide more comprehensive break detection. This approach can detect if either signal disappears independently, giving you more granular information about the failure.

    However, using ECAP modules for this purpose may require additional configuration and processing compared to the eQEP watchdog.

    Ultimately, the choice between using the eQEP watchdog or dedicated ECAP modules for break detection will depend on your specific requirements, such as the level of granularity needed, the available resources on your device, and the complexity you are willing to introduce.
    Best,

    Ryan Ma