Part Number: TMS320F280049C
Other Parts Discussed in Thread: LAUNCHXL-F280049C, BOOSTXL-DRV8320S
We are using LAUNCHXL-F280049C with BOOSTXL-DRV8320S EVM. We replaced the shunt current sensors with LEM sensors and made modifications in our code, we are UNABLE to get the motor to spin. We are requesting support on this. Here is what we have done so far.:
1) In hal.c, we have removed the original ISENA, ISENB, ISENC PGA setup
//2026_04_06 // ISENA - PGA5->A14->RA0
//2026_04_06 ADC_setupSOC(obj->adcHandle[0], ADC_SOC_NUMBER0, ADC_TRIGGER_EPWM6_SOCA,
//2026_04_06 ADC_CH_ADCIN14, HAL_ADC_SAMPLE_WINDOW);
//2026_04_06
//2026_04_06 // ISENB - PGA3->C7->RC0
//2026_04_06 ADC_setupSOC(obj->adcHandle[2], ADC_SOC_NUMBER0, ADC_TRIGGER_EPWM6_SOCA,
//2026_04_06 ADC_CH_ADCIN7, HAL_ADC_SAMPLE_WINDOW);
//2026_04_06
//2026_04_06 // ISENC - PGA1->B7->RB0
//2026_04_06 ADC_setupSOC(obj->adcHandle[1], ADC_SOC_NUMBER0, ADC_TRIGGER_EPWM6_SOCA,
//2026_04_06 ADC_CH_ADCIN7, HAL_ADC_SAMPLE_WINDOW);
and set up LEM sensors (which are centered around 1.65v) on ISENA, ISENB, and ISENC to A/D inputs A8, A4, B4
// ISENA - A8
ADC_setupSOC(obj->adcHandle[0], ADC_SOC_NUMBER3, ADC_TRIGGER_EPWM6_SOCA,
ADC_CH_ADCIN8, HAL_ADC_SAMPLE_WINDOW);
// ISENB - A4
ADC_setupSOC(obj->adcHandle[0], ADC_SOC_NUMBER4, ADC_TRIGGER_EPWM6_SOCA,
ADC_CH_ADCIN4, HAL_ADC_SAMPLE_WINDOW);
// ISENC - B4
ADC_setupSOC(obj->adcHandle[1], ADC_SOC_NUMBER5, ADC_TRIGGER_EPWM6_SOCA,
ADC_CH_ADCIN4, HAL_ADC_SAMPLE_WINDOW);
2) We have tried removing the PGA setup in hal.c, since we are not using the shunt PGA inputs and we moved to LEM A/D inputs
// HAL_setupPGAs(handle);
3) in user.h, we have tried setting various #defines for the following
#define USER_ADC_FULL_SCALE_CURRENT_A ((float32_t)(xxx.x))
#define IA_OFFSET_A (-xx.x) // ~=0.5*USER_ADC_FULL_SCALE_CURRENT_A
#define IB_OFFSET_A (-xx.x) // ~=0.5*USER_ADC_FULL_SCALE_CURRENT_A
#define IC_OFFSET_A (-xx.x) // ~=0.5*USER_ADC_FULL_SCALE_CURRENT_A
We are just replacing the current sensor type and sensing location and it is not working. We are requesting support for this effort.