Temperature measuring circuit easy to expand

By designing the main control chip, dual-channel comparison unit and capacitor charging and discharging unit in the energy storage converter, and calculating the temperature of the thermistor using the capacitor charging time difference timing value, the limited number of ADC peripherals in the energy storage converter is solved. Problem, enabling easy scalability and high reliability temperature measurement.

CN118936660APending Publication Date: 2024-11-12SHANGHAI ZHUOYANG ENERGY STORAGE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411071155.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

Due to the limited number of ADC peripherals in the energy storage converter, the number of temperature measurement channels cannot be met, resulting in insufficient temperature monitoring.

Method used

An easy-to-extend temperature measurement circuit is designed, using a main control chip, a dual-channel comparison unit and a capacitor charging and discharging unit. The resistance value of the thermistor is calculated by the time difference timing value of the capacitor charging and the known resistance value of the voltage divider resistor, and then Determine the ambient temperature without the need for ADC peripherals.

Benefits of technology

It realizes temperature measurement without ADC peripherals, solves the problem of limited number of processor ADC peripherals, and has the advantages of easy expansion, simple circuit structure, high reliability and low cost, and is suitable for practical applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118936660A_ABST
    Figure CN118936660A_ABST
Patent Text Reader

Abstract

The invention discloses a temperature measurement circuit easy to expand, and relates to the technical field of temperature measurement. The circuit comprises a main control chip, a two-way comparison unit and a capacitor charging and discharging unit, the main control chip is provided with an input / output pin and an interruption input pin, the two-way comparison unit comprises three divider resistors and two comparators, the capacitor charging and discharging unit comprises a capacitor and a thermistor, and the thermistor is connected with the capacitor. The temperature measurement result is obtained based on a capacitor charging time difference timing value and known resistance values of a plurality of divider resistors through the connection relation of the capacitor charging time difference timing value and the divider resistors, so that ADC (Analog to Digital Converter) peripheral equipment is not needed, and meanwhile, the temperature measurement result can be obtained by the main control chip through a pair of input / output pins and an interruption input pin; the temperature of the environment where the thermistors in the different capacitor charging and discharging units are located is measured in a time-sharing utilization mode, and therefore the temperature measuring circuit has the advantages of being easy to expand, simple in circuit structure, compact in structure, high in reliability and / or low in cost and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of temperature measurement, and in particular relates to a temperature measurement circuit that is easy to expand. Background Art

[0002] With the rapid development of energy technology, energy storage technology has become an indispensable part of modern power systems. In this field of energy storage technology, the power conversion system (PCS) plays a vital role. As a device used to control the battery charging and discharging process and perform AC / DC conversion, the energy storage converter not only improves the efficiency of energy use, but also provides a solid guarantee for the stability and security of the power grid.

[0003] Energy storage converters are power electronic devices. To ensure their safe and reliable operation, it is necessary to monitor the temperature of almost all key components in them so that timely countermeasures can be taken. However, due to the limited number of ADC (Analog to Digital Converter) peripherals of the digital signal processor used as the main control unit of the energy storage converter, the number of temperature measurement channels cannot be met. Therefore, how to provide a temperature measurement solution that is applicable to but not limited to energy storage converters and is easy to expand is a topic that technicians in this field urgently need to study. Summary of the invention

[0004] The object of the present invention is to provide an easily expandable temperature measurement circuit to solve the problem that the number of temperature measurement channels cannot be met due to the limited number of ADC peripherals of the processor.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] In a first aspect, an easily expandable temperature measurement circuit is provided, comprising a main control chip, a dual-path comparison unit and a capacitor charge and discharge unit, wherein the main control chip has an input / output pin and an interrupt input pin;

[0007] The dual-path comparison unit includes a first resistor, a second resistor, a third resistor, a first comparator and a second comparator, and the capacitor charging and discharging unit includes a capacitor and a thermistor, wherein one end of the first resistor is connected to a first DC power supply, the other end of the first resistor is respectively connected to one end of the second resistor and a positive input end of the second comparator, the other end of the second resistor is respectively connected to one end of the third resistor and a negative input end of the first comparator, the positive input end of the first comparator, the negative input end of the second comparator, one end of the thermistor and the input / output pin are respectively connected to one end of the capacitor, the other end of the thermistor is connected to a second DC power supply, the other end of the third resistor and the other end of the capacitor are respectively grounded, and the output end of the first comparator and the output end of the second comparator are respectively connected to the interrupt input pin;

[0008] The main control chip is used to measure the ambient temperature of the thermistor in the following manner:

[0009] Setting the input / output pin to an open-drain output state and setting the voltage at the input / output pin to 0V to complete the discharge of the capacitor;

[0010] Setting the input / output pin to a high impedance input state and enabling the interrupt input pin;

[0011] When a rising edge interrupt event is triggered at the interrupt input pin, clearing the timer and starting the timer to start timing;

[0012] When a falling edge interrupt event is triggered at the interrupt input pin, recording the timing value of the timer;

[0013] The resistance value of the thermistor is calculated based on the timing value ΔT, the known capacitance value C of the capacitor, the known resistance value R1 of the first resistor, the known resistance value R2 of the second resistor, and the known resistance value R3 of the third resistor.

[0014]

[0015] According to the known mapping relationship between thermistor and temperature and resistance, the resistance value R of the thermistor x The corresponding temperature is determined as the ambient temperature of the thermistor.

[0016] Based on the above invention content, a new temperature measurement scheme that does not require ADC peripherals and is easy to expand is provided, that is, it includes a main control chip, a dual-channel comparison unit and a capacitor charging and discharging unit, wherein the main control chip has an input / output pin and an interrupt input pin, the dual-channel comparison unit includes three voltage-dividing resistors and two comparators, and the capacitor charging and discharging unit includes a capacitor and a thermistor. Through their connection relationship and the main control chip using a timing value based on the capacitor charging time difference and the known resistance values ​​of a plurality of voltage-dividing resistors to obtain the temperature measurement result, there is no need for analog-to-digital conversion, that is, no ADC peripherals are required. At the same time, the main control chip can also use a pair of input / output pins and an interrupt input pin to measure the ambient temperature of the thermistors in different capacitor charging and discharging units in a time-sharing manner, thereby solving the problem that the existing processor cannot meet the number of temperature measurement channels due to the limited number of ADC peripherals it has. The scheme has the advantages of easy expansion, simple circuit structure, compact structure, high reliability and / or low cost, and is convenient for practical application and promotion.

[0017] In a possible design, the power input end of the main control chip is respectively connected to one end of the fourth resistor and the third DC power supply, and the other end of the fourth resistor is connected to the interrupt input pin.

[0018] In a possible design, the input / output pin is connected to one end of the capacitor after being connected in series with a current limiting resistor.

[0019] In a possible design, the main control chip is a digital signal processor chip.

[0020] In a possible design, the first comparator or the second comparator is a differential comparator of model LM2901DR.

[0021] In a possible design, the capacitor is a chip-type multilayer ceramic capacitor made of C0G material or NP0 material.

[0022] In a possible design, the capacitance value of the capacitor is negatively correlated with the main frequency of the main control chip.

[0023] In a possible design, the thermistor is a positive temperature coefficient thermistor or a negative temperature coefficient thermistor.

[0024] In a possible design, there are multiple capacitor charging and discharging units, and the temperature measurement circuit further includes a multi-way switch, wherein the multi-way switch has a common terminal, multiple non-common terminals, and a gating control terminal for controlling the common terminal to selectively connect to any non-common terminal among the multiple non-common terminals, and the multiple non-common terminals correspond one-to-one to the multiple capacitor charging and discharging units;

[0025] Each of the multiple non-common ends is connected to one end of the thermistor and one end of the capacitor in the corresponding capacitor charging and discharging unit, the common end is respectively connected to the positive input end of the first comparator, the negative input end of the second comparator and the input / output pin, and the selection control end is connected to the control output end of the main control chip.

[0026] In a possible design, the main control chip is also used to cyclically control the common terminal to connect to each non-common terminal one by one, so as to measure the ambient temperature of the thermistor in the capacitor charging and discharging unit corresponding to each non-common terminal.

[0027] Beneficial effects of the above scheme:

[0028] (1) The present invention creatively provides a new temperature measurement solution that does not require an ADC peripheral and is easy to expand, namely, it includes a main control chip, a dual-channel comparison unit and a capacitor charging and discharging unit, wherein the main control chip has an input / output pin and an interrupt input pin, the dual-channel comparison unit includes three voltage-dividing resistors and two comparators, and the capacitor charging and discharging unit includes a capacitor and a thermistor. Through their connection relationship and the main control chip using a timing value based on the capacitor charging time difference and the known resistance values ​​of a plurality of voltage-dividing resistors to obtain the temperature measurement result, there is no need for analog-to-digital conversion, that is, no ADC peripheral is required. At the same time, the main control chip can also use a pair of input / output pins and an interrupt input pin to use a time-sharing method to measure the ambient temperature of the thermistors in different capacitor charging and discharging units, thereby solving the problem that the existing processor cannot meet the number of temperature measurement channels due to the limited number of ADC peripherals. The present invention has the advantages of easy expansion, simple circuit structure, compact structure, high reliability and / or low cost, and is convenient for practical application and promotion. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0030] Figure 1 A schematic diagram of the circuit structure of an easily expandable temperature measurement circuit provided in an embodiment of the present application.

[0031] Figure 2 A schematic diagram of the extended application circuit structure of the temperature measurement circuit provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the present invention will be briefly introduced below in combination with the drawings and the description of the embodiments or the prior art. Obviously, the following description of the structures of the drawings is only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these embodiments without creative work. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention.

[0033] It should be understood that although the terms first and second, etc. may be used herein to describe various objects, these objects should not be limited by these terms. These terms are only used to distinguish one object from another object. For example, a first object can be referred to as a second object, and similarly, a second object can be referred to as a first object without departing from the scope of the exemplary embodiments of the present invention.

[0034] It should be understood that the term "and / or" that may appear in this document is merely a description of the association relationship between associated objects, indicating that there may be three relationships. For example, A and / or B can indicate three situations: A exists alone, B exists alone, or A and B exist at the same time. For another example, A, B and / or C can indicate the existence of any one of A, B and C or any combination of them. The term " / and" that may appear in this document describes another type of association object relationship, indicating that there may be two relationships. For example, A / and B can indicate two situations: A exists alone or A and B exist at the same time. In addition, the character " / " that may appear in this document generally indicates that the previous and next associated objects are in an "or" relationship.

[0035] Embodiment 1

[0036] like Figure 1As shown, the temperature measurement circuit provided in this embodiment and which is easy to expand includes but is not limited to a main control chip U1, a dual-way comparison unit and a capacitor charging and discharging unit, etc., wherein the main control chip U1 has an input / output pin I / O and an interrupt input pin INTO; the dual-way comparison unit includes but is not limited to a first resistor R1, a second resistor R2, a third resistor R3, a first operational amplifier comparator U2A and a second operational amplifier comparator U2B, etc., and the capacitor charging and discharging unit includes but is not limited to a capacitor C1 and a thermistor RT1, etc., wherein one end of the first resistor R1 is connected to a first DC power supply VDD1, and the other end of the first resistor R1 is respectively connected to one end of the second resistor R2 and the second operational amplifier comparator The positive input terminal of the first operational amplifier comparator U2A, the other end of the second resistor R2 is respectively connected to one end of the third resistor R3 and the negative input terminal of the first operational amplifier comparator U2A, the positive input terminal of the first operational amplifier comparator U2A, the negative input terminal of the second operational amplifier comparator U2B, one end of the thermistor RT1 and the input / output pin I / O are respectively connected to one end of the capacitor C1, the other end of the thermistor RT1 is connected to the second DC power supply VDD2, the other end of the third resistor R3 and the other end of the capacitor C1 are respectively grounded, and the output end of the first operational amplifier comparator U2A and the output end of the second operational amplifier comparator U2B are respectively connected to the interrupt input pin INTO.

[0037] like Figure 1 As shown, in the specific structure of the temperature measurement circuit, the dual-path comparison unit is used to perform two different voltage comparisons in real time, and transmit the voltage comparison results to the interrupt input pin INTO in real time to trigger a rising edge interrupt event or a falling edge interrupt event, wherein the first resistor R1, the second resistor R2 and the third resistor R3 are used to achieve the purpose of voltage division, so as to provide different reference voltages for the two different voltage comparisons, such as Figure 1As shown, for example, when the first DC power supply VDD1 provides a +5V voltage, two different reference voltages of 1V and 4V can be provided through their resistance design; the first comparator U2A and the second comparator U2B are respectively used to compare the corresponding reference voltage with the capacitor voltage, and specifically can be but not limited to a differential comparator of model LM2901DR. The capacitor charging and discharging unit is used to be arranged at a temperature-measured position (for example, around a key component of an energy storage converter) so as to collect a voltage signal that indirectly reflects the ambient temperature at the temperature-measured position, wherein the capacitor C1 is the object to be charged and discharged, and the charging time is related to the resistance and capacitance, and the temperature drift of an ordinary capacitor is relatively large, so a capacitor with a small temperature drift and a small leakage current should be used as a charging and discharging capacitor, that is, the capacitor C1 is preferably a chip-type multilayer ceramic capacitor made of C0G (ultra-stable ceramic material) or NP0 (abbreviation for Negative-Positive-Zero) material; the thermistor RT1 is used to affect the charging time of the capacitor C1 based on the mapping characteristics of temperature and resistance, so as to generate the voltage signal at the end of the capacitor C1, which can specifically be, but not limited to, a positive temperature coefficient thermistor or a negative temperature coefficient thermistor; the second DC power supply VDD2 can also be, but not limited to, provide a +5V voltage, such as Figure 1 The main control chip U1 is used to obtain the ambient temperature at the temperature measurement location according to the voltage comparison result, and it can be, but is not limited to, a digital signal processor chip in the main control unit of the energy storage converter, and the input / output pin I / O and the interrupt input pin INTO are regular pins in the existing digital signal processor chip.

[0038] Specifically, the main control chip U1 can be used, but is not limited to, to measure the ambient temperature of the thermistor RT1 in the manner described in the following steps S101 to S106 .

[0039] S101. Set the input / output pin I / O to an open-drain output state, and set the voltage at the input / output pin I / O to 0V, so as to complete the discharge of the capacitor C1.

[0040] In step S101, the open-drain output state is a state in which no voltage is output, and because the voltage at the pin of the input / output pin I / O is set to 0V, the two ends of the capacitor C1 are equivalent to being grounded respectively, so the capacitor C1 can be discharged until there is no electricity on the capacitor C1 (it needs to be discharged to a certain default time). In addition, the specific means for setting the state of the input / output pin I / O is a prior art and will not be repeated here.

[0041] S102 . Setting the input / output pin I / O to a high-impedance input state, and enabling the interrupt input pin INTO.

[0042] In the step S102, the high impedance input state is a state in which no voltage is input, so as not to affect the charging of the capacitor C1. Since the terminal voltage of the capacitor C1 is 0V or close to 0V after discharge, which is respectively less than the first reference voltage 1V and the second reference voltage 4V, the first comparator U2A will output a low level signal, and the second comparator U2B will output a high level signal, so that the interrupt input pin INTO is a low level signal. In addition, the specific means for enabling the interrupt input pin INTO is a prior art and will not be described in detail here.

[0043] S103. When a rising edge interrupt event is triggered at the interrupt input pin INTO, the timer is cleared and the timer is started to start timing.

[0044] In the step S103, since the terminal voltage of the capacitor C1 will increase with the charging effect, when it increases to reach the first reference voltage 1V, the first comparator U2A will output a high-level signal, and the second comparator U2B will still output a high-level signal, causing the interrupt input pin INTO to suddenly change to a high-level signal, triggering the rising edge interrupt event.

[0045] S104. When a falling edge interrupt event is triggered at the interrupt input pin INTO, record the timing value of the timer.

[0046] In the step S104, since the terminal voltage of the capacitor C1 continues to increase with the charging effect, when it reaches the second reference voltage 4V, the first comparator U2A will still output a high level signal, and the second comparator U2B will output a low level signal, so that the interrupt input pin INTO suddenly changes to a low level signal, triggering the generation of the falling edge interrupt event. In addition, after recording the timing value of the timer, the interrupt input pin INTO can be disabled and the timer can be stopped.

[0047] S105. Calculate the resistance value of the thermistor RT1 according to the timing value ΔT, the known capacitance value C of the capacitor C1, the known resistance value R1 of the first resistor R1, the known resistance value R2 of the second resistor R2 and the known resistance value R3 of the third resistor R3.

[0048] In step S105, the calculation formula of the resistance value of the thermistor RT1 is derived as follows:

[0049] Assume that the resistance value of thermistor RT1 is R x , the voltage of the first DC power supply is VDD1, then the first charging time for the terminal voltage of the capacitor C1 to rise from 0V to the first reference voltage V1 is The second charging time for the terminal voltage of the capacitor C1 to rise from 0V to the second reference voltage V2 is And ΔT=T2-T1, so we can deduce For example, if R1 = 1kΩ, R2 = 3kΩ and R3 = 1kΩ, then R x =ΔT / (C×1.386), and if ΔT=1000us and C=0.1uF, then R x =7215Ω.

[0050] S106. According to the known mapping relationship between thermistor RT1 and temperature and resistance, the resistance value R of thermistor RT1 is x The corresponding temperature is determined as the ambient temperature of the thermistor RT1.

[0051] In step S106, for example, if the model of the thermistor RT1 is NTC 10K±1% B value 3950, the known mapping table of the thermistor temperature and resistance can be checked to obtain the temperature and resistance of the thermistor. x =7215Ω corresponds to a temperature of 32.8°C, which is used as the ambient temperature of the thermistor RT1.

[0052] Based on the detailed description of the temperature measurement circuit, it can be known that since the temperature measurement result is obtained based on the capacitor charging time difference timing value and the known resistance values ​​of several voltage-dividing resistors, there is no need for analog-to-digital conversion, that is, no ADC peripheral is required. At the same time, since there can be multiple capacitor charging and discharging units or there can be multiple pairs of the dual-path comparison unit and the capacitor charging and discharging unit, the main control chip can use a pair of the input / output pins I / O and the interrupt input pin INTO to measure the ambient temperature of the thermistor RT1 in different capacitor charging and discharging units in a time-sharing manner. Therefore, the problem that the existing processor cannot meet the number of temperature measurement channels due to the limited number of ADC peripherals it has can be solved. The invention has the advantages of easy expansion, simple circuit structure, compact structure, good reliability and / or low cost, and is convenient for practical application and promotion.

[0053] Preferably, the power input terminal VCC of the main control chip U1 is connected to one end of the fourth resistor R4 and the third DC power supply VDD3 respectively, and the other end of the fourth resistor R4 is connected to the interrupt input pin INTO. Figure 1As shown, the third DC power supply VDD3 can provide, but is not limited to, a +3.3V voltage to power the main control chip U1 and ensure that the rising edge interrupt event and the falling edge interrupt event can be triggered normally.

[0054] Preferably, the input / output pin I / O is connected to one end of the capacitor C1 after being connected in series with a current limiting resistor R5. Figure 1 As shown, through the design of the current limiting resistor R5, it is possible to prevent excessive current from being input into the main control chip U1, thereby protecting the main control chip U1.

[0055] Preferably, the capacitance value of the capacitor C1 is negatively correlated with the main frequency of the main control chip U1, that is, the higher the main frequency of the main control chip U1, the smaller the capacitance value of the capacitor C1 can be, so as to shorten the charging and discharging time, quickly obtain the temperature measurement result, and achieve the purpose of appropriately adjusting the charging and discharging capacitance according to the detection speed requirements.

[0056] In summary, the temperature measurement circuit provided by this embodiment has the following technical effects:

[0057] (1) This embodiment provides a new temperature measurement solution that does not require an ADC peripheral and is easy to expand, that is, it includes a main control chip, a dual-channel comparison unit and a capacitor charging and discharging unit, wherein the main control chip has an input / output pin and an interrupt input pin, the dual-channel comparison unit includes three voltage-dividing resistors and two comparators, and the capacitor charging and discharging unit includes a capacitor and a thermistor. Through their connection relationship and the main control chip using a timing value based on the capacitor charging time difference and the known resistance values ​​of a plurality of voltage-dividing resistors to obtain the temperature measurement result, there is no need for analog-to-digital conversion, that is, no ADC peripheral is required. At the same time, the main control chip can also use a pair of input / output pins and an interrupt input pin to measure the ambient temperature of the thermistors in different capacitor charging and discharging units in a time-sharing manner, thereby solving the problem that the existing processor cannot meet the number of temperature measurement channels due to the limited number of ADC peripherals. The embodiment has the advantages of easy expansion, simple circuit structure, compact structure, high reliability and / or low cost, and is convenient for practical application and promotion.

[0058] Embodiment 2

[0059] Based on the technical solution of the above-mentioned embodiment 1, this embodiment further provides an extended application solution of the temperature measurement circuit. Figure 2 As shown, the number of the capacitor charging and discharging units is multiple ( Figure 2 The example shown is 4), and the temperature measurement circuit also includes a multi-way switch K1, wherein the multi-way switch K1 has a common terminal, a plurality of non-common terminals ( Figure 2The examples shown are 4) and a strobe control terminal for controlling the common terminal to selectively connect to any non-common terminal among the multiple non-common terminals, the multiple non-common terminals correspond one to one to the multiple capacitor charging and discharging units; each non-common terminal among the multiple non-common terminals is connected to one end of the thermistor RT1 and one end of the capacitor C1 in the corresponding capacitor charging and discharging unit, the common terminal is respectively connected to the positive input terminal of the first comparator U2A, the negative input terminal of the second comparator U2B and the input / output pin I / O, and the strobe control terminal is connected to the control output terminal CTR of the main control chip U1. Figure 2 As shown, for example, the multi-way switch K1 is a four-to-one path switch, so that the main control chip U1 can measure the ambient temperature of the thermistors in four different capacitor charging and discharging units through a pair of input / output pins and an interrupt input pin, using a time-sharing method and the aforementioned steps S101 to S106.

[0060] In order to achieve the purpose of measuring the ambient temperature of each different thermistor in turn, preferably, the main control chip U1 is also used to cyclically control the common terminal to connect to each non-common terminal one by one, so as to measure the ambient temperature of the thermistor RT1 in the capacitor charging and discharging unit corresponding to each non-common terminal; for example: first control the common terminal to connect to the first non-common terminal, so as to use the aforementioned steps S101 to S106 to measure the ambient temperature of the thermistor RT1 in the first capacitor charging and discharging unit corresponding to the first non-common terminal; then control the common terminal to connect to the second non-common terminal, so as to use the aforementioned steps S101 to S106 to measure the ambient temperature of the thermistor R1 in the second capacitor charging and discharging unit corresponding to the second non-common terminal. T1's environment temperature; then control the common terminal to be connected to the third non-common terminal, so as to adopt the aforementioned steps S101 to S106 to measure the environment temperature of the thermistor RT1 in the third capacitor charge and discharge unit corresponding to the third non-common terminal; then control the common terminal to be connected to the fourth non-common terminal, so as to adopt the aforementioned steps S101 to S106 to measure the environment temperature of the thermistor RT1 in the fourth capacitor charge and discharge unit corresponding to the fourth non-common terminal, and finally control the common terminal to be connected to the first non-common terminal again, so as to adopt the aforementioned steps S101 to S106 to measure the environment temperature of the thermistor RT1 in the first capacitor charge and discharge unit corresponding to the first non-common terminal, and the cycle is continued uninterruptedly.

[0061] The specific details and technical effects of this embodiment can be derived with reference to the aforementioned embodiment 1, and will not be described in detail here.

[0062] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. An easily expandable temperature measurement circuit, characterized in that: It comprises a main control chip (U1), a dual-path comparison unit and a capacitor charging and discharging unit, wherein the main control chip (U1) has an input / output pin (I / O) and an interrupt input pin (INTO); The dual-path comparison unit includes a first resistor (R1), a second resistor (R2), a third resistor (R3), a first comparator (U2A) and a second comparator (U2B); the capacitor charging and discharging unit includes a capacitor (C1) and a thermistor (RT1); one end of the first resistor (R1) is connected to a first DC power supply (VDD1); the other end of the first resistor (R1) is respectively connected to one end of the second resistor (R2) and a positive input end of the second comparator (U2B); the other end of the second resistor (R2) is respectively connected to one end of the third resistor (R3) and a positive input end of the first comparator (U2B); a negative input terminal of the comparator (U2A), a positive input terminal of the first comparator (U2A), a negative input terminal of the second comparator (U2B), one end of the thermistor (RT1) and the input / output pin (I / O) are respectively connected to one end of the capacitor (C1), the other end of the thermistor (RT1) is connected to a second DC power supply (VDD2), the other end of the third resistor (R3) and the other end of the capacitor (C1) are respectively grounded, and the output terminal of the first comparator (U2A) and the output terminal of the second comparator (U2B) are respectively connected to the interrupt input pin (INTO); The main control chip (U1) is used to measure the ambient temperature of the thermistor (RT1) in the following manner: Setting the input / output pin (I / O) to an open-drain output state and setting the voltage at the input / output pin (I / O) to 0V so as to complete the discharge of the capacitor (C1); Setting the input / output pin (I / O) to a high impedance input state and enabling the interrupt input pin (INTO); When a rising edge interrupt event is triggered at the interrupt input pin (INTO), the timer is cleared and the timer is started to start timing; When a falling edge interrupt event is triggered at the interrupt input pin (INTO), recording a timing value of the timer; The resistance value of the thermistor (RT1) is calculated based on the timing value ΔT, the known capacitance value C of the capacitor (C1), the known resistance value R1 of the first resistor (R1), the known resistance value R2 of the second resistor (R2) and the known resistance value R3 of the third resistor (R3). According to the thermistor (RT1) and the known mapping relationship between temperature and resistance, the resistance value R of the thermistor (RT1) is x The corresponding temperature is determined as the ambient temperature of the thermistor (RT1).

2. The temperature measurement circuit according to claim 1, characterized in that: The power input terminal (VCC) of the main control chip (U1) is respectively connected to one end of the fourth resistor (R4) and the third DC power supply (VDD3), and the other end of the fourth resistor (R4) is connected to the interrupt input pin (INTO).

3. The temperature measurement circuit according to claim 1, characterized in that: The input / output pin (I / O) is connected to one end of the capacitor (C1) after being connected in series with a current limiting resistor (R5).

4. The temperature measurement circuit according to claim 1, characterized in that: The main control chip (U1) is a digital signal processor chip.

5. The temperature measurement circuit according to claim 1, characterized in that: The first comparator (U2A) or the second comparator (U2B) is a differential comparator of model LM2901DR.

6. The temperature measurement circuit according to claim 1, characterized in that: The capacitor (C1) is a chip-type multilayer ceramic capacitor made of C0G material or NP0 material.

7. The temperature measurement circuit according to claim 1, characterized in that: The capacitance value of the capacitor (C1) is negatively correlated with the main frequency of the main control chip (U1).

8. The temperature measurement circuit according to claim 1, characterized in that: The thermistor (RT1) is a positive temperature coefficient thermistor or a negative temperature coefficient thermistor.

9. The temperature measurement circuit according to claim 1, characterized in that: There are a plurality of capacitor charging and discharging units, and the temperature measurement circuit further comprises a multi-way switch (K1), wherein the multi-way switch (K1) has a common terminal, a plurality of non-common terminals, and a gating control terminal for controlling the common terminal to selectively connect to any non-common terminal among the plurality of non-common terminals, and the plurality of non-common terminals correspond one to one to the plurality of capacitor charging and discharging units; Each of the plurality of non-common ends is connected to one end of the thermistor (RT1) and one end of the capacitor (C1) in the corresponding capacitor charge and discharge unit, the common end is respectively connected to the positive input end of the first comparator (U2A), the negative input end of the second comparator (U2B) and the input / output pin (I / O), and the selection control end is connected to the control output end (CTR) of the main control chip (U1).

10. The temperature measurement circuit according to claim 9, characterized in that: The main control chip (U1) is also used for cyclically controlling the common terminal to connect to each of the non-common terminals one by one, so as to measure the ambient temperature of the thermistor (RT1) in the capacitor charging and discharging unit corresponding to each of the non-common terminals.