Device and method for absolute voltage measurement
10879920 ยท 2020-12-29
Assignee
Inventors
- Viktor Kassovski (Sofia, BG)
- Francois Piette (Neuville-en-Condroz, BE)
- Carl Van Buggenhout (Aalst, BE)
Cpc classification
G01R19/2503
PHYSICS
H03M1/124
ELECTRICITY
G01R35/005
PHYSICS
H03M1/0609
ELECTRICITY
International classification
H03M1/06
ELECTRICITY
Abstract
A method and a circuit for measuring an absolute voltage signal, such that the circuit comprises: an A/D convertor, and a controller adapted for: a) obtaining a first digital reference value for a first reference signal having a positive temperature coefficient; b) obtaining a second digital reference value for a second reference signal having a negative temperature coefficient; c) obtaining a raw digital signal value for the signal to be measured, while applying a same reference voltage for step a) to c); and d) calculating the absolute voltage value in the digital domain using a mathematical function of the first and second digital reference value, and the raw digital signal value.
Claims
1. A circuit for providing a digital value for an analog signal to be digitized, the circuit comprising: at least one A/D convertor having a reference port for receiving a reference voltage, and an input port for receiving an analog voltage to be digitized; a controller adapted for: a) applying a first reference signal having a positive temperature coefficient to the input port of the at least one A/D convertor while applying a reference voltage to the reference port of the at least one A/D convertor, and obtaining a first digital reference value from the at least one A/D convertor; b) applying a second reference signal having a negative temperature coefficient to the input port of the at least one A/D convertor while applying the same reference voltage as was used in step a) to the reference port of the at least one A/D convertor, and obtaining a second digital reference value from the at least one A/D convertor; c) applying the analog signal to be measured or a signal derived therefrom to the input port of the at least one A/D convertor while applying the same reference voltage as was used in step a) to the reference port of the at least one A/D convertor, and obtaining a raw digital signal value from the at least one A/D convertor; d) calculating the digital value for the analog signal to be digitized in the digital domain using a mathematical function of the first digital reference value, and the second digital reference value, and the raw digital signal value; wherein step d) comprises calculating the digital value for the analog signal to be digitized using the following formula:
VABS=(C*VIN/V1)/[(*VPTAT/V2)+(VBE/V3)] wherein VABS is a digital representation of the absolute voltage of the analog signal to be digitized, and VPTAT is the first digital reference value, and VBE is the second digital reference value, and VIN is the raw digital signal value, and V1, V2, V3 are digital values equal to 1 or obtained by measurement of a stable reference signal using the at least one analog to digital convertor, said stable reference signal derived from the same reference voltage as was used in step a).
2. The circuit according to claim 1, further comprising: a first reference block for providing the first reference signal having the positive temperature coefficient, and a second reference block for providing the second reference signal having the negative temperature coefficient, and a third reference block for providing the reference voltage.
3. The circuit according to claim 1, wherein the third reference block is adapted for providing a bandgap voltage as the reference voltage; and/or wherein the third reference block comprises a sample-and-hold block having an input adapted for receiving a voltage, and having an output connected to the reference port of the at least one ADC, and wherein the controller is further adapted for configuring the sample-and-hold block to capture a sample of said voltage before performing step a) to c), and for holding this value while performing step a) to c).
4. The circuit according to claim 1, further comprising a routing network adapted for selective routing the first reference signal having a positive temperature coefficient, and the second reference signal having a negative temperature coefficient, and the analog signal to be digitized to said at least one input port; and wherein the controller is further adapted for: configuring the routing network to route the first reference signal to the input port of the at least one A/D convertor in step a); and for configuring the routing network to route the second reference signal to the input port of the at least one A/D convertor in step b); and for configuring the routing network to route the analog signal to be measured or a signal derived therefrom to the input port of the at least one A/D convertor in step c).
5. The circuit according to claim 1, wherein the controller is adapted for performing step a) and b) at a first frequency, and for performing step c) and d) at a second frequency at least 5 times higher than the first frequency.
6. The circuit according to claim 1, wherein the circuit contains a single ADC; and wherein step d) comprises calculating the digital value for the analog signal to be digitized using the following formula:
VABS=C*VIN/(*VPTAT+VBE) wherein VABS is a digital representation of the absolute voltage of the analog signal to be digitized, and wherein VPTAT is the first digital reference value, and VBE is the second digital reference value, and VIN is the raw digital signal value, and a and C are predetermined constants.
7. The circuit according to claim 1, wherein the circuit comprises a first A/D convertor and a second A/D convertor and a third A/D convertor, each having a reference port adapted for receiving the same reference voltage; and wherein the circuit further comprises an attenuator circuit adapted for attenuating the reference voltage and for providing an attenuated signal; and wherein the routing network is adapted for selectively routing one of the first reference signal and the attenuated signal to the first A/D convertor, and for selectively routing one of the second reference signal and the attenuated signal to the second A/D convertor, and for selectively routing one of the analog voltage signal to be digitized and the attenuated signal to the third A/D convertor; and wherein the controller is further adapted for: e) configuring the routing network to route the attenuated signal to the input port of the first A/D convertor, and obtaining a first attenuation value while applying the same reference voltage as used in step a) to step c) to the reference port of the first A/D convertor; f) configuring the routing network to route the attenuated signal to the input port of the second A/D convertor, and obtaining a second attenuation value while applying the same reference voltage as used in step a) to step c) to the reference port of the second A/D convertor; g) configuring the routing network to route the attenuated signal to the input port of the third A/D convertor, and for obtaining a third attenuation value while applying the same reference voltage as used in step a) to step c) to the reference port of the third A/D convertor; and wherein step d) comprises calculating the digital value for the analog signal to be digitized using the following formula or an equivalent formula:
VABS=C*(VIN/VX3)/[*(VPTAT/VX1)+(VBE/VX2)] wherein VABS is a digital representation of the absolute voltage of the analog signal to be digitized, and wherein VPTAT is the first digital reference value, and VBE is the second digital reference value, and VIN is the raw digital signal value, and VX1 is the first attenuation value, and VX2 is the second attenuation value, and VX3 is the third attenuation value, and a and C are predetermined constants.
8. The circuit according to claim 1, wherein the circuit contains a single ADC; and wherein the circuit further comprises an analog amplifier for amplifying the analog voltage to be digitized; and wherein the circuit further comprises an attenuator circuit adapted for attenuating the reference voltage thereby providing an attenuated signal; and wherein the routing network is adapted for selectively routing the first reference signal through a first path with unity gain to the A/D convertor for obtaining the first reference value in step a), and for selectively routing the second reference signal through a second path with unity gain to the A/D convertor for obtaining the second reference value of step b), and for selectively routing the analog voltage signal to be digitized through a third path containing the amplifier to the A/D convertor for obtaining the raw digital signal value of step c), and for selectively routing the attenuated signal through a fourth path with unity gain to the A/D convertor for obtaining a first attenuation value, and for selective routing the attenuated signal through a fifth path containing the amplifier to the A/D convertor for obtaining a second attenuation value; and wherein the controller is further adapted for: e) configuring the routing network to route the attenuated signal through said fourth path, and obtaining the first attenuation value while applying the same reference voltage as used in step a) to step c) to the reference port of the A/D convertor and to an input of the attenuator; f) configuring the routing network to route the attenuated signal through said fifth path, and obtaining the second attenuation value while applying the same reference voltage as used in step a) to step c) to the reference port of the A/D convertor and to an input of the attenuator; and wherein step d) comprises calculating the digital value for the analog signal to be digitized using the following formula:
VABS=C*VIN*(VX/VY)/(*VPTAT+VBE) wherein VABS is a digital representation of the absolute voltage of the analog signal to be digitized, and wherein VPTAT is the first digital reference value, and VBE is the second digital reference value, and VIN is the raw digital signal value, and VX is the first attenuation value, and VY is the second attenuation value, and a and C are predetermined constants.
9. The circuit according to claim 1, wherein the at least one analog-to-digital convertor has a resolution of at least 12 bits.
10. The circuit according to claim 1, wherein the at least one analog-to-digital convertor has a resolution of at least 14 bit.
11. The circuit according to claim 1, wherein the at least one analog-to-digital convertor has a resolution of at least 16 bit.
12. A device, comprising: a sensor circuit for measuring a physical quantity and for providing an analog sensor signal related to said physical quantity; a circuit according to claim 1, for digitizing said analog sensor signal, and for calculating the absolute voltage value indicative of a magnitude of said physical quantity.
13. The device according to claim 12, wherein the device is a handheld pressure sensor device, or wherein the device is a handheld temperature sensor device.
14. The device according to claim 12, further comprising a display; and wherein the controller is further adapted for driving the display or configuring the display or sending information to the display for generating a visible representation of the digital value.
15. A computer implemented method of determining a digital value for an analog signal to be digitized, as can be performed by a controller as a part of a circuit that further comprises at least one A/D convertor having a reference port for receiving a reference voltage, and an input port for receiving an analog voltage to be digitized; the method comprising: a) providing a first reference signal having a positive temperature coefficient to the input port of the at least one A/D convertor, and applying a reference voltage to the reference port of the at least one A/D convertor, and obtaining a first digital reference value from the at least one A/D convertor; b) providing a second reference signal having a negative temperature coefficient to the input port of the at least one A/D convertor, and applying the same reference voltage to the reference port of the at least one A/D convertor, and obtaining a second digital reference value from the at least one A/D convertor; c) providing the analog signal to be measured or a signal derived therefrom to the input port of the at least one A/D convertor, and applying the same reference voltage to the reference port of the at least one A/D convertor, and obtaining a raw digital signal value from the at least one A/D convertor; d) calculating the digital value for the analog signal to be digitized in the digital domain as a mathematical function of the first digital reference value, and the second digital reference value, and the raw digital signal value; wherein step d) comprises calculating the digital value for the analog signal to be digitized using the following formula:
VABS=(C*VIN/V1)/[(*VPTAT/V2)+(VBE/V3)] wherein VABS is a digital representation of the absolute voltage of the analog signal to be digitized, and VPTAT is the first digital reference value, and VBE is the second digital reference value, and VIN is the raw digital signal value, and V1, V2, V3 are digital values equal to 1 or obtained by measurement of a stable reference signal using the at least one analog to digital convertor, said stable reference signal derived from the same reference voltage as was used in step a).
16. The method according to claim 15, wherein step d) comprises calculating the digital value for the analog signal to be digitized using the following formula:
VABS=C*VIN/(*VPTAT+VBE) wherein VABS is a digital representation of the absolute voltage of the analog signal to be digitized, and VPTAT is the first digital reference value, and VBE is the second digital reference value, and VIN is the raw digital signal value, and a and C are predetermined constants.
17. A circuit for providing a digital value for an analog signal to be digitized, the circuit comprising: at least one A/D convertor having a reference port for receiving a reference voltage, and an input port for receiving an analog voltage to be digitized; a controller adapted for: a) applying a first reference signal having a positive temperature coefficient to the input port of the at least one A/D convertor while applying a reference voltage to the reference port of the at least one A/D convertor, and obtaining a first digital reference value from the at least one A/D convertor; b) applying a second reference signal having a negative temperature coefficient to the input port of the at least one A/D convertor while applying the same reference voltage as was used in step a) to the reference port of the at least one A/D convertor, and obtaining a second digital reference value from the at least one A/D convertor; c) applying the analog signal to be measured or a signal derived therefrom to the input port of the at least one A/D convertor while applying the same reference voltage as was used in step a) to the reference port of the at least one A/D convertor, and obtaining a raw digital signal value from the at least one A/D convertor; d) calculating the digital value for the analog signal to be digitized in the digital domain using a mathematical function of the first digital reference value, and the second digital reference value, and the raw digital signal value; wherein the circuit comprises a first A/D convertor and a second A/D convertor and a third A/D convertor, each having a reference port adapted for receiving the same reference voltage; and wherein the circuit further comprises an attenuator circuit adapted for attenuating the reference voltage and for providing an attenuated signal; and wherein the routing network is adapted for selectively routing one of the first reference signal and the attenuated signal to the first A/D convertor, and for selectively routing one of the second reference signal and the attenuated signal to the second A/D convertor, and for selectively routing one of the analog voltage signal to be digitized and the attenuated signal to the third A/D convertor; and wherein the controller is further adapted for: e) configuring the routing network to route the attenuated signal to the input port of the first A/D convertor, and obtaining a first attenuation value while applying the same reference voltage as used in step a) to step c) to the reference port of the first A/D convertor; f) configuring the routing network to route the attenuated signal to the input port of the second A/D convertor, and obtaining a second attenuation value while applying the same reference voltage as used in step a) to step c) to the reference port of the second A/D convertor; g) configuring the routing network to route the attenuated signal to the input port of the third A/D convertor, and for obtaining a third attenuation value while applying the same reference voltage as used in step a) to step c) to the reference port of the third A/D convertor; and wherein step d) comprises calculating the digital value for the analog signal to be digitized using the following formula:
VABS=C*(VIN/VX3)/[*(VPTAT/VX1)+(VBE/VX2)] wherein VABS is a digital representation of the absolute voltage of the analog signal to be digitized, and wherein VPTAT is the first digital reference value, and VBE is the second digital reference value, and VIN is the raw digital signal value, and VX1 is the first attenuation value, and VX2 is the second attenuation value, and VX3 is the third attenuation value, and a and C are predetermined constants.
18. A circuit for providing a digital value for an analog signal to be digitized, the circuit comprising: at least one A/D convertor having a reference port for receiving a reference voltage, and an input port for receiving an analog voltage to be digitized; a controller adapted for: a) applying a first reference signal having a positive temperature coefficient to the input port of the at least one A/D convertor while applying a reference voltage to the reference port of the at least one A/D convertor, and obtaining a first digital reference value from the at least one A/D convertor; b) applying a second reference signal having a negative temperature coefficient to the input port of the at least one A/D convertor while applying the same reference voltage as was used in step a) to the reference port of the at least one A/D convertor, and obtaining a second digital reference value from the at least one A/D convertor; c) applying the analog signal to be measured or a signal derived therefrom to the input port of the at least one A/D convertor while applying the same reference voltage as was used in step a) to the reference port of the at least one A/D convertor, and obtaining a raw digital signal value from the at least one A/D convertor; d) calculating the digital value for the analog signal to be digitized in the digital domain using a mathematical function of the first digital reference value, and the second digital reference value, and the raw digital signal value; wherein the circuit contains a single ADC; and wherein the circuit further comprises an analog amplifier for amplifying the analog voltage to be digitized; and wherein the circuit further comprises an attenuator circuit adapted for attenuating the reference voltage thereby providing an attenuated signal; and wherein the routing network is adapted for selectively routing the first reference signal through a first path with unity gain to the A/D convertor for obtaining the first reference value in step a), and for selectively routing the second reference signal through a second path with unity gain to the A/D convertor for obtaining the second reference value of step b), and for selectively routing the analog voltage signal to be digitized through a third path containing the amplifier to the A/D convertor for obtaining the raw digital signal value of step c), and for selectively routing the attenuated signal through a fourth path with unity gain to the A/D convertor for obtaining a first attenuation value, and for selective routing the attenuated signal through a fifth path containing the amplifier to the A/D convertor for obtaining a second attenuation value; and wherein the controller is further adapted for: e) configuring the routing network to route the attenuated signal through said fourth path, and obtaining the first attenuation value while applying the same reference voltage as used in step a) to step c) to the reference port of the A/D convertor and to an input of the attenuator; f) configuring the routing network to route the attenuated signal through said fifth path, and obtaining the second attenuation value while applying the same reference voltage as used in step a) to step c) to the reference port of the A/D convertor and to an input of the attenuator; and wherein step d) comprises calculating the digital value for the analog signal to be digitized using the following formula:
VABS=C*VIN*(VX/VY)/(*VPTAT+VBE) wherein VABS is a digital representation of the absolute voltage of the analog signal to be digitized, and wherein VPTAT is the first digital reference value, and VBE is the second digital reference value, and VIN is the raw digital signal value, and VX is the first attenuation value, and VY is the second attenuation value, and a and C are predetermined constants.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
(18)
(19)
(20)
(21)
(22)
(23) The drawings are only schematic and are non-limiting. In the drawings, the size of some of the elements may be exaggerated and not drawn on scale for illustrative purposes. Any reference signs in the claims shall not be construed as limiting the scope. In the different drawings, the same reference signs refer to the same or analogous elements.
DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS
(24) The present invention will be described with respect to particular embodiments and with reference to certain drawings, but the invention is not limited thereto but only by the claims. The drawings described are only schematic and are non-limiting. In the drawings, the size of some of the elements may be exaggerated and not drawn on scale for illustrative purposes. The dimensions and the relative dimensions do not correspond to actual reductions to practice of the invention.
(25) Furthermore, the terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a sequence, either temporally, spatially, in ranking or in any other manner. It is to be understood that the terms so used are interchangeable under appropriate circumstances and that the embodiments of the invention described herein are capable of operation in other sequences than described or illustrated herein.
(26) Moreover, the terms top, under and the like in the description and the claims are used for descriptive purposes and not necessarily for describing relative positions. It is to be understood that the terms so used are interchangeable under appropriate circumstances and that the embodiments of the invention described herein are capable of operation in other orientations than described or illustrated herein.
(27) It is to be noticed that the term comprising, used in the claims, should not be interpreted as being restricted to the means listed thereafter; it does not exclude other elements or steps. It is thus to be interpreted as specifying the presence of the stated features, integers, steps or components as referred to, but does not preclude the presence or addition of one or more other features, integers, steps or components, or groups thereof. Thus, the scope of the expression a device comprising means A and B should not be limited to devices consisting only of components A and B. It means that with respect to the present invention, the only relevant components of the device are A and B.
(28) Reference throughout this specification to one embodiment or an embodiment means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, appearances of the phrases in one embodiment or in an embodiment in various places throughout this specification are not necessarily all referring to the same embodiment but may. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner, as would be apparent to one of ordinary skill in the art from this disclosure, in one or more embodiments.
(29) Similarly, it should be appreciated that in the description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
(30) Furthermore, while some embodiments described herein include some but not other features included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention, and form different embodiments, as would be understood by those in the art. For example, in the following claims, any of the claimed embodiments can be used in any combination.
(31) In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In other instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
(32) In this document, the abbreviation ADC or A/D convertor means analog-to-digital convertor.
(33) In this document, the abbreviation PTAT means Proportional to Absolute Temperature, which is a special case of a characteristic with a positive temperature coefficient, meaning that the value increases with increasing temperature.
(34) In this document, the abbreviation CTAT means Complementary to Absolute Temperature, which is a special case of a characteristic with a negative temperature coefficient, meaning that the value decreases with increasing temperature.
(35) In this document, the expression absolute voltage refers to a voltage magnitude which is to be considered per se, such as for example the voltage generated by a thermopile, as opposed to a relative voltage generated for example by a bridge circuit (e.g. a Wheatstone bridge), where unbalance of the bridge is to be considered as a percentage of the supply voltage applied to the bridge.
(36) In this document, the abbreviation LSB means Least Significant bit. For a 12 bit ADC, a variation of vref by about 61 ppm results in a variation of the output by 1 LSB.
(37) In this document, lower case letters (e.g. vref, vin, vptat, vbe, vx) are typically used to indicate analog voltage levels or analog voltage signals, whereas uppercase letters (e.g. C, VIN, VPTAT, VBE) are typically used to indicate digital values, to facilitate the reading.
(38) A problem underlying the present invention is the need for a circuit that can perform an accurate absolute voltage measurement and provide the result as a digital value, in a manner which is less sensitive to mechanical stress.
(39)
(40) As is well known in the art, in order to obtain an accurate digital value using the circuit of
(41) In fact, the block-diagram of
(42)
(43) The components R1 to R8 represent resistors, the components M1 and M1 are matched CMOS transistors (according to a certain ratio), the components M2, M2, M2, M2 and M2 are matched CMOS transistors (according to a certain ratio), and the components Q1 and Q1 are matched bipolar transistors (according to a certain ratio).
(44) The working of a bandgap circuit is well known in the art, and therefore need not be explained in full detail here. It suffices to know that a bandgap circuit comprises analog components, such as resistors, bipolar transistors and/or CMOS transistors, which are matched to each other (e.g. by laser-trimming), and that a bandgap voltage is typically generated in the analog domain as a summation or subtraction of two analog voltages: the first analog voltage being a voltage having a positive temperature coefficient, usually a PTAT voltage (Proportional To Absolute Temperature) which is amplified by a certain gain, the second analog voltage being a voltage having a negative temperature coefficient, usually a CTAT voltage (Complementary To Absolute Temperature), for example a base-emitter voltage of bipolar transistors or a forward diode voltage. Ideally, the bandgap reference voltage is a voltage having a magnitude which can be expressed by the following formula:
vref=.Math.vptat+vbe[1]
where vref is the voltage level (or amplitude) of the bandgap voltage, .Math.vptat is the voltage level of the amplified ptat-voltage, and vbe is a base-emittor voltage. The value of is constant and is typically chosen in the range from about 8.00 to about 12.00, depending on the selected topology of the circuit, and/or the intended operating temperature range. Thus, in order to create the analog bandgap voltage vref according to formula [1], an analog amplification by and an analog summation is needed.
(45) The inventors realized that a bandgap voltage vref has several sources of imperfection and instability, not only caused by variations of vptat and vbe but also related to variations of the multiplication by . They realized that an (analog) amplifier always has two error sources: offset error and gain error. Therefore, in reality, when making an analog bandgap voltage vref, the actual reference voltage vref thus made does not satisfy equation [1], but should rather be written as follows:
(46)
where vref is the voltage level (or amplitude) of the bandgap voltage, vptat is the voltage level of the ptat-voltage, vbe is a base-emitter voltage, a is the amplifier gain, / is the relative gain error, and vos is the offset error.
(47) The imperfections of the vptat and vbe voltage themselves can be reduced, and their stability improved by specific design and layout techniques such as e.g. Dynamic Element Matching (DEM), choosing less sensitive configurations and components etc., but these are not the focus of the present invention. Instead, the main focus of the present invention is directed to addressing imperfections and deviations related to the multiplication by .
(48) The inventors came to the idea of performing this multiplication in the digital domain rather than in the analog domain. The method involves digitizing the vptat voltage resulting in a numerical value VPTAT, and digitizing the vbe voltage resulting in a numerical value VBE, and calculating a digital value VR as VPTAT+VBE, but they realized that if the reference voltage vref changes, also the value for VR changes, which in itself does not solve the problem, because the dependency on the reference voltage remains.
(49) While it would be technically possible to use the value VR to adjust the analog reference voltage generator, the inventors realized that such approach would require a circuit with a digital-to-analog convertor (DAC), and thus require additional circuitry, but moreover, a DAC typically suffers from many of the same issues as an ADC, inter alia that it comprises matched components which drift with mechanical pressure.
(50) The inventors decided to follow a radically different approach. Contrary to the common believe that a very precise digitization can only be obtained using an ADC with a very precise reference voltage, they came to the idea to deliberately also digitize the data input signal vin using the incorrect or drifted reference voltage vref, resulting in an incorrect value VIN, and they surprisingly found that a correct value for the input signal can be calculated in the digital domain, using a function of the (incorrect) value VPTAT and the (incorrect) value VBE and the (incorrect) value VIN, and using one or more constants.
(51) Several embodiments based on this principle are possible, a few of which will be described in
(52) Tests have shown that the results obtained via this approach reduces the impact of mechanical stress by at least a factor 2, as will be illustrated in
(53) More specifically, (and referring for example to
(54) In contrast to the prior art, where a digital value for the input signal vin is obtained by a single measurement, the controller used in the present invention is adapted for performing three measurements using the ADC to thereby obtain three digital values VPTAT, VBE and VIN, and to then calculate the actual value VABS based on a mathematical function of these three values. More specifically, the controller is adapted for performing the following steps: a) providing or routing a first reference signal (e.g. a ptat voltage) having a positive temperature coefficient to the input port ip of the at least one ADC, while a reference voltage vref (e.g. a bandgap voltage) is applied to the reference port rp of the at least one ADC, and obtaining a first digital reference value VPTAT from the at least one ADC; b) providing or routing a second reference signal having a negative temperature coefficient (e.g. a ctat voltage, e.g. a base-emitter voltage of a bipolar transistor vbe or a forwardly biased diode voltage) to the input port of the at least one ADC while the same reference voltage vref as was used in step a) is applied to the reference port rp of the at least one ADC, and obtaining a second digital reference value VBE from the at least one ADC; c) providing or routing the analog signal to be measured vin, or a signal vin derived therefrom (e.g. an amplified version thereof) to the input port ip of the at least one ADC while the same reference voltage vref as was used in step a) and step b) is applied to the reference port rp of the at least one ADC, and obtaining a raw digital signal value VIN from the at least one ADC; d) calculating the digital value VABS indicative of the absolute voltage of the analog signal vin to be digitized, in the digital domain using a mathematical function of the first digital reference value VPTAT and the second digital reference value VBE and the raw digital signal value VIN.
(55) The present invention also provides a method comprising the steps a) to d) described above, as can be performed by a controller of a circuit that comprises at least one A/D convertor.
(56) As mentioned above, it is an advantage of this solution that it calculates the value of the absolute voltage VABS in the digital domain, because multiplications and/or summations in the digital domain do not suffer from offset error and gain error.
(57) It is also an advantage of this solution that the accuracy of the result does not rely on the precision of the reference voltage (vref), which cancels from the equation, the reason being that the equation is a ratio of two first order polynomials in the digital values VPTAT, VBE and VIN. While the precision of the absolute voltage VABS depends on the digital values VPTAT and VBE, it does not depend on these values individually, but on a kind of weighted average of these values, combined in a manner in which the positive and negative temperature dependence are substantially cancelled.
(58) It is also an advantage of this solution that the result is highly insensitive to mechanical stress, in particular stress caused by packaging and/or soldering, because mechanical stress cannot cause gain error or offset error of the mathematical formula, in contrast to the prior art, where mechanical stress does vary the bandgap voltage, albeit slightly.
(59) It is also an advantage that the solution does not require additional circuitry for regulating or adjusting the analog reference voltage (vref), thus avoiding inter alia the addition of a DAC.
(60) Referring now to the Figures.
(61)
(62) More specifically, the circuit 100 shown in
(63) a voltage generator 120 for providing a supply voltage vdd (e.g. 5.0V or 3.3V or 1.8V or any other suitable voltage);
(64) an ADC 101 having an input port Ip for receiving an analog signal vin to be digitized, and a reference port Rp for receiving a (stable) reference voltage vref, and a supply port Sp for receiving the supply voltage vdd, and an output port Op for providing the digitized value VIN;
a reference voltage generator circuit 110 comprising a bandgap voltage generator circuit 115 for providing said reference voltage vref.
(65)
(66) The particular circuit 200 shown in
(67) a first reference signal vptat;
(68) a second reference signal vbe;
(69) three reference voltages vref1, vref2, vref3 of 400 mV, 1200 mV and 400 mV respectively;
(70) a bandbap voltage (which is also a reference voltage) vbg of 1200 mV;
(71) but the present invention is not limited to this particular circuit, or to circuits for generating these particular reference voltages, and of course other reference circuits and/or reference signals can also be used.
(72)
(73) The circuit 311 for generating the first reference signal vptat, and the circuit 312 for generating the second reference signal vbe, and the circuit 310 for generating the reference voltage vref may be part of the (digitization) circuit 300, or may be located outside of the circuit 300 (as indicated by the dotted lines). While shown as separate blocks, in practice the circuits 311, 312 and 310 are preferably integrated on the same semiconductor substrate as the ADC (in which case the squares in the drawing are typically referred to as nodes), but they could also be provided on a second die packaged in the same chip (in which case the squares in the drawings are typically referred to as ports).
(74) The circuit 300 of
(75) The circuit 300 has a third port P3 (or node N3) for receiving the reference voltage vref, typically a bandgap voltage with a close-to-zero temperature coefficient in an envisioned temperature range (for example from about 20 C. to about 60 C.). In the embodiment of
(76) The circuit 300 of
(77) The circuit 300 further comprises a routing network for selectively routing one of the analog signals vptat, vbe and vin to the data input port Ip of the ADC 301. In
(78) The circuit 300 further comprises a computation unit or processing unit or processor 302, e.g. a programmable micro-controller adapted to configure the routing network, e.g. the multiplexer 303, and for obtaining digital values from the ADC via its output port Op. More specifically, the circuit 300 is adapted for performing three measurements: a) a first measurement in which vptat is routed to the input port of the ADC, and a first reference value VPTAT is obtained from the ADC; b) a second measurement in which vbe is routed to the input port of the ADC, and a second reference value VBE is obtained from the ADC; and c) a third measurement in which vin is routed to the input of the ADC, and a third digital value VIN is obtained from the ADC. During each of these measurements, the same reference voltage vref is applied to the reference port of the ADC.
(79) This can be schematically presented as follows (m1), 1st measurement.fwdarw.VPTAT vptat/vref (m2), 2nd measurement.fwdarw.VBE vbe/vref (m3), 3rd measurement.fwdarw.VIN vin/vref (where means is proportional to)
but of course these measurements may also be performed in a different order.
(80) It was observed that: i) each of VPTAT, VBE and VIN depends on the level of the analog reference voltage vref applied to the reference port of the ADC; ii) however, it was surprisingly found that the formula VIN/(.Math.VPTAT+VBE), where a is a constant value, does not depend on the level of the analog reference voltage vref; iii) it was surprisingly found that the digital value VR (referred to herein as virtual reference value, and defined as:
VR=(.Math.VPTAT+VBE)[3] when calculated in the digital domain, only varies minimally with mechanical stress.
(81) It is noted that the magnitude VR of this reference value varies with the level of the reference voltage applied to the ADC, but so does the value VIN taken by the same ADC, hence the level of the reference voltage cancels out if the mathematical formula is a ratio of two first order polynomials in VPTAT, VBE and VIN. This insight is one of the underlying principles of the present invention.
(82) Based on these observations, the present invention proposes the following formula to calculate the absolute voltage of the analog signal vin, applicable to the circuit 300 of
VABS[in Volt]=C*VIN/(*VPTAT+VBE)[4]
where is a constant, determined by design or by calibration, for example as the ratio of the negative temperature coefficient (of vbe) and the positive temperature coefficient (of vptat) under predefined conditions (e.g. at a predefined temperature). As is known in the art, it is an advantage of using this value for a because the positive and negative temperature dependence substantially compensate (within an envisioned predefined temperature range),
and where C is a constant, determined by design or by calibration, for example as the ratio of the actual reference voltage vref applied to the ADC, and the value of VR as calculated by the formula [3]. Stated in simple terms, the value for C converts the dimension-less digital number in the digital domain to an analog voltage level (e.g. expressed in Volt or milliVolt).
(83) The value of and C may be hardcoded (e.g. as part of a computer program that is executed by the CPU), or may be stored in a non-volatile memory 304 (e.g. NVRAM or flash or eprom or eeprom) embedded in or connected to the CPU during the calibration test, and retrieved by the CPU during actual use.
(84) Tests have shown that the circuit and method described in
(85) In a variant of the circuit of
(86)
(87) More specifically, for the block-diagram of
Vabs[in Volt]=C*VIN/(*VPTAT+VBE)[5]
(88) As mentioned above, each of VIN, VPTAT and VBE are inversely proportional to Vref, but the end result of formula [5] is highly independent of the actual reference voltage vref applied to the ADC, because formula [5] is a ratio of two first order polynomials, where each term is inversely proportional to vref. Instead, the accuracy relied upon is that of the vptat and the vbe voltages, and their opposite temperature and/or stress dependence (within an envisioned temperature range), and the accuracy of the multiplication and addition in the digital domain. Evidently the tolerance of the result depends on the resolution (number of bits) of the ADC, but the skilled person can choose a suitable resolution dependent on the application, for example to be 10 bit or 12 bit or 14 bit or 16 bit or 18 bit or 20 bit. The expression using substantially the same reference voltage is to be interpreted as within a tolerance margin corresponding to 1 LSB. The main advantage is that the multiplication and summation occur in the digital domain, and therefore do not suffer from gain error and offset error, because such calculations are error-free.
(89)
(90) More specifically, the circuit 500 of
(91) Thereto, the circuit 500 is further adapted for providing a second stable reference signal vx, having a voltage level smaller than each of (vref/G1) and (vref/G2) and (vref/G3). In the exemplary circuit 500, the second stable reference voltage vx is provided by an attenuator circuit 505 adapted for attenuating the reference voltage vref. The exact value of the attenuation B is not important, and it may even slowly drift over time, but for similar reasons as explained above for vref, it is important that vx is the same vx during the measurements of this vx signal through each of the ADCs, described below. Although not absolutely necessary, a second sample-and-hold circuit (not shown) may be added to the circuit 500, at the output of the attenuator 505, for sampling and holding the momentary value of vx before entering the multiplexers mux1, mux2, mux3.
(92) The circuit 500 further comprises a routing network adapted for: a) selectively routing (e.g. via mux1) one of the first reference signal vptat and the attenuated signal vx to the input port Ip1 of the first A/D convertor ADC1, and for b) selectively routing (e.g. via mux2) one of the second reference signal vbe and the attenuated signal vx to the input port Ip2 of the second A/D convertor ADC2, and for c) selectively routing (e.g. via mux3) one of the analog voltage signal vin to be digitized and the attenuated signal vx to the input port Ip3 of the third A/D convertor ADC3.
(93) The controller 502 is adapted for obtaining the first reference value VPTAT (during step a) and the second reference value VBE (during step b) and the raw input value VIN (during step c), and is further adapted for: e) configuring the routing network (e.g. mux1) to route the attenuated signal vx to the input port ip1 of the first ADC, and obtaining a first (digital) attenuation value VX1, while applying the same reference voltage vref as was used in step a) to step c) to the reference port Rp1 of the first ADC; f) configuring the routing network (e.g. mux2) to route the attenuated signal vx to the input port ip2 of the second ADC, and obtaining a second (digital) attenuation value VX2, while applying the same reference voltage vref as used in step a) to step c) to the reference port Rp2 of the second ADC; g) configuring the routing network (e.g. mux3) to route the attenuated signal vx to the input port ip3 of the third ADC, and for obtaining a third (digital) attenuation value VX3 while applying the same reference voltage vref as used in step a) to step c) to the reference port Rp3 of the third ADC.
(94) The controller 502 is adapted for performing the calculation of step d) after the six values VPTAT, VX1, VBE, VX2, VIN, VX3 are obtained, and the absolute voltage VABS of the input signal vin can be calculated in the digital domain, as a function of these six values, more in particular as an algebraic function using only multiplications, summations (or subtractions) and divisions.
(95) In the specific example of the circuit shown in
VABS=C*(VIN/VX3)/[*(VPTAT/VX1)+(VBE/VX2)][6]
wherein VABS is a digital representation of the absolute voltage of the analog signal vin to be digitized, wherein VPTAT is the first digital reference value and VX1 is the first attenuation value measured by the first ADC, VBE is the second digital reference value and VX2 is the second attenuation value measured by the second ADC, and VIN is the raw digital signal value and VX3 is the third attenuation value measured by the third ADC, and and C are predetermined constants which may be defined during a calibration test, and may be stored in a non-volatile memory 504, which may be embedded in, or connected to the CPU 502.
(96) Thus, according to an embodiment of the present invention, the absolute voltage level of an analog voltage vin can be determined using the circuit of
and to determine the absolute voltage level VABS of the input signal vin to be measured using formula [6] or an equivalent formula. Of course, the order of these measurements can be changed.
(97) It is noted that the gain factors G1, G2, G3 need not be measured during a calibration test, and may even drift over time, as long as they are substantially constant (within a predefined tolerance margin of 1 LSB) during the respective measurements. Or stated in other words: G1 must be substantially constant during measurement m1 and m2, G2 must be substantially constant during measurement m3 and m4, and G3 must be substantially constant during measurement m5 and m6, but the values of G1, G2 and G3 can be quite different from each other. For optimal results, the value of and C are preferably determined during calibration, and stored in a non-volatile memory.
(98) It is an advantage of this method that the absolute voltage level VABS so calculated is substantially independent on the values of the attenuation B, the gain factors G1, G2, G3, the reference voltage vref, and has a reduced sensitivity to mechanical stress.
(99) In a variant of the circuit 300 of
(100) The reference blocks 511, 512 and 510 may be the same reference blocks as were used in
(101)
(102) Thus, the problem underlying the circuit of
(103) Starting from the circuit of
(104) But the inventors found a way to overcome both common beliefs by using the circuit of
and to calculate the absolute voltage of the analog input signal vin to be measured, using a mathematical function of the five digital values so obtained, namely VPTAT, VBE, VIN, VX, VY, all measured using a single ADC, while applying the same reference voltage vref to the reference port Rp of the ADC. With the same is meant for example within a tolerance margin of 1 LSB.
(105) For the circuit and method illustrated in
VABS=C*VIN*(VX/VY)/(.Math.VPTAT+VBE)[7]
wherein VABS is a digital representation of the absolute voltage of the analog signal vin to be digitized, VPTAT is the first digital reference value obtained when measuring the first reference signal vptat, VBE is the second digital reference value obtained when measuring the second reference signal vbe, VIN is the raw digital signal value measured through the amplifier A, VX is a digital representation of the attenuated reference voltage vref (through attenuator B), and VY is a digital representation of the attenuated and amplified reference voltage vref (through attenuator B and through amplifier A), and and C are predetermined constants which may be defined during a calibration test, and may be stored in a non-volatile memory 604, which may be embedded in, or connected to the CPU 602.
(106) As can be appreciated from formula [7] the level of the reference voltage vref, and the attenuation B of the attenuator 605, and the gain A of the amplifier 603 all cancel out, and therefore need not be known, and may drift over time, as long as the voltage level vref, and the value of A and B is substantially constant during the five measurements, e.g. is constant within a tolerance margin corresponding to 1 LSB of the ADC.
(107) It is an advantage of this circuit and method that the absolute voltage level VABS so calculated is substantially independent on the actual value of the attenuation B, and the actual value of the gain A, and the actual level of the reference voltage vref, and thus has a reduced sensitivity to mechanical stress, inter alia because each of these values may independently drift, and because the multiplication by a and the summation with VBE is performed in the digital domain.
(108) From the examples given above, it can be understood that the principles and advantages of the present invention are applicable to circuits and methods for which the absolute voltage VABS can be calculated as a ratio of two first order polynomials which can be expressed by the following general formula:
VABS=(C*VIN/V1)/[(*VPTAT/V2)+(VBE/V3)][8]
where VPTAT, VIN, VBE have the same meaning as described above, and C are predefined constants, for example determined during calibration, and V1, V2, V3 are digital values obtained by measurement using a single ADC.
(109)
(110) If each of the analog paths from the first port or node P1 to the input port of the ADC, and from the second port or node P2 to the input port of the ADC, and from the fourth port or node P4 to the input port of the ADC, through the multiplexer mux3 and through the multiplexer mux1 have unity gain, the same formula [7] is also applicable for the circuit of
(111) For example, in a variant of the circuit shown in
(112)
(113) The device 800 may for example be a measurement device for measuring an absolute pressure, or for measuring an absolute temperature, or for measuring radiation, e.g. for measuring infrared radiation (IR), or for measuring a magnetic field strength, or for measuring a current, etc. The device 800 may be a portable or handheld measurement device, for example a digital voltmeter, a portable thermometer, etc.
(114) While not shown, the device 800 may further comprise a display unit, e.g. an LCD display, and the controller 802 may be further adapted for driving the display or configuring the display or sending information to the display for generating a visible representation of the digital value (Vabs) or the physical value it represents, e.g. pressure or temperature or voltage or current or radiation or magnetic field strength, etc.
(115) While the device of
(116)
(117) Eight devices (for performing an absolute temperature measurement) were used in order to investigate the effect of mechanical stress (e.g. due to a soldering process) on the temperature measurements performed by the device.
(118) The eight devices were first measured at 9 test conditions corresponding to all possible combinations of ambient temperatures and object temperatures where the ambient temperature can be 25 C., 45 C. or 55 C. and the object can be 20 C., 40 C. or 60 C. These first measurements were used to calibrate the devices. The devices were also measured in a circulation bath.
(119) Two devices were used as reference devices (these devices were not mechanically stressed) while the other 6 devices were mechanically stressed by a short exposure to a high temperature similar to a typical soldering temperature. After the mechanical stress, all devices were measured again, and drifts were analysed. The object temperature was calculated based on the calibration parameters that were computed during the first measurement, before the mechanical stress. The devices were also measured in the circulation bath in order to identify drifts of the signals vref, vbe, vptat and the virtual reference VR.
(120)
(121)
(122)
(123)
(124)
(125)
(126)
(127) The X axis in
(128) As can be seen, the variations on the analog signal vptat and vbe are very small. The maximum deviation of vptat is +25 V which corresponds to +0.13 C. error on the output, and the maximum deviation of vbe is 250 V also corresponding to 0.13 C.
(129) The reference voltage vref generated in the unstressed devices, when measured in the circulation bath drifted less than 0.005% (or 50 ppm). The reference voltage vref generated in the mechanically stressed devices generate a reference voltage vref having a drift between 0.007% and 0.04% (or between 70 ppm and 400 ppm). The drift of the virtual reference VR is between 0.003% and 0.006% (or between +30 ppm and 60 ppm), which is at least a factor of about 2 improvement.
(130)
(131) The X axis in
(132)
(133)
(134)
(135)
(136) It was found that the analog reference voltage vref drifts down with 0.035% (350 ppm) if a mechanical pressure force of 100N was applied, but as can be seen, the virtual reference VR (using formula [3]) remains substantially flat, and does not significantly change with the applied mechanical stress. It can be concluded from the above experiments that the analog reference voltage varies with mechanical stress, whereas the virtual reference value VR is less sensitive to mechanical stress.
(137) Tests have shown that, using the techniques of the present invention, the analog voltage to be measured can be compensated for temperature variations in the range from 50 C. to +170 C.,
(138) with an absolute accuracy corresponding to about 1.6 C. when using a 12 bit ADC, or
(139) with an absolute accuracy corresponding to about 0.40 C. when using a 14 bit ADC, or
(140) with an absolute accuracy corresponding to about 0.10 C. when using a 16 bit ADC.
(141) As can be appreciated from
(142) with an absolute accuracy corresponding to about 1.7 C. when using a 12 bit ADC, or
(143) with an absolute accuracy corresponding to about 0.50 C. when using a 14 bit ADC, or
(144) with an absolute accuracy corresponding to about 0.20 C. when using a 16 bit ADC.
(145) While individual features are explained in different drawings and different embodiments of the present invention, it is contemplated that features of different embodiments can be combined, as would be obvious to the skilled person, when reading this document.