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: About eQEP_QEPSTROBESEL[STROBESEL], why I cannot get it work?

Part Number: TMS320F28P650DK
Other Parts Discussed in Thread: C2000WARE

Tool/software:

hi experts, may you have a nice day!

I configure PWM1_SOCA as eQEP2 strobe source, QEPSTROBESEL[STROBESEL] = 2;

and QDECCTL[QSP]=0; QEPSRCSEL[QEPSSEL]=0;

set SEL=0; but QPOSSLAT is always 0, and ADC can get the sample value;

whats wrong with my setup?

thank you very much!

  • Hello,

    I have a couple of follow up questions to help debug this.

    1. Is ePWM1 properly configured to generate an SOCA signal?
    2. What do you mean by 'ADC can get the sample value' ?
    3. Have you compared your current configuration to, for example, the basic eQEP examples offered by C2000Ware and Driverlib?

    Regards,
    Jason Osborn

  • 1.Is ePWM1 properly configured to generate an SOCA signal?

    yes, it is properly configured and can trigger ADC to work.

    2.what do you mean by 'ADC can get the sample value' ?

    the ADC ch can be triggered, and the adc resultregs can read the right value;

    3.Have you compared your current configuration to, for example, the basic eQEP examples offered by C2000Ware and Driverlib?

    yes,  I study the 4 eQEP examples of F28P65. the configuration  seems to be right.

  • I see. Which GPIOs are configured as eQEP inputs? QEPSSEL=0 sets it to the IO input.

    Regards,
    Jason Osborn