This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F280025: MotorControl_SDK

Part Number: TMS320F280025
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;

  • Hello,

    What example is this referring to?

    Kind regards,

    Skyler

  • 1、I found the cause of the first problem: the ADC external reference voltage was set incorrectly.
    2、The course comes from:...C2000Ware_MotorControl_SDK_5_02_00_00\solutions\universal_motorcontrol_lab\f28002x

  • Hello,

    If I recall correctly, the Universal Motor Control Lab (UMCL) is configured to use an internal ADC ref. What are you referring to when you mention an incorrectly set external ADC reference voltage?

    For your original question (2), the UMCL assumes bi-directional voltage values. This means that this offset correction is required, or it would be impossible for the system to observe negative voltage values.

    • Note: If you're adjusting the hardware, make sure that you adjust USER_M1_ADC_FULL_SCALE_VOLTAGE_V accordingly.

    Regards,
    Jason Osborn