SPRUII0F May 2019 – June 2024 TMS320F28384D , TMS320F28384D-Q1 , TMS320F28384S , TMS320F28384S-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S
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 F2838x_TempSensorConv.c.
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.