TEMPERATURE COMPENSATED MTJ-BASED SENSING CIRCUIT FOR MEASURING AN EXTERNAL MAGNETIC FIELD

20230119854 · 2023-04-20

    Inventors

    Cpc classification

    International classification

    Abstract

    Disclosed is a MTJ sensing circuit for measuring an external magnetic field and including a plurality of MTJ sensor elements connected in a bridge configuration, the MTJ sensing circuit having an input for inputting a bias voltage and generating an output voltage proportional to the external magnetic field multiplied by the bias voltage and a gain sensitivity of the MTJ sensing circuit, wherein the gain sensitivity and the output voltage vary with temperature; the MTJ sensing circuit further including a temperature compensation circuit configured to provide a modulated bias voltage that varies as a function of temperature over a temperature range, such that the output voltage is substantially constant as a function of temperature. Also disclosed is a method for compensating the output voltage for temperature.

    Claims

    1-16. (canceled)

    17. MTJ sensing circuit for measuring an external magnetic field and comprising a plurality of MTJ sensor elements connected in a bridge configuration, the MTJ sensing circuit having an input for inputting a bias voltage and generating an output voltage proportional to the external magnetic field multiplied by the bias voltage and a gain sensitivity of the MTJ sensing circuit, wherein the gain sensitivity and the output voltage vary with temperature; the MTJ sensing circuit further comprising a temperature compensation circuit configured to provide a modulated bias voltage that varies as a function of temperature over a temperature range, such that the output voltage is substantially constant as a function of temperature; wherein the temperature compensation circuit is configured for generating a plurality of reference voltages, each reference voltage corresponding to a temperature subrange of the temperature range; wherein the temperature compensation circuit further comprises a plurality of subrange resistors configured to generate a temperature dependent voltage for each subrange resistor, when a temperature dependent proportional-to-absolute-temperature (PTAT) current is forced in the plurality of subrange resistors; the temperature compensation circuit further comprises a plurality of comparators configured to compare temperature dependent voltages to a plurality of fixed voltage references, each comparator generating a hysteresis comparator output; the temperature compensation circuit further comprises an array-based memory cell having a plurality of registers, each register representing a bias voltage corresponding to one of the temperature subranges, the array-based memory cell being configured to select one of the register depending on the hysteresis comparator output.

    18. The MTJ sensing circuit according to claim 17, wherein the temperature compensation circuit comprises a temperature sensor circuit configured for measuring said gain sensitivity over said temperature range.

    19. The MTJ sensing circuit according to claim 17, wherein each temperature subrange has a temperature span of about 10° C. or larger.

    20. The MTJ sensing circuit according to claim 17, wherein said temperature range extends from −40° C. to 125° C.

    21. The MTJ sensing circuit according to claim 17, wherein said temperature subranges comprise a temperature subrange below 25° C. and a temperature subrange from 25° C. or above.

    22. Method for compensating an output voltage of a MTJ sensing circuit comprising a plurality of MTJ sensor elements connected in a bridge configuration, the MTJ sensing circuit having an input for inputting a bias voltage and generating an output voltage proportional to the external magnetic field multiplied by the bias voltage and a gain sensitivity of the MTJ sensing circuit, wherein the gain sensitivity and the output voltage vary with temperature; the MTJ sensing circuit further comprising a temperature compensation circuit configured to provide a modulated bias voltage that varies as a function of temperature over a temperature range; wherein the temperature compensation circuit further comprises a plurality of subrange resistors configured to pass a PTAT current, a plurality of comparators, and an array-based memory cell having a plurality of registers, each register representing a bias voltage corresponding to one of the temperature subranges; the method comprising: measuring temperature of the MTJ sensing circuit; using the temperature compensation circuit to modulate the bias voltage with temperature such that the modulated bias voltage multiplied by the gain sensitivity is constant; comprising: using the temperature compensation circuit to generate a plurality of reference voltages, each reference voltage corresponding to a temperature subrange of the temperature range; generating a temperature dependent voltage for each subrange resistor, by forcing the PTAT current in the plurality of subrange resistors; using the plurality of comparators to compare temperature dependent voltages to a plurality of fixed voltage references, and generating a hysteresis comparator output for each comparator; and using the array-based memory cell to select one of the register depending on the hysteresis comparator output.

    Description

    BRIEF DESCRIPTION OF THE DRAWINGS

    [0016] The invention will be better understood with the aid of the description of an embodiment given by way of example and illustrated by the figures, in which:

    [0017] FIG. 1 shows a schematic cross section diagram of a MTJ sensing element;

    [0018] FIG. 2 shows a response curve of resistance versus the external magnetic field for the MTJ sensing element;

    [0019] FIG. 3 shows a half-bridge MTJ sensing circuit;

    [0020] FIG. 4 shows a full-bridge MTJ sensing circuit;

    [0021] FIG. 5 shows response curves of the half-bridge MTJ sensing circuit measured in the linear portion;

    [0022] FIG. 6 schematically represents the method steps for measuring a temperature compensated external magnetic field, according to an embodiment;

    [0023] FIG. 7 report the gain sensitivity in the MTJ sensing circuit and being corrected for temperature variation according to the method disclosed herein;

    [0024] FIG. 8 illustrates a correction circuit, according to an embodiment;

    [0025] FIG. 9 shows a temperature sensor circuit, according to an embodiment;

    [0026] FIG. 10 shows a temperature sensor circuit, according to another embodiment;

    [0027] FIG. 11 shows a temperature sensor circuit, according to yet another embodiment;

    [0028] FIG. 12 shows a temperature sensor circuit, according to yet another embodiment;

    [0029] FIG. 13 shows response curves of the MTJ sensing circuit, wherein the bias voltage is not modulated with temperature; and

    [0030] FIG. 14 shows response curves of the MTJ sensing circuit, wherein the bias voltage is modulated with temperature;

    DETAILED DESCRIPTION OF POSSIBLE EMBODIMENTS

    [0031] It is possible to have temperature variations that are proportional to temperature with a linear slope, or a higher order curve.

    [0032] The gain sensitivity G(t) varies as a function of temperature T as:


    G(T)=ƒ(T),  (2)

    where ƒ(T) is a linear temperature function or a higher order temperature function.

    [0033] In an embodiment, a method for measuring a temperature compensated external magnetic field H using the MTJ sensing circuit 100 comprises a step of modulating the bias voltage V.sub.bias with temperature T such that the modulated bias voltage V.sub.bias(T) multiplied by the gain sensitivity G(T) is constant:


    V.sub.bias(TG(T)=Constant  (3).

    [0034] The method further comprises a step of providing the modulated bias voltage V.sub.bias(T) in the input 101 of the MTJ sensing circuit 100 and measuring the output voltage V.sub.out, provided at the output 102.

    [0035] Providing the modulated bias voltage V.sub.bias(T) allows for the MTJ sensing circuit 100 to output the output voltage V.sub.out that varies with the external magnetic field H but that is substantially constant when the temperature T is varied.

    [0036] The method further comprises a step of measuring the temperature T of the MTJ sensing circuit 100 and providing a correction temperature signal 30 (see FIG. 10) that is proportional to the temperature T of the MTJ sensing circuit 100.

    [0037] The method further comprises a step of generating a bias voltage V.sub.bias and using the correction temperature signal to modulate the generated bias voltage V.sub.bias and provide the modulated bias voltage V.sub.bias(T). The modulated bias voltage V.sub.bias(T) is provided by using the correction temperature signal in combination with a temperature function ƒ(T) such as a linear slope, or a higher order curve.

    [0038] FIG. 6 schematically represents the method steps, in particular, the steps of measuring the temperature T of the MTJ sensing circuit 100 (M1); generating a bias voltage V.sub.bias (M2); providing the modulated bias voltage V.sub.bias(T) (M3); and inputting the modulated bias voltage V.sub.bias(T) in the input 101 of the MTJ sensing circuit 100 (M4).

    [0039] The steps of measuring the temperature of the MTJ sensing circuit 100, generating a bias voltage V.sub.bias and providing the modulated bias voltage V.sub.bias(T) can be performed using an analog circuitry to compensate for thermal variations.

    [0040] FIG. 7 report the gain sensitivity G(t) in the MTJ sensing circuit 100 and being corrected for temperature variation according to the method disclosed herein. The corrected gain sensitivity G(t) is substantially independent of temperature variations (compensating the loss in the sensitivity G(T)).

    [0041] FIG. 8 illustrates a correction circuit for compensating the output voltage V.sub.out of the MTJ sensing circuit 100 for temperature variations, according to an embodiment. The correction circuit 300 comprises a temperature sensor circuit 301 (reference generator) configured for generating a voltage reference V.sub.ref that is proportional to temperature T. The correction circuit 300 further comprises a bias voltage control circuit 302 (MTJ sensing circuit regulator) configured for providing the modulated bias voltage V.sub.bias(T) to the MTJ sensing circuit 100. The correction circuit 300 also comprises an analog front-end amplifier 303 in which the output voltage V.sub.out is inputted. The correction circuit 300 can be designed as a CMOS on-chip device.

    [0042] Generally, the MTJ sensing circuit 100 has a sensitivity G(T) that is subject to a monotonically decreasing function as temperature T increases. More particularly, the sensitivity G(T) varies more strongly with temperatures below 25° C. and varies less with temperatures above 25° C. Thus, the temperature function ƒ(T) of the sensitivity G(T) is not linear with temperature.

    [0043] In an embodiment, a constant (non-modulated) bias voltage V.sub.bias is inputted in the MTJ sensing circuit 100. The sensitivity G(T) of the MTJ sensing circuit 100 is then measured over a range of temperatures T at fixed intervals. The sensitivity G(T) corresponds to mV/V/mT, i.e., mV of output V.sub.out for V of bias voltage V.sub.bias for mT of applied magnetic field. The measured sensitivity G(T) is then tabulated and normalized to 25° C. such as to obtain normalized coefficients for each interval. The normalized coefficients are then inverted and used to scale the bias voltage V.sub.bias. The result yields a flat sensitivity G(T) over temperature T.

    [0044] In another embodiment, the output voltage V.sub.out is multiplied with a linear temperature function ƒ(T) such that the output voltage V.sub.out is increased with increasing temperature, yielding a flat sensitivity G(T) over temperature, in other words, compensating the loss in the sensitivity G(T). The linear temperature function ƒ(T) can be based on a first order curve fit.

    [0045] In yet another embodiment, the bias voltage V.sub.bias is varied with a positive temperature slope that is complementary to the loss in the sensitivity G(T) with temperature. In this configuration, the MTJ sensing circuit 100 is used as a multiplier that scales the output voltage V.sub.out according to the bias voltage V.sub.bias.

    [0046] This configuration can be implemented by biasing MTJ sensing circuit 100 with an adjustable temperature independent voltage mixed with a temperature dependent voltage that is proportional to absolute temperature (PTAT).

    [0047] More particularly, the temperature sensor circuit 301 (reference generator) is combined with the bias voltage control circuit 302 (MTJ sensing circuit regulator) into one stage of circuitry (see FIG. 9) that uses a single operational amplifier. The inputs to this stage are a combination of temperature-independent currents (I.sub.poly Down) and PTAT currents (I.sub.ptatRef). The stage contains an array of selectable current mirrors (current DAC) that act as a DAC, scaling the two current sources (I.sub.polyoffset, I.sub.ptat) which are injected into the operational amplifier circuit which converts the currents to voltages which are summed together to generate the desired temperature dependent output reference (V.sub.bias). A 5 bit code adjusts the fixed component of the bias voltage V.sub.bias while another 5 bit code adjusts the PTAT component of the bias voltage V.sub.bias. Both PTAT and fixed voltages are required since using a PTAT by itself is not possible. Indeed, for PTAT voltages, the stronger the slope is, the larger the voltage at 25° C. Voltage and slope are dependent functions.

    [0048] In yet another embodiment, the linear temperature function ƒ(T) comprises two different slopes, namely a first slope for temperatures T below 25° C. and a second slope for temperatures T equal or above 25° C. The two-slope linear temperature function ƒ(T) allows for better, more effective, temperature compensation.

    [0049] This embodiment can be implemented similarly as for the third variant, but for two different slopes of the temperature function ƒ(T). FIG. 10 shows how a PTAT current I.sub.ptat into a resistor R.sub.ptatx is used to determine the IC temperature T. The voltage across the resistor R.sub.ptatx directly scales with temperature T in degrees Kelvin. Putting a comparator 311 on this temperature dependent voltage allows the selection of two different pairs of 5 bit codes for the current DACs that change its compensation slope when the temperature transitions through 25° C.

    [0050] A dual slope approximation to the ideal correction curve can be implemented. Adding filtering to the output of the bias voltage control circuit 302 (regulator output) can help reduce glitching during the transition. The comparator 311 has hysteresis to avoid chattering near the transition. The circuitry of FIG. 11 can still be used, but now the two pairs of 5 bit codes are changed when the temperature crosses 25° C. The number of bits is not necessarily 5 (for example it can be 6bits), this is specific to the specifications required for the implementation. A two-way digital multiplexer (not shown) that is triggered by the comparator output V.sub.comp (labelled “TempAbove25c” in FIG. 12) selects between two different pairs of digital numbers stored in a memory or is hard-wired.

    [0051] In yet another embodiment, the loss in the sensitivity G(T) with temperature is characterized for several temperature subranges. For each temperature subrange, a reference voltage V.sub.ref is defined and inputted in the bias amplifier of the MTJ sensing circuit 100, wherein the reference voltage V.sub.ref changes for each temperature subrange according to a digital look up table (LUT). For example, for the temperature range of −40° C. to 125° C., a reference voltage V.sub.ref and a bias voltage V.sub.bias is defined for each temperature subrange of 10° C. The temperature subrange does not need to be 10° C. but can have any suitable value, such as 20° C., 30° C., etc., depending on the degree of accuracy one wishes to have for the temperature compensation of the MTJ sensing circuit 100.

    [0052] To improve the compensation scheme by accounting for the non-linearity of the sensitivity versus the temperature curve, a piecewise linear approximation of the ideal inverse of the temperature sensitivity profile can be implemented. In the illustrated example in FIG. 11, the temperature range from −40° C. to 125° C. is broken into 16 temperature subranges of 10° C. A plurality of temperature dependent voltages V_.sub.Ti(V−40° C., V−30° C., . . . V110° C., V120° C.) are generated by forcing a PTAT current I.sub.ptat into the resistor string comprising a plurality of subrange resistors R.sub.ptat_i (one subrange resistor R.sub.ptat_i for each temperature dependent voltages). The temperature dependent voltages V_.sub.Ti are compared pairwise to a plurality of fixed voltage references V.sub.Ref_Ti (V.sub.ref−30° C., V.sub.ref−20° C., V.sub.ref110° C., Vef120° C.) in a plurality of comparators 312, resulting in a plurality of hysteresis comparator outputs T.sub.aboveM3_Ti(T.sub.aboveM30° C.,T.sub.aboveM20° C., . . . T.sub.aboveM110° C., T.sub.aboveM120° C.)

    [0053] The plurality of hysteresis comparator outputs T.sub.aboveM3_Ti are connected to an array-based memory cell 315 that selects between 16 memory locations priority encoded based on the highest logic HI input (Select0, Select1, Select14, Select15). The array-based memory cell 315 has 16 registers, each register digitally representing the desired analog bias voltage V.sub.bias of the MTJ sensing circuit 100.

    [0054] FIG. 12 shows a DAC that converts the 16 digital codes into a voltage reference V.sub.Ref_Ti for the temperature sensor circuit 301 that changes every 10° C. The exact number of registers and temperature subranges is adjustable, and dependent on the required resolution of temperature compensation.

    [0055] In an alternative configuration, a pair of comparators 312 window a 10° C. span of temperature. The pair of comparators 312 can be arranged such that the window span is moved to different temperature positions based on a measured temperature. In such configuration, only two comparators 312 are required, for any number of temperature subranges that are required.

    [0056] FIG. 13 shows response curves of the MTJ sensing circuit 100 measured in the linear portion at room temperature RT, 125° C. and −20° C., wherein the bias voltage V.sub.bias is not modulated with temperature.

    [0057] FIG. 14 shows response curves of the MTJ sensing circuit 100 measured in the linear portion at room temperature RT, 125° C., 55° C., 85° C., −10° C., and −20° C., wherein the bias voltage V.sub.bias is modulated with temperature in accordance to the method disclosed herein. FIG. 8 shows significant improvement in the temperature compensation behavior of sensitivity observed using the MTJ sensing circuit 100 and the method disclosed herein.

    [0058] It is understood that the present invention is not limited to the exemplary embodiments described above and other examples of implementations are also possible within the scope of the patent claims.

    [0059] For example, the method of the invention can be used to perform similar temperature correction for other type sensors that have a predictable temperature coefficient.

    REFERENCE NUMBERS AND SYMBOLS

    [0060] 10 MTJ sensing element [0061] 100 MTJ sensing circuit [0062] 101 input [0063] 102 output [0064] 2 magnetic tunnel junction [0065] 21 sense ferromagnetic layer [0066] 210 sense magnetization [0067] 22 tunnel barrier layer [0068] 23 pinned ferromagnetic layer [0069] 230 pinned magnetization [0070] 250 sensing axis [0071] 30 correction temperature signal [0072] 300 correction circuit [0073] 301 temperature sensor [0074] 302 bias voltage control circuit [0075] 303 analog front-end amplifier [0076] 311 comparator [0077] 312 comparators [0078] 315 array-based memory cell [0079] H external magnetic field [0080] LP linear portion [0081] T temperature [0082] V.sub.bias bias voltage [0083] V.sub.bias(T) modulated bias voltage [0084] V.sub.out output voltage [0085] V.sub.Ref voltage reference