TIDUBE5A January 2022 – October 2022
The user_mtr<1/2>.h 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 should 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_mtr<1/2>.h that are hardware dependent.
The "user_pfc.h" is where all user parameters are stored for PFC control. The maximum current, AC voltage and DC voltage at the input to the AD converter, these values are hardware dependent and should be based on the current and voltage sensing and scaling to the ADC input.
All of the configurable parameters are defined in the user_mtr<1/2>.h and user_pfc.h files. These parameters can be calculated using the TIDM_02010_DMPFC_Hardware Parameters Calculation.xlsx Excel® spreadsheet. This file is included with the TIDM-02010 archive file at the folder ..\solutions\tidm_02010\docs to calculate these values and copy these parameters marked bold to user_mtr<1/2>.h and user_pfc.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 (441.54f)
//! \brief Defines the analog voltage filter pole location, Hz
#define USER_M1_VOLTAGE_FILTER_POLE_Hz (448.6576819f)
//! \brief Defines the maximum current at the AD converter
// High Voltage motor control kit
#define USER_M1_ADC_FULL_SCALE_CURRENT_A (39.6f)
//! \brief Defines the maximum voltage at the AD converter
#define USER_PFC_ADC_FULL_SCALE_DC_VOLTAGE_V (441.54f)
//! \brief Defines the maximum voltage at the AD converter
#define USER_PFC_ADC_FULL_SCALE_AC_VOLTAGE_V (441.54f)
//! \brief Defines the maximum current at the AD converter
#define USER_PFC_ADC_FULL_SCALE_CURRENT_A (49.5f)