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.

TMS320F280049C: eQEP encoder channel A and channel B missing detection

Part Number: TMS320F280049C
Other Parts Discussed in Thread: C2000WARE
Hello,
I need to implement error detection in case of eQEP channel A or B is missing while running the motor.
Can you provide me with the examples?
  • Hi,

    If you are in Quadrature Decoder Mode and either eQEPA or eQEPB signal is missing QCLK will not be generated as a result QPOSCNT will not increment.

    Do you want to check these signals missing during initialization or run time?

    If it is during initialization, you can monitor QPOSCNT continuously to see if it increments or not.

    During run time if you are suspecting if one of the signal goes missing, then that will be a part of your code, where you turn on the Unit timer and expect the QPOSCNT to overflow before the timer runs out. If the QPOSCNT does not increment it will not generate overflow flag, and Unit time out will happen prior which will tell you if QPOSCNT is incrementing or not.

    You can refer eqep_ex1_freq_cal.c example inside C2000Ware.

    Best Regards,

    Nirav