Temperature Sensors and ICs

By designing the voltage generation and compensation module in the temperature sensor, the process deviation is eliminated, the temperature measurement accuracy is improved, the problem of low measurement accuracy in the existing technology is solved, and high-precision temperature measurement at different process angles is achieved.

CN113804319BActive Publication Date: 2024-08-27SOUTHERN POWER GRID DIGITAL GRID RESEARCH INSTITUTE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111204768.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-15
Publication Date
2024-08-27
Estimated Expiration
2041-10-15

AI Technical Summary

Technical Problem

Existing integrated temperature sensors have low temperature measurement accuracy. In particular, the negative temperature coefficient voltage caused by process deviations has large differences at different process angles, which affects the measurement accuracy.

Method used

A temperature sensor including a voltage generation module, a voltage compensation module and an output module is designed. The voltage compensation module generates a temperature-independent compensation voltage, eliminates process deviations, outputs a positive temperature coefficient voltage, and improves measurement accuracy. The voltage generation module uses a bias current generation circuit, a MOS transistor and a current mirror circuit to generate a negative temperature coefficient voltage that is inversely proportional to temperature. The voltage compensation module generates a compensation voltage through a differential pair and a current mirror circuit.

Benefits of technology

It effectively removes the impact of process deviation, improves the measurement accuracy of the temperature sensor, reduces power consumption, and maintains high temperature measurement consistency at different process angles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113804319B
    Figure CN113804319B
Patent Text Reader

Abstract

The present application relates to a temperature sensor and an integrated circuit, including a voltage generation module, a voltage compensation module, and an output module, wherein the input end of the voltage generation module is electrically connected to an external power supply; the voltage generation module is used to generate a negative temperature coefficient voltage that is inversely proportional to the temperature; the output end of the voltage generation module is electrically connected to the input end of the voltage compensation module; the voltage compensation module is used to compensate the negative temperature coefficient voltage and generate a compensation voltage that is independent of the temperature; the output end of the voltage generation module and the output end of the voltage compensation module are electrically connected to the input end of the output module; the output module is used to output a positive temperature coefficient voltage according to the compensation voltage and the negative temperature coefficient voltage. The compensation voltage can perform voltage compensation on the negative temperature coefficient voltage, and the positive temperature coefficient voltage obtained by the output module by subtracting the compensation voltage from the negative temperature coefficient voltage can effectively remove the influence of process deviation, thereby improving the temperature measurement accuracy of the temperature sensor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of sensor technology, and in particular to a temperature sensor and an integrated circuit. Background Art

[0002] In recent years, with the rapid development of smart grids, temperature sensors are increasingly used in smart grid equipment. On the one hand, temperature sensors can detect temperature anomalies caused by failures in smart grid equipment. On the other hand, temperature sensors can detect the temperature of different modules in smart grid equipment and adjust their working states based on temperature control. Therefore, temperature sensors are important temperature control devices in smart grid equipment.

[0003] There are many types of temperature sensors, and the commonly used ones are thermal resistor temperature sensors, thermocouple temperature sensors and integrated temperature sensors. With the rapid development of integrated circuit technology, integrated temperature sensors are widely used in integrated circuits. Traditional integrated temperature sensors mainly use bipolar transistors to achieve temperature acquisition. However, at present, the temperature measurement accuracy of bipolar transistors is low.

[0004] Based on this, there is an urgent need to provide a temperature sensor to improve the measurement accuracy of temperature. Summary of the invention

[0005] Based on this, it is necessary to provide a temperature sensor and an integrated circuit to improve the temperature measurement accuracy in order to solve the above technical problems.

[0006] A temperature sensor comprises a voltage generating module, a voltage compensating module and an output module, wherein the input end of the voltage generating module is electrically connected to an external power supply; the voltage generating module is used to generate a negative temperature coefficient voltage which is inversely proportional to the temperature; the output end of the voltage generating module is electrically connected to the input end of the voltage compensating module; the voltage compensating module is used to compensate the negative temperature coefficient voltage and generate a compensation voltage which is independent of the temperature; the output end of the voltage generating module and the output end of the voltage compensating module are electrically connected to the input end of the output module; the output module is used to output a positive temperature coefficient voltage according to the compensation voltage and the negative temperature coefficient voltage.

[0007] In one embodiment, the voltage generation module includes a bias current generation circuit, a MOS transistor operating in a subthreshold region, a first current mirror circuit, a second current mirror circuit, and a third current mirror circuit; the first current mirror circuit, the second current mirror circuit, and the third current mirror circuit are common-source and common-gate current mirrors;

[0008] In one of the embodiments, a bias current generating circuit is used to generate a bias current; a MOS transistor operating in a subthreshold region is used to generate a voltage inversely proportional to temperature; a first current mirror circuit, a second current mirror circuit and a third current mirror circuit are used to replicate the bias current in different proportions to generate a first bias current, a second bias current and a third bias current; a voltage generating module is used to generate an equivalent voltage of the first current mirror circuit, the second current mirror circuit and the third current mirror circuit based on the first bias current, the second bias current and the third bias current and the equivalent resistance of the first current mirror circuit, the second current mirror circuit and the third current mirror circuit; a negative temperature coefficient voltage is generated based on the voltage inversely proportional to temperature and the equivalent voltages of the first current mirror circuit, the second current mirror circuit and the third current mirror circuit.

[0009] In one embodiment, the bias current generating circuit includes a first NMOS transistor and a second NMOS transistor.

[0010] The source of the first NMOS transistor is grounded, the drain of the first NMOS transistor is electrically connected to the source of the second NMOS transistor, the drain of the second NMOS transistor is electrically connected to the first current mirror circuit, and the gate of the first NMOS transistor and the gate of the second NMOS transistor are electrically connected to the MOS transistor operating in the subthreshold region.

[0011] In one embodiment, the MOS transistor operating in the subthreshold region includes a third NMOS transistor and a fourth NMOS transistor.

[0012] The source of the third NMOS transistor is grounded, the drain of the third NMOS transistor is electrically connected to the source of the fourth NMOS transistor, the drain of the third NMOS transistor is electrically connected to the gate of the first NMOS transistor, the drain of the fourth NMOS transistor is electrically connected to the gate of the third NMOS transistor, the gate of the second NMOS transistor is electrically connected to the gate of the fourth NMOS transistor, and the drain of the fourth NMOS transistor is electrically connected to the second current mirror circuit.

[0013] In one embodiment, the first current mirror circuit includes a fifth PMOS transistor and a sixth PMOS transistor, the second current mirror circuit includes a seventh PMOS transistor and an eighth PMOS transistor, and the third current mirror circuit includes a ninth PMOS transistor and a tenth PMOS transistor.

[0014] The drain of the fifth PMOS transistor, the drain of the eighth PMOS transistor, and the drain of the tenth PMOS transistor are electrically connected to the external power supply, the source of the sixth PMOS transistor is electrically connected to the drain of the fifth PMOS transistor, and the source of the fifth PMOS transistor is electrically connected to the drain of the second NMOS transistor;

[0015] The source of the eighth PMOS transistor is electrically connected to the drain of the seventh PMOS transistor, and the source of the seventh PMOS transistor is electrically connected to the drain of the fourth NMOS transistor;

[0016] The source of the tenth PMOS transistor is electrically connected to the drain of the ninth PMOS transistor, and the source of the ninth PMOS transistor is electrically connected to the source of the fourth NMOS transistor;

[0017] The gate of the sixth PMOS transistor is electrically connected to the source of the sixth PMOS transistor, the gate of the sixth PMOS transistor is electrically connected to the gate of the eighth PMOS transistor and the gate of the tenth PMOS transistor, the gate of the fifth PMOS transistor is electrically connected to the source of the fifth PMOS transistor, and the gate of the fifth PMOS transistor is electrically connected to the gate of the seventh PMOS transistor and the gate of the ninth PMOS transistor, respectively.

[0018] In one embodiment, the voltage compensation module includes a fourth current mirror circuit, a differential pair operating in a subthreshold region, and a fifth current mirror circuit.

[0019] In one of the embodiments, the fourth current mirror circuit is used to replicate the bias current in different proportions to generate a fourth bias current; the fifth current mirror circuit is a basic current mirror, used to generate a fifth bias current according to a negative temperature coefficient voltage; the voltage compensation module is used to input the fourth bias current and the fifth bias current into a differential pair operating in a subthreshold region to generate a first output voltage of the differential pair and a second output voltage of the differential pair; and a compensation voltage that is independent of temperature is generated based on the first output voltage of the differential pair and the second output voltage of the differential pair.

[0020] In one embodiment, the differential pair operating in the subthreshold region includes an eleventh PMOS transistor and a twelfth PMOS transistor.

[0021] The gates of the eleventh PMOS transistor are electrically connected to the output ends of the voltage generating module, the drains of the eleventh PMOS transistor and the twelfth PMOS transistor are electrically connected to the fourth current mirror circuit, and the sources of the eleventh PMOS transistor and the twelfth PMOS transistor are electrically connected to the fifth current mirror circuit.

[0022] In one embodiment, the fourth current mirror circuit includes a fifteenth PMOS transistor and a sixteenth PMOS transistor.

[0023] The drain of the sixteenth PMOS transistor is electrically connected to the external power supply, the source of the sixteenth PMOS transistor is electrically connected to the drain of the fifteenth PMOS transistor, the source of the fifteenth PMOS transistor is electrically connected to the drain of the eleventh PMOS transistor, the gate of the sixteenth PMOS transistor is electrically connected to the voltage generating module, and the gate of the fifteenth PMOS transistor is electrically connected to the voltage generating module.

[0024] In one embodiment, the fifth current mirror circuit includes a thirteenth NMOS transistor and a fourteenth NMOS transistor.

[0025] The drain of the thirteenth NMOS transistor and the gate of the thirteenth NMOS transistor are electrically connected to the source of the eleventh PMOS transistor, the source of the thirteenth NMOS transistor is grounded, the source of the twelfth PMOS transistor is electrically connected to the drain of the fourteenth NMOS transistor, the gate of the fourteenth NMOS transistor is electrically connected to the gate of the thirteenth NMOS transistor, and the source of the fourteenth NMOS transistor is grounded.

[0026] An integrated circuit comprises any temperature sensor in the above embodiments.

[0027] The above-mentioned temperature sensor and integrated circuit include a voltage generation module, a voltage compensation module, and an output module, wherein the input end of the voltage generation module is electrically connected to an external power supply; the voltage generation module is used to generate a negative temperature coefficient voltage inversely proportional to the temperature; the output end of the voltage generation module is electrically connected to the input end of the voltage compensation module; the voltage compensation module is used to compensate the negative temperature coefficient voltage and generate a compensation voltage that is independent of temperature; the output end of the voltage generation module and the output end of the voltage compensation module are electrically connected to the input end of the output module; the output module is used to output a positive temperature coefficient voltage according to the compensation voltage and the negative temperature coefficient voltage. The compensation voltage generated by the voltage compensation module that is independent of temperature performs voltage compensation on the negative temperature coefficient voltage generated by the voltage generation module, and the positive temperature coefficient voltage finally obtained can effectively remove the influence of process deviation, thereby improving the temperature measurement accuracy of the temperature sensor. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 is a structural diagram of a temperature sensor in one embodiment;

[0029] Figure 2 is a structural diagram of a voltage generating module in one embodiment;

[0030] Figure 3 is a structural diagram of a voltage compensation module in one embodiment;

[0031] Figure 4 is a structural diagram of a temperature sensor in a specific embodiment;

[0032] Figure 5 is the negative temperature coefficient voltage V under different process angles in a specific embodiment ctat Schematic diagram;

[0033] Figure 6 is the compensation voltage V under different process angles in a specific embodiment bgr Schematic diagram;

[0034] Figure 7 A schematic diagram of a positive temperature coefficient voltage at different process angles in a specific embodiment;

[0035] Figure 8 A schematic diagram of a positive temperature coefficient voltage error at different process angles in a specific embodiment;

[0036] Fig. 9 FIG. 4 is a structural diagram of an integrated circuit in one embodiment. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0038] Figure 1 FIG. 1 is a structural diagram of a temperature sensor in an embodiment. Figure 1 As shown, a temperature sensor is provided, including a voltage generating module 120, a voltage compensation module 140, and an output module 160, wherein the input end of the voltage generating module 120 is electrically connected to an external power supply 180; the voltage generating module 120 is used to generate a negative temperature coefficient voltage that is inversely proportional to the temperature; the output end of the voltage generating module 120 is electrically connected to the input end of the voltage compensation module 140; the voltage compensation module 140 is used to compensate for the negative temperature coefficient voltage and generate a compensation voltage that is independent of temperature; the output end of the voltage generating module 120 and the output end of the voltage compensation module 140 are electrically connected to the input end of the output module 160; the output module 160 is used to output a positive temperature coefficient voltage according to the compensation voltage and the negative temperature coefficient voltage.

[0039] Generally speaking, the devices provided by the manufacturer often have process deviations. The process deviation specifically refers to the deviation between the actual manufactured device parameters and the design parameters. The actual manufacturing process of integrated circuits has large process deviations. Taking resistors as an example, the deviation between the actual resistance value and the design resistance value is generally around ±20%. Similarly, devices such as MOS transistors and bipolar transistors also have large process deviations. The parameter changes of MOS transistors between different wafers and between different batches are larger than those of bipolar transistors, which are specifically manifested in the differences in the threshold voltage of MOS transistors and the differences in the channel length of MOS transistors. Therefore, for temperature sensors composed of MOS transistors, the process deviation of MOS transistors will greatly affect the temperature measurement accuracy of the temperature sensor. In order to alleviate the difficulty of circuit design tasks to a certain extent, process engineers must ensure that the performance of the device is within a certain range, that is, if it exceeds the set performance range, the device will be scrapped. Usually this performance range is given in the form of "process corners", that is, the parameter fluctuation range of the transistor is limited to the range determined by the process corners. The basic idea of ​​the process corner is to limit the speed fluctuation range of NMOS transistors and PMOS transistors to a rectangle determined by four corners. The selection of process corners is to obtain an acceptable yield rate. Testing and simulating the circuit under various process corners and extreme temperature conditions is the basis for determining the yield rate.

[0040] Furthermore, the voltage generation module 120 is used to generate a negative temperature coefficient voltage that is inversely proportional to the temperature, but the problem of process deviation causes the negative temperature coefficient voltage to have a large difference under different process angles, thereby affecting the measurement accuracy of the temperature. Therefore, it is necessary to eliminate the influence of process deviation on the negative temperature coefficient voltage to improve the accuracy of the temperature sensor.

[0041] Further, the voltage compensation module 140 is used to compensate for the negative temperature coefficient voltage to eliminate the influence of process deviation and generate a compensation voltage that is independent of temperature. The compensation voltage generated by the voltage compensation module 140 and the negative temperature coefficient voltage generated by the voltage generation module 120 are respectively input into the output module 160 to obtain the difference between the two, that is, the positive temperature coefficient voltage. Further, since the compensation voltage and the negative temperature coefficient voltage are both analog signals, the output module 160 can first convert the compensation voltage and the negative temperature coefficient voltage into digital signals, and then calculate the difference between the two and output them. It is also possible to first calculate the difference between the compensation voltage and the negative temperature coefficient voltage, and then convert the difference into a digital signal for output. Preferably, the present application uses a differential analog-to-digital converter (ADC) as an output module, that is, first calculate the difference between the compensation voltage and the negative temperature coefficient voltage, and then convert the difference into a digital signal for output to obtain the final positive temperature coefficient voltage.

[0042] The temperature sensor proposed in the present application includes a voltage generation module 120, a voltage compensation module 140, and an output module 160, wherein the input end of the voltage generation module 120 is electrically connected to an external power supply 180; the voltage generation module 120 is used to generate a negative temperature coefficient voltage inversely proportional to the temperature; the output end of the voltage generation module 120 is electrically connected to the input end of the voltage compensation module 140; the voltage compensation module 140 is used to compensate the negative temperature coefficient voltage and generate a compensation voltage that is independent of the temperature; the output end of the voltage generation module 120 and the output end of the voltage compensation module 140 are electrically connected to the input end of the output module 160; the output module 160 is used to output a positive temperature coefficient voltage according to the compensation voltage and the negative temperature coefficient voltage. Due to the problem of process deviation, the negative temperature coefficient voltage will have a large difference under different process angles, and the compensation voltage generated by the voltage compensation module 140 is independent of temperature. Therefore, the compensation voltage can perform voltage compensation on the negative temperature coefficient voltage, and the positive temperature coefficient voltage obtained by the output module 160 after the compensation voltage and the negative temperature coefficient voltage are subtracted can effectively remove the influence of the process deviation, thereby improving the temperature measurement accuracy of the temperature sensor.

[0043] In one embodiment, Figure 2 FIG. 1 is a structural diagram of the voltage generating module 120 in one embodiment. Figure 2 As shown, a structural diagram of a voltage generating module 120 is provided, including a bias current generating circuit 121, a MOS transistor 122 operating in a subthreshold region, a first current mirror circuit 123, a second current mirror circuit 124 and a third current mirror circuit 125; the first current mirror circuit 123, the second current mirror circuit 124 and the third current mirror circuit 125 are common-source and common-gate current mirrors.

[0044] Specifically, the bias current generating circuit 121 can generate a bias current. The basic bias of analog integrated circuits includes current bias and voltage bias. The function of providing a bias is to put the MOS transistor and its circuit in a normal working state, and the current bias provides a static working current for the relevant branches of the circuit. If the circuit provides current to the circuit by setting an external current source, on the one hand, the addition of additional devices to the circuit will lead to an increase in the circuit area; on the other hand, the addition of an external current source will lead to an increase in the overall power consumption of the circuit. Therefore, the bias current generated by the bias current generating circuit 121 avoids the problem of increased circuit area and increased power consumption caused by the use of an additional current source.

[0045] Furthermore, the output current of the MOS transistor 122 working in the subthreshold region is relatively small, thereby reducing the power consumption of the voltage generating module 120. The transistor subthreshold state is an important state or working mode of the MOS tube, and a transistor subthreshold state of the MOS tube is also called the subthreshold region of the MOS tube. In this state, the gate voltage of the MOS tube is below the threshold voltage, and no conductive channel appears. The MOS tube in this working state will generate a relatively small current, which is the subthreshold current. Compared with the MOS tube working in the saturation region, the subthreshold current generated by the MOS transistor working in the subthreshold region is relatively small, but the subthreshold current generated by the MOS transistor 122 working in the subthreshold region can be well controlled by the gate voltage of the MOS tube, so the power consumption of the MOS transistor in the subthreshold region is relatively low.

[0046] Further, the first current mirror circuit 123, the second current mirror circuit 124 and the third current mirror circuit 125 are all MOS current mirror circuits. The current mirror is one of the most basic unit circuits in analog integrated circuits. The current mirror is a circuit that can reproduce or copy the reference current of a branch in the circuit in other branches. Due to the current copying ability of the current mirror, the current mirror is often used to form a DC bias current source in analog integrated circuits and devices. According to the integrated process adopted, the current mirror can be divided into a bipolar current mirror and a MOS current mirror. Since the MOS process has a higher degree of integration than the bipolar process, and the N-channel and P-channel complementary symmetric tube processes for manufacturing MOS tubes are realized, the MOS current mirror has a wider range of applications than the bipolar current mirror. In analog circuits, the design of the current source is based on the replication of the reference current, and the premise is that there is already an accurate current source available for use, and the current source will not change the output current value due to the change in the potential of the output node. Assuming that this current source already exists, if the effect of MOS tube channel length modulation effect is not considered, the output current of the device working in the saturation region is independent of the gate-source voltage, and there will be no current ratio error due to the difference in gate-source voltage. Among them, the ratio of the copied current to the reference current is determined by the ratio of the device size. By designing the width-to-length ratio of the MOS transistor structure, a current source with an arbitrary proportional relationship with the reference current can be obtained to meet the needs of different bias currents for various amplifier circuits in analog integrated circuits.

[0047] Further, the first current mirror circuit 123, the second current mirror circuit 124 and the third current mirror circuit 125 are cascode current mirrors. The function of the current mirror is to accurately copy the current. However, in practical applications, the channel length modulation effect of the MOS tube will cause a large error in the current copied by the basic current mirror. The channel length modulation effect refers to the MOS transistor. After the channel under the gate is pre-pinched off, if the drain-source voltage continues to increase, the pinch-off point will move slightly toward the source. This causes the channel length between the pinch-off point and the source to be slightly reduced, and the effective channel resistance is also slightly reduced, so that more electrons drift from the source to the pinch-off point, resulting in an increase in drifting electrons in the depletion region, and an effect of increasing the drain current. In other words, when there is a voltage difference between the drain-source voltage of the MOS tube, the current copied by the current mirror will be biased. The drain-source voltage of the cascode current mirror is insensitive to changes in the output voltage, and can effectively suppress the influence of channel length modulation, so the cascode current mirror can copy the current more accurately.

[0048] In the embodiment of the present application, the voltage generation module 120 includes a bias current generation circuit 121, a MOS transistor 122 working in the subthreshold region, a first current mirror circuit 123, a second current mirror circuit 124 and a third current mirror circuit 125; the first current mirror circuit 123, the second current mirror circuit 124 and the third current mirror circuit 125 are common source and common gate current mirrors. Among them, the bias current generation circuit 121 can generate a bias current, avoiding the problem of increased area and increased power consumption of the voltage generation module 120 caused by the use of an additional current source. The MOS transistor 122 working in the subthreshold region has a small output current, thereby reducing the power consumption of the voltage generation module 120. The first current mirror circuit 123, the second current mirror circuit 124 and the third current mirror circuit 125 are all common source and common gate current mirrors, which can effectively suppress the influence of channel length modulation in the MOS tube, and improve the accuracy of the copied current, provide accurate current for the voltage compensation circuit, and ultimately improve the temperature measurement accuracy of the temperature sensor.

[0049] In one embodiment, if Figure 2As shown, the bias current generating circuit 121 is used to generate a bias current; the MOS transistor 122 working in the subthreshold region is used to generate a voltage inversely proportional to the temperature; the first current mirror circuit 123, the second current mirror circuit 124 and the third current mirror circuit 125 are used to copy the bias current according to different proportions to generate the first bias current, the second bias current and the third bias current; the voltage generating module 120 is used to generate the equivalent voltages of the first current mirror circuit 123, the second current mirror circuit 124 and the third current mirror circuit 125 based on the first bias current, the second bias current and the third bias current, and the equivalent resistances of the first current mirror circuit 123, the second current mirror circuit 124 and the third current mirror circuit 125; and the negative temperature coefficient voltage V is generated according to the voltage inversely proportional to the temperature and the equivalent voltages of the first current mirror circuit 123, the second current mirror circuit 124 and the third current mirror circuit 125. ctat .

[0050] Specifically, the bias current generating circuit 121 can generate a bias current, which is used as a self-bias current source to provide a current bias for the entire circuit. The MOS transistor 122 working in the subthreshold region generates a voltage that is inversely proportional to the temperature. Compared with the MOS transistor working in the saturation region, the current flowing through the MOS transistor 122 working in the subthreshold region is smaller, thereby effectively reducing the power consumption of the circuit. The first current mirror circuit 123 is used to copy the bias current generated by the bias current generating circuit 121 according to a certain ratio to generate a first bias current. The second current mirror circuit 124 is used to copy the bias current generated by the bias current generating circuit 121 according to a certain ratio to generate a second bias current. The third current mirror circuit 125 is used to copy the bias current generated by the bias current generating circuit 121 according to a certain ratio to generate a third bias current. Specifically, the first current mirror circuit 123, the second current mirror circuit 124 and the third current mirror circuit 125 can accurately copy the bias current generated by the bias current generating circuit 121 by controlling the size of each MOS transistor within a reasonable accuracy range, thereby providing currents of different proportions for each branch current.

[0051] Further, based on the first bias current, the second bias current, the third bias current, and the equivalent resistance of the first current mirror circuit 123, the second current mirror circuit 124, and the third current mirror circuit 125, the equivalent voltages of the first current mirror circuit 123, the second current mirror circuit 124, and the third current mirror circuit 125 are generated. Further, based on the voltage inversely proportional to the temperature and the equivalent voltages of the first current mirror circuit 123, the second current mirror circuit 124, and the third current mirror circuit 125, a negative temperature coefficient voltage V is generated. ctatSpecifically, the negative temperature coefficient voltage V is obtained by subtracting the voltage inversely proportional to the temperature generated by the MOS transistor 122 operating in the subthreshold region from the equivalent voltage of the first current mirror circuit 123, the second current mirror circuit 124, and the third current mirror circuit 125. ctat .

[0052] In the embodiment of the present application, the bias current generating circuit 121 generates a bias current as a current source, avoiding the problem of increased circuit area and increased power consumption caused by the use of an additional current source. The MOS transistor 122 working in the subthreshold region generates a voltage inversely proportional to the temperature, and the first current mirror circuit 123, the second current mirror circuit 124 and the third current mirror circuit 125 copy the bias current in different proportions to generate the first bias current, the second bias current and the third bias current. The voltage generating module 120 generates a negative temperature coefficient voltage V according to the equivalent voltage of the first current mirror circuit 123, the second current mirror circuit 124 and the third current mirror circuit 125 and the voltage inversely proportional to the temperature of the MOS transistor 122 working in the subthreshold region. ctat , the resulting negative temperature coefficient voltage V ctat It is small and linearly inversely proportional to the temperature, thus meeting the low power consumption requirement of the temperature sensor well.

[0053] In one embodiment, if Figure 2 As shown, the bias current generating circuit 121 includes a first NMOS transistor NM1 and a second NMOS transistor NM2.

[0054] The source of the first NMOS transistor NM1 is grounded, the drain of the first NMOS transistor NM1 is electrically connected to the source of the second NMOS transistor NM2, the drain of the second NMOS transistor NM2 is electrically connected to the first current mirror circuit 123, and the gate of the first NMOS transistor NM1 and the gate of the second NMOS transistor NM2 are electrically connected to the MOS transistor 122 operating in the subthreshold region.

[0055] Specifically, the bias current generating circuit 121 is composed of N-channel depletion MOS transistors, that is, the first NMOS transistor NM1 and the second NMOS transistor NM2 are both N-channel depletion MOS transistors. The conduction characteristics of the N-channel MOS (NMOS) transistor are specifically reflected in that when the gate-source voltage of the NMOS transistor is greater than a certain value, it will be turned on, which is suitable for the case where the source is grounded, that is, low-end drive. The NMOS transistor is divided into an N-channel depletion MOS transistor and an N-channel enhancement MOS transistor. The N-channel enhancement MOS transistor must apply a forward bias to the gate, and a conductive channel is generated only when the gate-source voltage is greater than the threshold voltage. The N-channel depletion MOS transistor refers to a conductive channel generated when no gate voltage is applied (the gate-source voltage is zero). Further, the first NMOS transistor NM1 in the bias current generating circuit 121 uses its own voltage as a bias to generate a self-biased current source, providing a current bias for the entire circuit.

[0056] Furthermore, the second NMOS transistor NM2 is a common source and common gate structure. The biggest feature of the common source and common gate structure is that the output impedance is relatively large. In addition, the drain-source voltage of the common source and common gate transistor is insensitive to the output voltage. That is to say, even when the output load of the common source and common gate structure changes greatly, the change of the source-drain voltage of the common source transistor is also very small. Therefore, the second NMOS transistor NM2 further improves the linearity of the current source.

[0057] In the embodiment of the present application, the bias current generating circuit 121 includes a first NMOS transistor NM1 and a second NMOS transistor NM2. The first NMOS transistor NM1 is used to use its own voltage as a bias to generate a self-biased current source, providing a current bias for the entire circuit, thereby reducing the circuit area and reducing the circuit power consumption. The second NMOS transistor NM2 is a common source and common gate MOS tube. The output impedance of the common source and common gate structure is large and the drain-source voltage is insensitive to the output voltage. Therefore, the linearity of the current source is further improved.

[0058] In one embodiment, if Figure 2 As shown, the MOS transistor 122 operating in the subthreshold region includes a third NMOS transistor NM3 and a fourth NMOS transistor NM4.

[0059] The source of the third NMOS transistor NM3 is grounded, the drain of the third NMOS transistor NM3 is electrically connected to the source of the fourth NMOS transistor NM4, the drain of the third NMOS transistor NM3 is electrically connected to the gate of the first NMOS transistor NM1, the drain of the fourth NMOS transistor NM4 is electrically connected to the gate of the third NMOS transistor NM3, the gate of the second NMOS transistor NM2 is electrically connected to the gate of the fourth NMOS transistor NM4, and the drain of the fourth NMOS transistor NM4 is electrically connected to the second current mirror circuit 124.

[0060] Specifically, the MOS transistor 122 working in the subthreshold region is composed of an N-channel depletion-type MOS transistor, that is, the third NMOS transistor NM3 and the fourth NMOS transistor NM4 are N-channel depletion-type MOS transistors.

[0061] In the embodiment of the present application, the MOS transistor 122 operating in the subthreshold region includes a third NMOS transistor NM3 and a fourth NMOS transistor NM4. Since the current flowing through the MOS transistor 122 operating in the subthreshold region is relatively small, the power consumption of the circuit is effectively reduced.

[0062] In one embodiment, if Figure 2As shown, the first current mirror circuit 123 includes a fifth PMOS transistor PM5 and a sixth PMOS transistor PM6, the second current mirror circuit 124 includes a seventh PMOS transistor PM7 and an eighth PMOS transistor PM8, and the third current mirror circuit 125 includes a ninth PMOS transistor PM9 and a tenth PMOS transistor PM10; the drain of the fifth PMOS transistor PM5, the drain of the eighth PMOS transistor PM8, and the drain of the tenth PMOS transistor PM10 are electrically connected to the external power supply, the source of the sixth PMOS transistor PM6 is electrically connected to the drain of the fifth PMOS transistor PM5, and the source of the fifth PMOS transistor PM5 is electrically connected to the drain of the second NMOS transistor NM2; the source of the eighth PMOS transistor PM8 is electrically connected to the drain of the seventh PMOS transistor PM7, and the drain of the tenth PMOS transistor PM10 is electrically connected to the external power supply. The source of the seventh PMOS transistor PM7 is electrically connected to the drain of the fourth NMOS transistor NM4, the source of the tenth PMOS transistor PM10 is electrically connected to the drain of the ninth PMOS transistor PM9, the source of the ninth PMOS transistor PM9 is electrically connected to the source of the fourth NMOS transistor NM4, the gate of the sixth PMOS transistor PM6 is electrically connected to the source of the sixth PMOS transistor PM6, the gate of the sixth PMOS transistor PM6 is electrically connected to the gate of the eighth PMOS transistor PM8 and the gate of the tenth PMOS transistor PM10, respectively, the gate of the fifth PMOS transistor PM5 is electrically connected to the source of the fifth PMOS transistor PM5, and the gate of the fifth PMOS transistor PM5 is electrically connected to the gate of the seventh PMOS transistor PM7 and the gate of the ninth PMOS transistor PM9, respectively.

[0063] Specifically, the first current mirror circuit 123, the second current mirror circuit 124, and the third current mirror circuit 125 are composed of P-channel depletion MOS transistors, that is, the fifth PMOS transistor PM5, the sixth PMOS transistor PM6, the seventh PMOS transistor PM7, the eighth PMOS transistor PM8, the ninth PMOS transistor PM9, and the tenth PMOS transistor PM10 are all P-channel depletion MOS transistors. The conduction characteristics of the P-channel MOS (PMOS) transistor are specifically reflected in that when the gate-source voltage of the PMOS transistor is less than a certain value, it will be turned on, which is suitable for the case where the source is connected to the power supply, that is, high-end drive. Further, the PMOS transistor is divided into a P-channel depletion MOS transistor and a P-channel enhancement MOS transistor. When a positive voltage is applied to the gate of the P-channel enhancement MOS transistor (the source is grounded), a channel connecting the source and the drain can be formed, and the resistance of the channel can be changed by changing the gate teeth. When the P-channel depletion MOS transistor is not applied with a gate voltage, a channel connecting the source and the drain already exists. After adding an appropriate bias voltage, the resistance of the channel can be increased or decreased.

[0064] Furthermore, the first current mirror circuit 123, the second current mirror circuit 124, and the third current mirror circuit 125 are common-source and common-gate current mirrors, whose drain-source voltage is insensitive to changes in the output voltage and can effectively suppress the influence of channel length modulation. Therefore, the first current mirror circuit 123, the second current mirror circuit 124, and the third current mirror circuit 125 can more accurately replicate the bias current generated by the bias current generating circuit 121.

[0065] In the embodiment of the present application, the first current mirror circuit 123, the second current mirror circuit 124, and the third current mirror circuit 125 can replicate the bias current generated by the bias current generating circuit 121 by controlling the size of each MOS transistor within a reasonable accuracy range, and provide different proportions of current for each branch current. In addition, since the first current mirror circuit 123, the second current mirror circuit 124, and the third current mirror circuit 125 are common source and common gate current mirrors, they can provide more accurate current for each branch, thereby improving the temperature measurement accuracy of the temperature sensor to a certain extent.

[0066] In one embodiment, Figure 3 FIG. 1 is a structural diagram of a voltage compensation module 140 in an embodiment. Figure 3 As shown, a structure diagram of a voltage compensation module 140 is provided, including a fourth current mirror circuit 142 , a differential pair 144 operating in a subthreshold region, and a fifth current mirror circuit 146 .

[0067] Specifically, the fourth current mirror circuit 142 and the fifth current mirror circuit 146 adjust the width-to-length ratio of the MOS transistor to accurately copy the current and provide a corresponding proportional current for the branch in the voltage compensation module 140. The differential pair 144 working in the subthreshold region plays a role similar to that of a bandgap reference, which widely includes voltage references and current references in analog circuits. This reference is a DC quantity, which has little relationship with power supply and process parameters, but has a certain relationship with temperature. The bandgap reference uses the sum of a voltage with a positive temperature coefficient and a voltage with a negative temperature coefficient. The temperature coefficients of the two cancel each other out, which can remove the influence of temperature and realize a voltage reference that is independent of temperature.

[0068] In the embodiment of the present application, a voltage compensation module 140 is provided, including a fourth current mirror circuit 142, a differential pair 144 working in the subthreshold region, and a fifth current mirror circuit 146. The differential pair 144 working in the subthreshold region generates a voltage that is independent of temperature, and the negative temperature coefficient voltage V generated by the voltage generation module 120 can be compensated. ctat Voltage compensation is performed to eliminate the influence of process deviation, thereby improving the temperature measurement accuracy of the temperature sensor.

[0069] In one embodiment, if Figure 3 As shown, the fourth current mirror circuit 142 is used to replicate the bias current according to different proportions to generate a fourth bias current; the fifth current mirror circuit 146 is a basic current mirror, used to generate a fourth bias current according to the negative temperature coefficient voltage V ctat Generate a fifth bias current; the voltage compensation module 140 is used to input the fourth bias current and the fifth bias current into the differential pair 144 working in the subthreshold region to generate a first output voltage of the differential pair and a second output voltage of the differential pair; generate a compensation voltage V that is independent of temperature according to the first output voltage of the differential pair and the second output voltage of the differential pair bgr .

[0070] Specifically, the fourth current mirror circuit 142 is a common source and common gate current mirror, which can effectively suppress the influence of channel length modulation in the MOS tube and improve the accuracy of the copied current to generate a fourth bias current. The fifth current mirror circuit 146 is a basic current mirror, which is used to provide current for the branch of the voltage compensation module 140, according to the input negative temperature coefficient voltage V ctat Generate a fifth bias current. Further, the voltage compensation module 140 is used to input the fourth bias current and the fifth bias current into the differential pair 144 working in the subthreshold region, generate a first output voltage of the differential pair and a second output voltage of the differential pair, and offset the temperature coefficient between the first output voltage and the second output voltage by taking a difference between the first output voltage and the second output voltage, thereby realizing a voltage reference that is independent of temperature, and then generating a compensation voltage V that is independent of temperature. bgr .

[0071] In the embodiment of the present application, the fourth bias current generated by the fourth current mirror circuit 142 and the fifth bias current generated by the fifth current mirror circuit 146 are respectively input into the differential pair 144 working in the subthreshold region, and then the differential pair 144 working in the subthreshold region generates a first output voltage and a second output voltage. The first output voltage and the second output voltage of the differential pair are subtracted to eliminate the influence of the temperature coefficient, and finally a compensation voltage V that is independent of temperature is generated. bgr The resulting temperature-independent compensation voltage V bgr Can be negative temperature coefficient voltage V ctat Voltage compensation is performed to eliminate the impact of process deviations and improve the accuracy of the temperature sensor.

[0072] In one embodiment, if Figure 3As shown, the differential pair 144 working in the subthreshold region includes an eleventh PMOS transistor PM11 and a twelfth PMOS transistor PM12. The gate of the eleventh PMOS transistor PM11 is electrically connected to the output end of the voltage generating module 120, the drain of the eleventh PMOS transistor PM11 and the drain of the twelfth PMOS transistor PM12 are electrically connected to the fourth current mirror circuit 142, and the source of the eleventh PMOS transistor PM11 and the source of the twelfth PMOS transistor PM12 are electrically connected to the fifth current mirror circuit 146.

[0073] Specifically, the differential pair 144 operating in the subthreshold region offsets the temperature-related coefficient by making a difference between the input and output voltages, thereby generating a compensation voltage V that is independent of temperature. bgr Furthermore, the gate of the eleventh PMOS transistor PM11 is electrically connected to the source of the ninth PMOS transistor PM9, the drain of the eleventh PMOS transistor PM11 and the drain of the twelfth PMOS transistor PM12 are electrically connected to the fourth current mirror circuit 142, and the source of the eleventh PMOS transistor PM11 and the source of the twelfth PMOS transistor PM12 are electrically connected to the fifth current mirror circuit 146.

[0074] In the embodiment of the present application, the compensation voltage V which is independent of temperature is generated by the differential pair 144 operating in the subthreshold region. bgr The resulting temperature-independent compensation voltage V bgr Can be negative temperature coefficient voltage V ctat Voltage compensation is performed to eliminate the influence of process deviation and improve the accuracy of the temperature sensor.

[0075] In one embodiment, if Figure 3 As shown, the fourth current mirror circuit 142 includes a fifteenth PMOS transistor PM15 and a sixteenth PMOS transistor PM16.

[0076] The drain of the sixteenth PMOS transistor PM16 is electrically connected to the external power supply, the source of the sixteenth PMOS transistor PM16 is electrically connected to the drain of the fifteenth PMOS transistor PM15, the source of the fifteenth PMOS transistor PM15 is electrically connected to the drain of the eleventh PMOS transistor PM11, the gate of the sixteenth PMOS transistor PM16 is electrically connected to the voltage generating module 120, and the gate of the fifteenth PMOS transistor is electrically connected to the voltage generating module 120.

[0077] Specifically, the fourth current mirror circuit 142 is a common-source common-gate current mirror, which accurately replicates the current in corresponding proportion to provide a fourth bias current for the differential pair 144 operating in the subthreshold region. Further, the drain of the sixteenth PMOS transistor PM16 is electrically connected to the external power supply, the source of the sixteenth PMOS transistor PM16 is electrically connected to the drain of the fifteenth PMOS transistor PM15, the source of the fifteenth PMOS transistor PM15 is electrically connected to the drain of the eleventh PMOS transistor PM11, the gate of the sixteenth PMOS transistor PM16 is electrically connected to the gate of the sixth PMOS transistor PM6, and the gate of the fifteenth PMOS transistor is electrically connected to the gate of the fifth PMOS transistor PM5.

[0078] In the embodiment of the present application, the fourth current mirror circuit 142 can accurately replicate the bias current in the voltage generating module 120, thereby improving the current replication accuracy, thereby improving the measurement accuracy of the temperature sensor. In addition, the fourth current mirror circuit 142 reduces the use of an external current source, thereby reducing the power consumption of the temperature sensor.

[0079] In one embodiment, if Figure 3 As shown, the fifth current mirror circuit 146 includes a thirteenth NMOS transistor NM13 and a fourteenth NMOS transistor NM14.

[0080] The drain of the thirteenth NMOS transistor NM13 and the gate of the thirteenth NMOS transistor NM13 are electrically connected to the source of the eleventh PMOS transistor PM11, the source of the thirteenth NMOS transistor NM13 is grounded, the source of the twelfth PMOS transistor NM12 is electrically connected to the drain of the fourteenth NMOS transistor NM14, the gate of the fourteenth NMOS transistor NM14 is electrically connected to the gate of the thirteenth NMOS transistor NM13, and the source of the fourteenth NMOS transistor NM14 is grounded.

[0081] Specifically, the fifth current mirror circuit 146 is a basic current mirror, which provides a fifth bias current for the differential pair 144 operating in the subthreshold region by replicating a current in a corresponding proportion.

[0082] In the embodiment of the present application, the fifth current mirror circuit 146 can replicate the bias current in the voltage generating module 120, thereby reducing the use of an external current source and thereby reducing the power consumption of the temperature sensor.

[0083] In a specific embodiment, Figure 4 is a structural diagram of a temperature sensor in a specific embodiment, such as Figure 4 As shown, it includes a voltage generating module 120, a voltage compensating module 140, and an output module.

[0084] Specifically, the voltage generation module 120 includes a bias current generation circuit 121, a MOS transistor 122 operating in the subthreshold region, a first current mirror circuit 123, a second current mirror circuit 124, and a third current mirror circuit 125; the first current mirror circuit 123, the second current mirror circuit 124, and the third current mirror circuit 125 are common source and common gate current mirrors. The voltage compensation module 140 includes a fourth current mirror circuit 142, a differential pair 144 operating in the subthreshold region, and a fifth current mirror circuit 146.

[0085] Furthermore, the bias current generating circuit 121 includes a first NMOS transistor NM1 and a second NMOS transistor NM2. The source of the first NMOS transistor NM1 is grounded, the drain of the first NMOS transistor NM1 is electrically connected to the source of the second NMOS transistor NM2, the drain of the second NMOS transistor NM2 is electrically connected to the first current mirror circuit 123, and the gate of the first NMOS transistor NM1 and the gate of the second NMOS transistor NM2 are electrically connected to the MOS transistor 122 working in the subthreshold region. In the bias current generating circuit 121, the first NMOS transistor NM1 uses its own voltage as a bias to generate a self-biased current source, providing a current bias for the entire circuit. The bias current generated by the first NMOS transistor NM1 is:

[0086]

[0087] Φ t =kT / q (2)

[0088] Among them, I s1 is the normalized current of the first NMOS transistor NM1, V ctat Generates a negative temperature coefficient voltage V of 120 for the voltage generation module ctat , V T1 is the threshold voltage of the first NMOS transistor NM1, n1 is the subthreshold slope coefficient of the first NMOS transistor NM1, Φ t is the thermoelectric potential, k is the Boltzmann constant, T is the temperature, and q is the unit charge.

[0089] Further, the MOS transistor 122 operating in the subthreshold region includes a third NMOS transistor NM3 and a fourth NMOS transistor NM4. The source of the third NMOS transistor NM3 is grounded, the drain of the third NMOS transistor NM3 is electrically connected to the source of the fourth NMOS transistor NM4, the drain of the third NMOS transistor NM3 is electrically connected to the gate of the first NMOS transistor NM1, the drain of the fourth NMOS transistor NM4 is electrically connected to the gate of the third NMOS transistor NM3, the gate of the second NMOS transistor NM2 is electrically connected to the gate of the fourth NMOS transistor NM4, and the drain of the fourth NMOS transistor NM4 is electrically connected to the second current mirror circuit 124.

[0090] The drain current of the third NMOS transistor NM3 or the fourth NMOS transistor NM4 in the subthreshold region can be expressed as:

[0091]

[0092] Among them, I S =I SQ (W / L), I S is the source current of the third NMOS transistor NM3 or the fourth NMOS transistor NM4, I SQ is the normalized current of the third NMOS transistor NM3 or the fourth NMOS transistor NM4, specifically expressed as I SQ =μC' OX n(Φ t 2 / 2), μ is the carrier mobility, n is the subthreshold slope coefficient, C' OX is the gate capacitance per unit area, W is the width of the third NMOS transistor NM3 or the fourth NMOS transistor NM4, L is the length of the third NMOS transistor NM3 or the fourth NMOS transistor NM4, V G is the gate voltage of the third NMOS transistor NM3 or the fourth NMOS transistor NM4, V T is the threshold voltage of the third NMOS transistor NM3 or the fourth NMOS transistor NM4, V S is the source voltage of the third NMOS transistor NM3 or the fourth NMOS transistor NM4. Compared with the MOS transistor in the saturation region, the current flowing through the MOS transistor 122 working in the subthreshold region is smaller, and the branch current is less than 1 nA, which satisfies the requirement of low power consumption.

[0093] Further, the first current mirror circuit 123 includes a fifth PMOS transistor PM5 and a sixth PMOS transistor PM6, the second current mirror circuit 124 includes a seventh PMOS transistor PM7 and an eighth PMOS transistor PM8, and the third current mirror circuit 125 includes a ninth PMOS transistor PM9 and a tenth PMOS transistor PM10; the drain of the fifth PMOS transistor PM5, the drain of the eighth PMOS transistor PM8, and the drain of the tenth PMOS transistor PM10 are electrically connected to an external power supply, the source of the sixth PMOS transistor PM6 is electrically connected to the drain of the fifth PMOS transistor PM5, and the source of the fifth PMOS transistor PM5 is electrically connected to the drain of the second NMOS transistor NM2; the source of the eighth PMOS transistor PM8 is electrically connected to the drain of the seventh PMOS transistor PM7, The source of the seventh PMOS transistor PM7 is electrically connected to the drain of the fourth NMOS transistor NM4, the source of the tenth PMOS transistor PM10 is electrically connected to the drain of the ninth PMOS transistor PM9, the source of the ninth PMOS transistor PM9 is electrically connected to the source of the fourth NMOS transistor NM4, the gate of the sixth PMOS transistor PM6 is electrically connected to the source of the sixth PMOS transistor PM6, the gate of the sixth PMOS transistor PM6 is electrically connected to the gate of the eighth PMOS transistor PM8 and the gate of the tenth PMOS transistor PM10, respectively, the gate of the fifth PMOS transistor PM5 is electrically connected to the source of the fifth PMOS transistor PM5, and the gate of the fifth PMOS transistor PM5 is electrically connected to the gate of the seventh PMOS transistor PM7 and the gate of the ninth PMOS transistor PM9, respectively.

[0094] Assuming that the current flowing through the sixth PMOS transistor PM6 is I6, the currents flowing through the eighth PMOS transistor PM8 and the tenth PMOS transistor PM10 are αI6 and βI6 respectively, where α and β are real numbers between 0 and 1. The currents of the third NMOS transistor NM3 and the fourth NMOS transistor NM4 of the MOS transistor 122 operating in the subthreshold region are I D3 and I D4 , specifically expressed as:

[0095] I D3 =(α+β)I6 (4)

[0096] I D4 =αI6 (5)

[0097] V G3 =V G4 (6)

[0098] Among them, V G3 is the gate voltage of the third NMOS transistor NM3, V G4is the gate voltage of the fourth NMOS transistor NM4. Further, the negative temperature coefficient voltage V generated by the voltage generating module 120 ctat for:

[0099]

[0100] Wherein, n3 is the subthreshold slope coefficient of the third NMOS transistor NM3, n4 is the subthreshold slope coefficient of the fourth NMOS transistor NM4, V T3 is the threshold voltage of the third NMOS transistor NM3, V T4 is the threshold voltage of the fourth NMOS transistor NM4, I s3 is the normalized current of the third NMOS transistor NM3, I s4 is the normalized current of the fourth NMOS transistor NM4. It can be seen from formula (7) that the threshold voltage V T3 is greater than the threshold voltage V T4 Substituting formula (3) into formula (7), we can get:

[0101]

[0102] in, It can be seen from formula (8) that due to Φ t The coefficient is negative, so the generated negative temperature coefficient voltage V ctat It is linearly negatively correlated with temperature.

[0103] The voltage generation module 120 has great advantages in area and power consumption, but the operating voltage of the MOS device is affected by process deviation, which in turn affects the performance of the circuit. Figure 5 is the negative temperature coefficient voltage V under different process angles in a specific embodiment ctat Schematic diagram, Figure 5 The negative temperature coefficient voltage V under the five process corners of SS, SNFP, TT, FNSP, and FF is shown. ctat Changes, the coordinate axis is temperature-voltage. Figure 5 It can be seen that the negative temperature coefficient voltage V under different process angles ctat Maintaining good linearity and consistent slope, however, the negative temperature coefficient voltage V ctat The vertical coordinates of the curves differ by a fixed value. It can be seen from formula (8) that the negative temperature coefficient voltage V ctat The linearity and slope of the curve are given by Φ t The term is determined by Φ t is a negative number, so the negative temperature coefficient voltage V ctatis inversely proportional to temperature. However, V in formula (8) T The component causes the negative temperature coefficient voltage V ctat There is a fixed difference at the vertical axis in the curve. This is because the MOS tube is affected by different process methods, which causes the threshold voltage of the MOS tube to be affected by the process deviation and shows certain differences under different process angles.

[0104] Furthermore, the voltage compensation module 140 includes a fourth current mirror circuit 142 , a differential pair 144 operating in the subthreshold region, and a fifth current mirror circuit 146 .

[0105] Further, the fourth current mirror circuit 142 includes a fifteenth PMOS transistor PM15 and a sixteenth PMOS transistor PM16. The drain of the sixteenth PMOS transistor PM16 is electrically connected to the external power supply, the source of the sixteenth PMOS transistor PM16 is electrically connected to the drain of the fifteenth PMOS transistor PM15, the source of the fifteenth PMOS transistor PM15 is electrically connected to the drain of the eleventh PMOS transistor PM11, the gate of the sixteenth PMOS transistor PM16 is electrically connected to the gate of the sixth PMOS transistor PM6, and the gate of the fifteenth PMOS transistor is electrically connected to the gate of the fifth PMOS transistor PM5.

[0106] Further, the fifth current mirror circuit 146 includes a thirteenth NMOS transistor NM13 and a fourteenth NMOS transistor NM14. The drain of the thirteenth NMOS transistor NM13 and the gate of the thirteenth NMOS transistor NM13 are electrically connected to the source of the eleventh PMOS transistor PM11, the source of the thirteenth NMOS transistor NM13 is grounded, the source of the twelfth PMOS transistor NM12 is electrically connected to the drain of the fourteenth NMOS transistor NM14, the gate of the fourteenth NMOS transistor NM14 is electrically connected to the gate of the thirteenth NMOS transistor NM13, and the source of the fourteenth NMOS transistor NM14 is grounded.

[0107] Further, the differential pair 144 operating in the subthreshold region includes an eleventh PMOS transistor PM11 and a twelfth PMOS transistor PM12. The gate of the eleventh PMOS transistor PM11 is electrically connected to the source of the ninth PMOS transistor PM9, the drain of the eleventh PMOS transistor PM11 and the drain of the twelfth PMOS transistor PM12 are electrically connected to the fourth current mirror circuit 142, and the source of the eleventh PMOS transistor PM11 and the source of the twelfth PMOS transistor PM12 are electrically connected to the fifth current mirror circuit 146. The differential pair 144 operating in the subthreshold region can obtain a compensation voltage V that is independent of temperature. bgr , expressed as:

[0108]

[0109] Among them, K = W / L, W is the width of the MOS tube, L is the length of the MOS tube, K 11 , K 12 , K 13 , K 14 are the K values ​​of the eleventh PMOS transistor PM11, the twelfth PMOS transistor PM12, the thirteenth NMOS transistor NM13, and the fourteenth NMOS transistor NM14, respectively. It can be seen from formula (9) that by adjusting the K values ​​of the eleventh PMOS transistor PM11, the twelfth PMOS transistor PM12, the thirteenth NMOS transistor NM13, and the fourteenth NMOS transistor NM14, the compensation voltage V that is independent of temperature can be obtained. bgr .

[0110] Figure 6 is the compensation voltage V under different process angles in a specific embodiment bgr Schematic diagram, Figure 6 The compensation voltage V is shown in the five process corners of SS, SNFP, TT, FNSP and FF. bgr Changes, the coordinate axis is temperature-voltage. Figure 6 It can be seen that the compensation voltage V under the five process corners of SS, SNFP, TT, FNSP, and FF bgr Independent of temperature. Using the compensation voltage V bgr Can be negative temperature coefficient voltage V ctat Perform voltage compensation and set the compensation voltage V bgr and negative temperature coefficient voltage V ctat Input to the output module to obtain a positive temperature coefficient voltage. Figure 7 is a schematic diagram of positive temperature coefficient voltage under different process angles in a specific embodiment, Figure 7 The figure shows the change of positive temperature coefficient voltage under five process corners: SS, SNFP, TT, FNSP, and FF. The coordinate axis is temperature-voltage. Figure 7 It can be seen that the positive temperature coefficient voltage obtained after compensation is in a positive linear relationship with temperature and is less affected by process deviation. This is because the compensation voltage V bgr Contains negative temperature coefficient voltage V ctat V T component, and the compensation voltage V bgr and negative temperature coefficient voltage V ctat As a difference, the negative temperature coefficient voltage V is offset ctat V T The positive temperature coefficient voltage obtained after compensation effectively eliminates the influence of process deviation. Figure 8is a schematic diagram of positive temperature coefficient voltage error under different process angles in a specific embodiment, Figure 8 The positive temperature coefficient voltage under the TT process corner is used as the reference, and the positive temperature coefficient voltage error under the four process corners of SS, SNFP, FNSP, and FF is shown. The coordinate axis is the temperature-voltage difference. Figure 8 It can be seen that in the temperature range of -10℃ to 70℃, the positive temperature coefficient voltage error range is controlled between -3℃ and 3℃ under different process angles. bgr For negative temperature coefficient voltage V ctat The positive temperature coefficient voltage obtained after voltage compensation can effectively eliminate the impact of process deviation.

[0111] Table 1 is a comparison of the temperature sensor of the present application and the comparative technology in a specific embodiment. As shown in Table 1, Table 1 is a parameter comparison of the temperature sensor of the present application and the temperature sensor of the comparative technology. As shown in Table 1, based on the UMCULP 55nm process design, the overall area of ​​the temperature sensor circuit of the present application is only 231um 2 , and the power consumption is only 25nw, which is much lower than the temperature sensor of the comparative technology. In addition, the measurement error of the temperature sensor of the present application can be controlled between -2.9℃ and 2.9℃, which is much smaller than the temperature sensor of the comparative technology. Overall, compared with the comparative technology, the temperature sensor proposed in this article has a small circuit area, low power consumption, and high measurement accuracy.

[0112] Table 1

[0113] parameter This application Comparison Technology Process (nm) 55 65 Supply voltage (V) 2.5 0.6~1.0 Core Devices CMOS CMOS Power consumption (nw) 25 360 <![CDATA[Area (um 2 )]]> 231 279 Range(℃) -10~70 0~100 Error(℃) -2.9~2.9 -3.4~3.6

[0114] In one embodiment, Fig. 9 is a structural diagram of an integrated circuit in an embodiment, such as Fig. 9 As shown, an integrated circuit 200 is provided, including the temperature sensor 100 for implementing any one of the above embodiments.

[0115] Specifically, the integrated circuit 200 can be a chip, which can be specifically applied to technical fields such as power testing. The temperature sensor 100 included in the provided integrated circuit 200 includes a voltage generation module 120, a voltage compensation module 140, and an output module 160. Among them, the input end of the voltage generation module 120 is electrically connected to the external power supply 180; the voltage generation module 120 is used to generate a negative temperature coefficient voltage inversely proportional to the temperature; the output end of the voltage generation module 120 is electrically connected to the input end of the voltage compensation module 140; the voltage compensation module 140 is used to compensate for the negative temperature coefficient voltage and generate a compensation voltage that is independent of temperature; the output end of the voltage generation module 120 and the output end of the voltage compensation module 140 are electrically connected to the input end of the output module 160; the output module 160 is used to output a positive temperature coefficient voltage according to the compensation voltage and the negative temperature coefficient voltage.

[0116] In the application embodiment, an integrated circuit 200 is provided, which includes a temperature sensor 100 for implementing any of the above embodiments. The provided integrated circuit 200 can achieve accurate temperature measurement, and the integrated circuit 200 has a small area and low power consumption.

[0117] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0118] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A temperature sensor, It is characterized in that It includes a voltage generation module, a voltage compensation module, and an output module, wherein: The input end of the voltage generating module is electrically connected to an external power supply; the voltage generating module is used to generate a negative temperature coefficient voltage inversely proportional to the temperature; The output end of the voltage generating module is electrically connected to the input end of the voltage compensating module; the voltage compensating module is used to compensate the negative temperature coefficient voltage to generate a compensation voltage that is independent of temperature; The output end of the voltage generating module, the output end of the voltage compensation module and the input end of the output module are electrically connected; the output module is used to output a positive temperature coefficient voltage according to the compensation voltage and the negative temperature coefficient voltage; Wherein, the voltage compensation module includes a fourth current mirror circuit, a differential pair operating in a subthreshold region, and a fifth current mirror circuit; The fourth current mirror circuit is used to copy the bias current according to different proportions to generate a fourth bias current; The fifth current mirror circuit is a basic current mirror, configured to generate a fifth bias current according to the negative temperature coefficient voltage; The voltage compensation module is used to input the fourth bias current and the fifth bias current into the differential pair working in the subthreshold region to generate a first output voltage of the differential pair and a second output voltage of the differential pair; The temperature-independent compensation voltage is generated according to the first output voltage of the differential pair and the second output voltage of the differential pair.

2. The temperature sensor according to claim 1, It is characterized in that The voltage generating module includes a bias current generating circuit, a MOS transistor operating in a subthreshold region, a first current mirror circuit, a second current mirror circuit and a third current mirror circuit; the first current mirror circuit, the second current mirror circuit and the third current mirror circuit are common-source and common-gate current mirrors.

3. The temperature sensor according to claim 2, It is characterized in that The bias current generating circuit is used to generate a bias current; The MOS transistor operating in the subthreshold region is used to generate a voltage inversely proportional to the temperature; The first current mirror circuit, the second current mirror circuit and the third current mirror circuit are used to replicate the bias current in different proportions to generate a first bias current, a second bias current and a third bias current; The voltage generating module is used to generate equivalent voltages corresponding to the first current mirror circuit, the second current mirror circuit and the third current mirror circuit based on the first bias current, the second bias current and the third bias current, and the equivalent resistances of the first current mirror circuit, the second current mirror circuit and the third current mirror circuit; The negative temperature coefficient voltage is generated according to the voltage inversely proportional to the temperature and the equivalent voltage.

4. The temperature sensor according to claim 2 or 3, It is characterized in that The bias current generating circuit includes a first NMOS transistor and a second NMOS transistor; The source of the first NMOS transistor is grounded, the drain of the first NMOS transistor is electrically connected to the source of the second NMOS transistor, the drain of the second NMOS transistor is electrically connected to the first current mirror circuit, and the gate of the first NMOS transistor and the gate of the second NMOS transistor are electrically connected to the MOS transistor operating in the subthreshold region.

5. The temperature sensor according to claim 4, It is characterized in that The MOS transistors operating in the subthreshold region include a third NMOS transistor and a fourth NMOS transistor; The source of the third NMOS transistor is grounded, the drain of the third NMOS transistor is electrically connected to the source of the fourth NMOS transistor, the drain of the third NMOS transistor is electrically connected to the gate of the first NMOS transistor, the drain of the fourth NMOS transistor is electrically connected to the gate of the third NMOS transistor, the gate of the second NMOS transistor is electrically connected to the gate of the fourth NMOS transistor, and the drain of the fourth NMOS transistor is electrically connected to the second current mirror circuit.

6. The temperature sensor according to claim 5, It is characterized in that The first current mirror circuit includes a fifth PMOS transistor and a sixth PMOS transistor, the second current mirror circuit includes a seventh PMOS transistor and an eighth PMOS transistor, and the third current mirror circuit includes a ninth PMOS transistor and a tenth PMOS transistor; The drain of the fifth PMOS transistor, the drain of the eighth PMOS transistor, and the drain of the tenth PMOS transistor are electrically connected to the external power supply, the source of the sixth PMOS transistor is electrically connected to the drain of the fifth PMOS transistor, and the source of the fifth PMOS transistor is electrically connected to the drain of the second NMOS transistor; The source of the eighth PMOS transistor is electrically connected to the drain of the seventh PMOS transistor, and the source of the seventh PMOS transistor is electrically connected to the drain of the fourth NMOS transistor; The source of the tenth PMOS transistor is electrically connected to the drain of the ninth PMOS transistor, and the source of the ninth PMOS transistor is electrically connected to the source of the fourth NMOS transistor; The gate of the sixth PMOS transistor is electrically connected to the source of the sixth PMOS transistor, the gate of the sixth PMOS transistor is electrically connected to the gate of the eighth PMOS transistor and the gate of the tenth PMOS transistor, respectively, the gate of the fifth PMOS transistor is electrically connected to the source of the fifth PMOS transistor, and the gate of the fifth PMOS transistor is electrically connected to the gate of the seventh PMOS transistor and the gate of the ninth PMOS transistor, respectively.

7. The temperature sensor according to claim 1, It is characterized in that The differential pair operating in the subthreshold region includes an eleventh PMOS transistor and a twelfth PMOS transistor; The gates of the eleventh PMOS transistor are electrically connected to the output ends of the voltage generating module, respectively; the drains of the eleventh PMOS transistor and the twelfth PMOS transistor are electrically connected to the fourth current mirror circuit; and the sources of the eleventh PMOS transistor and the twelfth PMOS transistor are electrically connected to the fifth current mirror circuit.

8. The temperature sensor according to claim 7, It is characterized in that The fourth current mirror circuit includes a fifteenth PMOS transistor and a sixteenth PMOS transistor; The drain of the sixteenth PMOS transistor is electrically connected to the external power supply, the source of the sixteenth PMOS transistor is electrically connected to the drain of the fifteenth PMOS transistor, the source of the fifteenth PMOS transistor is electrically connected to the drain of the eleventh PMOS transistor, the gate of the sixteenth PMOS transistor is electrically connected to the voltage generating module, and the gate of the fifteenth PMOS transistor is electrically connected to the voltage generating module.

9. The temperature sensor according to claim 7, It is characterized in that The fifth current mirror circuit includes a thirteenth NMOS transistor and a fourteenth NMOS transistor; The drain of the thirteenth NMOS transistor and the gate of the thirteenth NMOS transistor are electrically connected to the source of the eleventh PMOS transistor, the source of the thirteenth NMOS transistor is grounded, the source of the twelfth PMOS transistor is electrically connected to the drain of the fourteenth NMOS transistor, the gate of the fourteenth NMOS transistor is electrically connected to the gate of the thirteenth NMOS transistor, and the source of the fourteenth NMOS transistor is grounded.

10. An integrated circuit, It is characterized in that The temperature sensor comprises the temperature sensor according to any one of claims 1 to 9.