8.8.2. On-Chip Temperature Sensor (TI MSP430)

8.8.2.1. Introduction

The MSP430G2955 has a built-in temperature sensor. The device has to be calibrated before it can be used accurately.

8.8.2.2. Resources

8.8.2.3. Platform Integration

The sensor can be enabled by defining compile-time flag PLTFRM_ON_CHIP_TEMP_SENSOR_ENA. An example of using this sensor is illustrated in App Examples.

8.8.2.3.1. Functions

void PLTFRM_onChipTempSensorInit(void)

Initializes the on-chip temperature sensor.

SINT16_t PLTFRM_readOnChipTempSensor(void)

Obtains the temperature value as sensed by the on-chip sensor.

Returns:Temperature value is return in unit of centi celsius.