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/TMS320F28069M: InstaSPIN-FOC how to change IQ24 to IQ20

Part Number: TMS320F28069M

Tool/software: Code Composer Studio

Dear team

My customer is using the FAST interface of InstaSPIN-FOC.

If using the current IQ24 will be out of range. So they want to change IQ24 to IQ20. 

Does the FAST interface need to be changed? How will the IQ change affect the FAST part?

In one word, how could they change IQ24 to IQ20?

BR,

Susan

  • Susan,

    You can change GLOBAL_Q from 24 to 20 in IQmathLib.h.

    Thanks,

    Sira

  • I just changed 24 to 20 and recompiled. After testing, after changing, the operation will directly IGBT overcurrent protection.

    Please confirm whether the FAST of InstaSPIN-FOC supports changing IQ24 to IQ20;

    //! \brief Gets the DC bus value from the estimator in per unit (pu), IQ24.
    //! \brief Gets the electrical frequency of the motor in per unit (pu), IQ24.
    //! \brief Gets the DC bus value from the estimator in per unit (pu), IQ24.

    The speed position estimator of FAST is solidified in the 28069M chip.
    Please confirm whether it supports IQ24 repositioning IQ20.
  • All InstaSPIN-FOC projects must use IQ24 since the FAST only supports IQ24, and you don't need to change the IQ value since the FAST and InstaSPIN-FOC use the PU format. There is no overflow issue even though the ADC scaling value is greater than the integer value of IQ24.