METHOD AND DEVICE FOR DETERMINING A DIGITAL VALUE INDICATIVE OF A PHYSICAL QUANTITY TO BE MEASURED
20250035716 ยท 2025-01-30
Inventors
Cpc classification
International classification
Abstract
A method of providing a digital value indicative of a physical quantity to be measured by a sensor circuit or a bridge circuit that has two excitation nodes and at least one output node, comprises the steps of: a) applying a time-varying biasing signal to the excitation nodes, causing at least one output-node to provide a time-varying output signal; b) determining a first time value or a first count value or a first index related to a first event at which the first output signal passes a first threshold signal; c) providing a digital value indicative of the physical quantity to be measured based on said at least one time value or count value or index value.
Claims
1. A method of providing a digital value indicative of a physical quantity to be measured by a sensor circuit or a bridge circuit that has two excitation nodes and at least one output node, the method comprising the steps of: a) applying a time-varying biasing signal with a predefined or a configurable waveform to the excitation nodes, causing the at least one output node to provide at least one time-varying output signal; b) using at least one threshold signal having a predefined value or a configurable value or a predefined or a configurable waveform; c) determining at least one time value or at least one count value or at least one index value related to a first event at which the at least one output signal passes at least one threshold signal; d) determining a digital value indicative of the physical quantity to be measured based on said at least one time value or count value or index value.
2. The method according to claim 1, wherein step b) comprises: using a single threshold signal having a predefined value or a configurable value or a predefined waveform; wherein step c) comprises: determining a single time value or a single count value or a single index value related to a single event at which the at least one output signal passes said single threshold signal; and wherein step d) comprises: determining said digital value based on said single time value or count value or index value.
3. The method according to claim 1, wherein the sensor circuit or the bridge circuit has two output nodes; wherein step a) causes the two output nodes to provide a first time-varying output signal and a second time-varying output signal; wherein step b) comprises: using a first threshold signal having a first predefined or a first configurable value or a first predefined waveform, and using a second threshold signal equal to, or different from the first threshold signal, having a second predefined value or a second configurable value or a second predefined waveform; and wherein the method further comprises step e) of generating a time-varying common-mode signal; and wherein step c) comprises: determining a first time value or a first count value or a first index value related to a first event at which the first output signal passes the first threshold signal; and determining a second time value or a second count value or a second index value related to a second event at which the common-mode signal passes the second threshold signal; and wherein step d) comprises: determining said digital value based on said first and second time value or based on said first and second count value or based on said first and second index value, or based on a difference between the first and second time value, or based on a difference between said first and second count value, or based on a difference between said first and said second index value.
4. The method according to claim 1, wherein step b) comprises: using a first threshold signal having a first predefined or a first configurable value or a first predefined waveform, and using a second threshold signal equal to, or different from the first threshold signal, having a second predefined value or a second configurable value or a second predefined waveform; wherein step c) comprises: determining a first time value or a first count value or a first index value related to a first event at which the first output signal passes the first threshold signal; and using a predefined second time value or a predefined second count value or a second index value related to a second event at which a common-mode signal would pass the second threshold signal; and wherein step d) comprises: determining said digital value based on said first and second time value or based on said first and second count value or based on said first and second index value, or based on a difference between the first and second time value, or based on a difference between said first and second count value, or based on a difference between said first and said second index value.
5. The method according to claim 1, wherein the at least one threshold signal or threshold value has a predefined voltage level or a predefined value; or wherein the at least one threshold signal has a configurable voltage level or a configurable value.
6. The method according to claim 1, wherein the sensor circuit or the bridge circuit has two output nodes; wherein step b) comprises: using a first threshold signal having a first predefined or a first configurable value or a first predefined waveform, and using a second threshold signal equal to, or different from the first threshold signal, having a second predefined value or a second configurable value or a second predefined waveform; wherein step a) causes the two output nodes to provide a first time-varying output signal and a second time-varying output signal; wherein step c) comprises: determining a first time value or a first count value or a first index value related to a first event at which the first output-signal passes the first threshold signal; and determining a second time value or a second count value or a second index value related to a second event at which the second output-signal passes the second threshold signal; and wherein step d) comprises: determining said digital value based on said first and second time value or based on said first and second count value or based on said first and second index value, or based on a difference between the first and second time value, or based on a difference between said first and second count value, or based on a difference between said first and said second index value.
7. The method according to claim 6, wherein the method further comprises: determining a first threshold value and a second threshold value, and applying these values to at least one digital-to-analog convertor to generate the first and second threshold signal, and dynamically adjusting these values in a control loop such that the first event substantially coincides with the second event, or such that a difference between the first and the second time value or such that a difference between the first and the second count value is substantially equal to a predefined value; and wherein step d) comprises: considering the first and the second threshold value as a first and second index value, and determining said digital value based on said first and second or based on a difference between the first and second index.
8. The method according to claim 1, wherein the biasing signal of step a) has a waveform with a linearly increasing or a linearly decreasing portion; or wherein the biasing signal of step a) has a waveform with an exponential portion; or wherein the biasing signal of step a) has a sinusoidal waveform.
9. The method according to claim 1, further comprising a step of: measuring a temperature; and wherein the method further comprises: adjusting the at least one threshold voltage based on the measured temperature; or wherein the method further comprises: adjusting the at least one measured time value or adjusting the at least one measured count value or adjusting the at least one measured index value or adjusting the difference between the first and the second time value, or adjusting the difference between the first and the second count value, or adjusting the difference between the first and the second index value, based on the measured temperature.
10. The method according to claim 1, wherein the sensor circuit is or comprises at least one Hall element; or wherein the sensor circuit comprises at least two resistors connected in series; or wherein the bridge circuit is or comprises at least one Wheatstone bridge; or wherein the bridge circuit comprises multiple legs, and wherein each leg comprises at least two resistors.
11. A circuit for providing a digital value indicative of a physical quantity to be measured by a sensor circuit or a bridge circuit that has two excitation nodes and at least one readout node, the circuit comprising: a biasing circuit; a threshold generator for generating at least one threshold signal or value; at least one of the following: a timer, a counter, a lookup-table with a DAC; comparison means for comparing the at least one output signal or a signal or value derived therefrom and the at least one threshold signal or value; a controller configured for performing a method according to claim 1.
12. An integrated sensor device comprising: at least one sensor circuit or bridge circuit that has two excitation nodes and at least one readout node; at least one circuit according to claim 11, operatively connected to the excitation nodes and to the at least one output node of said at least one sensor circuit or bridge circuit.
13. The integrated sensor device according to claim 12, comprising a plurality of at least two sensor or bridge circuits.
14. The integrated sensor device according to claim 13, further comprising one or two comparators for each sensor or bridge circuit; wherein an output of each comparator is connected to a respective input of the controller.
15. The integrated sensor device according to claim 12, wherein the circuit is configured for providing a first digital value; and wherein the integrated sensor device further comprises an analog-to-digital convertor configured for digitizing one or both of the readout voltages or for digitizing a differential voltage formed by both readout nodes, and for providing a second digital value; the sensor device being further configured for providing the first and the second digital value for allowing an external controller to perform a consistency test, or being further configured for performing a consistency test of the first and second digital value, and to provide at least one of the first and second digital value or a digital value derived therefrom and an error signal.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0085]
[0086]
[0087]
[0088]
[0089]
[0090]
[0091]
[0092]
[0093]
[0094] 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, same or similar reference signs may refer to same or analogous elements.
DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS
[0095] 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.
[0096] 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.
[0097] 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.
[0098] 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.
[0099] 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.
[0100] 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.
[0101] 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.
[0102] 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.
[0103] In this document, the expression count value or counter value mean the same. The counter may be configured to increment by 1, or to decrement by 1, but the present invention is not limited thereto.
[0104] The present invention relates in general to methods and circuits for providing a digital value (e.g. Dout) indicative of a physical quantity (e.g. a magnetic field value, or a pressure value) to be measured by a sensor circuit, and more specifically, to methods and circuits for digitizing an output signal (e.g. a differential output signal vdiff) of a sensor circuit or a bridge circuit of the type that has two excitation nodes (also referred to as input nodes) and at least one (e.g. two) readout node (also referred to as output nodes).
[0105]
[0106]
[0107]
[0108]
[0109]
[0110] In a variant, the digitization circuit 420 does not provide a differential biasing voltage formed by Vbias+ and Vbias, but provides a single-ended biasing voltage Vbias to the first input node E1, while the second input node E2 is connected to a reference voltage (typically referred to as Vss or Gnd).
[0111] In another or a further variant, the digitization circuit 420 provides a biasing current rather than a biasing voltage. This biasing current may be provided by a current source.
[0112]
[0113]
[0114] The graph of
[0115]
[0116] In an embodiment, the signal Vem is derived directly from Vbias, e.g. by means of a voltage divider comprising two resistors connected in series. The value of Vem may be a predefined portion or fraction of Vbias, e.g. 50%. The value of this portion can be defined by the resistor values.
[0117]
[0118] In certain embodiments of the present invention, the value of the threshold voltage Vt is in principle constant, but is temperature compensated.
[0119] As can be seen in the example of
[0120] Whereas in the prior art, a stationary biasing voltage equal to Vmax would be applied to the first input node E1 of the sensor or the bridge, and the signals Vn and Vp would be routed to an amplifier and the differential output voltage would be digitized (e.g. as illustrated in
Dout=f1(T1, T2, waveform of biasing signal, Vt) [1],
or as:
Dout=f2(T2T1, waveform of biasing signal, Vt) [2],
or as:
Dout=f3(N1, N2, waveform of biasing signal, Vt) [3],
or as:
Dout=f4(N2N1, waveform of biasing signal, Vt) [4],
where T1 is the time of event1, and T2 is the time of event2,
where (T2T1)=T is the time difference between the first and the second event, or as:
where N1 is a first count value related to event1, and N2 is a second count value related to event2,
where (N2N1)=N is the count difference between the first and the second event,
wherein the Vbias waveform may be represented by a set of parameters such as e.g. Vmin, Tstart, Vmax, Tend, or by a set of parameters Vmin, Vmax, slope; [0121] or if the biasing signal is generated using a DAC and an indexed table (e.g. stored in a non-volatile memory):
Dout=f5(index1, index2, Vt) [5],
or as:
Dout=f6(index2index1, Vt) [6]
[0122] In certain embodiments, the waveform of the biasing signal Vbias is fixed, (e.g. hardcoded in software, or generated in a predetermined manner by a hardware-circuit), and also the value of the threshold-voltage Vt is fixed (e.g. a predefined voltage level). In such a case, there is a one-to-one relation between the magnitude of the physical quantity to be measured (e.g. magnetic field value or pressure value) and the timing of the first event at which Vp crosses Vt, and the timing of the second event at which Vn crosses Vt. This relation can for example be determined during a calibration test, and the results may be stored in a look-up table. One could say that the values of the look-up table implicitly take into account specifics of the biasing signal and the threshold signal. It is noted that the waveform of Vbias and/or of the threshold signal Vt need not be known. With this a lookup table, the digital output value can then be determined as:
Dout=LookupTable7[T2T1][7],
or as
Dout=LookupTable8[N2N1][8],
or as
Dout=LookupTable9[index2index1][9]
[0123] The values of the look-up table may be stored in a non-volatile memory of the sensor device (see e.g.
[0124] It is noted that (T2T1) can also be written as T, thus the lookup-table can be a one-dimensional table. Likewise (N2N1)=N, (Index2Index1)=Index.
[0125] It is also possible to express Dout as a polynomial expression of the single value (T2T1)=T, or of the single value (N2N1)=N, or of the single value (index2index1)=Index, using a number of coefficients which may be determined during a calibration procedure, and may be stored in a non-volatile memory of the sensor device. One could say that the values of the coefficients implicitly take into account specifics of the biasing signal and the threshold signal. It is noted that the waveform of Vbias and/or of the threshold signal Vt need not be known. With polynomial the digital output value can then be determined as:
Dout=Polynomial10(T2T1) [10],
or as
Dout=Polynomial11(N2N1) [11],
or as
Dout=Polynomial12(index2index1) [12]
[0126] It is noted that (T2T1)=T is a single value, thus Polynomial10 is a function of a single variable T. Likewise for Polynomial11 and Polynomial12.
[0127] The coefficients of these polynomials may be determined during a calibration test, using the same biasing signal Vbias and the same threshold signal Vt as will be used during actual use.
[0128] It is of course also possible to express Dout as a polynomial expression of two variables (T1, T2) or (N1, N2) or (Index1, Index2) using a number of coefficients, where the values of the coefficients take into account specifics of the biasing signal and the threshold signal. This can be written as:
Dout=Polynomial13(T1, T2) [13],
or as
Dout=Polynomial14(N1, N2) [14],
or as
Dout=Polynomial15(index1, index2) [15]
[0129] So far it is described how
[0130] Indeed, if the waveform of Vbias as a function of time is known, (e.g. a predefined ramp waveform), then also the waveform of the common mode voltage Vcm corresponding to the average of Vp and Vn is known (explicitly or implicitly), which is also substantially equal to 50% of Vbias. And if the value of the threshold signal Vt (e.g. a predefined constant voltage level, or a predefined portion of Vmax) or if the waveform of Vt as a function of time is known, then also the time Tcm at which the waveform Vem passes Vt is known (explicitly or explicitly). Instead of measuring T1 of event1 (when Vp passes Vt) and measuring T2 of event2 (when Vn passes Vt), it is also possible to measure only T1, because the time T2 at which Vn will pass Vt is related to the time between T1 and Tcm. In other words, (TcmT1) and (T2Tcm) are related to each other.
[0131] Thus, if the relation between Vem and Vbias is known, and if the relation between Vt and Vmax (i.e. the maximum value of Vbias) is known, then the value of Vdiff and thus of the physical quantity can be determined as a function of a single time T1. This can be written mathematically as:
Dout=f16(T1, waveform of biasing signal, Vt) [16]
Dout=f17(N1, waveform of biasing signal, Vt) [17]
wherein the Vbias waveform may be represented by a set of parameters such as e.g. Vmin, Tstart, Vmax, Tend, or by a set of parameters Vmin, Vmax, slope;
or if the biasing signal is generated using a DAC and an indexed table (e.g. stored in a non-volatile memory):
Dout=f18(index1, Vt) [18]
[0132] As already mentioned above, in practice the biasing signal Vbias may have a predefined waveform (e.g. a linearly increasing ramp), and the threshold signal may also have a predefined waveform (e.g. a linearly decreasing function, or a predefined constant value), and this biasing signal and threshold signal is repeatedly used for each measurement period. In such a case, there is a one-to-one correspondence between the physical quantity to be measured and the (single) time value T1, or single count value N1, or single index value Index1 related to the first event; this relation can be determined during a calibration test, and this relation can be stored in a non-volatile memory, e.g. in the form of a look-up table, or in the form of a polynomial expression, or in any other suitable way.
[0133] When using a look-up table that takes into account specifics of the biasing signal and the threshold signal, the digital output value can be determined as:
Dout=LookupTable19[T1][19],
or as
Dout=LookupTable20[N1][20],
or as
Dout=LookupTable21[index1][21]
[0134] It is also possible to express Dout as a polynomial expression of the single value (T1) or of the single count value (N1) or of the single index value (index1) using a number of coefficients, where the values of the coefficients take into account specifics of the biasing signal and the threshold signal. This can be written as:
Dout=Polynomial22(T1) [22],
or as
Dout=Polynomial23(N1) [23],
or as
Dout=Polynomial24(index1) [24]
[0135] A method of determining a digital value indicative of a magnitude of a physical quantity to be measured (e.g. a magnetic field strength, a pressure) based on these principle is shown in
[0136] It is noted that
[0137] The skilled person having the benefit of the present disclosure will also understand that the above described measurement principle (of applying a time-varying signal Vbias, and using a constant or a time-varying threshold signal Vt, and measuring a time T1 or a count N1 of a first event at which a node voltage passes the threshold signal Vt, in order to obtain a digital value for an external quantity to be measured) can also be applied for any individual node of the circuit of
[0138] In another or a further variant of
[0139] In another or a further variant, (e.g. as will be described further in
[0140] It is also possible to use one of several possible biasing signals, and one of several possible threshold signals. In this case, in order to determine the digital output value, two additional parameters are needed: a first one to indicate the appropriate biasing signal, and a second one to indicate the appropriate threshold signals.
[0141] These and other variants of the method will be described and illustrated further, with reference to
[0142] In the example of
[0143] In the example of
[0144] In certain embodiments, the first event may be detected using a first comparator having as a reference input the threshold voltage Vt, and having as a signal input the signal Vp; and the second event may be detected using a second comparator having as a reference input the threshold voltage Vt, and having as a signal input the signal Vn.
[0145] In an embodiment where the sensor circuit has only one output node (e.g. a resistor circuit having two resistors in series), the first event may be detected using a comparator, using the output voltage of the sensor circuit as an input signal for the comparator, and using the threshold voltage Vt as a reference signal for the comparator.
[0146] In the example of
[0147] The same methods and/or formulas as mentioned above can be used.
[0148]
Dout=f25(T1, T2ref, waveform of biasing signal, Vt) [25]
Dout=f26(T2refT1, waveform of biasing signal, Vt) [26]
Dout=f27(N1, N2ref, waveform of biasing signal, Vt) [27]
Dout=f28(N2refN1, waveform of biasing signal, Vt) [28]
wherein the Vbias waveform may be represented by a set of parameters such as e.g. Vmin, Tstart, Vmax, Tend, or by a set of parameters Vmin, Vmax, slope;
or if the biasing signal is generated using a DAC and an indexed table (e.g. stored in a non-volatile memory):
Dout=f29(index1, index2, Vt) [29],
or as:
Dout=f30(index2index1, Vt) [30]
[0149] Or in case the biasing signal and/or the threshold signal have a predefined, e.g. built-in waveform, the specific shapes of these waveforms are not absolutely required for determining the output value, for the same reasons as described above, and the relationship between the physical quantity to be measured (e.g. a magnetic value of a pressure value) and the moment(s) when the output signal(s) of the sensor circuit cross the threshold signal(s) Vt can be determined by means of a calibration test, and be stored in a non-volatile memory, e.g. in the form of a look-up table or a polynomial expression. During actual use of the sensor device, the digital output value can then be determined as:
Dout=LookupTable26[T2refT1][31],
or as
Dout=LookupTable27[N2refN1][32],
or as
Dout=LookupTable28[index2index1][33]
It is also possible to express Dout as a polynomial expression of the single value (T2refT1) or of the single value (N2refN1) using a number of coefficients, where the values of the coefficients take into account specifics of the biasing signal and the threshold signal. This can be written as:
Dout=Polynomial34(T2refT1) [34],
or as
Dout=Polynomial35(N2refN1) [35]
Dout=Polynomial36(index2index1) [36]
[0150] It is also possible to express Dout as a polynomial expression of two variables (T1, T2) or (N1, N2) or (Index1, Index2) using a number of coefficients, where the values of the coefficients take into account specifics of the biasing signal and the threshold signal. This can be written as:
Dout=Polynomial37(T1, T2) [37],
or as
Dout=Polynomial38(N1, N2) [38],
or as
Dout=Polynomial39(index1, index2) [29]
A method of determining a digital value based on these principles is shown in
[0151]
[0152] The following formulas can be used to determine the value of Dout:
Dout=f40(T1, T2, waveform of biasing signal, Vt) [40],
or as:
Dout=f41(T2T1, waveform of biasing signal, Vt) [41],
or as:
Dout=f42(N1, N2, waveform of biasing signal, Vt) [42],
or as:
Dout=f43(N2N1, waveform of biasing signal, Vt) [43],
wherein the Vbias waveform may be represented by a set of parameters such as e.g. Vmin, Tstart, Vmax, Tend, or by a set of parameters Vmin, Vmax, slope;
or if the biasing signal is generated using a DAC and an indexed table (e.g. stored in a non-volatile memory):
Dout=f44(index1, index2, Vt) [44],
or as:
Dout=f45(index2index1, Vt) [45]
[0153] In an embodiment where the biasing signal and the threshold signal have a predefined waveform or value, the specific shape of the biasing signal and the threshold signal does not need to be taken into account in the output function, but the digital output value can be determined as:
Dout=LookupTable46 [T2T1][46],
or as
Dout=LookupTable47[N2N1][47],
or as
Dout=LookupTable48 [index2index1][48]
[0154] It is also possible to express Dout as a polynomial expression of the single value (T2T1) or of the single value (N2N1) or of the single value (index2index1) using a number of coefficients, where the values of the coefficients take into account specifics of the biasing signal and the threshold signal. This can be written as:
Dout=Polynomial49(T2T1) [49],
or as
Dout=Polynomial50 (N2N1) [50]
Dout=Polynomial51(index2index1) [51]
[0155] It is also possible to express Dout as a polynomial expression of two variables (T1, T2) or (N1, N2) or (Index1, Index2) using a number of coefficients, where the values of the coefficients take into account specifics of the biasing signal and the threshold signal. This can be written as:
Dout=Polynomial52(T1, T2) [52],
or as
Dout=Polynomial53(N1, N2) [53],
or as
Dout=Polynomial54(index 1, index2) [54]
[0156] A method of determining a digital value indicative of the physical quantity to be measured, and/or indicative of the differential output signal Vdiff that would occur over the output nodes v1, v2 of the sensor or bridge circuit when the biasing voltage Vbias would reach a predefined value Vmax using these principles, is shown in
[0157] In an embodiment, the signal Vcm is derived from Vp and Vn, e.g. by averaging these signals. The measured time of T2 or count N2 can be compared with a predetermined time or count value, and if the measured time deviates too much, an error can be signalled.
[0158]
[0159] A method of determining a digital value indicative of the physical quantity to be measured, and/or indicative of the differential output signal Vdiff that would occur over the output nodes v1, v2 of the sensor or bridge circuit when the biasing voltage Vbias would be a predefined value Vmax using this principle, is described in
[0160]
[0161] The two reference voltages may have predefined (e.g. constant) voltage levels, or may be dynamically determined and set (e.g. at the start of each new time period). In the former case only a single look-up table or polynomial expression is required to determine the digital output value. In the latter case, a plurality of look-up tables or a multi-dimensional look-up table, or a plurality of polynomial expressions, or a polynomial with additional parameters may be required, to take into account which threshold signals were applied during the measurement.
[0162] In a variant of
[0163] In another variant of
[0164]
[0165]
[0166] In an embodiment, the threshold value Val1 (or Val1[k]) is dynamically updated such that the measured value of T1 or N1, at which Vp(t) crosses Vtp[k], is approximately equal to a first predefined target value T1target or N1target; and the threshold value Val2 (or Val2[k]) is dynamically updated such that the measured value of T2 or N2, at which Vn(t) crosses Vtn[k], is approximately equal to a second predefined target value T2target or N2target, equal to, larger than, or smaller than T1target or N1target.
[0167] In the example shown in
[0168] In an embodiment, the threshold values Val1 and Val2 are dynamically adjusted such that the measured (T2T1)=T is substantially equal to a predefined target value Ttarget.
[0169] Interestingly, if such a control loop is used, the digital value Dout for the physical quantity to be measured can be determined as a function of the values Val1 and Val2, or as a function of (Val1Val2), once the control loop is actively tracking (or locked). As mentioned above, the predefined function can be implemented as a look-up table or as a polynomial function, the values or coefficients of which can be determined by performing a calibration test, and may be stored in a non-volatile memory, from which they can be retrieved during actual use of the sensor device.
[0170]
[0171] For sensors circuits having two output signals Vp and Vn, the digital value of the physical quantity to be measured can be determined as a function of (Val1Val2).
[0172] For sensors circuits having two output signals Vp and Vn which have a predefined relation with respect to each other (as is the case e.g. for Hall elements and a Wheatstone bridge with MR elements), the digital value of the physical quantity to be measured can also be determined as a function of only Val1, or as a function of only Val2 (because their average is substantially equal to the value of the common mode signal Vcm at time T1target). This is also true if T1target is not equal to T2target (e.g. as illustrated in
[0173] In the specific example shown in
[0174] It is noted that the method with the control loop also works for sensor circuits having only one one output signal Vp. In this case, the control loop will be configured to dynamically adjust the threshold value Vt such that the time T1 or count N1 of the first event occurs at a predefined moment in time T1target. And the digital value Dout of the physical quantity to be measured can also be derived solely from the (dynamically adjusted) value Val1 corresponding to the threshold signal Vt, e.g. using a look-up table or a polynomial function, having values or coefficients which are determined during a calibration, and which are stored in a non-volatile memory, as described above.
[0175] Preferably a single predefined waveform of the biasing signal is used, but the present invention is not limited hereto. If there are multiple predefined waveforms of the biasing signal possible, then for each of these biasing signals a look-up table or polynomial expression can be determined (e.g. by simulation or by calibration) that codifies the correspondence between the threshold value Val1 and the quantity to the measured, and during actual use of the device, the appropriate table or polynomial needs to be selected, e.g. using an additional parameter indicating which predefined biasing signal is used.
[0176] The embodiments with a tracking loop, e.g. as illustrated in
[0177]
[0178] In a variant of
[0179] In another or a further variant of
[0180] In another or further variant of
[0181] In all of the embodiments illustrated in
[0182] In
[0183]
[0187] An underlying principle of the present invention is to convert timing information (or counter information, or index information) into a digital value. This timing information or counter information or index information is related to a magnitude of the physical quantity to be measured.
[0188] The method may further comprise a step of: i) providing a sensor or bridge circuit having two excitation nodes (E1, E2) and at least one output node (RO1, RO2), such as e.g. a Hall element, a horizontal Hall element, a vertical Hall element, or a Wheatstone bridge, or a resistor circuit comprising one or more legs, each leg comprising two or more resistors (e.g. piezo-resistors, magneto-resistors, XMR, TMR, AMR, GMR resistors).
[0189] The method may further comprise providing one or more of the following: a timer, a counter operating at a predefined clock frequency (fCLK), a biasing circuit, one comparator or two comparators or more than two comparators, an analog-to-digital convertor (ADC), a digital-to-analog convertor (DAC), a PWM circuit (pulse-width-modulation) optionally followed by a low-pass filter, etc.
[0190] The method may also comprise the steps of providing at least one comparator, e.g. one comparator or two comparators; and providing at least one threshold voltage (Vt) to a first input of the at least one comparator; and providing at least one readout voltage (e.g. v1 or v2) to a second input of the at least one comparator. In such an embodiment, the first event can be detected e.g. by monitoring when an output level of the comparator changes state. The latter may be implemented e.g. using a polling technique or can be implemented efficiently using an interrupt of a digital processor.
[0191] The method may also comprise the steps of: providing at least one analog-to-digital convertor (ADC); and step a) may further comprise: repeatedly digitizing said at least one output voltage or a differential voltage formed by both output voltages using said ADC; and step b) may further comprise: repeatedly comparing said plurality of digital values with at least one threshold value (e.g. by comparison means, e.g. by a programmable controller).
[0192] The method may comprise a further step to convert the digital value Dout into a current value, a torque value, a linear or angular position value, or another physical quantity, for example using a look-up table, or using mathematical formulas, or a combination of these.
[0193] In certain embodiments of the method 1000 of
[0194]
[0197] The detection of the first event may be performed using a first comparator, where the first threshold voltage (Vt1) is applied to a first input of the first comparator, and the first output voltage (Vp) is applied to the second input of the first comparator, and the detection of the second event may be performed using a second comparator, where the second threshold voltage (Vt2) is applied to a first input of the second comparator, and the second output voltage (Vp) is applied to the second input of the second comparator.
[0198]
[0202] An example of this method is illustrated in
[0203] As already mentioned above, the time value T2 or the count value N2 related to this second event when Vcm crosses the threshold signal is in fact already known beforehand (for a given waveform of the biasing signal and a given threshold signal), and hence measuring this value is not really required, but when measured, it can e.g. be used for error detection.
[0204]
[0208] An example of this embodiment wherein the second threshold signal Vt2 is equal to the first threshold signal Vt1, is illustrated in
[0209]
[0214] Step iii) may comprise: detecting an error during the first time period, e.g. by detecting that one or more of the first output signal (e.g. Vp), the second output signal (e.g. Vn), the common-mode signal (e.g. Vcm, if generated) does not pass the threshold signal (e.g. Vt). Alternatively or additionally, step iii) may comprise: detecting an inconsistency between the first digital value (Dout1) and the second digital value (Dout2), e.g. using a predefined criterion which may depend e.g. on the resolution of the ADC, the accuracy of the timing circuit, etc.
[0215] In an embodiment, the three steps i) to iii) of the method 1400 are performed by a sensor device 1730 comprising said sensor or bridge circuit 1740. In this case, the sensor device 1730 may output a digital value (e.g. one of the digital values Dout1, Dout2, or an average of the two values, or a weighted average of the two values) as an indication of the physical quantity to be measured, and/or may output a validity signal indicative of an error being detected.
[0216] In an embodiment, the steps i) and ii) are performed by a sensor device 1730 comprising said sensor or bridge circuit 1740, and step iii) is performed by an external processor (not shown), outside of the sensor device. In this case, the sensor device would output the two digital values Dout1, Dout2, and the external processor would perform a consistency check of these values. An outcome of this consistency check can then be used as a validity signal.
[0217]
[0218]
[0224] While not explicitly shown, the sensor device may also contain at least one amplifier, e.g. a differential amplifier configured for amplifying a differential voltage over the output nodes of the sensor or bridge circuit.
[0225] The comparison means may include one or more comparators (e.g. in case the comparison is performed in the analog domain), or the comparison may be performed in software, e.g. as an executable instruction performed by the digital processor 1526. As an example, if the detection of event1 and/or event2 is performed in the analog domain, a single comparator per sensor (or per bridge) may be sufficient to perform the method of
[0226] In case one or more analog comparators are used, an output of the/each comparator may be connected to a/separate input(s) of the processor 1526, and the processor may be configured to generate an interrupt when one of these inputs changes state (e.g. rising and/or falling edge, depending on the implementation), and the processor may have an interrupt service routine to determine and further process (e.g. temporarily store) a timer value or count value.
[0227] In case of multiple sensors (or bridge circuits) and in case the detection of the event(s) is performed in the analog domain using analog comparators, each of the sensors (or bridges) may provide one or two or more output signals to a corresponding comparator or to a corresponding set of two comparators. (more than two output signals may be provided e.g. in case of a sensor structure as illustrated in
[0228] It is an advantage that a single processor with for example four inputs can easily determine four different time values or four different count values indicative of four physical quantities (e.g. four magnetic field components) measured by four Hall elements, in a single time period (e.g. having a time duration T_ramp as illustrated in
[0229] Many variants of the circuit 1520 shown in
[0234] In a variant of
[0235] The integrated sensor device 1530 may be implemented on a single semiconductor substrate comprising (inter alia) the at least one sensor or bridge circuit and the digital processor 1526, but that is not absolutely required, and in another embodiment, the at least one sensor or bridge circuit 1540 is/are implemented on a first semiconductor substrate, and the digital processor 1526 is implemented on a second semiconductor substrate, and the first and second semiconductor substrate are interconnected and embedded in a single packaged device.
[0236]
[0237] The circuit 1620 of
[0238] Possible variations described for
[0239]
[0240] In an embodiment, the sensor device 1730 is further configured for detecting an error related to the formation of the first digital value Dout1, e.g. by detecting that the first and/or second event does not occur without the envisioned time span.
[0241] In an embodiment, the sensor device 1730 is further configured for performing a consistency test of the first and second digital value Dout1, Dout2, and to provide at least one of the first and second digital value or a digital value derived therefrom and an error signal.
[0242] In an embodiment, the sensor device 1730 is further configured for providing the first and the second digital value Dout1, Dout2, e.g. as output signals to an external controller (not shown), for allowing the external controller to perform a consistency test.
[0243] Such integrated sensor device 1730 is better suited for applications requiring functional safety, e.g. for use in automotive or robotic applications, because of its error detection capabilities.
[0244] It is noted that the integrated sensor device shown in
[0245] In a variant of
[0246] In another variant of
[0247]