Industry Application
High precision temperature measurement scheme based on LH32M0S3
1. LH32M0S3 Introduction
1.1. Structure diagram

Figure 1. LH32M0S3 block diagram
1.2. Features
-
kernel
-
Storage
-
clock module
-
Working environment
-
Power Management
-
General purpose input and output
-
High precision analog-to-digital converter (Sigma-Delta ADC)
-
Number Comparator
-
LCD Driver
-
LED Driver
-
Buzzer all the way -
2 timers
-
Programmable constant current source
-
OLED color screen DMA acceleration module -
Serial Single Wire Debug (SWD) -
Encapsulation
2. Measurement principle
2.1. Thermocouple
Thermocouple temperature sensor is a nickel-chromium-nickel-silicon thermocouple temperature sensor, which is made of two different materials The metal conductor forms a closed loop, one end is placed in the measured medium to feel the temperature change, and the other end is placed as a cold end in a constant working environment. When the temperatures at both ends are different, an electromotive force of a certain direction and magnitude will be generated in the loop. The basic structure of the sensor is shown in the figure below.

Figure 2. Thermocouple
In the above figure, AI0 and AI1 are the differential input of SoC, and ACM is the reference output of SoC, which can be used as an external Common-mode input for the sensor. When the temperature of the hot and cold ends is different, the sensor can generate mV-level signals on AI0 and AI1, and send this signal to the SoC for signal amplification after passing through the external filter circuit, and then enter the 24-bit high-precision ADC system structure, which The measurement reference is an internal high-precision reference, and the appropriate parameters of the ADC are configured to complete the measurement of the voltage value corresponding to the temperature range. For cold-junction compensation, the SoC's internal silicon temperature sensor or a single-wire digital temperature sensor can be used for compensation.
2.2. Infrared sensor
The thermopile in the thermopile infrared temperature sensor is a temperature measuring element, which generally consists of two The original components of the interface are composed of Thermopile and Thermistor respectively. The schematic diagram of components and component structure is as follows:

Figure 3. Thermopile infrared temperature sensor
The thermopile infrared sensor receives the infrared radiation of the target and generates a voltage signal (Thermopile two-terminal signal) , the relationship between the voltage signal and the target temperature Tobj and the ambient temperature Tamb is as follows:
V=K(F(Tobj)-F(Tamb))
K is a calibration constant; F is a function, which is related to the sensor.
①The two ends of the Thermopile are measured after LH32M0S3 built-in PGA amplification and high-precision AD digital-to-analog conversion Signal.
②LH32M0S3 collects the resistance value of NTC - Determine the ambient temperature Tamb by means of a resistance meter.
③ Obtain the target object temperature Tobj by calculation or table lookup.
④After obtaining the target temperature, drive the LCD to display the actual temperature through LH32M0S3, and complete the infrared temperature measurement to the displayed temperature the process of. Other functions such as setting high and low temperature thresholds and alarms can be added according to requirements.
2.3. RTD

Figure 4. RTD resistor network
The cross-sectional area and length of the three wires led by the RTD are the same (ie r1=r2=r3), as above The platinum resistance shown in the figure is used as a bridge arm of the bridge, connect one wire (r1) to the ground of the bridge, and the other two (r2, r3) are respectively connected to the bridge arm where the platinum resistance is located and the bridge adjacent to it. arm, so that the two bridge arms introduce lead resistance of the same resistance value, and the change of lead resistance has no effect on the measurement results.
MCU_A+ and MCU_A- are measured after LH32M0S3 built-in PGA amplification and high-precision AD digital-to-analog conversion The difference between them is used to calculate the PT resistance value, and then the temperature value is calculated according to the PT resistance value. After obtaining the temperature, LH32M0S3 drives the LCD to display the actual temperature, and completes the process from temperature measurement to display temperature.
3. Introduction
The figure below introduces the RTD, thermocouple and infrared temperature measurement scheme based on SoC LH32M0S3. The measurement scheme uses AVDD to drive the three-wire RTD or uses the internal high-precision reference output of the SoC as the negative terminal reference of the thermocouple, and sends the obtained data to the internal 24-bit high-precision ADC for calculation and analysis, and then uses the unique algorithm of the software to measure The obtained value is converted to temperature, and finally the internal LCD Driver is used to drive the external LCD as a temperature measurement display.
The SoC used in the solution is highly integrated, industrial-grade reliability, rich digital interface SPI, I2C, UART, built-in LCD, LED driver, 24-bit high-precision ADC (ENOB>=19.5bit@30sps, 128 gain), low temperature drift (2ppm/℃) programmable gain amplifier, constant current source and on-chip temperature sensor, etc. It offers a wealth of possibilities for various applications.

Figure 5. Scheme schematic
The following figure is a schematic diagram of the demo board connected to PT1000 and a Fluke multimeter to measure the water temperature at the same time. The outlet water temperature is 34.4°C.

Figure 6. Actual rendering
Test 9 temperature points and draw the curve as shown below.

Figure 7. Comparison of measured accuracy
4. Summary
The chip used in the above temperature measurement scheme is an internal built-in LCD driver, 24-bit high-precision ADC , 32-bit industrial-grade MCU SoC products with low-temperature drift programmable gain amplifiers, not only solve the defects of the traditional temperature measurement scheme from the circuit, improve the measurement accuracy, but also greatly reduce the components of the measurement circuit, which is exactly The advantages of SoC products compared with ordinary MCU plus ADC chips.