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.

TMS320F28054M: TMS320F28054M

Part Number: TMS320F28054M

I am working on the application in Instaspin library where in user needs a very quick star which means I need to avoid offsert and resistance calculation part. I can do offset calculation once during startup and then use CTRL-setFlag_EnableOffset() function to stop offset recalculation. However, During run time if the motor is disabled by clearing  gMotorVars.Flag_enableSys flag and then the motor is enabled again by setting gMotorVars.Flag_enableSys flag, will the offset values picked up during startup be still valid? if yes, then when motor is off if the DC voltage drifts, will the voltage offset still valid or will the offset recalibration needed again?

Finally can I use the HAL_disablePwm(halHandle); and set motorspeed to zero to disable motor rather than gMotorVars.Flag_enableSys flag so that offset calculation is not triggered....

  • You just need to do offset calibration once for power up every time, not need to do it for every start. Even you can disable the offset calibration if you set the correct offset values in user.h.

    You don't need to set the gMotorVars.Flag_enableSys flag to zero to stop the motor, just need to set the gMotorVars.Flag_Run_Identify to zero to stop the motor, so the offset calibration will not be done again.