Temperature detection circuit and temperature detection method
By using PMOS tubes, comparators, current mirror circuits and source follower circuits in the temperature detection circuit, only one thermistor can be used to detect multiple temperature points, which solves the problem of high cost and power consumption in the existing technology. The problem of high temperature and large occupied area improves the performance and reliability of temperature detection.
Patent Information
- Application Number
- CN202011439283.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-11
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-12-11
AI Technical Summary
Existing temperature detection circuits need to use multiple thermistors and multiple comparators when collecting multiple temperature points, resulting in problems such as high cost, high power consumption, and large occupation area.
Design a temperature detection circuit, including PMOS tube, comparator, current mirror circuit, source follower circuit and switch group. It only needs to be matched with a thermistor to realize the detection of multiple temperature points, using the successive approximation method. Detection of temperature points.
It achieves low-cost, low-power consumption of multiple temperature point acquisition, reduces the circuit area, and integrates the temperature sensor and related circuits on the same chip, improving the performance and reliability of temperature detection.
Smart Images

Figure CN112763093B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of temperature detection, and in particular to a temperature detection circuit and a temperature detection method. Background Art
[0002] Information collection is one of the three foundations of modern information technology. In the information age, more and more attention is paid to the rapid and accurate sensing and collection of information. Sensors are at the forefront of sensing and transforming signals, which directly affects the performance of the entire system signal processing. As the public's attention to public safety, health monitoring, environmental protection and many other fields continues to increase, it can be predicted that sensors will achieve unprecedented development to support the development of the Internet of Things, communications, information security and other fields.
[0003] Temperature is one of the most basic physical quantities and one of the key physical parameters that are indispensable for production, life and scientific research. Therefore, temperature sensing detection, that is, sensing temperature signals and converting them into electrical signals for further signal processing by subsequent circuits, has been widely used in many fields, from household appliances to portable smart devices, from industrial automation production to scientific research. Temperature sensors play a very important role and have a huge market size. With the development and popularization of Internet of Things technology, temperature sensors are gradually integrated into household appliances and portable devices to collect information and realize intelligence. Before the emergence of integrated temperature sensors, discrete temperature sensors were widely used in electronic devices, but due to their high power consumption, large size and high cost, they greatly hindered the popularization of smart devices and restricted the development of Internet of Things technology, especially the application of smart portable devices. In order to meet people's increasing requirements for temperature sensors, temperature sensors prepared using standard complementary metal oxide semiconductor technology began to appear and were widely welcomed. The use of CMOS technology can meet the requirements of the Internet of Things to the greatest extent, reduce the cost of sensors, make sensor intelligence possible, and facilitate the widespread popularization of Internet of Things technology.
[0004] In the temperature sensing detection system, the temperature needs to be converted into a corresponding voltage signal, and an analog-to-digital converter is used to quantize the voltage signal and output the corresponding digital signal. However, with the rapid iteration of CMOS technology, the chip power supply voltage continues to decrease, and the available voltage margin gradually decreases, making the design of ADC more difficult and the quantization accuracy difficult to improve.
[0005] Existing temperature detection circuits such as Figure 1 As shown in the figure, the dotted box is the internal circuit of the chip, which is a schematic diagram of a traditional temperature detection circuit 100. For the sake of simplicity, the figure only schematically shows the temperature detection circuit for collecting one temperature point. To detect multiple other temperature points, it only needs to repeat Figure 1The circuit in the chip is sufficient. The temperature detection circuit 100 includes a chip internal circuit 108, two chip peripheral resistors, a reference resistor 103 and a reference resistor 104, and the resistor 104 is a thermistor. The chip internal circuit includes a comparator 107 and two reference resistors: a reference resistor 105 and a reference resistor 106. Specifically, the non-inverting input terminal of the comparator 107 is connected to one end of the resistor 106, and its positive input voltage is VR1; the inverting input terminal of the comparator 107 is connected to the chip pin 102, and its inverting input voltage is VT1; the output voltage of the comparator 107 is VO1. The chip internal resistor, the reference resistor 105 is connected in series with the reference resistor 106, one end of the series connection is connected to the resistor VR, and the other end is grounded. The reference resistor 103 of the chip peripheral resistor is connected in series with the thermistor 104, one end of the series connection is connected to the pin 101 and connected to the voltage VR, and the other end is grounded, wherein one end of the reference resistor 104 is connected to the pin 102.
[0006] The working process of the temperature detection circuit is as follows: According to the series voltage division principle, the voltage VR is divided by the series resistor, and the voltage value of the voltage VR1 is:
[0007]
[0008] Note: The voltage value of voltage VR1 is equal to the resistance value of resistor 105 divided by the sum of the resistance values of resistor 105 and resistor 106 multiplied by voltage VR.
[0009] At this time, the voltage at the non-inverting input terminal of the comparator 107 is VR1; the voltage value of the voltage at the inverting input terminal of the comparator 107, VT1, is:
[0010]
[0011] Note: The voltage value of the voltage VT1 is equal to the resistance value of the thermistor 104 divided by the sum of the resistance value of the thermistor 104 and the resistance value of the resistor 103 multiplied by the voltage VR.
[0012] When the voltage VT1 of the inverting input terminal of the comparator 107 is greater than the voltage VR1 of the non-inverting input terminal of the comparator 107, the temperature protection circuit is activated; when the voltage VT1 of the inverting input terminal of the comparator 1 is less than the voltage VR1 of the non-inverting input terminal of the comparator 107, the temperature point for activating the temperature protection circuit has not been reached, and the temperature protection circuit cannot be activated; when the temperature protection circuit is activated, the voltage VT1 of the inverting input terminal of the comparator 107 is set equal to the voltage VR1 of the non-inverting input terminal of the comparator 107, that is:
[0013]
[0014] The voltage value of VR1 is obtained by proportional series voltage division of the internal resistors of the chip, the resistance value of the peripheral resistor 103 can be set and adjusted, and the voltage value setting of the voltage VR is known.
[0015] Under the condition that the voltage value of voltage VR1, the voltage value of voltage VR and the resistance value of peripheral resistor 103 are known, according to formula (3), the resistance value R of thermistor 104 can be obtained: 104 , and then according to the relationship between the resistance value and temperature of the thermistor 104, the corresponding temperature point of the thermistor 104 at this time can be obtained, that is, the first temperature point collected.
[0016] The above only takes the collection of one temperature point as an example to introduce the working process of the existing multi-stage temperature detection circuit. Based on the above principle, by analogy, N peripheral resistors, N thermistors, and N comparators are used to realize the collection of N temperature points.
[0017] Therefore, the existing temperature detection circuit needs to use multiple thermistors and multiple comparators when collecting multiple temperature points, which has the problems of high cost, high power consumption, and large occupied area. Summary of the invention
[0018] The purpose of the present invention is to solve the deficiencies of the prior art and to provide a temperature detection circuit and a temperature detection method, which can realize the detection of multiple temperature points by only cooperating with a thermistor.
[0019] In order to achieve the above purpose, a temperature detection circuit is designed, including a peripheral circuit with a thermistor 304, including a PMOS tube 301, a PMOS tube 302, a comparator 305, a current mirror circuit 10, a source follower circuit 20 and a switch group 30, wherein the gate of the PMOS tube 301 is connected to the gate of the PMOS tube 302 and is connected to a gate terminal control signal VEN, the source of the PMOS tube 301 is connected to one end of the current mirror circuit, the source of the PMOS tube 302 is connected to the other end of the current mirror circuit, and the PMOS tube 301 is connected to the source of the PMOS tube 302. The drain of the OS tube 301 is connected to the source follower circuit, the drain of the PMOS tube 302 is connected to the peripheral circuit and the inverting input terminal of the comparator 305, and the non-inverting input terminal of the comparator 305 is connected to the switch group, wherein the current mirror circuit 10 is used to make the source of the PMOS tube 301 and the source of the PMOS tube 302 pass through equal currents, the source follower circuit 20 is used to provide a constant current to the drain of the PMOS tube 301, and the switch group is used to switch the input voltage of the non-inverting input terminal of the comparator 305.
[0020] Preferably, the current mirror circuit 10 comprises a PMOS tube 10-1 and a PMOS tube 10-2, wherein the source of the PMOS tube 10-1 is respectively connected to the power supply VCC and the source of the PMOS tube 10-2, the gate of the PMOS tube 10-1 is respectively connected to the gate of the PMOS tube 10-2 and the source of the PMOS tube 301, and the drain of the PMOS tube 10-2 is connected to the source of the PMOS tube 302.
[0021] Preferably, the source follower circuit 20 includes an operational amplifier 21, an NMOS tube 22 and a reference resistor 24, the output end of the operational amplifier 21 is connected to the gate of the NMOS tube 22, the drain of the NMOS tube 22 is connected to the drain of the PMOS tube 301, the non-inverting input end of the operational amplifier 21 is connected to the reference voltage V1, the source of the NMOS tube 22 is connected to the inverting input end of the operational amplifier 21, and is connected to one end of the reference resistor 24, and the other end of the reference resistor 24 is grounded GND.
[0022] Preferably, the switch group includes a plurality of switches 30-1 to 30-N, and the plurality of switches 30-1 to 30-N are respectively used to control the input on and off of a plurality of voltages VR1 to VRN to the positive input terminal of the comparator 305, wherein N is a natural number greater than or equal to 2.
[0023] Preferably, only one thermistor 304 is provided in the peripheral circuit.
[0024] Preferably, the PMOS tube 301, PMOS tube 302, comparator 305, current mirror circuit, source follower circuit and switch group are integrated into an integrated circuit, and the drain lead pin of the PMOS tube 302 serves as the connection end of the peripheral circuit.
[0025] The invention also relates to a temperature detection method using the multi-segment temperature detection circuit, which detects temperature points by a successive approximation method.
[0026] Preferably, the method described uses gate-end control signals Φ1~ΦN as on-off control signals of switches 30-1~30-N in the switch group respectively. When any gate-end control signal Φi is at a low level, the corresponding switch 30-i is turned on, and Φ1~ΦN form the gate-end control signal VEN through a NOR gate to control the on and off of the PMOS tube 301 and the PMOS tube 302, wherein N is a natural number greater than or equal to 2, i is a natural number and 2≤i≤N.
[0027] Preferably, the switches 30-1 to 30-N in the switch group are closed one by one to perform the following processing: when the switch 30-1 is closed: if the comparator 305 outputs a low level, then: When switch 30-i is closed, i is a natural number and 2≤i≤N:
[0028] If the output of the comparator 305 is low level last time and the comparator 305 outputs low level this time, then: If the previous comparator 305 output is a low level, and the current comparator 305 outputs a high level, then: If the previous comparator 305 output is high level, and the current comparator 305 output is low level, then If the output of the comparator 305 is high level last time and the comparator 305 outputs high level this time, then: The two voltage values finally obtained are used as the voltage value range of the inverting input terminal of the comparator 305 to obtain the resistance value range of the thermistor 304 .
[0029] Preferably, the voltage value VT of the inverting input terminal of the comparator is set to half of the sum of the two voltage values finally obtained, and the resistance value of the thermistor 304 is obtained by the voltage value VT of the inverting input terminal of the comparator.
[0030] The advantages of the temperature detection circuit and temperature detection method provided by the present invention include but are not limited to:
[0031] Through the setting of two PMOS tubes, a comparator, a current mirror circuit, a source follower circuit and a switch group, only one thermistor is needed in the peripheral circuit to realize the collection of multiple temperature points, meet the requirements of low cost and low power consumption, and also help to reduce the occupied area of the circuit.
[0032] At the same time, two PMOS tubes, a comparator, a current mirror circuit, a source follower circuit and a switch group can be integrated into the integrated circuit of the temperature detection chip. Only the pins need to be brought out as connection points for the peripheral circuits, so that the temperature sensor and related circuits can be integrated on the same chip to complete the entire process from temperature detection, signal conversion and signal processing. This not only increases the chip system function, but also improves the performance and reliability of temperature detection. It is not only easy to use but also helps to further reduce the occupied area.
[0033] In addition, the gate control signal can also be used as an on-off control signal of the switch group to control the on and off of the temperature detection circuit, which is low in cost and helps to achieve low power consumption requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 Schematic diagram of a temperature detection circuit in the prior art.
[0035] Figure 2 The schematic diagram of the temperature detection circuit of the present invention in one embodiment is exemplarily shown.
[0036] Figure 3 The waveform diagram of the gate terminal control signals Φ1 to ΦN of the present invention is exemplarily shown in one embodiment. DETAILED DESCRIPTION
[0037] The present invention is further described below in conjunction with the accompanying drawings, and the structure and principle of the device and method are very clear to people in the field. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0038] The temperature detection circuit includes a PMOS tube 301, a PMOS tube 302, a comparator 305, a current mirror circuit 10, a source follower circuit 20 and a switch group 30, wherein the gate of the PMOS tube 301 is connected to the gate of the PMOS tube 302 and is connected to the gate control signal VEN, the source of the PMOS tube 301 is connected to one end of the current mirror circuit, the source of the PMOS tube 302 is connected to the other end of the current mirror circuit, the drain of the PMOS tube 301 is connected to the source follower circuit, the drain of the PMOS tube 302 is connected to the peripheral circuit and the inverting input end of the comparator 305, and the non-inverting input end of the comparator 305 is connected to the switch group, wherein the current mirror circuit 10 is used to make the source of the PMOS tube 301 and the source of the PMOS tube 302 pass through equal currents, the source follower circuit 20 is used to provide a constant current to the drain of the PMOS tube 301, and the switch group is used to switch the input voltage of the non-inverting input end of the comparator 305.
[0039] When in use, the temperature point is detected by successive approximation method, and the switches 30-1 to 30-N in the switch group are closed one by one in turn to perform temperature detection, that is:
[0040] First, the switch 30-1 is closed. If the comparator 305 outputs a low level, then:
[0041] Then, the switches 30-i are closed in sequence, where i is a natural number and 2≤i≤N:
[0042] When switch 30-i is closed, i is a natural number and 2≤i≤N:
[0043] If the output of the comparator 305 is low level last time and the comparator 305 outputs low level this time, then:
[0044]
[0045] If the previous comparator 305 output is a low level, and the current comparator 305 outputs a high level, then:
[0046]
[0047] If the previous comparator 305 output is high level, and the current comparator 305 outputs low level, then:
[0048]
[0049] If the output of the comparator 305 is high level last time and the comparator 305 outputs high level this time, then:
[0050]
[0051] The two voltage values finally obtained are used as the voltage value range of the inverting input terminal of the comparator 305 to obtain the resistance value range of the thermistor 304 .
[0052] The temperature detection circuit and the temperature detection method are further illustrated below in combination with the embodiments and drawings.
[0053] Example 1
[0054] See also Figure 2 , Figure 2 The schematic diagram of a temperature detection circuit of the present invention is exemplarily shown, wherein the temperature detection circuit 300 includes a current mirror circuit 10, a source follower circuit 20, two PMOS tubes: PMOS tube 301 and PMOS tube 302, a comparator 305, a switch group 30 and a thermistor 304. Among them, the current mirror circuit 10 includes a PMOS tube 10-1 and a PMOS tube 10-2; the source follower circuit 20 includes an operational amplifier 21, an NMOS tube 22 and a reference resistor 24; the switch group 30 includes switches 30-1 to 30-N. The following is an example of each part.
[0055] The gate of the PMOS tube 301 is connected to the gate of the PMOS tube 302 and is connected to the gate control signal VEN, the source of the PMOS tube 301 is connected to one end of the current mirror circuit, the source of the PMOS tube 302 is connected to the other end of the current mirror circuit, the drain of the PMOS tube 301 is connected to the source follower circuit, the drain of the PMOS tube 302 is connected to the thermistor 304 and the inverting input of the comparator 305, the non-inverting input of the comparator 305 is connected to the switch group, and the switches 30-1 to 30-N of the switch group are respectively used to control the input of VR1 to VRN to the non-inverting input of the comparator 305, so that the voltages of the non-inverting input of the comparator 305 are VR1 to VRN respectively, and the output voltage of the output of the comparator 305 is VO1, wherein the voltage values of VR1 to VRN gradually increase.
[0056] In the current mirror circuit 10, the PMOS tube 10-1 and the PMOS tube 10-2 form a current mirror, wherein the PMOS tube 10-1 serves as the source of the current mirror, the source of the PMOS tube 10-1 is respectively connected to the power supply VCC and the source of the PMOS tube 10-2, the gate of the PMOS tube 10-1 is respectively connected to the gate of the PMOS tube 10-2 and the source of the PMOS tube 301, and the drain of the PMOS tube 10-2 is connected to the source of the PMOS tube 302.
[0057] In the source follower circuit 20, the output end of the operational amplifier 21 of the source follower circuit 20 is connected to the gate of the NMOS tube 22, the drain of the NMOS tube 22 is connected to the drain of the PMOS tube 301, the non-inverting input end of the operational amplifier 21 is connected to a constant reference voltage V1, the source of the NMOS tube 22 is connected to the inverting input end of the operational amplifier 21, and is connected to one end of the reference resistor 24, and the other end of the reference resistor 24 is grounded GND.
[0058] In a preferred embodiment, the PMOS tube 301, PMOS tube 302, comparator 305, current mirror circuit, source follower circuit and switch group are integrated into an integrated circuit as a part of a power detection chip, and the drain of the PMOS tube 302 leads to the pin 303 of the chip to connect one end of the peripheral thermistor 304, and the other end of the thermistor 304 is grounded GND. In addition, the reference resistor 24 can also be used as a peripheral component of the integrated circuit, for example, the source of the NMOS tube 22 leads to the pin 23 of the chip to connect the peripheral reference resistor 24.
[0059] In a preferred embodiment, the gate control signals are Φ1~ΦN, Φ1~ΦN are respectively used as on-off control signals of switches 30-1~30-N, and Φ1~ΦN form a gate control signal VEN through a NOR gate, and are used to control the on and off of PMOS tube 301 and PMOS tube 302 at the same time.
[0060] The “~” indicates that the numbers of the omitted components are consecutive integers, and “N” indicates the number of components, which is a natural number greater than or equal to 2.
[0061] Example 2
[0062] refer to Figure 2 and Figure 3 As shown, VCC provides power for the chip. In this embodiment, the temperature points are collected using the successive approximation method, and the current temperature range is finally obtained. Specifically, the working process of the temperature detection circuit is as follows.
[0063] The current mirror circuit 10 uses the mirror principle of the current mirror to mirror the current I1 of the PMOS tube 10-1. At this time, the current value of the PMOS tube 10-2 is I2, and I2=I1. When the PMOS tube 302 is turned on, the voltage value of the node voltage VT is:
[0064] VT=I2×R 304 (1)
[0065] Note: The voltage value of voltage VT is equal to the current value of current I2 multiplied by the resistance value R of thermistor 304. 304 , the voltage value of the inverting input terminal of the comparator 305 is VT, wherein the thermistor 304 is a chip peripheral resistor.
[0066] The source follower circuit 20 is used to generate a reference voltage V2 that does not change with temperature and power supply voltage and a constant current source I1, whose current value is:
[0067]
[0068] Note: The current value of the current I1 is equal to the voltage value of the reference voltage V2 divided by the resistance value R24 of the reference resistor 24. When the PMOS tube 301 is turned on, the current value of the PMOS tube 10-1 is I1.
[0069] When the gate control signal Φ1 is at a high level and the other gate control signals Φi are at a low level, i is a natural number and 2≤i≤N, the gate control signals Φ1~Φi pass through or do not output the low-level gate control signal VEN, the PMOS tube 301 and the PMOS tube 302 are turned on, at this time, the switch 30-1 is closed, and the other switches are opened, the voltage value of the non-inverting input terminal of the comparator 305 is VR1, and the voltage value of the inverting input terminal of the comparator 305 is VT.
[0070] When the voltage VT at the inverting input terminal of the comparator 305 is greater than the voltage VR1 at the non-inverting input terminal of the comparator 305, the output terminal VO1 of the comparator 305 outputs a low level, and the temperature protection circuit is activated. On the contrary, when the voltage VT of the inverting input terminal of the comparator 305 is less than the voltage VR1 of the non-inverting input terminal of the comparator 305, the output terminal VO1 of the comparator 305 outputs a high level, indicating that the temperature detection range of the current detection circuit is exceeded, and the current temperature is less than the lowest temperature value of the detection range or greater than the highest temperature value of the detection range. Thereafter, the voltage value VT of the inverting input terminal of the comparator 305 continues to be collected according to the temperature change and the resistance value of the next thermistor 304 is obtained.
[0071] After the first comparison, if VO1 outputs a low level, at this time, the gate control signal Φ2 is set to a high level, the other gate control signals Φi are set to a low level, and the switch 30-2 is closed, and the other switches are opened. The voltage value of the non-inverting input terminal of the comparator 305 changes to VR2, and the voltage value of the inverting input terminal of the comparator 305 is VT.
[0072] When the voltage value VT of the inverting input terminal of the comparator 305 is greater than the voltage value VR2 of the positive input terminal of the comparator 305, the output terminal VO1 of the comparator 305 outputs a low level. On the contrary, when the voltage value VT at the inverting input terminal of the comparator 305 is less than the voltage value VR2 at the positive input terminal of the comparator 305, the output terminal VO1 of the comparator 305 outputs a high level.
[0073] After the second comparison, if VO1 outputs a low level, at this time, the gate control signal Φ3 is set to a high level, the other gate control signals Φi are set to a low level, and the switch 30-3 is closed, and the other switches are opened. The voltage value of the non-inverting input terminal of the comparator 305 changes to VR3, and the voltage value of the inverting input terminal of the comparator 305 is VT.
[0074] When the voltage value VT of the inverting input terminal of the comparator 305 is greater than the voltage value VR3 of the positive input terminal of the comparator 1, the output terminal VO1 of the comparator 305 outputs a low level. On the contrary, when the voltage value VT at the inverting input terminal of the comparator 305 is less than the voltage value VR3 at the positive input terminal of the comparator 305, the output terminal VO1 of the comparator 305 outputs a high level.
[0075] After the second comparison, if VO1 outputs a high level, at this time, the gate control signal Φ3 is set to a high level, the other gate control signals Φi are set to a low level, and the switch 30-3 is closed, and the other switches are opened. The voltage value of the non-inverting input terminal of the comparator 305 changes to VR3, and the voltage value of the inverting input terminal of the comparator 305 is VT.
[0076] When the voltage value VT of the inverting input terminal of the comparator 305 is greater than the voltage value VR3 of the positive input terminal of the comparator 305, the output terminal VO1 of the comparator outputs a low level. On the contrary, when the voltage value VT at the inverting input terminal of the comparator 305 is less than the voltage value VR3 at the positive input terminal of the comparator 305, the output terminal VO1 of the comparator 305 outputs a high level.
[0077] Similarly, the switches 30-1 to 30-N are closed in sequence to change the voltage value of the non-inverting input terminal of the comparator 305, and finally the voltage value of the voltage VT is determined to be within the last two voltage values VR obtained. i ~VR i+1 The approximate value of the voltage VT is: The resistance of the thermistor 304 is deduced from the value of the voltage VT according to equation (1), and then the temperature of the thermistor 304 is obtained according to the resistance of the thermistor 304, so that the current temperature can be known.
Claims
1. A temperature detection method using a multi-stage temperature detection circuit, characterized in that The temperature point is detected by a successive approximation method, and gate control signals Φ1 to ΦN are used as on / off control signals of a first switch (30-1) to an Nth switch (30-N) in a switch group, respectively. The ≈ indicates that the number of the omitted device is a continuous integer. When any gate control signal Φi is at a low level, the corresponding i-th switch (30-i) is turned on, and Φ1 to ΦN form a gate control signal VEN through a NOR gate to control the on / off of a first PMOS tube (301) and a second PMOS tube (302), wherein N is a natural number greater than or equal to 2, and i is a natural number and 2≤i <N; The multi-stage temperature detection circuit is a peripheral circuit with a thermistor (304), and the peripheral circuit comprises a first PMOS tube (301), a second PMOS tube (302), a comparator (305), a current mirror circuit (10), a source follower circuit (20) and a switch group (30), wherein the gate of the first PMOS tube (301) is connected to the gate of the second PMOS tube (302) and is connected to a gate end control signal VEN, the source of the first PMOS tube (301) is connected to one end of the current mirror circuit, the source of the second PMOS tube (302) is connected to the other end of the current mirror circuit, and the The drain of a PMOS tube (301) is connected to a source follower circuit, the drain of a second PMOS tube (302) is connected to a peripheral circuit and an inverting input terminal of a comparator (305), and the non-inverting input terminal of the comparator (305) is connected to a switch group, wherein the current mirror circuit (10) is used to allow equal currents to pass through the source of the first PMOS tube (301) and the source of the PMOS tube (302), the source follower circuit (20) is used to provide a constant current to the drain of the first PMOS tube (301), and the switch group is used to switch the input voltage of the non-inverting input terminal of the comparator (305); The current mirror circuit (10) comprises a third PMOS tube (10-1) and a fourth PMOS tube (10-2), wherein the source of the third PMOS tube (10-1) is respectively connected to a power source VCC and the source of the fourth PMOS tube (10-2), the gate of the third PMOS tube (10-1) is respectively connected to the gate of the fourth PMOS tube (10-2) and the source of the first PMOS tube (301), and the drain of the fourth PMOS tube (10-2) is connected to the source of the second PMOS tube (302); The source follower circuit (20) comprises an operational amplifier (21), an NMOS tube (22) and a reference resistor (24); the output end of the operational amplifier (21) is connected to the gate of the NMOS tube (22); the drain of the NMOS tube (22) is connected to the drain of the first PMOS tube (301); the non-inverting input end of the operational amplifier (21) is connected to a reference voltage V1; the source of the NMOS tube (22) is connected to the inverting input end of the operational amplifier (21) and is connected to one end of the reference resistor (24); the other end of the reference resistor (24) is grounded GND; The switch group includes a plurality of switches, and the plurality of switches are used to control the input on and off of a plurality of voltages VR1 to VRN to the positive input terminal of the comparator (305), wherein N is a natural number greater than or equal to 2; in the peripheral circuit, only one thermistor (304) is provided; The first PMOS tube (301), the second PMOS tube (302), the comparator (305), the current mirror circuit, the source follower circuit and the switch group are integrated into an integrated circuit, and the drain lead pin of the second PMOS tube (302) serves as a connection end of the peripheral circuit.
2. The temperature detection method of the multi-stage temperature detection circuit as claimed in claim 1, characterized in that The first switch (30-1) to the Nth switch (30-N) in the switch group are closed one by one to perform the following processing: When the first switch (30-1) is closed: if the comparator (305) outputs a low level, then: When the i-th switch (30-i) is closed, i is a natural number and 2≤i <N: If the previous comparator (305) output is a low level, and the current comparator (305) outputs a low level, then: If the previous comparator (305) output is a low level, and the current comparator (305) outputs a high level, then: If the previous comparator (305) output is high level, and the current comparator (305) output is low level, then: If the previous comparator (305) output is high level, and the current comparator (305) outputs high level, then let: The two voltage values finally obtained are used as the voltage value range of the inverting input terminal of the comparator (305) to obtain the resistance value range of the thermistor (304).
3. The temperature detection method of the multi-stage temperature detection circuit as claimed in claim 2, characterized in that The voltage value VT of the inverting input terminal of the comparator is set to half of the sum of the two voltage values finally obtained, and the resistance value of the thermistor (304) is obtained through the voltage value VT of the inverting input terminal of the comparator.
