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.

BOOSTXL-DRV8320RS: TMS320F280049C

Part Number: BOOSTXL-DRV8320RS
Other Parts Discussed in Thread: C2000WARE, TMS320F280049C, TMS320F28027, MOTORWARE

Tool/software:

Hi there.

I am using the C2000Ware_MotorControl_SDK_5_02_00_00 in combination with the TMS320F280049C. My project is based on the is07 lab (speed control).

Now I want to change the motor while the application is running, so that I have three different motors to choose from without having to restart the application.

I did this using a TMS320F28027 and the motorware_1_01_00_18 and just had to re-initialise some structures,

In the C2000Ware_MotorControl_SDK_5_02_00_00 environment there is a function USER_setParams_priv() but I can't find the code or documentation for what it does.
Can you help me?

best regards 

Thomas

  • Thomas,

    USER_setParams_priv() initializes some motor-dependent values internal to InstaSPIN-FOC FAST. This function should be called for each motor, passing in a pointer to the relevant userParams object.

    Regards,
    Jason Osborn

  • Thank's for answering - does this funktion use #defines  from the use.h file

    e.g.

    #define USER_MOTOR_NUM_POLE_PAIRS
    #define USER_MOTOR_Rr_Ohm
    #define USER_MOTOR_Rs_Ohm
    #define USER_MOTOR_Ls_d_H
    #define USER_MOTOR_Ls_q_H
    #define USER_MOTOR_RATED_FLUX_VpHz
    #define USER_MOTOR_MAGNETIZING_CURRENT_A
    #define USER_MOTOR_RES_EST_CURRENT_A 
    #define USER_MOTOR_IND_EST_CURRENT_A
    #define USER_MOTOR_MAX_CURRENT_A 
    #define USER_MOTOR_FLUX_EXC_FREQ_Hz 

    or is it just using the structure userParams ?

    Best regards Thomas

  • Thomas,

    The function assumes that the motor-specific user file is populated with valid #define parameters.

    Regards,
    Jason Osborn