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.

28388AD温度采样,转换公式问题

Other Parts Discussed in Thread: C2000WARE

float32 GetTemperatureC(int16 sensorSample)
{
return(((((float32)sensorSample * tempSensor_scaleFactor /
ADC_VREFHI_SAMPLE) - tempSensor_tempOffset) /
tempSensor_tempSlope));
}

按照这个函数来进行温度转换,转换后的温度值一直为0,请问为什么?同时这个温度转换公式和28377的温度转换公式差距较大。

TI28388 例程 adc_ex3_soc_epwm_tempsensor.c,运行该例程,读取的芯片温度一直是0,请问为什么?