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.

TMS320F28P550SJ: SetVREF function does not work properly for VDDA voltages

Part Number: TMS320F28P550SJ
Other Parts Discussed in Thread: C2000WARE

Tool/software:

Hi,

SetVREF() function in the device support folder for f28p55x(C:\ti\c2000\C2000Ware_5_02_00_00\device_support\f28p55x\common\source\f28p55x_adc.c)

is errorneous as the values for both ADC_INTERNAL and ADC_VDDA is 3. So if I want to configure for VDDA, using the above API it will not work.

See the following  file: C:\ti\c2000\C2000Ware_5_02_00_00\device_support\f28p55x\common\include\f28p55x_adc_defines.h

  • Hello Mukul,

    Thanks for reporting this bug. I have forwarded it to our software team to be fixed in the next SDK release.

    In the meantime, you should do the following to work around the issue:

    - Call SetVREF() to configure the ADC offset trims
    - Write directly to AnalogSubsysRegs.ANAREFPCTL and AnalogSubsysRegs.ANAREFNCTL to configure your desired reference option. These registers are documented in the TRM (analog subsystem chapter).

    Best regards,
    Ibukun