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/TMS320F28027F: using a F28027 with different acceleration and deceleration rate

Part Number: TMS320F28027F

Tool/software: Code Composer Studio

hi,

i am working with TMS320F28027F and designed my HV-Kit.

i want to set different acceleration and deceleration rate for my program.

is this any way to set this two parameters in proj_lab10a or i must change it through software every time that motor want to rise or fall?

thanks

  • acceleration/deceleration is set through
    // set the speed acceleration
    CTRL_setMaxAccel_pu(ctrlHandle,_IQmpy(MAX_ACCEL_KRPMPS_SF,gMotorVars.MaxAccel_krpmps));

    We set this in the projects using a global variable
    gMotorVars.MaxAccel_krpmps

    if you want to hard code these values, and set a different value for Accel / Decel you simply do this in your own system software logic