TIDUF77 June 2024 MSPM0G1507
The user_mtr1.h file is where all user parameters are stored for motor control. The maximum phase current and phase voltage at the input to the AD converter, these values are hardware-dependent and need to be based on the current and voltage sensing and scaling to the ADC input. The number of current sensors and voltage (phase) sensors used are defined in user_mtr1.h that are hardware dependent.
All of the configurable parameters are defined in the user_mtr1.h file. These parameters can be calculated using the Motor_Drive_Parameters_Calculation.xlsxMicrosoft®Excel® spreadsheet. This file is included with the TIDA-010273 archive file at the folder ..\solutions\tida_010273_GaNInv\docs
to calculate these values and copy these parameters marked bold to user_mtr1.h as shown in the following codes.
//! \brief Defines the maximum voltage at the AD converter
// Full scale voltage of AD converter, not the current voltage
#define USER_M1_ADC_FULL_SCALE_VOLTAGE_V (404.1292683f)
//! \brief Defines the analog voltage filter pole location, Hz
//!
#define USER_M1_VOLTAGE_FILTER_POLE_Hz (416.3602877f)
//! \brief Defines the maximum current at the AD converter
#define USER_M1_ADC_FULL_SCALE_CURRENT_A (6.6f)