LaunchXL-f28379D internal temperature sensor
Show older comments
Hi there,
I'm trying to read the internal temperatrure sensor of a LaunchXL-f28379D board from Simulink, but the temperature value makes absolutely no sense for me.
Below the code I've made:

Section 11.13.5 of reference manual refers to F2837xD_TempSensorConv.c file to adapting the temperature. What I've done above is just the conversion into Simulink of the calculations of function int16 GetTemperatureC(int16 sensorSample)
Is there any example about how the adapt this?
Best regards,
Borja
Answers (2)
Manikanta Aditya
on 28 Feb 2024
0 votes
Hi Borja,
Looks like you are trying to read the internal temperature sensor of a Launch XL-f28379D board using Simulink but the temperature values you’re getting don’t seem correct.
As of now there are no exact or relevant MathWorks examples on the issue you mentioned. But I was able to find some TI support forums somewhat related to the problem which can help you to start with the troubleshooting the issue at hand.
Check the following references to know more about:
- LAUNCHXL-F28379D: ADC measuring with Simulink getting wrong Values: https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/830719/launchxl-f28379d-adc-measuring-with-simulink-getting-wrong-values
Here the user was getting incorrect ADC values when trying to measure temperature sensors with the LaunchPadXL F28379D using Simulink. The issue was resolved by considering the ADC VREF being at 3.0 V instead of 3.3 V.
Here’s the calculation they used: 2378 * (3.0/ 4096) = 1.74 V, which matched the multimeter reading. This might not be the exact solution to your problem, but it could potentially help you in troubleshooting the issue.
- LAUNCHXL-F28379D: Internal Temperature sensor bug: https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/933850/launchxl-f28379d-internal-temperature-sensor-bug
Hope this helps.
Borja
on 16 Apr 2024
0 votes
Categories
Find more on Texas Instruments C2000 Processors in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!