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.

CCS/TMS320F28377S: Using encoder with DSP

Part Number: TMS320F28377S


Tool/software: Code Composer Studio

I am running an example code - eqep_freqcal. 

I can see the PWM pulses being generated that emulate the encoder pulses. 

But as i put some variables such as newp, oldp etc in the watch window, it is shown as "identifier not found"

What variable should i see to get the frequency?

Thanks

  • Hi,

    shyam nair said:
    But as i put some variables such as newp, oldp etc in the watch window, it is shown as "identifier not found"

    These are local variables in a function - so their visibility is limited to the scope of the function. Hence from the debugger you may see it as identifier not found.

    shyam nair said:
    What variable should i see to get the frequency?

    From the example code of eqep_freqcal, all the required data is available in the struct FREQCAL ( defined in Example_freqcal.h).
    and its used as FREQCAL freq=FREQCAL_DEFAULTS;
    So, please refer to the variable in freq. You can add this structure to the watch window.