HIGH ACCURACY FAST VOLTAGE AND TEMPERATURE SENSOR CIRCUIT

20230140251 · 2023-05-04

Assignee

Inventors

Cpc classification

International classification

Abstract

A temperature sensing circuit includes a current generation circuit generating an initial current proportional to absolute temperature (Iptat), and a voltage generation circuit configured to mirror Iptat using an adjustable current source to produce a scaled current and to source the scaled current to a first terminal of a resistor to produce a reference voltage at the first terminal. A second terminal of the resistor has a voltage complementary to absolute temperature (Vctat) applied thereto. An analog-to-digital converter (ADC) has a reference input receiving the reference voltage, and a data input receiving Vctat or an externally sourced voltage. The ADC generates an output code indicative of a ratio between: a) either Vctat or the externally sourced voltage, and b) the reference voltage. A digital circuit determines a temperature readout from the output code and calibrates the reference voltage and the temperature readout determination based upon the output code.

Claims

1. A temperature sensing circuit, comprising: a current generation circuit configured to generate an initial current proportional to absolute temperature; a voltage generation circuit configured to mirror the initial current proportional to absolute temperature using an adjustable current source to produce a scaled current, and to source the scaled current to a first terminal of a resistor to produce an internal reference voltage at the first terminal, wherein a second terminal of the resistor has a voltage complementary to absolute temperature applied thereto; an analog to digital converter having a reference input configured to receive the internal reference voltage, and a data input configured to selectively receive one of the voltage complementary to absolute temperature or an externally sourced voltage, wherein the analog to digital converter is configured to generate an output code indicative of a ratio between: a) either the voltage complementary to absolute temperature or the externally sourced voltage, and b) the internal reference voltage; and a digital circuit configured to determine a temperature readout from the output code, and to calibrate the internal reference voltage and the temperature readout based upon the output code.

2. The temperature sensing circuit of claim 1, wherein the digital circuit calibrates the internal reference voltage by: passing a known reference voltage to the analog to digital converter as the externally sourced voltage; and adjusting the adjustable current source to thereby modify a magnitude of the scaled current, in turn modifying the internal reference voltage, dependent upon the output code, until the internal reference voltage is equal to the known reference voltage or equal to a known percentage of the known reference voltage.

3. The temperature sensing circuit of claim 2, wherein the digital circuit calibrates the temperature readout determination, after calibration of the internal reference voltage, by: comparing the temperature readout from the output code to a known temperature; and adjusting a constant used in determining the temperature readout until the temperature readout matches the known temperature.

4. The temperature sensing circuit of claim 3, wherein the output code is calculated as: μ = Vctat / Vref where Vctat is the voltage complementary to absolute temperature and Vref is the internal reference voltage.

5. The temperature sensing circuit of claim 4, wherein the temperature readout is determined as: T=A × 1- μ -B where T is the temperature, A and B are constants with A being the adjusted constant, and .Math. is the output code.

6. The temperature sensing circuit of claim 3, wherein the digital circuit is further configured to determine a voltage value of an external or internal supply voltage or any other voltage by passing that voltage to the analog to digital converter as the externally sourced voltage, wherein the voltage value is determined as a function of the internal reference voltage and the output code.

7. The temperature sensing circuit of claim 3, wherein the current generation circuit comprises: a first PNP transistor having an emitter coupled to a first node, a collector coupled to ground, and a base coupled to the collector of the first PNP transistor; a second PNP transistor having an emitter coupled to a second node through a first resistor, a collector coupled to ground, and a base coupled to the base of the first PNP transistor; a first p-channel transistor having source coupled to a supply voltage, a drain coupled to the first node, and a gate; and a second p-channel transistor having a source coupled to the supply voltage, drain coupled to the second node, and a gate coupled to the gate of the first p-channel transistor; wherein equality is enforced between drain currents of the first and second p-channel transistors; and wherein the first resistor is coupled between the second node and the emitter of the second PNP transistor.

8. The temperature sensing circuit of claim 7, wherein the equality is enforced between the drain currents of the first and second p-channel transistors by an operational amplifier having a non-inverting terminal coupled to the second node, an inverting terminal coupled to the first node, and an output coupled to the gates of the first and second p-channel transistors.

9. The temperature sensing circuit of claim 7, wherein the voltage generation circuit comprises: the adjustable current source coupled between the supply voltage and a third node; the resistor being coupled between the third node and a fourth node; and a diode coupled PNP transistor generating the voltage complementary to absolute temperature at the fourth node.

10. The temperature sensing circuit of claim 9, wherein the adjustable current source comprises an adjustable transistor arrangement having sources coupled to the supply voltage, drains coupled to the third node, and gates coupled to the gates of the first and second p-channel transistors.

11. The temperature sensing circuit of claim 7, further comprising a first switch coupled to selectively apply the voltage complementary to absolute temperature or the externally sourced voltage to the data input of the analog to digital converter; further comprising an input circuit, the input circuit comprising: a filter; a second switch selectively applying an external supply voltage to the filter; a third switch selectively supplying the known reference voltage to the filter; and a fourth switch selectively supplying output from the filter to the data input of the analog to digital converter.

12. A method of temperature sensing, comprising: using an adjustable current source to produce a scaled current; generating an internal reference voltage from the scaled current, the scaled current being proportional to absolute temperature; digitizing the internal reference voltage and either a voltage complementary to absolute temperature or an externally sourced voltage to thereby generate an output code indicative of a ratio between: a) either the voltage complementary to absolute temperature or the externally sourced voltage, and b) the internal reference voltage; determining a temperature readout from the output code; and calibrating the internal reference voltage and the temperature readout determination based upon the output code.

13. The method of claim 12, wherein the internal reference voltage is calibrated by using a known reference voltage as the externally sourced voltage, and further comprising adjusting the adjustable current source to thereby modify a magnitude of the scaled current, in turn modifying the internal reference voltage, dependent upon the output code, until the internal reference voltage is equal to the known reference voltage.

14. The method of claim 13, wherein the temperature readout determination is calibrated, after calibration of the internal reference voltage, by: comparing the temperature readout from the output code to a known temperature; and adjusting a constant used in determining the temperature readout until the temperature readout matches the known temperature.

15. The method of claim 14, further comprising: determining a voltage value of an external supply voltage by using the external supply voltage as the externally sourced voltage; and determining the voltage value as a function of the internal reference voltage and the output code.

16. The method of claim 15, wherein the output code is calculated as: μ = Vctat / Vref where Vctat is the voltage complementary to absolute temperature and Vref is the internal reference voltage.

17. The method of claim 16, wherein the temperature readout is determined as: T=A × 1- μ -B where T is the temperature, A and B are constants with A being the adjusted constant, and .Math. is the output code.

18. A temperature sensing circuit, comprising: a voltage generation circuit configured to: generate a voltage complementary to absolute temperature; and adjustably source a current proportional to absolute temperature to a first terminal of a resistor to produce an internal reference voltage at the first terminal, wherein a second terminal of the resistor receives the voltage complementary to absolute temperature; an analog to digital converter having a reference input configured to receive the internal reference voltage, and a data input configured to selectively receive one of the voltage complementary to absolute temperature or an externally sourced voltage, wherein the analog to digital converter is configured to generate an output code indicative of a ratio between: a) either the voltage complementary to absolute temperature or the externally sourced voltage, and b) the internal reference voltage; and a digital circuit configured to determine a temperature readout from the output code, and to calibrate the internal reference voltage and the temperature readout based upon the output code.

19. The temperature sensing circuit of claim 18, wherein the digital circuit calibrates the internal reference voltage by: passing a known reference voltage to the analog to digital converter as the externally sourced voltage; and modifying a magnitude of the current proportional to absolute temperature, in turn modifying the internal reference voltage, dependent upon the output code, until the internal reference voltage is equal to the known reference voltage.

20. The temperature sensing circuit of claim 19, wherein the digital circuit calibrates the temperature readout determination, after calibration of the internal reference voltage, by: comparing the temperature readout from the output code to a known temperature; and adjusting a constant used in determining the temperature readout until the temperature readout matches the known temperature.

21. The temperature sensing circuit of claim 20, wherein the output code is calculated as: μ = Vctat / Vref where Vctat is the voltage complementary to absolute temperature and Vref is the internal reference voltage.

22. The temperature sensing circuit of claim 21, wherein the temperature readout is determined as: T=A × 1- μ -B where T is the temperature, A and B are constants with A being the adjusted constant, and .Math. is the output code.

23. The temperature sensing circuit of claim 20, wherein the digital circuit is further configured to determine a voltage value of an external supply voltage by passing the external supply voltage to the analog to digital converter as the externally sourced voltage, and determining the voltage value as a function of the internal reference voltage and the output code.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

[0029] FIG. 1A is a graph showing generation of a temperature independent reference voltage (Vref) in a temperature sensor by summing a voltage proportional to absolute temperature (Vptat) and a voltage complementary to absolute temperature (Vctat).

[0030] FIG. 1B is a schematic diagram of a first prior art bandgap voltage generator.

[0031] FIG. 1C is a schematic diagram of a second prior art bandgap voltage generator.

[0032] FIG. 1D is a graph showing how the slope of the voltage of the base-emitter junction of the bipolar junction transistor used to generate Vctat (also referred to as Vbe) across temperature is process dependent (varies from transistor to transistor due to process variation).

[0033] FIG. 2 is a schematic diagram of a voltage and temperature sensor described herein.

[0034] FIG. 3A shows the voltage and temperature sensor of FIG. 2 when performing voltage (Vref) calibration.

[0035] FIG. 3B shows the voltage and temperature sensor of FIG. 2 when performing temperature measurement calibration.

[0036] FIG. 3C shows the voltage and temperature sensor of FIG. 2 when performing temperature sensing.

[0037] FIG. 3D shows the voltage and temperature sensor of FIG. 2 when performing supply voltage sensing.

DETAILED DESCRIPTION

[0038] The following disclosure enables a person skilled in the art to make and use the subject matter disclosed herein. The general principles described herein may be applied to embodiments and applications other than those detailed above without departing from the spirit and scope of this disclosure. This disclosure is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed or suggested herein. Do note that in the below description, any described resistor or resistance is a discrete or integrated device unless the contrary is stated, and is not simply an electrical lead between two points. Thus, any described resistor or resistance coupled or connected between two points has a greater resistance than a lead or trace between those two points would have, and such resistor or resistance cannot be interpreted to be a lead or trace. Stated differently, the resistors described herein are not leads or traces.

[0039] A temperature sensor 5 is now described with reference to FIG. 2. This temperature sensor 5 is arranged to be incorporated and integrated within a single integrated circuit chip, and operates to report the temperature of an area of that single integrated circuit chip.

[0040] The temperature sensor 5 includes the following constituent circuits: a current generation circuit 10 that generates the current proportional to absolute temperature Iptat, a reference voltage generation circuit 15 that generates the reference voltage Vref from Iptat and outputs a voltage Vbe complementary to absolute temperature, an analog to digital converter (ADC) 20 that receives the reference voltage Vref and either Vbe from the voltage generation circuit 15 or an input voltage from an input circuit 16, and a digital circuit 25 that reads the output of the ADC 20 and controls the input circuit 16 and voltage generation circuit 15 to effectuate calibration and sensing.

[0041] First, the structure of each circuit will be described, and then the structure of the temperature sensor 5 will be described thereafter.

[0042] In greater detail, the current generation circuit 10 includes a first PNP transistor QP1 having its emitter connected to node N1, its collector grounded, and its base connected to the base of a second PNP transistor QP2. A resistor R1 is connected between node N2 and the emitter of the transistor QP2, and the collector of the transistor QP2 is grounded. A first p-channel transistor MP1 has its source connected to a supply voltage VDD, its drain connected to node N1, and its gate connected to the gate of a second p-channel transistor MP2. The transistor MP2 has its source connected to VDD and its drain connected to node N2. An operational amplifier 11 has its non-inverting terminal connected to node N2, its inverting terminal connected to node N1, and its output connected to the gates of transistors MP1 and MP2.

[0043] Notice that, as compared to the prior art, the current generation circuit 10 may not have a resistor connected between node N1 and the drain of transistor MP1, and may not have a resistor connected between node N2 and the drain of transistor MP2 - the scaling of Iptat to produce Vptat and hence Vref (which is used in voltage and temperature sensing and calibration) is performed in the circuit 15.

[0044] The voltage generation circuit 15 includes an adjustable current source (shown as an adjustable third p-channel transistor MP3 which represents multiple such transistors connected in parallel) connected between the supply voltage VDD and node N3, with its gate connected to the gates of transistors MP1 and MP2. Transistors MP1, MP2, and MP3 are matched to improve Iptat current mirroring. In the context of the adjustable current source (which can also be referred to as a current DAC) being multiple parallel connected third p-channel transistors MP3, the transistors MP3 have their sources connected to VDD, their drains connected to node N3, and their gates connected to the gates of transistors MP1 and MP2 as well as to the output of the operational amplifier 11. A resistor R2 is connected between nodes N3 and N4. A third PNP transistor QP3 has its emitter connected to node N4, its collector connected to ground, and it is diode coupled so its base is connected to its collector.

[0045] The analog to digital converter (ADC) 20 derives its reference voltage from node N3 (with or without voltage buffering), has its input connected to node N5, and has its output bits ADCOUT connected to the digital circuit 25. A switch S1 selectively connects node N4 to node N5. Through the switches S1 through S4, Vbe, Vsupply, and Vref_Ext (after filtering) can be provided through different channels of the ADC, and as different inputs (without loss of generality) or through a single channel with muxing (multiplexing) done outside the ADC.

[0046] The input circuit 16 includes a filter circuit 17 having a first input selectively connected to receive a supply voltage to test Vsupply by a switch S2, a second input selectively connected to receive an external reference voltage Vref_ext by a switch S3, and an output selectively connected to node N5 by a switch S4. The filter circuit 17 can be used for removing noise from the voltage signals Vsupply and Vref_ext, and also to scale such voltages appropriately to bring them suitably within the operating range of the ADC 20.

[0047] The digital circuit 25 includes a sequencer and thermal sensor controller 26 receiving primarily a clock signal Fclk used by the digital circuit 25 and receiving data from a data formatter 27. The data formatter 27 has inputs receiving the output ADCOUT of the ADC 20, a first value A, and a second value B, and has outputs providing a DATAREADY and a DATAOUT signal. The DATAREADY indicates that the data formatter 27 is ready to output another data word, and the DATAOUT is the data word that is being outputted (e.g., the digital representation of voltage or temperature sensing/calibration data).

[0048] In operation, operational amplifier 11 drives the gates of transistors MP1 and MP2 to force the voltage at the inverting input of the amplifier 11 to be equal to the voltage at the non-inverting input of the amplifier 11, and therefore forces equality in the gate to drain voltages of transistors MP1 and MP2. This results in the base to emitter voltage Vbe1 of PNP transistor QP1 (which is a voltage complementary to absolute temperature Vctat) appearing at the drain of transistor MP2. Those skilled in the art will appreciate that this operational amplifier 11 can have a finite offset voltage, which may appear as error between its input terminals. Therefore, chopping of this operational amplifier 11 may be required to average out the inaccuracies resulting from these offset voltages. Since resistor R1 is between the voltages Vbe1 and Vbe2 (the base to emitter voltage of transistor QP2), the voltage across resistor R1 is Vbe1-Vbe2, which can be referred to as ΔVbe. The resulting current Iptat0 applied through resistor R1 is proportional to absolute temperature and flows into PNP transistors QP2 and QP1.

[0049] The current Iptat0 can be represented as:

[00004]Iptat=ΔVbeR1

[0050] The voltage at node N1 is Vctat (the base to emitter voltage Vbe of transistor QP1). Since the adjustable current source MP3 is connected in a current mirroring arrangement with transistors MP1 and MP2, a PTAT current Iptat (which is a multiple of Iptat0, said multiple depending on how many of the parallel connected transistors MP3 are activated) is sourced from the drain of the adjustable current source MP3 and flows through resistor R2 to thereby generate a reference voltage Vref at node N3. The reference voltage Vref can be represented as:

[00005]Vref=Vctat+ΔVbeR1R2=Vctat+αΔVbe=Vctat+Vptat

[0051] The temperature sensor 5 first operates in a voltage calibration phase, shown in FIG. 3A. In the calibration phase, switches S3 and S4 are closed and switches S1 and S2 are opened, such that the ADC 20 receives Vref from 10 as its reference voltage and Vref_ext at its input. The value of Vref_EXT is chosen to be within the expected input range of the ADC. The aim is to have the number of scaling multiples of the transistor MP3 turned ON be such that the resulting reference voltage Vref from block 15 is equal to the bandgap reference voltage. The digital word ADCOUT output by the ADC 20 represents a ratio between Vref_ext and Vref. Based on this digital word ADCOUT, the digital circuit 25 adjusts the adjustable current source MP3 (i.e., activates more of the parallel connected transistors MP3 to thereby increase the magnitude of Iptat or activates less of the parallel connected transistors MP3 to thereby decrease the magnitude of Iptat and hence causing a respective change in Vref). Specifically, when ADCOUT is digitally representing a greater value than the expected ratio Vref_ext/Vref (e.g., 0.5), the adjustable current source MP3 is adjusted so that the magnitude of Iptat is increased, thereby increasing Vref and reducing the Vref_Ext/Vref ratio. When ADCOUT is digitally representing a value less than the expected ratio Vref_ext/Vref, the adjustable current source MP3 is adjusted so that the magnitude of Iptat is decreased, thereby reducing Vref and increasing the Vref_Ext/Vref ratio. The temperature sensor 5 continues to operate during this voltage calibration, meaning that the ADC 20 is periodically sampling its inputs again to periodically produce new values of ADCOUT, and one adjustment of the adjustable current source MP3 is performed by the digital circuit 25 for each new value of ADCOUT.

[0052] This adjusting is performed until ADCOUT is digitally representing the ratio Vref_ext/Vref to its maximum possible precision. This completes calibration of the reference voltage Vref (correcting for Vbe spread; correcting for the slope of Vbe and a scaling error or scaling ratio error between the current generation circuit 10 and the voltage generation circuit 15), and the calibrated version of internal reference Vref may be referred to as Vref_Cal. The number of branches of MP3 (or a voltage calibration code VCALCODE) thus obtained can be stored in a one-time programmable (OTP) memory, or any other storage memory, so that it can be used to reproduce Vref_Cal whenever required for the silicon die into which the temperature sensor 5 is incorporated.

[0053] The temperature sensor 5 next operates in a temperature calibration phase, shown in FIG. 3B. In the temperature calibration phase, switch S1 is closed while the other switches are open. As such, the ADC 20 receives the calibrated reference voltage Vref_Cal and Vbe at its inputs, and the digital word ADCOUT output by the ADC 20 represents a ratio between Vbe and Vref_Cal. Keeping in mind that Vbe=Vctat and here calculating .Math.=Vctat/Vref_Cal, the temperature here can be calculated by the digital circuit 25 as:

[00006]T=A×1μB

[0054] In this implementation A and B are constants, and initially standard pre-known values are used for both A and B. To perform temperature calibration, the digital circuit 25 compares the temperature T as calculated to an input that specifies what the temperature is known to actually be, and adjusts the constant A based upon a mathematical comparison between the calculated temperature T and the known die temperature (in thermal equilibrium with the surrounding area) undergoing temperature calibration. In particular, A is adjusted such that the calculated temperature T matches the accurately measured temperature of the die from outside. B is set dependent upon the units to be used to report the temperature (e.g., Celsius, Kelvin) and also corrects for any offset errors.

[0055] This temperature calibration may be performed in a chamber with a known temperature. For example, the chip into which the temperature sensor 5 is integrated may be placed into a chamber maintained at 27° C. (and left for sufficient time to achieve thermal equilibrium with its surroundings), which is the known temperature, and the temperature calibration is performed.

[0056] As per a non-limiting example, if the calculated temperature T is less than the known temperature, then A is increased and the calculated temperature T is recalculated. If the calculated temperature T is greater than the known temperature, then A is decreases and the calculated temperature T is recalculated. After each recalculation, the comparison between the calculated temperature T and the known temperature is performed again, and adjustment of the constant A is performed again, and this continues until the calculated temperature T matches the known temperature to sufficient precision of A. This completes the calibration of the temperature calculation and sensing, and the calibrated version of A may be referred to as A_Calcode and can be stored in a permanent memory to be used for accurate temperature readings for the silicon die into which the temperature sensor 5 is incorporated.

[0057] Temperature sensing in a normal operation mode may now be performed after Vref calibration and temperature calibration to find the present temperature of the chip. Temperature sensing is now described with FIG. 3C, and in this mode, switch S1 is closed while the other switches are open.

[0058] The ADC 20 receives Vref_Cal as its reference voltage and Vbe at its input, and the digital word ADCOUT output by the ADC 20 represents a ratio between between Vbe and Vref_Cal. Keeping in mind that Vbe=Vctat and .Math.=Vctat/Vref_Cal, the temperature can be calculated by the digital circuit 25 as:

[00007]T=A_calcode×1μB

[0059] Thus, the temperature sensor 5 is working properly here, and temperature sensing may be continued for as long as desired.

[0060] In some applications, it may be desired for the temperature sensor 5 to have the additional function of testing a voltage so that the present absolute value of that voltage may be known. In the illustrated example, the supply voltage Vsupply is the sensed voltage.

[0061] In this voltage sensing mode, switches S2 and S4 are closed, while switches S1 and S3 are open. As a result, Vsupply is supplied to the input of ADC 20, and as such, ADCOUT represents a ratio between Vsupply and Vref_cal. Since Vref_cal is a known value, from ADCOUT, the value of Vsupply can be calculated.

[0062] The design of the temperature sensor 5 offers numerous advantages. For example, the output impedance of the voltage generation circuit 15 may be scaled as desired to suit the ADC 20 and the desired sampling speed, without impacting accuracy. As opposed to prior art designs, scaling is this circuits does not accompany a corresponding 8x scaling of a parallel current or area consumed by the bipolar junction transistors. Moreover, since the calibration is achieved in current domain, it does not have problem of dealing with small calibration resistor sizes. As understood, in addition to scaling the Iptat current produced by the adjustable current source MP3, the resistor R2 and size of the transistor QP3 are to be scaled proportionately to produce the correct reference voltage Vref and CTAT voltage Vbe. Thus, overall, the temperature sensor 5 permits a much higher temperature conversion rate than prior art designs.

[0063] As another advantage, one can do away with the buffering of the reference voltage Vref for use in ADC, due to scalability of this circuit, and indeed, no buffering of Vref is performed in the temperature sensor 5, leading to area and power savings, without a loss of accuracy.

[0064] Finally, it is clear that modifications and variations may be made to what has been described and illustrated herein, without thereby departing from the scope of this disclosure, as defined in the annexed claims.

[0065] While the disclosure has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of this disclosure, will appreciate that other embodiments can be envisioned that do not depart from the scope of the disclosure as disclosed herein. Accordingly, the scope of the disclosure shall be limited only by the attached claims.