SPRUIZ1B July 2023 – August 2024 TMS320F28P650DH , TMS320F28P650DK , TMS320F28P650SH , TMS320F28P650SK , TMS320F28P659DH-Q1 , TMS320F28P659DK-Q1 , TMS320F28P659SH-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, ADCIN18 on ADCB, and on the CMPSS3_HP4 and CMPSS5_HP4 inputs 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 ADC_getTemperatureC() function in the ADC driverlib.
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, this can cause incorrect ADC results.