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.

TMS320F280049: Device_cal function

Part Number: TMS320F280049
Other Parts Discussed in Thread: C2000WARE

Where is the device_cal function source code

  • Jordan,

    According to the TRM :

    "The trim functions in Device_cal() are callable in C2000ware as ADC_setOFFSETTRIM(), ADC_setINLTRIM(), and DAC_setDACTRIM() , and PGA_setGAINTRIM(). These functions fetch trim values from the TI reserved OTP memory source locations where the values are stored during test process as well as the analog module register destinations where the trim values are copied to."

    I think there is an error in the above, in that this device does not have a INLTRIM.  The other trims are correct.

    The respective trims are in the driverlib adc.c/dac.c/pga.c in this directory in C2000 Ware

    C:\ti\c2000\C2000Ware_3_01_00_00\driverlib\f28004x\driverlib

    or in the cloud based tools here

    Best,
    Matthew

  • Hi Jordan,

    Apologies for the inconsistent information found in driverlib and in the TRM.  A ticket was issued to include the device cal routines in driverlib but this again got missed in the latest release.  We expect to have these functions to be released in the next version of C2000Ware.  As for ADC INLTRIM, the source is currently not available in C2000Ware but this is populated upon device bootup when device_cal is invoked.  OTP contents from address 0x0701BD to 0x701CE and copied accordingly to respective ADC INLTRIM2/3 registers for all the 3 ADC modules.

    Best regards,

    Joseph

  • Hi Mathew,

    I saw a new update for C2000Ware, is the source code available in the new update?

  • Hi Jordan,

    From what I understand the INLTRIM code will not be available until the 1Q21 C2000Ware release which will likely be late March.

    Regards,

    Joe

  • Hi Joe,

    Thanks for the information.

    Regards,