CMS32L051 User Manual |Chapter 25 Temperature Sensor
www.mcu.com.cn 684 / 703
25.3 Instructions for use with the temperature sensor
25.3.1 How the temperature sensor is used
The temperature (T) is proportional to the sensor voltage output (Vs), so the temperature is calculated as
follows:
T = (Vs - V1) / slope + T1
T: Measured temperature (°C)
Vs: Output voltage of the temperature sensor during temperature measurement (V)
T1: Temperature at the first point for experimental measurements (°C)
V1: Voltage output when the temperature sensor measures T1 (V)
T2: Temperature at the second point for experimental measurements (°C)
V2: Voltage output when the temperature sensor measures T2 (V)
Slope: The temperature slope of the temperature sensor (V/°C), slope = (V2 - V1) / (T2 - T1)
Different sensors have different characteristics, so we recommend measuring the following two different
sample temperatures:
1、 The A/D converter is used to measure the voltage V1 output by the temperature sensor at
temperature T1.
2、 The A/D converter is used to measure the voltage V2 output by the temperature sensor at the
second temperature T2.
3、 The temperature slope (slope = (V2 - V1) / (T2 - T1)) is calculated from the two results
4、 Subsequently, the temperature is obtained by substituting the slope into the formula for the
temperature characteristics (T = (Vs -V1) / slope + T1).