Other Parts Discussed in Thread: C2000WARE
Tool/software:
I was using the F280025C version of the MotorControl SDK to port the ADC and found two problems:
1. When the bus voltage range is changed to the range I need, the measured voltage range is half of the actual voltage;
2. Why subtract half of the bus voltage after the voltage collection of each item? The code is as follows:
obj->adcData.V_V.value[0] -=
obj->adcData.offset_V_sf.value[0] * obj->adcData.VdcBus_V;
obj->adcData.V_V.value[1] -=
obj->adcData.offset_V_sf.value[1] * obj->adcData.VdcBus_V;
obj->adcData.V_V.value[2] -=
obj->adcData.offset_V_sf.value[2] * obj->adcData.VdcBus_V;