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.

TMS320F28069M: TIDA-01507

Part Number: TMS320F28069M
Other Parts Discussed in Thread: TIDA-01057

Hi,

    TIDA-01507 connect the EQEP1 just to test points, How can these codes working?

// initialize the ENC module
encHandle = ENC_init(&enc, sizeof(enc));


// setup the ENC module
ENC_setup(encHandle, 1, USER_MOTOR_NUM_POLE_PAIRS, USER_MOTOR_ENCODER_LINES, 0, USER_IQ_FULL_SCALE_FREQ_Hz, USER_ISR_FREQ_Hz, 8000.0);

...

// compute the electrical angle
ENC_calcElecAngle(encHandle, HAL_getQepPosnCounts(halHandle));

..

Thanks,

Nick

  • Please refer to the InstaSPIN lab guide about lab12, make sure that motor and encoder wires are connected correctly, and the right encoder lines is set to USER_MOTOR_ENCODER_LINES in user.h.

    You might refer to lab01b or lab01c to verify and monitor the calculated angle by using Datalog and PWMDAC.

    Download motorware which has many example projects to support this kit, and follow the lab guide to understand these lab projects.

    http://www.ti.com/tool/motorware

  • Hi Yanming,

        TIDA-01057 has no QEP connector, block diagram is 

            QEP function included in the code. But did not used in CTRL module. CTRL module use resolver's speed and angle . 

    // compute the electrical angle
    ENC_calcElecAngle(encHandle, HAL_getQepPosnCounts(halHandle));

    // For the compare between sensorless and resolver sensored
    gAngleEst = EST_getAngle_pu(obj->estHandle);
    gAngleSen = gPga411q1Vars.angle_pu;
    gAngleError = gAngleEst - gAngleSen;

    gSpeedEst = EST_getFm_pu(obj->estHandle);
    gSpeedSen = gPga411q1Vars.velocity_pu;
    gSpeedError = gSpeedEst - gSpeedSen;

    ...

    // run the controller
    CTRL_setSpeedSensor(ctrlHandle,gSpeedSen);
    CTRL_setAngleSensor(ctrlHandle,gAngleSen);
    CTRL_run(ctrlHandle,halHandle,&gAdcData,&gPwmData);

        Can I say that, ENC module has no effect in TIDA-01507?

    Thanks

  • Yes, this function for encoder was not used in this design. The rotor angle is from the resolve or FAST estimator.