Bias current variation correction for complementary metal-oxide-semiconductor (CMOS) temperature sensor
11181426 · 2021-11-23
Assignee
Inventors
- Edward Cullen (Naas, IE)
- Umanath R. Kamath (Dublin, IE)
- John K. Jennings (Glenageary, IE)
- Diarmuid Collins (Dunshaughlin, IE)
- Ionut C. Cical (Saggart, IE)
Cpc classification
G01K1/00
PHYSICS
International classification
G01K7/00
PHYSICS
Abstract
A temperature sensor includes a current source to produce a first bias current and a second bias current, a plurality of diodes, and temperature estimation circuitry. The plurality of diodes includes at least a first diode to receive the first bias current and a second diode to receive the second bias current. The temperature estimate circuitry measures a first voltage bias across the first diode resulting from the first bias current and a second voltage bias across the second diode resulting from the second bias current, and estimates a temperature of an environment of the temperature sensor based at least in part on the first voltage bias and the second voltage bias. The temperature sensor further includes error detection circuitry to measure at least one of the first or second bias currents and determine an amount of error in the temperature estimate based at least in part on the measurement.
Claims
1. A temperature sensor, comprising: a current source configured to produce a first bias current and a second bias current; a plurality of diodes coupled to the current source, the plurality of diodes including at least a first diode to receive the first bias current and a second diode to receive the second bias current; temperature estimation circuitry to measure a first voltage bias across the first diode associated with the first bias current and to measure a second voltage bias across the second diode associated with the second bias current, the temperature estimation circuitry being configured to estimate a temperature of an environment of the temperature sensor based at least in part on the first voltage bias and the second voltage bias; and error detection circuitry switchably coupled to the current source, the error detection circuitry being configured to determine an amount of error in the temperature estimate based at least in part on measurements of at least one of the first or second bias currents.
2. The temperature sensor of claim 1, wherein the error detection circuitry is further configured to measure the at least one of the first or second bias currents when the temperature estimation circuitry is in a sleep state.
3. The temperature sensor of claim 1, wherein the amount of error in the temperature estimate is based at least in part on variations in at least one of the first or second bias currents.
4. The temperature sensor of claim 1, further comprising: error compensation circuitry configured to adjust the temperature estimate based at least in part on the amount of error.
5. The temperature sensor of claim 4, wherein the error compensation circuitry is to adjust the temperature estimate by adjusting at least one of the first bias current or the second bias current produced by the current source.
6. The temperatures sensor of claim 4, wherein the error compensation circuitry is to adjust the temperature estimate by adjusting at least one of the first voltage bias or the second voltage bias of the plurality of diodes.
7. The temperature sensor of claim 1, wherein the error detection circuitry comprises: a resistor; switching circuitry configured to route each of the first and second bias currents to the resistor; and error calculation circuitry configured to determine the amount of error in the temperature estimate based at least in part on a voltage of the resistor resulting from the first and second bias currents.
8. The temperature sensor of claim 7, wherein the switching circuitry is to route the first and second bias currents, concurrently, to the resistor.
9. The temperature sensor of claim 7, wherein the switching circuitry is to route each of the first and second bias currents to the resistor at different times, and wherein the error calculation circuitry is to measure a first voltage across the resistor in response to the first bias current and a second voltage across the resistor in response to the second bias current.
10. The temperature sensor of claim 9, wherein the amount of error in the temperature estimate is based on a difference between the first voltage and the second voltage.
11. The temperature sensor of claim 9, wherein the amount of error in the temperature estimate is based on a sum of the first voltage and the second voltage.
12. A method of operating a temperature sensor, comprising: generating a first bias current and a second bias current; measuring a first voltage bias across a first diode coupled to receive the first bias current; measuring a second voltage bias across a second diode coupled to receive the second bias current; estimating a temperature of an environment of the temperature sensor based at least in part on the first voltage bias and the second voltage bias; measuring one or more of the first or second bias currents; and determining an amount of error in the temperature estimate based at least in part on the one or more of the measured first or second bias currents.
13. The method of claim 12, wherein the one or more of the first or second bias currents are measured when the temperature sensor is not estimating the temperature of the environment.
14. The method of claim 12, wherein the amount of error in the temperature estimate is based at least in part on variations in the one or more of the first or second bias currents.
15. The method of claim 12, wherein measuring the one or more of the first or second bias currents comprises: routing each of the first and second bias currents to a resistor; and measuring a voltage of the resistor resulting from the first and second bias currents, wherein the amount of error in the temperature estimate is based at least in part on the voltage of the resistor.
16. The method of claim 15, wherein the routing comprises routing the first and second bias currents, concurrently, to the resistor.
17. The method of claim 15, wherein the routing comprises routing each of the first and second bias currents to the resistor at different times, and wherein measuring the voltage of the resistor comprises: measuring a first voltage across the resistor in response to the first bias current; and measuring a second voltage across the resistor in response to the second bias current.
18. The method of claim 12, further comprising: adjusting the temperature estimate based at least in part on the amount of error.
19. The method of claim 18, wherein the adjusting comprises: adjusting at least one of the first bias current or the second bias current.
20. The method of claim 18, wherein the adjusting comprises: adjusting at least one of the first voltage bias or the second voltage bias.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The example embodiments are illustrated by way of example and are not intended to be limited by the figures of the accompanying drawings. Like numbers reference like elements throughout the drawings and specification.
(2)
(3)
(4)
(5)
(6)
(7)
(8)
DETAILED DESCRIPTION
(9) In the following description, numerous specific details are set forth such as examples of specific components, circuits, and processes to provide a thorough understanding of the present disclosure. The term “coupled” as used herein means coupled directly to or coupled through one or more intervening components or circuits. Also, in the following description and for purposes of explanation, specific nomenclature and/or details are set forth to provide a thorough understanding of the example embodiments. However, it will be apparent to one skilled in the art that these specific details may not be required to practice the example embodiments. In other instances, well-known circuits and devices are shown in block diagram form to avoid obscuring the present disclosure. Any of the signals provided over various buses described herein may be time-multiplexed with other signals and provided over one or more common buses. Additionally, the interconnection between circuit elements or software blocks may be shown as buses or as single signal lines. Each of the buses may alternatively be a single signal line, and each of the single signal lines may alternatively be buses, and a single line or bus might represent any one or more of a myriad of physical or logical mechanisms for communication between components. The example embodiments are not to be construed as limited to specific examples described herein but rather to include within their scope all embodiments defined by the appended claims.
(10)
(11) The current source 110 produces a plurality of bias currents I.sub.A and I.sub.B. In the example of
(12) The temperature-dependent load 120 receives the bias currents I.sub.A and I.sub.B from the current source 110 and produces a plurality of voltage biases V.sub.A and V.sub.B based on the bias currents I.sub.A and I.sub.B, respectively. In some embodiments, the voltage biases V.sub.A and V.sub.B across the temperature-dependent load 120 may vary with respect to the temperature of the environment (e.g., silicon) of the temperature sensor 100. For example, in some aspects, the temperature-dependent load 120 may comprise a plurality of diodes (e.g., where the voltage biases V.sub.A and V.sub.B are produced by the flow of the bias currents I.sub.A and I.sub.B, respectively, across the P-N junctions of two or more diodes). In some implementations, the diodes may be formed using transistors such as, for example, bipolar junction transistors (BJTs), CMOS transistors, and the like. The P-N junction of a diode (or transistor) is sensitive to temperature. As a result, under steady current, the voltage across the P-N junction tends to vary linearly with respect to temperature.
(13) It is noted that the temperature-dependent load 120 may be sensitive to process variations. More specifically, due to process variations, different diodes (or transistors) may produce different voltage biases V.sub.A and/or V.sub.B under the same (or similar) temperature conditions. However, the effects of such process variations can be substantially reduced or mitigated by comparing the voltage biases V.sub.A and V.sub.B across two or more diodes that are manufactured together using the same process. In some embodiments, the temperature-dependent load 120 may be configured to produce different voltages V.sub.A and V.sub.B in response to respective bias currents I.sub.A and I.sub.B. For example, the diodes coupled to the first bias current I.sub.A may be proportional to the diodes coupled to the second bias current I.sub.B by a ratio (1:N) such that the resulting voltages V.sub.A and V.sub.B are substantially different (e.g., |V.sub.A−V.sub.B|>0).
(14) The temperature estimation circuitry 130 measures the voltage biases V.sub.A and V.sub.B across the temperature-dependent load 120 and calculates a temperature estimate (T_Est) based, at least in part, on the measured voltages V.sub.A and V.sub.B. In some implementations, the temperature estimation circuitry 130 may calculate the temperature estimate T_Est based on the difference between the first voltage bias V.sub.A and the second voltage bias V.sub.B. As described above, the difference between the voltages V.sub.A and V.sub.B may vary linearly with respect to temperature. In generating the temperature estimate T_Est, the temperature estimation circuitry 130 may convert the voltage difference to a digital value that more closely reflects the actual temperature of the environment.
(15) Aspects of the present disclosure recognize that, due to process variations, the current source 110 may produce varying amounts of bias currents I.sub.A and I.sub.B, which may create a spread between the voltages V.sub.A and V.sub.B. The voltage spread may result in errors or inaccuracies in the temperature estimate T_Est. Thus, in some embodiments, the error detection circuitry 140 may be configured to detect variations or errors in the bias currents I.sub.A and I.sub.B. More specifically, the error detection circuitry 140 may compare the bias currents I.sub.A and I.sub.B to a nominal or expected value (e.g., for a reference current) to determine the accuracy of the bias currents I.sub.A and I.sub.B (e.g., how accurately the bias currents I.sub.A and I.sub.B mirror the reference current). The error detection circuitry 140 may further determine an error value (T_Err) based, at least in part, on the measured bias currents I.sub.A and I.sub.B. The error value T_Err may indicate an amount of error expected in the temperature estimate T_Est given the amount of variation in the bias currents I.sub.A and I.sub.B.
(16) In some embodiments, the error value T_Err may be used to adjust the temperature estimate T_Est and/or compensate for the variations in the bias currents I.sub.A and/or I.sub.B. For example, in some aspects, the temperature estimation circuitry 130 may use the error value T_Err to adjust or correct the temperature estimate T_Est in the digital domain (e.g., by adding or subtracting the error value T_Err from the temperature estimate T_Est). In some other aspects, the error value T_Err may be provided to current correction circuitry (not shown for simplicity) configured to correct the temperature estimate T_Est (e.g., in the analog domain) by adjusting one or more of the bias currents I.sub.A and/or I.sub.B. Still further, in some aspects, the error value T_Err may be provided to voltage correction circuitry (not shown for simplicity) configured to correct the temperature estimate T_Est (e.g., in the analog domain) by adjusting one or more of the voltage biases V.sub.A and/or V.sub.B.
(17)
(18) The current source 210 is configured to generate a temperature-independent reference current I.sub.0. For example, the current source 210 may correspond to or include a bandgap voltage reference. The first transistors M0-M2 are configured to operate as a current mirror to produce a set of bias currents I.sub.1 and I.sub.2 that are substantially equal to the reference current I.sub.0. In the example of
(19) In some embodiments, the dimensions and/or properties of the transistors M1 and M2 are configured to be substantially similar (if not identical). For example, the transistors M1 and M2 may be manufactured to the same specification using the same process. Thus, the magnitude of each of the bias currents I.sub.1 and I.sub.2 should be substantially equal to a nominal current value (such as I.sub.0) when the transistors M1 and M2 are coupled to the same or equivalent loads. However, due to process variations, the bias currents I.sub.1 and I.sub.2 may differ from the nominal value.
(20) The second transistors Q1 and Q2 are configured to receive the bias currents I.sub.1 and I.sub.2, respectively. In the example of
(21) The voltages between the base and emitter terminals (V.sub.BE) of the transistors Q1 and Q2 can be expressed as a function of the bias currents I.sub.1 and I.sub.2:
(22)
(23)
where V.sub.BE1 and V.sub.BE2 are the base-emitter voltages of the transistors Q1 and Q2, respectively, k is the Boltzmann constant, T is the absolute temperature, q is the electron charge, and I.sub.S the saturation current. It is noted that the saturation current I.sub.S may be process-dependent. However, by taking the difference between the base-emitter voltages, the effects of the saturation current I.sub.S may cancel out:
(24)
Thus, the difference between the base-emitter voltages (ΔV.sub.BE) of the transistors Q1 and Q2 may be proportional to the absolute temperature of the environment.
(25) The amplifier 220 amplifies the difference between the base emitter voltages V.sub.BE1 and V.sub.BE2 of the transistors Q1 and Q2, respectively, and the resulting voltage difference (ΔV.sub.BE) is sampled by the ADC 230. More specifically, the ADC 230 may generate a digital voltage sample that is proportional to absolute temperature (V.sub.PTAT) by comparing the voltage difference ΔV.sub.BE to a reference voltage (V.sub.ref). In some aspects, a temperature-independent reference voltage V.sub.ref can be produced based on a combination of the voltage difference ΔV.sub.BE and the base-emitter voltage (V.sub.BE) of one of the transistors Q1 or Q2. For example, an adder circuit 203 may apply a scaling factor (α) to the voltage difference ΔV.sub.BE and add the base-emitter voltage V.sub.BE2 to produce the reference voltage V.sub.ref:
V.sub.ref=V.sub.BE2+αΔV.sub.BE
(26) The temperature conversion circuit 240 may convert the digital voltage V.sub.PTAT to a temperature estimate (T_Est) that more closely reflects the actual temperature of the environment. For example, the temperature conversion circuit 240 may apply a scaling factor to the digital voltage V.sub.PTAT to produce a temperature estimate T_Est within a preconfigured temperature range.
(27) It is noted that BJTs (e.g., transistors Q1 and Q2) tend to have a very low temperature coefficient. As a result, the temperature estimate T_Est may be susceptible to error due to the spread in the voltage difference ΔV.sub.BE. Further, process variations (e.g., in the manufacture of the BJTs) may also contribute to the spread in the voltage difference ΔV.sub.BE. Since the temperature conversion circuit 240 converts the digital voltage V.sub.PTAT directly to the temperature estimate T_Est (e.g., using a single equation), any process spread in the voltage difference ΔV.sub.BE may result in additional error the resulting temperature estimate T_Est. As described above, process variations may result in variations in the bias currents I.sub.1 and I.sub.2, which may further contribute to the spread in the voltage difference ΔV.sub.BE.
(28) In some embodiments, the error detection circuit 250 may be switchably coupled to the transistors M1 and M2 (e.g., via switches 201 and 202, respectively) to detect variations or differences in the bias currents I.sub.1 and I.sub.2. In some aspects, the error detection circuit 250 may be coupled to receive the bias currents I.sub.1 and/or I.sub.2 during a period when the temperature sensor 200 is in a sleep state (e.g., where the temperature sensor 200 is not actively generating a temperature estimate T_Est). For example, during the sleep state, the switches 201 and 202 may couple the error detection circuit 250 to the first transistors M1 and M2 while also decoupling the second transistors Q1 and Q2 from the first transistors M1 and M2.
(29) The error detection circuit 250 may compare the bias currents I.sub.1 and I.sub.2 to a nominal current value. As described above, the transistors M1 and M2 are configured to mirror the reference current I.sub.0. Thus, each of the bias currents I.sub.1 and I.sub.2 should ideally be equal to the same nominal current value when measured across the same load. Differences in the bias currents I.sub.1 and I.sub.2 (e.g., when the second transistors Q1 and Q2 are decoupled from the first transistors M1 and M2) may be attributed to process variations in the manufacture of the first transistors M1 and M2. With reference for example to Equation 1, it is noted that the voltage difference ΔV.sub.BE may vary with respect to variations in the bias currents I.sub.1 and/or I.sub.2. It is also noted that any variations in the voltage difference ΔV.sub.BE may be directly converted to errors in the temperature estimate T_Est (e.g., by the temperature conversion circuit 240). Accordingly, the error detection circuit 250 may calculate an amount of error (T_Err) in the temperature estimate T_Est based on variations in one or more of the bias currents I.sub.1 and/or I.sub.2.
(30) In some embodiments, the error T_Err may be provided to the error compensation circuit 260 to reduce or otherwise compensate for the error in the temperature estimate T_Est. In some aspects, the error compensation circuit 260 may correct the temperature estimate T_Est in the digital domain. For example, the error compensation circuit 260 may subtract (or add) the error T_Err from the temperature estimate T_Est. In some other aspects, the error compensation circuit 260 may adjust one or more of the bias currents I.sub.1 and/or I.sub.2 to reduce the error in the temperature estimate T_Est (e.g., in the analog domain). Still further, in some aspects, the error compensation circuit 260 may adjust one or more of the base-emitter voltage V.sub.BE1 and/or V.sub.BE2 to reduce the error in the temperature estimate T_Est (e.g., in the analog domain).
(31)
(32) The inputs IN1 and IN2 may be coupled to receive bias currents I.sub.1 and I.sub.2, respectively, from a current source. With reference for example to
(33) The load current I.sub.L produces a voltage across the load R.sub.L that can be measure by the voltage detector 310 (e.g., V.sub.L=I.sub.L*R.sub.L). In some embodiments, the load R.sub.L has a predetermined impedance and is manufactured using a known process. In the example of
(34) In some embodiments, the error calculator 320 may calculate the error T_Err based on the voltage across the load attributed to the sum of the bias currents I.sub.1 and I.sub.2. For example, the error calculator 320 may first calculate a voltage (V.sub.sum) associated with the sum of the bias currents I.sub.1 and I.sub.2:
V.sub.sum=(I.sub.1+I.sub.2)R.sub.L=I.sub.1R.sub.L+I.sub.2R.sub.L
In some aspects, V.sub.sum may be equal to V.sub.L when I.sub.L=I.sub.1+I.sub.2. In some other aspects, V.sub.sum may be equal to the sum of V.sub.L1 and V.sub.L2 when I.sub.L=I.sub.1 or I.sub.2 (e.g., where V.sub.L1=I.sub.1*R.sub.L and V.sub.L2=I.sub.2*R.sub.L).
(35) The error calculator 320 may then calculate the error T_Err attributed to the spread in the bias currents I.sub.1 and I.sub.2 based, at least in part, on the voltage sum V.sub.sum:
(36)
where I.sub.nom is a nominal value for each of the bias currents I.sub.1 and I.sub.2 (it is noted that each of the bias currents I.sub.1 and I.sub.2 is expected to have the same nominal value I.sub.nom) and “percent_spread” is the percentage spread in the bias current that causes a temperature error of 1° C. (e.g., percent_spread=0.088 means an 8.8% spread in the bias current causes 1° C. of error in the temperature estimate).
(37) As described with respect to
(38) In some embodiments, the error calculator 320 may calculate the error T_Err based on the voltage across the load attributed to the difference of the bias currents I.sub.1 and I.sub.2. For example, the error calculator 320 may calculate a voltage (V.sub.diff) associated with the difference between the bias currents I.sub.1 and I.sub.2:
V.sub.diff=(I.sub.1−I.sub.2)R.sub.L=I.sub.1R.sub.L−I.sub.2R.sub.L
In some aspects, V.sub.diff may be equal to the difference between V.sub.L1 and V.sub.L2 (e.g., where V.sub.L1=I.sub.1*R.sub.L and V.sub.L2=I.sub.2*R.sub.L). The error calculator 320 may then calculate the error T_Err attributed to the spread in the bias currents I.sub.1 and I.sub.2 based, at least in part, on the voltage difference V.sub.diff (e.g., in a similar manner as described with respect to the voltage sum V.sub.sum).
(39) Still further, in some embodiments, the error calculator 320 may determine the error T_Err based on a combination of the voltage sum V.sub.sum and the voltage difference V.sub.diff. As described above, the voltage sum V.sub.sum reflects the combined spread of the bias currents I.sub.1 and I.sub.2 whereas the voltage difference V.sub.diff reflects any mismatch between the individual bias currents I.sub.1 and I.sub.2. Thus, each of these voltage measurements may have a different transfer function with respect to temperature. Thus, in some aspects, the error calculator 320 may calculate the error T_Err based on the sensitivity of the temperature estimate to the voltage sum V.sub.sum and the voltage difference V.sub.diff:
T_Err=xV.sub.sum+yV.sub.diff
where x is a scaling factor corresponding to the temperature sensitivity to the voltage sum V.sub.sum and y is a scaling factor corresponding to the temperature sensitivity to the voltage difference V.sub.diff.
(40)
(41) The current source 410 is configured to generate a temperature-independent reference current I.sub.0. For example, the current source 410 may correspond to or include a bandgap voltage reference. The first transistors M0-M2 are configured to operate as a current mirror to produce a set of bias currents I.sub.1 and I.sub.2 that are substantially equal to the reference current I.sub.0. In some embodiments, the dimensions and/or properties of the transistors M1 and M2 are configured to be substantially similar (if not identical). Thus, the magnitude of each of the bias currents I.sub.1 and I.sub.2 should be substantially equal to a nominal current value (such as I.sub.0) when the transistors M1 and M2 are coupled to the same or equivalent loads. However, due to process variations, the bias currents I.sub.1 and I.sub.2 may differ from the nominal value.
(42) The DEM circuit 460 may distribute the bias currents I.sub.1 and I.sub.2 to each of the second transistors Q1 and Q2 in a pseudorandom manner. More specifically, the DEM circuit 460 may switch between the bias currents I.sub.1 and I.sub.2 on a sample-by-sample basis to mitigate any mismatch between the bias currents I.sub.1 and I.sub.2. For example, at first instance of time, the DEM circuit 460 may provide the first bias current I.sub.1 to transistor Q1 and the second bias current I.sub.2 to transistor Q2 and, at a second instance of time, the DEM circuit 460 may provide the first bias current I.sub.1 to transistor Q2 and the second bias current I.sub.2 to transistor Q1. In the example of
(43) The amplifier 420 amplifies the difference between the base emitter voltages V.sub.BE1 and V.sub.BE2 of the transistors Q1 and Q2, respectively, and the resulting voltage difference (ΔV.sub.BE) is sampled by the ADC 430. More specifically, the ADC 430 may generate a digital voltage sample that is proportional to absolute temperature (V.sub.PTAT) by comparing the voltage difference ΔV.sub.BE to a reference voltage (V.sub.ref). As described with respect to
(44) The temperature conversion circuit 440 may convert the digital voltage V.sub.PTAT to a temperature estimate (T_Est) that more closely reflects the actual temperature of the environment. For example, the temperature conversion circuit 440 may apply a scaling factor (m) to the digital voltage V.sub.PTAT to produce a temperature estimate T_Est within a preconfigured temperature range:
T_Est=mV.sub.PTAT+offset
(45) In some embodiments, the error detection circuit 450 may be switchably coupled to the transistors M1 and M2 (e.g., via switches 401 and 402, respectively) to detect variations or differences in the bias currents I.sub.1 and I.sub.2. In some aspects, the error detection circuit 450 may be coupled to receive the bias currents I.sub.1 and/or I.sub.2 during a period when the temperature sensor 400 is in a sleep state (e.g., where the temperature sensor 400 is not actively generating a temperature estimate T_Est). For example, during the sleep state, the switches 401 and 402 may couple the error detection circuit 450 to the first transistors M1 and M2 while also decoupling the second transistors Q1 and Q2 from the first transistors M1 and M2.
(46) The error detection circuit 450 may detect process variations in the bias currents I.sub.1 and I.sub.2. In some aspects, the error detection circuit 450 may be an example embodiment of the error detection circuit 300 of
T_Adj=T_Est−T_Err
(47) In the example of
(48)
(49) The current source 510 is configured to generate a temperature-independent reference current I.sub.0. For example, the current source 510 may correspond to or include a bandgap voltage reference. The current mirrors 512 and 514 are coupled to the first transistor M0 to produce a set of bias currents I.sub.1 and I.sub.2, respectively, that substantially mirror the reference current I.sub.0. In some embodiments, each of the current mirrors 512 and 514 may comprise one or more transistors switchably coupled (e.g., in parallel) to the first transistor M0. In the example of
(50) The second transistors Q1 and Q2 are configured to receive the bias currents I.sub.1 and I.sub.2, respectively. In the example of
(51) In some embodiments, the error detection circuit 550 may be switchably coupled to the current mirrors 512 and 514 (e.g., via switches 501 and 502, respectively) to detect variations or differences in the bias currents I.sub.1 and I.sub.2. In some aspects, the error detection circuit 550 may be coupled to receive the bias currents I.sub.1 and/or I.sub.2 during a period when the temperature sensor 500 is in a sleep state (e.g., where the temperature sensor 500 is not actively generating a temperature estimate T_Est). For example, during the sleep state, the switches 501 and 502 may couple the error detection circuit 550 to the current mirrors 512 and 514 while also decoupling the second transistors Q1 and Q2 from the current mirrors 512 and 514.
(52) The error detection circuit 550 may detect process variations in the bias currents I.sub.1 and I.sub.2. In some aspects, the error detection circuit 550 may be an example embodiment of the error detection circuit 300 of
(53) In the example of
(54)
(55) The current source 610 is configured to generate a temperature-independent reference current I.sub.0. For example, the current source 610 may correspond to or include a bandgap voltage reference. The first transistors M0-M2 are configured to operate as a current mirror to produce a set of bias currents I.sub.1 and I.sub.2 that are substantially equal to the reference current I.sub.0. In some embodiments, the dimensions and/or properties of the transistors M1 and M2 are configured to be substantially similar (if not identical). Thus, the magnitude of each of the bias currents I.sub.1 and I.sub.2 should be substantially equal to a nominal current value (such as I.sub.0) when the transistors M1 and M2 are coupled to the same or equivalent loads. However, due to process variations, the bias currents I.sub.1 and I.sub.2 may differ from the nominal value.
(56) The temperature-dependent loads 612 and 614 are configured to receive the bias currents I.sub.1 and I.sub.2, respectively. In some embodiments, each of the temperature-dependent loads 612 and 614 may comprise one or more transistors switchably coupled (e.g., in parallel) to a respective one of the transistors M1 and M2. In the example of
(57) The amplifier 620 amplifies the difference between the base emitter voltages V.sub.BE1 and V.sub.BE2 of the temperature-dependent loads 612 and 614, respectively, and the resulting voltage difference (ΔV.sub.BE) is sampled by the ADC 630. More specifically, the ADC 630 may generate a digital voltage sample that is proportional to absolute temperature (V.sub.PTAT) by comparing the voltage difference ΔV.sub.BE to a reference voltage (V.sub.ref). The temperature conversion circuit 640 may convert the digital voltage V.sub.PTAT to a temperature estimate (T_Est) that more closely reflects the actual temperature of the environment (e.g., as described with respect to
(58) In some embodiments, the error detection circuit 650 may be switchably coupled to the transistors M1 and M2 (e.g., via switches 601 and 602, respectively) to detect variations or differences in the bias currents I.sub.1 and I.sub.2. In some aspects, the error detection circuit 650 may be coupled to receive the bias currents I.sub.1 and/or I.sub.2 during a period when the temperature sensor 600 is in a sleep state (e.g., where the temperature sensor 600 is not actively generating a temperature estimate T_Est). For example, during the sleep state, the switches 601 and 602 may couple the error detection circuit 650 to the first transistors M1 and M2 while also decoupling the temperature-dependent loads 612 and 614 from the first transistors M1 and M2.
(59) The error detection circuit 650 may detect process variations in the bias currents I.sub.1 and I.sub.2 to a nominal current value. In some aspects, the error detection circuit 650 may be an example embodiment of the error detection circuit 300 of
(60) In the example of
(61)
(62) The temperature sensor 200 generates a first bias current and a second bias current (710). For example, the current source 210 may generate a temperature-independent reference current I.sub.0. The transistors M0-M2 may further produce a set of bias currents I.sub.1 and I.sub.2 that are substantially equal to the reference current I.sub.0. In some embodiments, the dimensions and/or properties of the transistors M1 and M2 are configured to be substantially similar (if not identical). Thus, the magnitude of each of the bias currents I.sub.1 and I.sub.2 should be substantially equal to a nominal current value (such as I.sub.0) when the transistors M1 and M2 are coupled to the same or equivalent loads.
(63) The temperature sensor 200 measures a first voltage bias across a first transistor coupled to receive the first bias current (720). For example, the transistor Q1 may be configured to receive the first bias current I.sub.1. In some embodiments, the transistor Q1 may function as a diode (e.g., based on the P-N junction between its base and emitter terminals). The amplifier 220 may sense the base-emitter voltage (V.sub.BE1) of the transistor Q1, which can be expressed as a function of the first bias current I.sub.1:
(64)
(65) The temperature sensor 200 also measures a second voltage bias across a second transistor coupled to receive the second bias current (730). For example, the transistor Q2 may be configured to receive the second bias current I.sub.2. In some embodiments, the transistor Q2 may function as a diode (e.g., based on the P-N junction between its base and emitter terminals). The amplifier 220 may also sense the base-emitter voltage (V.sub.BE2) of the transistor Q2, which can be expressed as a function of the second bias current I.sub.2:
(66)
(67) The temperature sensor 200 may estimate a temperature of its environment based at least in part on the first voltage bias and the second voltage bias (740). For example, the dimensions and/or properties of the transistors Q1 and Q2 may have a ratio (1:N). Accordingly, the net collector current of transistor Q2 is expected to be N times the collector current of transistor Q1. The amplifier 220 amplifies the difference between the base emitter voltages V.sub.BE1 and V.sub.BE2 of the transistors Q1 and Q2, respectively, and the resulting voltage difference (ΔV.sub.BE) is sampled by the ADC 230. More specifically, the ADC 230 may generate a digital voltage sample that is proportional to absolute temperature (V.sub.PTAT) by comparing the voltage difference ΔV.sub.BE to a reference voltage (V.sub.ref). The temperature conversion circuit 240 may convert the digital voltage V.sub.PTAT to a temperature estimate (T_Est) that more closely reflects the actual temperature of the environment (e.g., as described with respect to
(68) The temperature sensor 200 may further measure at least one of the first or second bias currents (750). For example, the error detection circuit 250 may be switchably coupled to the transistors M1 and M2 (e.g., via switches 201 and 202, respectively) to measure the bias currents I.sub.1 and I.sub.2. In some aspects, the error detection circuit 250 may be coupled to receive the bias currents I.sub.1 and/or I.sub.2 during a period when the temperature sensor 200 is in a sleep state (e.g., where the temperature sensor 200 is not actively generating a temperature estimate T_Est). For example, during the sleep state, the switches 201 and 202 may couple the error detection circuit 250 to the first transistors M1 and M2 while also decoupling the second transistors Q1 and Q2 from the first transistors M1 and M2
(69) The temperature sensor 200 may then determine an amount of error in the temperature estimate based at least in part on the measurement (760). For example, the error detection circuit 250 may compare the bias currents I.sub.1 and I.sub.2 to a nominal current value to detect variations in one or more of the bias currents I.sub.1 and/or I.sub.2. With reference for example to Equation 1, it is noted that the voltage difference ΔV.sub.BE may vary with respect to variations in the bias currents I.sub.1 and/or I.sub.2. It is also noted that any variations in the voltage difference ΔV.sub.BE may be directly converted to errors in the temperature estimate T_Est (e.g., by the temperature conversion circuit 240). Accordingly, the error detection circuit 250 may calculate an amount of error (T_Err) in the temperature estimate T_Est based on variations in one or more of the bias currents I.sub.1 and/or I.sub.2 (e.g., as described with respect to
(70) Those of skill in the art will appreciate that information and signals may be represented using any of a variety of different technologies and techniques. For example, data, instructions, commands, information, signals, bits, symbols, and chips that may be referenced throughout the above description may be represented by voltages, currents, electromagnetic waves, magnetic fields or particles, optical fields or particles, or any combination thereof.
(71) Further, those of skill in the art will appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the aspects disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosure.
(72) The methods, sequences or algorithms described in connection with the aspects disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM latch, flash latch, ROM latch, EPROM latch, EEPROM latch, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An example storage medium is coupled to the processor such that the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor.
(73) In the foregoing specification, the example embodiments have been described with reference to specific example embodiments thereof. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader scope of the disclosure as set forth in the appended claims. The specification and drawings are, accordingly, to be regarded in an illustrative sense rather than a restrictive sense.