SPRUHM8K December 2013 – May 2024 TMS320F28374D , TMS320F28375D , TMS320F28376D , TMS320F28377D , TMS320F28377D-EP , TMS320F28377D-Q1 , TMS320F28378D , TMS320F28379D , TMS320F28379D-Q1
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 ADCIN13 on ADCA 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 F2837xD_TempSensorConv.c .
Note that this function assumes that the temperature reading is taken with VREFHI = 2.5V. If a different reference voltage is used, the sample can be scaled appropriately before passing the sample to the function by using the following formula:
adjusted sensor reading = raw sensor reading * (VREFHI / 2.5V)
To sample the temperature sensor, the ADC must be in single-ended 12-bit mode.
If the temperature sensor is sampled in 16-bit mode, the internal temperature sensor is sampled with a 12-bit resolution, regardless of the ADC mode currently configured. This does not change the resolution of results obtained on other SOCs for the given ADC.