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.

TMS320F280049C: AdcSetMode

Part Number: TMS320F280049C
Other Parts Discussed in Thread: C2000WARE

Hi - The F280049C TRM references (sec's 13.1.3.2 & 13.1.3.4) the AdcSetMode function and states the function must be called at least once after device reset to ensure the correct trim is loaded into the ADC trim registers.  The TRM states the function can be found in the F28004x_Adc.c file.  The function is not in the file (C2000\C2000Ware_1_00_06_00\device_support\f28004x\common\source\F28004x_Adc.c).  Section 13.1.12 of the TRM talks about ADC Calibration but does not mention this AdcSetMode function.  Can I assume this AdcSetMode function is not required?  Thx!

  • Hi Brett,

    Thanks you for pointing this out.  We will correct our documentations to reflect the proper function to use for the F28004x device.  It should be ADC_setVREF and the function is available in C2000\C2000Ware_1_00_06_00\driverlib\f28004x\driverlib\adc.c.  The function call AdcSetMode is for devices that have 16/12-bit and differential/single-ended modes of operation and F28004x does not have these options.

    Best regards,

    Joseph

  • Hi Brett,

    I realized that I have not answered your other question. ADC_setVREF function call is required. The need to call this function is explained in the next version of the TRM.

    Best regards,
    Joseph
  • Hi Brett,

    Marking this thread as resolved as future update in the TRM should take care of the ADC_setVREF documentation. If you have any other issues, please post them in the forum.

    Thanks and regards,
    Joseph