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.

TMS320F28027F: Internal temperature sensor reading more

Part Number: TMS320F28027F

hi,

i am using tms320f28027f and try to work with internal temperature sensor.

i read a application notes and datasheets and import the formula from C:\ti\controlSUITE\device_support\f2802x\v230\f2802x_examples_structs\adc_temp_sensor_conv to my projects.

but i have a problem with formules.

the results have a big offsets. i think the result multiple by 2 or something like that.

anybody can help?

thanks

  • the function is:

    int16_t ADC_getTemperatureC(int16_t sensorSample)
    {
    return ((sensorSample - ADC_getTempOffset())*(int32_t)ADC_getTempSlope() + ADC_FP_ROUND + ADC_KELVIN_OFF)/ADC_FP_SCALE - ADC_KELVIN;
    }
  • Can you note the value of both the degK and degC variables once the program has ran? I'm assuming you are at "room" temp ~30degC in your lab, if not please let me know.

    This example is typically robust, since the temp sensor connection is self contained and is not subject to external loading from different PCB designs. Can you also share what PCB is being used, i.e. LaunchPad, control card, custom PCB, etc.

    Best,
    Matthew