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.

Position control on F28335

Other Parts Discussed in Thread: CONTROLSUITE

Hi,

  I look at sprc179 and sprc212 application software for F280x  sensored position controll of 3-phase PMSM using QEP.

  Did you have source and document about sensored position controll of 3-phase PMSM using QEP for F28335?

 

   Regards,

Jimmy

  • Hi Jimmy

    This is documented in controlsuite (and the code base is available there as well) www.ti.com/controlsuite

    A sensored example for HV PMSM Delfino F2833x was not created, but it’s relatively simple to add this support thanks to the Incremental Build process, DMCLib, and the sensored example done for Piccolo.

    You will want to review the Piccolo documentation for Sensored PMSM at*

    C:\ti\controlSUITE\development_kits\HVMotorCtrl+PfcKit_v1.3\HVPM_Sensored

    *or latest _vX.X\

    Specifically the use of the following code found in HVPM_Sensored.c for calibrating the QEP for precise

    angle detection (QEP is only used for verifying speed detection in the sensorless build levels). This is explained in the documentation under section "Level 3B".

    // ------------------------------------------------------------------------------

    // Detect calibration angle (optional) and call the QEP module

    // ------------------------------------------------------------------------------

    if (lsw==0) {EQep1Regs.QPOSCNT=0; EQep1Regs.QCLR.bit.IEL = 1;} // Reset position cnt.

    if ((EQep1Regs.QFLG.bit.IEL==1) && Init_IFlag==0) // Check the first index occurrence

    {qep1.CalibratedAngle= EQep1Regs.QPOSILAT; Init_IFlag++;} // Keep the latched position

    if (lsw!=0) QEP_MACRO(qep1);

    You can modify the Delfino HVPM_Sensorless.c project by replacing any instances of

    // ------------------------------------------------------------------------------

    // Call the QEP calculation module

    // ------------------------------------------------------------------------------

    QEP_MACRO(qep1);

    With the Calibration code above, and running the code through Build Level 5 only.

  • Was this the solution to this ? Are there any examples for sensored HVPM F28335 out now ?