13.3.5 Internal Temperature Sensor
The internal temperature sensor measures the junction temperature of the device. The output of the
sensor can be sampled with the ADC through an internal connection. This can be enabled on channel
ADCIN14 on ADCB by setting the ENABLE bit in the TSNSCTL register.
To convert the temperature sensor reading into a temperature, pass the temperature sensor reading to the
GetTemperatureC() function in F28004x_TempSensorConv.c.
Note that this function assumes that the temperature reading was taken with VREFHI = 2.5V. If a different
reference voltage is used, the sample should be scaled appropriately before passing it to the function by
using the below formula.
adjusted sensor reading = raw sensor reading * (VREFHI / 2.5V)
F28004x_TempSensorConv.c没有这个文件,可以参考使用其他型号的么?