Using our own HV three phase inverter with x49c the ADC scale factor (user.h) values below have little effect to change real time motorVars.VdcBus_V show in debug. The DC is 40v but the real time debug shows 13.4v and SF set 0.15 or any other lower values, this is the highest it will go. Why do the ADC scale values have no bearing as described 14.1.1.5 page 485 SPRUHJ1H–January 2013–Revised June 2019? When ADCINC1 J7 pin 66 is reduced, real time debug value changes. The ADCINC1 divider value 260mV for 38vdc via R1(940k), R2(5.7k) works fine for other TI 12 bit SAR show 41vdc 2MSPS.
Typically run motor 140v-170v but test 24v-40v with new firmware and never are required to change the HV resistor divider/s for EMF or DC bus voltage.
//! \brief Defines the maximum voltage at the AD converter //! full scale voltage of AD converter #define USER_ADC_FULL_SCALE_VOLTAGE_V ((float32_t)(192.528)) //57.528 //! \brief Defines the direct voltage (Vd) scale factor //! #define USER_VD_SF ((float32_t)(0.15)) //0.95 //! \brief Defines the voltage scale factor for the system //! #define USER_VOLTAGE_SF (USER_ADC_FULL_SCALE_VOLTAGE_V / (float32_t)4096.0) // 12 bit ADC, 2^12 = 4096 #define USER_DCBUS_VOLTAGE_SF (USER_ADC_FULL_SCALE_DCBUS_VOLTAGE_V / (float32_t)4096.0)