SPRUHX5I August 2014 – May 2024 TMS320F28374S , TMS320F28375S , TMS320F28375S-Q1 , TMS320F28376S , TMS320F28377S , TMS320F28377S-Q1 , TMS320F28378S , TMS320F28379S
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 F2837xS_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.