Hello,
has anybody try to use 28027f launchpad+ with their own inverter system? my question is related to how to setup the adc reading adjustment (in the software) since the input signal level is different from the original boostxl-drv8031. in my system:
i have two current sensor (phase A and C): at 0 current, the input voltage at the ADC equals to 1.66V, the max current at the full adc range (3.3v) is 84.8A;
for voltage: when phase A, B and C voltage is 0 voltage, the input voltage at the ADC equals to 1.27V, the max voltage at the full adce range (3.3v) is 137V; same thing for the DC bus voltage.
the question is how to change the code to reflect these difference? here is the original code:
Phase voltage:
value = (_iq)ADC_readResult(obj->adcHandle,ADC_ResultNumber_4);
value = _IQ12mpy(value,voltage_sf) - obj->adcBias.V.value[0]; // divide by 2^numAdcBits = 2^12
pAdcData->V.value[0] = value;
Phase current:
//value = (_iq)ADC_readResult(obj->adcHandle,ADC_ResultNumber_2);
//value = _IQ12mpy(value,current_sf) - obj->adcBias.I.value[1]; // divide by 2^numAdcBits = 2^12
//pAdcData->I.value[1] = value;
value = (_iq)ADC_readResult(obj->adcHandle,ADC_ResultNumber_7); // divide by 2^numAdcBits = 2^12
value = _IQ12mpy(value,voltage_sf); //
pAdcData->dcBus = value;