Dear
TMS320F28035的内部温度传感器,计算式,查内存获得offset和slope,可计算出温度。
但是前提是使用内部ADC参考(3.3V),当我使用外部ADC参考(3V)的时候,那么这个公式该如何转换呢?
请帮忙看看如果换成外部3V 的ADC参考电压,Offset和Slope应该为怎么计算,谢谢!
Transfer Function
The temperature sensor output and the resulting ADC values increase with increasing junction
temperature. The offset is defined as the 0 ºC LSB crossing as illustrated in Figure 38. This information
can be used to convert the ADC sensor sample into a temperature unit.
The transfer function to determine a temperature is defined as:
Temperature = (sensor – Offset) * Slope
Figure 38. Temperature Sensor Transfer Function
For F2803x:
• 0x3D7E82 – Slope (ºC / LSB, fixed-point Q15 format)
• 0x3D7E85 – Offset (0 ºC LSB value)
The values listed are assuming a 3.3v full scale range. Using the internal reference mode automatically
achieves this fixed range, but if using the external mode, the temperature sensor values must be adjusted
accordingly to the external reference voltages.
(1) The temperature sensor slope and offset are given in terms of ADC LSBs using the internal reference of the ADC. Values must be
adjusted accordingly in external reference mode to the external reference voltage.
(2) ADC temperature coeffieicient is accounted for in this specification
(3) Output of the temperature sensor (in terms of LSBs) is sign-consistent with the direction of the temperature movement. Increasing
temperatures will give increasing ADC values relative to an initial value; decreasing temperatures will give decreasing ADC values
relative to an initial value.