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.

TMS320F280039C: Sinusoidal current phase on Oscilloscope in MotorControlSDK

Part Number: TMS320F280039C
Other Parts Discussed in Thread: BOOSTXL-3PHGANINV

Tool/software:

I am using the F280039C microcontroller with the BOOSTXL-3PHGANINV driver and opened Universal_motorcontrol_lab_f28003x.

The motor runs correctly with the sensorless FAST.

Looking at the schematic, the INA240A1 produces on one of the three phases a Vout=Ia*Rsense*gain-Vref which sends to pin 27 "Analog_In/I2S_WS." So I connected that pin to the oscilloscope and displayed the phase waveform by inverse mathematical formula: Ia=(Vout-Vref) / (gain*Vdiff) .. so I displayed Ia:

Can you tell me due to what parameters the current is not sinusoidal?

//This is my motor:
#define USER_MOTOR1_TYPE                   MOTOR_TYPE_PM
#define USER_MOTOR1_NUM_POLE_PAIRS         (7)
#define USER_MOTOR1_Rr_Ohm                 (NULL)
#define USER_MOTOR1_Rs_Ohm                 (0.0228128177)
#define USER_MOTOR1_Ls_d_H                 (0.00004598)
#define USER_MOTOR1_Ls_q_H                 (0.00004598)
#define USER_MOTOR1_RATED_FLUX_VpHz        (0.0452475)
#define USER_MOTOR1_MAGNETIZING_CURRENT_A  (NULL)
#define USER_MOTOR1_RES_EST_CURRENT_A      (10.0f)
#define USER_MOTOR1_IND_EST_CURRENT_A      (-10.0f)
#define USER_MOTOR1_MAX_CURRENT_A          (95.0f)
#define USER_MOTOR1_FLUX_EXC_FREQ_Hz       (20.0f)

PWM_FREQ

project link