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 resolution in C2000ware ex2

Part Number: TMS320F28P650DK
Other Parts Discussed in Thread: C2000WARE, SYSCONFIG

Tool/software:

HI champs,

I am asking this for our customer.

In C2000ware V5.04 example below,

C:\ti\c2000\C2000Ware_5_04_00_00\driverlib\f28p65x\examples\c28x\eqepC:\ti\c2000\C2000Ware_5_04_00_00\driverlib\f28p65x\examples\c28x\eqep\

Ex2

eqep_ex2_calculation.xls

eqep_ex2_calculation.c

Q1: It shows 4x EQEP lines. Does that mean the motor has 1000 line in a revolution, which represent 4x 1000 lines edges that will be detected in a period because of both edges of input A and input B?

Q2: If so, in the corresponding sysconfig, the user is confused, why the resolution is set in 1x (only rising edge) rather than 2x (both rising/falling edges)? Isn't this resolution related to Q1?

  • Hi Wayne,

    Q1: It shows 4x EQEP lines. Does that mean the motor has 1000 line in a revolution, which represent 4x 1000 lines edges that will be detected in a period because of both edges of input A and input B?

    That is correct, motor has 1000 line encoder (1000 line/rev).

    Q2: If so, in the corresponding sysconfig, the user is confused, why the resolution is set in 1x (only rising edge) rather than 2x (both rising/falling edges)? Isn't this resolution related to Q1?

    The 1x or 2x xCLK configuration is mostly used for direction count mode, up count mode or down count mode for frequency measurement.

    Note that in this example we configure the eQEP in Quadrature count mode which using a truth table and state machine. Both edges of the QEPA and QEPB signals are sensed to generated count pulses for the position counter. There fore the frequency of the clock generated by the eQEP logic is 4x that of the input.

    Best regards,

    Ryan Ma