MSPM0L1306: Temperature sensor example code

Part Number: MSPM0L1306
Other Parts Discussed in Thread: MSPM0G3507, MSPM0G3519

Hello,

Is there any example code (using code composer studio) for reading the internal temperature sensor in this device? I didn't see any in the examples list, and I'm wondering how to configure the ADC and reference, and how to calculate an actual temperature from the result using the internal factory constants.

Thanks,

Lucy

  • Hi Lucy,

    There is an example titled adc12_internal_temp_sensor_mathacl for the MSPM0G3507 and MSPM0G3519 family devices. You can reference these examples to implement an example that does not use the IQ Math library.

    Furthermore, Chapter 14 in the Technical Reference Manual provides information and examples for using the temperature sensor.

    Best,

    Owen

**Attention** This is a public forum