Temperature alarm circuit, temperature alarm method and storage medium

By designing a temperature alarm circuit including a temperature sensing module, a voltage comparison module and a temperature judgment module, and using the first and second comparators to perform temperature comparisons based on the same reference voltage, the difference in alarm accuracy of the temperature alarm at different temperatures is solved. The bigger problem is to achieve the consistency of alarm accuracy of the temperature judgment module at different temperatures.

CN118533309APending Publication Date: 2024-08-23SHANGHAI HUALI MICROELECTRONICS CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410524250.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-28
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The alarm accuracy of existing temperature alarms varies greatly at different temperatures, especially the deviation of low-temperature alarms, which affects the security of SOC data.

Method used

Design a temperature alarm circuit, including a temperature sensing module, a voltage comparison module and a temperature judgment module, by providing a first voltage and a second voltage that are both negatively correlated with temperature, and using the first and second comparators based on the same The reference voltage is compared to ensure that the alarm accuracy of the temperature judgment module is consistent at different temperatures.

Benefits of technology

By ensuring that the alarm accuracy of the temperature judgment module is consistent at different temperatures, the problem of large differences in alarm accuracy of temperature alarms at different temperatures is solved, and the accuracy of temperature monitoring and alarms is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118533309A
    Figure CN118533309A
Patent Text Reader

Abstract

The invention provides a temperature alarm circuit, a temperature alarm method and a storage medium. The temperature alarm circuit comprises a temperature sensing module, a voltage comparison module and a temperature judgment module. The first comparator and the second comparator respectively compare the first voltage and the second voltage provided by the temperature sensing module based on the same reference voltage as the comparison voltage, and the second voltage is the divided voltage of the first voltage, so that the temperature sensing linearity of the temperature sensing module is ensured, and the temperature sensing accuracy of the temperature sensing module is improved. The voltage which changes along with the temperature is ensured to have the same linearity, so that the consistency of the alarm precision when the temperature judgment module detects the temperature range based on the alarm signal to give an alarm is ensured, namely the consistency of the alarm precision of the temperature judgment module at different temperatures is ensured; the problem of large alarm precision difference of temperature alarm at different temperatures is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of integrated circuits, and in particular to a temperature alarm circuit, a temperature alarm method and a storage medium. Background Art

[0002] Temperature alarms are widely used in various SOC products such as cards and MCUs. When the SOC operating temperature is lower than or higher than a specific temperature, the temperature alarm gives a warning signal to protect the SOC data security. Commonly used temperature alarms use the negative temperature characteristics of PN junction decompression as a temperature sensitive element, compare the voltage that changes with temperature with the constant voltage, and then form the purpose of temperature monitoring and alarm.

[0003] Figure 1 This is a working principle diagram of a temperature alarm in the prior art. Figure 1 As shown, the alarm is usually set based on a triode, and Vbe is the voltage between the emitter and base of the triode. It is understandable that Vbe changes with temperature, that is, Vbe is negatively correlated with temperature. V1 is the comparison voltage of the alarm temperature T1, V2 is the comparison voltage of the alarm temperature T2, and δ1 and δ2 are the voltage value deviations of Vbe at T1 and T2 respectively. Due to reasons such as process and circuit structure, Vbe will have certain differences. When the circuit structure is fixed, it usually presents a fixed percentage at different temperatures. The larger the voltage value, the greater the voltage value deviation, so δ1 will be greater than δ2. Then for the temperature alarm, the deviation of the low temperature alarm is greater.

[0004] Therefore, it is necessary to propose a solution to solve the problem of different alarm accuracy of temperature alarms at different temperatures, especially the problem of large deviation of temperature alarms under low temperature alarms. Summary of the invention

[0005] The object of the present invention is to provide a temperature alarm circuit, a temperature alarm method and a storage medium to solve the problem that the alarm accuracy of the temperature alarm varies greatly at different temperatures.

[0006] In order to solve the above technical problems, based on one aspect of the present invention, the present invention provides a temperature alarm circuit, which includes:

[0007] A temperature sensing module, the temperature sensing module is used to provide a first voltage and a second voltage both of which are negatively correlated with temperature; the second voltage is a divided voltage of the first voltage;

[0008] A voltage comparison module, the voltage comparison module comprising a first comparator and a second comparator; the first comparator is used to generate a first alarm signal when the first voltage is greater than a reference voltage, and to generate a second alarm signal when the first voltage is less than or equal to the reference voltage; the second comparator is used to generate a third alarm signal when the second voltage is greater than the reference voltage, and to generate a fourth alarm signal when the second voltage is less than or equal to the reference voltage;

[0009] A temperature judgment module is used to judge the range of the temperature sensed by the temperature sensing module according to the first alarm signal, the second alarm signal, the third alarm signal and the fourth alarm signal.

[0010] Optionally, the first alarm signal and the third alarm signal are both high-level signals, and the second alarm signal and the fourth alarm signal are both low-level signals.

[0011] Optionally, when the first comparator generates the first alarm signal and the second comparator generates the third alarm signal, the temperature judgment module determines that the temperature sensed by the temperature sensing module is lower than the first temperature;

[0012] When the first comparator generates the first alarm signal and the second comparator generates the fourth alarm signal, the temperature judgment module determines that the temperature sensed by the temperature sensing module is greater than the first temperature and less than or equal to the second temperature;

[0013] When the first comparator generates the second alarm signal and the second comparator generates the fourth alarm signal, the temperature judgment module determines that the temperature sensed by the temperature sensing module is greater than the second temperature;

[0014] The proportional relationship between the voltage corresponding to the first temperature and the voltage corresponding to the second temperature is the same as the proportional relationship between the first voltage and the second voltage.

[0015] Optionally, the temperature sensing module includes a voltage driving unit, a first triode, a second triode and a voltage dividing unit, wherein the emitter of the first triode is connected to the voltage driving unit through a first resistor, the collector and the base of the first triode are both grounded, and one end of the first resistor connected to the voltage driving unit is grounded through a second resistor; the emitter of the second triode is connected to the voltage driving unit and the first comparator, the collector and the base of the second triode are both grounded, the voltage dividing unit is connected in parallel between the emitter and the collector of the second triode, and the voltage dividing unit is connected to the second comparator;

[0016] The voltage driving unit is used to adjust the sum of the Vbe of the first transistor and the voltage on the first resistor to be consistent with the Vbe of the second transistor, and the voltage dividing unit is used to divide the Vbe of the second transistor to obtain the second voltage.

[0017] Optionally, the emitter area of ​​the first transistor is an integer multiple of the emitter area of ​​the second transistor.

[0018] Optionally, both the first transistor and the second transistor are PNP transistors.

[0019] Optionally, the voltage driving unit includes an operational amplifier, a first PMOS tube and a second PMOS tube, the source of each of the first PMOS tube and the second PMOS tube is connected to the power supply voltage, the gate of each of the first PMOS tube and the second PMOS tube is connected to the output of the operational amplifier, the drain of the first PMOS tube and the first resistor are connected to the inverting input of the operational amplifier, and the drain of the second PMOS tube and the emitter of the second transistor are connected to the non-inverting input of the operational amplifier.

[0020] Optionally, the voltage dividing unit includes a third resistor and a fourth resistor connected in series, the third resistor is connected to the emitter of the second transistor, the fourth resistor is grounded, and the second comparator is connected between the third resistor and the fourth resistor.

[0021] To solve the above technical problems, based on another aspect of the present invention, the present invention provides a temperature alarm method, which comprises:

[0022] Providing a first voltage and a second voltage both of which are negatively correlated with temperature, wherein the second voltage is a divided voltage of the first voltage;

[0023] When the first voltage is greater than a reference voltage, a first alarm signal is generated; when the first voltage is less than or equal to the reference voltage, a second alarm signal is generated; when the second voltage is greater than the reference voltage, a third alarm signal is generated; when the second voltage is less than or equal to the reference voltage, a fourth alarm signal is generated;

[0024] The temperature range is determined according to the first alarm signal, the second alarm signal, the third alarm signal and the fourth alarm signal.

[0025] Optionally, when both the first alarm signal and the third alarm signal are generated, it is determined that the temperature is less than the first temperature;

[0026] When both the first alarm signal and the fourth alarm signal are generated, determining that the temperature is greater than the first temperature and less than or equal to the second temperature;

[0027] When both the second alarm signal and the fourth alarm signal are generated, determining that the temperature is greater than the second temperature;

[0028] The proportional relationship between the voltage corresponding to the first temperature and the voltage corresponding to the second temperature is the same as the proportional relationship between the first voltage and the second voltage.

[0029] To solve the above technical problem, based on another aspect of the present invention, the present invention also provides a storage medium, on which a readable and writable program is stored, and when the program is executed, the above temperature alarm method can be implemented.

[0030] In the temperature alarm circuit as above, the first comparator and the second comparator compare the first voltage and the second voltage provided by the temperature sensing module based on the same reference voltage as the comparison voltage, and the second voltage is a divided voltage of the first voltage. While ensuring the temperature sensing linearity of the temperature sensing module, it also ensures that the voltage that changes with temperature has the same linearity. Therefore, it ensures that the temperature judgment module has consistent alarm accuracy when detecting the temperature range based on the alarm signal to alarm, that is, it ensures the consistency of the alarm accuracy of the temperature judgment module at different temperatures, which solves the problem of large differences in alarm accuracy of temperature alarms at different temperatures.

[0031] It should be noted that the temperature alarm method and the temperature alarm circuit are based on the same inventive concept and have the same or corresponding specific technical features, and therefore also have the technical effects brought by the temperature alarm circuit, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Those skilled in the art should understand that the drawings are provided for a better understanding of the present invention and do not constitute any limitation on the scope of the present invention.

[0033] Figure 1 It is a working principle diagram of a temperature alarm in the prior art.

[0034] Figure 2 is a schematic diagram of a temperature alarm circuit according to an embodiment of the present invention;

[0035] Figure 3 1 is a working principle diagram of a temperature alarm circuit according to an embodiment of the present invention.

[0036] In the attached figure:

[0037] 10-temperature sensing module; 20-voltage comparison module;

[0038] CMP_1-first comparator; CMP_2-second comparator; Q1-first transistor; Q2-second transistor; PM1-first PMOS transistor; PM2-second PMOS transistor; AMP-operational amplifier; R1-first resistor; R2-second resistor; R3-third resistor; R4-fourth resistor;

[0039] Net1-first voltage; Net2-second voltage; Vref-reference voltage; VDD-power supply voltage;

[0040] T1-first temperature; T2-second temperature. DETAILED DESCRIPTION

[0041] In order to make the purpose, advantages and features of the present invention clearer, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the drawings are all in a very simplified form and are not drawn to scale, and are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention. In addition, the structure shown in the drawings is often a part of the actual structure. In particular, the emphasis of each drawing is different, and sometimes different scales are used.

[0042] As used in the present invention, the singular forms "one", "an" and "the" include plural objects, the term "or" is generally used to include the meaning of "and / or", the term "several" is generally used to include the meaning of "at least one", and the term "at least two" is generally used to include the meaning of "two or more". In addition, the terms "first", "second" and "third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first", "second" and "third" may explicitly or implicitly include one or at least two of the features, "one end" and "the other end" and "the proximal end" and "the distal end" generally refer to two corresponding parts, which include not only the endpoints, and the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral body; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. In addition, as used in the present invention, an element disposed on another element generally only indicates that there is a connection, coupling, cooperation or transmission relationship between the two elements, and the connection, coupling, cooperation or transmission between the two elements may be direct or indirect through an intermediate element, and cannot be understood as indicating or implying the spatial position relationship between the two elements, that is, one element may be in any orientation such as inside, outside, above, below or on one side of another element, unless otherwise clearly indicated in the content. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0043] Figure 2 FIG. 1 is a schematic diagram of a temperature alarm circuit according to an embodiment of the present invention. Figure 2 As shown, an embodiment of the present invention schematically provides a temperature alarm circuit, including a temperature sensing module 10, a voltage comparison module 20 connected to the temperature sensing module 10, and a temperature judgment module (not shown) connected to the voltage comparison module 20, wherein the voltage comparison module 20 includes a first comparator CMP_1 and a second comparator CMP_2. Each module is described in detail below.

[0044] The temperature sensing module 10 is used to provide a first voltage Net1 and a second voltage Net2, both of which are negatively correlated with temperature; the second voltage Net2 is a divided voltage of the first voltage Net1, so the second voltage Net2 is less than the first voltage Net1, and the two are linearly related. In one embodiment, the temperature sensing module 10 is a PTAT (Proportional To Absolute Temperature) core circuit, which is a temperature measurement circuit that measures and compensates for temperature based on changes in temperature and changes in current and voltage. Through a current source or a voltage source, the current or voltage is inversely proportional to the temperature, that is, proportional to the absolute temperature.

[0045] Further, the temperature sensing module 10 includes a voltage driving unit, a first transistor Q1, a second transistor Q2 and a voltage dividing unit, the emitter of the first transistor Q1 is connected to the voltage driving unit through a first resistor R1, the collector and the base of the first transistor Q1 are both grounded, and one end of the first resistor R1 connected to the voltage driving unit is grounded through a second resistor R2; the emitter of the second transistor Q2 is connected to the voltage driving unit and the non-inverting input terminal of the first comparator CMP_1, the collector and the base of the second transistor Q2 are both grounded, the voltage dividing unit is connected in parallel between the emitter and the collector of the second transistor Q2, and the voltage dividing unit is connected to the non-inverting input terminal of the second comparator CMP_2; the voltage driving unit is used to adjust the sum of the Vbe of the first transistor Q1 and the voltage on the first resistor R1 to be consistent with the Vbe of the second transistor Q2, and the voltage dividing unit is used to divide the Vbe of the second transistor Q2 to obtain the second voltage Net2. In this way, the first voltage Net1 is the Vbe of the second transistor Q2, and the second voltage Net2 is the divided voltage of Vbe. In addition, the emitter area of ​​the first transistor Q1 is an integer multiple of the emitter area of ​​the second transistor Q2. In one embodiment, both the first transistor Q1 and the second transistor Q2 are PNP transistors. Optionally, the voltage dividing unit includes a third resistor R3 and a fourth resistor R4 connected in series, the third resistor R3 is connected to the emitter of the second transistor Q2, the fourth resistor R4 is grounded, and the in-phase input terminal of the second comparator CMP_2 is connected between the third resistor R3 and the fourth resistor R4. It can be understood that the proportionality coefficient between the second voltage Net2 and the first voltage Net1 is R4 / (R3+R4).

[0046] Furthermore, the voltage driving unit includes an operational amplifier AMP, a first PMOS tube PM1 and a second PMOS tube PM2, the source of each of the first PMOS tube PM1 and the second PMOS tube PM2 is connected to the power supply voltage VDD, the gate of each of the first PMOS tube PM1 and the second PMOS tube PM2 is connected to the output end of the operational amplifier AMP, the drain of the first PMOS tube PM1 and the first resistor R1 are connected to the inverting input end of the operational amplifier AMP, and the drain of the second PMOS tube PM2 and the emitter of the second triode Q2 are connected to the non-inverting input end of the operational amplifier AMP. It should be noted that the first PMOS tube PM1 and the second PMOS tube PM2 work in the saturation region.

[0047] The inverting input terminal of the first comparator CMP_1 of the voltage comparison module 20 is connected to the reference voltage Vref, and the output terminal of the first comparator CMP_1 is connected to the temperature judgment module. The first comparator CMP_1 is used to generate a first alarm signal when the first voltage Net1 is greater than the reference voltage Vref, and to generate a second alarm signal when the first voltage Net1 is less than or equal to the reference voltage Vref, and output the first alarm signal or the second alarm signal to the temperature judgment module. The inverting input terminal of the second comparator CMP_2 is connected to the reference voltage Vref, and the output terminal of the second comparator CMP_2 is connected to the temperature judgment module. The second comparator CMP_2 is used to generate a third alarm signal when the second voltage Net2 is greater than the reference voltage Vref, and to generate a fourth alarm signal when the second voltage Net2 is less than or equal to the reference voltage Vref, and output the third alarm signal and the fourth alarm signal to the temperature judgment module. In one embodiment, the first alarm signal and the third alarm signal are both high-level signals, and the second alarm signal and the fourth alarm signal are both low-level signals.

[0048] The temperature judgment module is used to judge the range of the temperature sensed by the temperature sensing module 10 according to the first alarm signal, the second alarm signal, the third alarm signal and the fourth alarm signal, thereby detecting the temperature sensed by the temperature sensing module 10 using the characteristics of the transistor, and then issuing a low temperature alarm or a high temperature alarm.

[0049] Figure 3 FIG. 1 is a working principle diagram of a temperature alarm circuit according to an embodiment of the present invention. Figure 2 and Figure 3Specifically, when the first comparator CMP_1 generates the first alarm signal and the second comparator CMP_2 generates the third alarm signal, the temperature judgment module determines that the temperature sensed by the temperature sensing module 10 is lower than the first temperature T1. When the first comparator CMP_1 generates the first alarm signal and the second comparator CMP_2 generates the fourth alarm signal, the temperature judgment module determines that the temperature sensed by the temperature sensing module 10 is higher than the first temperature T1 and lower than or equal to the second temperature T2. When the first comparator CMP_1 generates the second alarm signal and the second comparator CMP_2 generates the fourth alarm signal, the temperature judgment module determines that the temperature sensed by the temperature sensing module 10 is higher than the second temperature T2. Wherein, the proportional relationship between the voltage corresponding to the first temperature T1 and the voltage corresponding to the second temperature T2 is the same as the proportional relationship between the first voltage Net1 and the second voltage Net2, that is, by using the negative temperature characteristic of the transistor, the proportional relationship between the voltage corresponding to the second temperature T2 and the voltage corresponding to the first temperature T1 is equal to R4 / (R3+R4). See. Figure 3 , the voltage corresponding to the first temperature T1 is Vbe1, and the voltage corresponding to the second temperature T2 is Vbe2. The first temperature T1 is the temperature for low temperature alarm, and the second temperature T2 is the temperature for high temperature alarm. The generation of the above four alarm signals can realize low temperature alarm and high temperature alarm. Specifically, when the first alarm signal and the third alarm signal are generated, a low temperature alarm is performed; when the first alarm signal and the fourth alarm signal are generated, it indicates that the temperature is in a stable state; when the second alarm signal and the fourth alarm signal are generated, a high temperature alarm is performed.

[0050] In the temperature alarm circuit as above, the first comparator CMP_1 and the second comparator CMP_2 compare the first voltage Net1 and the second voltage Net2 provided by the temperature sensing module 10 based on the same reference voltage Vref as the comparison voltage, and the second voltage Net2 is a divided voltage of the first voltage Net1. While ensuring the temperature sensing linearity of the temperature sensing module 10, it also ensures that the voltage that changes with temperature has the same linearity, thereby ensuring the consistency of the alarm accuracy of the temperature judgment module when detecting the temperature range based on the alarm signal to alarm, that is, ensuring the consistency of the alarm accuracy of the temperature judgment module at different temperatures, and solving the problem of large differences in the alarm accuracy of the temperature alarm at different temperatures.

[0051] Based on the same inventive concept as the above-mentioned temperature alarm circuit, an embodiment of the present invention further provides a temperature alarm method, the temperature alarm method comprising:

[0052] providing a first voltage Net1 and a second voltage Net2 both of which are negatively correlated with temperature, wherein the second voltage Net2 is less than the first voltage Net1, and the second voltage Net2 is a divided voltage of the first voltage Net1;

[0053] When the first voltage Net1 is greater than the reference voltage Vref, a first alarm signal is generated; when the first voltage Net1 is less than or equal to the reference voltage Vref, a second alarm signal is generated; when the second voltage Net2 is greater than the reference voltage Vref, a third alarm signal is generated; when the second voltage Net2 is less than or equal to the reference voltage Vref, a fourth alarm signal is generated;

[0054] The temperature range is determined according to the first alarm signal, the second alarm signal, the third alarm signal and the fourth alarm signal.

[0055] Further, when both the first alarm signal and the third alarm signal are generated, it is determined that the temperature is lower than the first temperature T1; when both the first alarm signal and the fourth alarm signal are generated, it is determined that the temperature is greater than the first temperature T1 and less than or equal to the second temperature T2; when both the second alarm signal and the fourth alarm signal are generated, it is determined that the temperature is greater than the second temperature T2; wherein the proportional relationship between the voltage corresponding to the first temperature T1 and the voltage corresponding to the second temperature T2 is the same as the proportional relationship between the first voltage Net1 and the second voltage Net2.

[0056] It should be noted that a person skilled in the art can understand the temperature alarm method here based on the description of the temperature alarm circuit, which will not be described in detail here.

[0057] The embodiment of the present invention further provides a storage medium, on which a readable and writable program is stored, and when the program is executed, the above-mentioned temperature alarm method can be implemented. Specifically, the temperature alarm method provided by the present invention can be compiled into a program or software and stored on the storage medium. In actual use, the program stored in the storage medium is used to execute each step of the temperature alarm method.

[0058] Although the present invention is disclosed as above with preferred embodiments, the above embodiments are not intended to limit the present invention. For any technician familiar with the art, without departing from the scope of the technical solution of the present invention, the technical content disclosed above can be used to make many possible changes and modifications to the technical solution of the present invention, or modified into equivalent embodiments of equivalent changes. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still belongs to the scope of protection of the technical solution of the present invention.

Claims

1. A temperature alarm circuit, characterized in that: include: A temperature sensing module, the temperature sensing module is used to provide a first voltage and a second voltage both of which are negatively correlated with temperature; the second voltage is a divided voltage of the first voltage; A voltage comparison module, the voltage comparison module comprising a first comparator and a second comparator; the first comparator is used to generate a first alarm signal when the first voltage is greater than a reference voltage, and to generate a second alarm signal when the first voltage is less than or equal to the reference voltage; the second comparator is used to generate a third alarm signal when the second voltage is greater than the reference voltage, and to generate a fourth alarm signal when the second voltage is less than or equal to the reference voltage; A temperature judgment module is used to judge the range of the temperature sensed by the temperature sensing module according to the first alarm signal, the second alarm signal, the third alarm signal and the fourth alarm signal.

2. The temperature alarm circuit according to claim 1, characterized in that: The first alarm signal and the third alarm signal are both high-level signals, and the second alarm signal and the fourth alarm signal are both low-level signals.

3. The temperature alarm circuit according to claim 1, characterized in that: When the first comparator generates the first alarm signal and the second comparator generates the third alarm signal, the temperature judgment module determines that the temperature sensed by the temperature sensing module is less than the first temperature; When the first comparator generates the first alarm signal and the second comparator generates the fourth alarm signal, the temperature judgment module determines that the temperature sensed by the temperature sensing module is greater than the first temperature and less than or equal to the second temperature; When the first comparator generates the second alarm signal and the second comparator generates the fourth alarm signal, the temperature judgment module determines that the temperature sensed by the temperature sensing module is greater than the second temperature; The proportional relationship between the voltage corresponding to the first temperature and the voltage corresponding to the second temperature is the same as the proportional relationship between the first voltage and the second voltage.

4. The temperature alarm circuit according to claim 1, characterized in that: The temperature sensing module includes a voltage driving unit, a first triode, a second triode and a voltage dividing unit, wherein the emitter of the first triode is connected to the voltage driving unit through a first resistor, the collector and the base of the first triode are both grounded, and one end of the first resistor connected to the voltage driving unit is grounded through a second resistor; the emitter of the second triode is connected to the voltage driving unit and the first comparator, the collector and the base of the second triode are both grounded, the voltage dividing unit is connected in parallel between the emitter and the collector of the second triode, and the voltage dividing unit is connected to the second comparator; The voltage driving unit is used to adjust the sum of the Vbe of the first transistor and the voltage on the first resistor to be consistent with the Vbe of the second transistor, and the voltage dividing unit is used to divide the Vbe of the second transistor to obtain the second voltage.

5. The temperature alarm circuit according to claim 4, characterized in that: The emitter area of ​​the first transistor is an integral multiple of the emitter area of ​​the second transistor.

6. The temperature alarm circuit according to claim 4, characterized in that: The first transistor and the second transistor are both PNP transistors.

7. The temperature alarm circuit according to claim 4, characterized in that: The voltage driving unit includes an operational amplifier, a first PMOS tube and a second PMOS tube, wherein the source of each of the first PMOS tube and the second PMOS tube is connected to a power supply voltage, the gate of each of the first PMOS tube and the second PMOS tube is connected to the output end of the operational amplifier, the drain of the first PMOS tube and the first resistor are connected to the inverting input end of the operational amplifier, and the drain of the second PMOS tube and the emitter of the second transistor are connected to the non-inverting input end of the operational amplifier.

8. The temperature alarm circuit according to claim 4, characterized in that: The voltage dividing unit includes a third resistor and a fourth resistor connected in series, the third resistor is connected to the emitter of the second transistor, the fourth resistor is grounded, and the second comparator is connected between the third resistor and the fourth resistor.

9. A temperature alarm method, characterized in that: include: Providing a first voltage and a second voltage both of which are negatively correlated with temperature, wherein the second voltage is a divided voltage of the first voltage; When the first voltage is greater than a reference voltage, a first alarm signal is generated; when the first voltage is less than or equal to the reference voltage, a second alarm signal is generated; When the second voltage is greater than the reference voltage, the third alarm signal is generated; when the second voltage is less than or equal to the reference voltage, a fourth alarm signal is generated; The temperature range is determined according to the first alarm signal, the second alarm signal, the third alarm signal and the fourth alarm signal.

10. A storage medium having a readable and writable program stored thereon, characterized in that: When the program is executed, the temperature alarm method described in claim 9 is implemented.