A low temperature drift linear Hall amplifier circuit and its temperature compensation method
Through the method of constant voltage bias and piecewise linear interpolation, combined with first-order and second-order temperature compensation, the temperature drift of the linear Hall amplifier is reduced, solving the problem of high hardware resource consumption in traditional technology, and achieving high-precision temperature Compensated and high signal-to-noise ratio Hall sensor.
Patent Information
- Application Number
- CN202111424824.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-26
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-11-26
AI Technical Summary
The traditional current rotation linear Hall amplifier temperature compensation structure consumes a lot of hardware resources in the process of reducing temperature drift, and the fractional multiplier consumes a lot of resources.
The method of constant voltage bias and piecewise linear interpolation is used for first-order and second-order temperature compensation, and the first-order temperature compensation is performed through the preamplifier to control the temperature drift within the full temperature range within 5%, and the temperature sensor and interpolator are used for Second-order temperature compensation, fine-tuning constant voltage bias, reducing temperature drift to ±0.5% range, avoiding the use of sensitivity control codes and decimal multipliers.
It achieves reduced temperature drift while reducing hardware resource consumption, improves the initial sensitivity and signal-to-noise ratio of Hall devices, and facilitates system-level temperature compensation.
Smart Images

Figure CN114094952B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of temperature compensation of linear Hall amplifiers, and in particular to a low-temperature drift linear Hall amplifier circuit and a temperature compensation method thereof. Background Art
[0002] The linear Hall amplifier circuit is a key component of linear Hall sensor chips. It is used to convert the magnetic field perpendicular to the chip surface into an electrical signal and linearly amplify the output. Its main uses include: current sensor applications, such as high-voltage motor drive circuits, battery pack current detection, photovoltaic inverters, etc.; position sensor applications, such as magnetic angle encoders, magnetic linear position sensors, etc. Most applications require a wide temperature range and require stable sensitivity. Therefore, high-precision linear Hall amplifiers will integrate temperature compensation circuits to achieve lower temperature drift characteristics.
[0003] The traditional current rotation linear Hall amplifier temperature compensation structure uses a constant current source IB to excite the Hall device H1 to achieve a good temperature coefficient of the circuit, which can achieve a temperature drift of about 5% over the full temperature range. However, to further reduce the temperature drift, it is also necessary to adjust the gain control code of the variable gain amplifier at different temperature points to offset the temperature drift residue of the constant current bias. The temperature sensor obtains the current temperature value tc, and obtains the sensitivity correction code ktc at the current temperature through a table lookup / interpolator, and multiplies it with the sensitivity control code gc to output the actual gain control code gain of the variable gain amplifier. Since the sensitivity correction code ktc is a decimal close to 1, when the sensitivity control code gc is small, the temperature compensation accuracy is limited by the 1LSB actual gain control code and the truncation algorithm, and the decimal multiplier consumes a lot of hardware resources.
[0004] In view of this, this application is hereby filed. Summary of the invention
[0005] The technical problem to be solved by the present invention is that the traditional current rotation type linear Hall amplifier temperature compensation structure consumes a lot of hardware resources in the process of reducing temperature drift. The purpose is to provide a low temperature drift linear Hall amplifier circuit and its temperature compensation method, which performs first-order temperature compensation on the pre-amplifier to control the temperature drift within 5% in the whole temperature range, and then uses the temperature interpolation circuit to perform second-order temperature compensation, fine-tune the constant voltage bias, and reduce the temperature drift to ±0.5%; and, in the process of reducing temperature drift, no sensitivity control code is used, and there is no need to use the method of multiplying the sensitivity correction code and the control code to output the actual gain control code of the variable gain amplifier, thereby reducing the resource consumption of the fractional multiplier. Thereby, the temperature drift is reduced while reducing the consumption of hardware resources.
[0006] The present invention is achieved through the following technical solutions:
[0007] On the one hand, the present invention proposes a low-temperature drift linear Hall amplifier circuit, comprising: a temperature sensor, a register, an interpolator and a low-voltage dropout regulator, a Hall device and a pre-amplifier for first-order temperature compensation; the output ends of the temperature sensor and the register are connected to the input end of the interpolator, the output end of the interpolator is connected to the input end of the low-voltage dropout regulator through a Boolean operator, the output end of the low-voltage dropout regulator is connected to the input end of the Hall device, and the output end of the Hall device is connected to the input end of the pre-amplifier through a chopper modulation switch circuit.
[0008] The invention proposes a low-temperature drift linear Hall amplifier circuit which adopts a constant voltage bias and a piecewise linear interpolation method to make up for the defect of large hardware resource consumption in the process of reducing temperature drift in the traditional current rotation linear Hall amplifier temperature compensation structure. First, a constant voltage bias is used in the circuit to increase the output voltage of the Hall device to maintain the high initial sensitivity of the Hall device. The constant voltage bias is realized by a low voltage difference linear regulator, and a stable voltage that does not change with temperature can be output; second, two temperature compensations are combined, wherein the preamplifier first performs first-order temperature compensation to control the temperature drift of the whole temperature range within 5%, and then uses a temperature sensor, a register (for storing a temperature compensation correction code input from the outside) and an interpolator to perform piecewise linear interpolation to achieve second-order temperature compensation, fine-tune the constant voltage bias, and reduce the temperature drift to the range of ±0.5%; third, the constant voltage bias is fine-tuned by outputting the temperature compensation correction code from the outside, which is easy to achieve temperature compensation at the system level. Therefore, compared with the traditional current rotation type linear Hall amplifier temperature compensation structure, the low temperature drift linear Hall amplifier circuit provided by the present invention does not use a sensitivity control code in the process of reducing temperature drift, and does not need to adopt the traditional method of multiplying the sensitivity correction code and the control code to output the actual gain control code of the variable gain amplifier, thereby reducing the resource consumption of the fractional multiplier.
[0009] As a further description of the present invention, the low-temperature drift linear Hall amplifier circuit also includes: an upper voltage-dividing resistor Ru and a lower voltage-dividing resistor Rb; one end of the upper voltage-dividing resistor Ru is connected to the Boolean operator, and the other end is connected between the output end of the low-voltage difference regulator and the input end of the Hall device; one end of the lower voltage-dividing resistor Rb is connected to the Boolean operator, and the other end is connected to the ground end of the Hall device.
[0010] As a further description of the present invention, the low-temperature drift linear Hall amplifier circuit further includes: a digital-to-analog converter, wherein the digital-to-analog converter is connected between the interpolator and the Boolean operator.
[0011] As a further description of the present invention, the low-temperature drift linear Hall amplifier circuit also includes: a differential amplifier and a chopper demodulation switch circuit; the pre-amplifier, the differential amplifier and the chopper demodulation switch circuit are connected in sequence.
[0012] As a further description of the present invention, the pre-amplifier includes: an input transconductance stage gm1, a load Hall resistor Rh1a, a load Hall resistor Rh1b and an output common-mode bias voltage vcm1; the positive input terminal of the pre-amplifier is connected to the positive input terminal of the input transconductance stage gm1, and the negative input terminal of the pre-amplifier is connected to the negative input terminal of the input transconductance stage gm1; the positive output terminal of the input transconductance stage gm1 is connected to one end of the load Hall resistor Rh1b, and the negative output terminal is connected to one end of the load Hall resistor Rh1a; the other end of the load Hall resistor Rh1b and the other end of the load Hall resistor Rh1a are simultaneously connected to the output common-mode bias voltage vcm1.
[0013] On the other hand, the present invention provides a temperature compensation method for a low temperature drift linear Hall amplifier circuit, comprising the following steps:
[0014] Within the operating temperature range of the Hall device, the temperature sensor measures and obtains a plurality of test temperature values, wherein the plurality of test temperature values divide the operating temperature range of the Hall device into a plurality of temperature intervals;
[0015] Obtain a correction code corresponding to each test temperature value to obtain multiple correction codes;
[0016] A plurality of interpolation points are set in each temperature interval, and the interpolator performs linear interpolation at the plurality of interpolation points in each temperature interval according to the plurality of correction codes and the plurality of test temperature values, to obtain correction code words corresponding to each test temperature value in the entire operating temperature range, and form a correction code sequence;
[0017] The constant voltage bias output by the low-dropout regulator is fine-tuned according to the correction code sequence to achieve temperature compensation.
[0018] As a further description of the present invention, the difference between the temperature values at both ends of each temperature interval is equal.
[0019] As a further description of the present invention, the method for obtaining the correction code comprises the following steps:
[0020] Obtaining a sensitivity deviation value corresponding to the test temperature value;
[0021] Setting a correction code step length, and obtaining a constant voltage bias adjustment amount according to the correction code step length and the sensitivity deviation value;
[0022] The correction code is calculated according to the constant voltage bias adjustment amount.
[0023] As a further description of the present invention, the method for obtaining the correction code comprises the following steps:
[0024] Selecting a plurality of correction codes to form a correction code sequence to be tested, wherein the plurality of correction codes in the correction code sequence to be tested are arranged in ascending order;
[0025] For each test temperature value, the calibration codes to be tested are input into the circuit one by one in ascending order, and the calibration code to be tested that makes the sensitivity deviation value zero or the sensitivity deviation value the smallest is selected as the calibration code.
[0026] As a further description of the present invention, the method of linear difference comprises the following steps:
[0027] Get the actual temperature value output by the temperature sensor;
[0028] The temperature interval in which the actual temperature value is located is determined, and a correction code corresponding to the actual temperature value is obtained using a linear interpolation formula.
[0029] As a further description of the present invention, the linear difference formula is expressed as: CAL(T)=[CAL(n+1)-CAL(n)]×[T–T(n)] / [T(n+1)-T(n)]+CAL(n); wherein T represents the actual temperature value output by the temperature sensor, CAL(T) is the correction code obtained by the difference under the actual temperature value, CAL(n) represents the correction code corresponding to each test temperature value, and T(n) represents each test temperature value.
[0030] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0031] 1. A low-temperature drift linear Hall amplifier circuit and a temperature compensation method thereof provided by an embodiment of the present invention can perform real-time temperature compensation and automatically adjust the sensitivity to a range of + / -0.5% within the full temperature range;
[0032] 2. A low-temperature drift linear Hall amplifier circuit and a temperature compensation method thereof provided by an embodiment of the present invention, after two temperature compensations, the bias voltage of the Hall device is higher than that of the traditional current mode, the initial sensitivity of the linear Hall sensor is large, and the signal-to-noise ratio is high;
[0033] 3. A low-temperature drift linear Hall amplifier circuit and a temperature compensation method thereof provided in an embodiment of the present invention fine-tune the constant voltage bias by outputting a temperature compensation correction code from the outside, which is easy to implement temperature compensation at the system level. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0035] Figure 1 A schematic diagram of a temperature compensation structure of a conventional current rotation type linear Hall amplifier provided in Example 1 of the present invention;
[0036] Figure 2 A schematic diagram of a low-temperature drift linear Hall amplifier circuit structure provided in Example 1 of the present invention;
[0037] Figure 3 This is a schematic diagram of the internal wiring of the linear difference circuit provided in Example 1 of the present invention.
[0038] Figure 4 Schematic diagram of the linear difference principle provided in Example 2 of the present invention
[0039] Marks and corresponding parts names in the attached drawings:
[0040] 11-temperature sensor, 12-register, 13-interpolator, 14-low dropout regulator, 15-Boolean operator, 16-digital-to-analog converter, 2-Hall device, 3-pre-amplifier, 4-chopper modulation switch circuit, 5-differential amplifier, 6-chopper demodulation switch circuit. DETAILED DESCRIPTION
[0041] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with embodiments and drawings. The exemplary embodiments of the present invention and their description are only used to explain the present invention and are not intended to limit the present invention.
[0042] In the following description, a large number of specific details are set forth in order to provide a thorough understanding of the present invention. However, it is apparent to one of ordinary skill in the art that these specific details are not necessarily employed to practice the present invention. In other embodiments, in order to avoid obscuring the present invention, well-known structures, circuits, materials, or methods are not specifically described.
[0043] Throughout the specification, references to "one embodiment," "an embodiment," "an example," or "an example" mean that a particular feature, structure, or characteristic described in conjunction with the embodiment or example is included in at least one embodiment of the present invention. Therefore, the phrases "one embodiment," "an embodiment," "an example," or "an example" appearing in various places throughout the specification do not necessarily all refer to the same embodiment or example. In addition, particular features, structures, or characteristics may be combined in one or more embodiments or examples in any suitable combination and / or sub-combination. In addition, it will be appreciated by those of ordinary skill in the art that the figures provided herein are for illustrative purposes and that the figures are not necessarily drawn to scale. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.
[0044] In the description of the present invention, the directions or positional relationships indicated by terms such as “front”, “rear”, “left”, “right”, “up”, “down”, “vertical”, “horizontal”, “high”, “low”, “inside” and “outside” are based on the directions or positional relationships shown in the accompanying drawings and are only for the convenience of describing the present invention and simplifying the description. They do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction. Therefore, they should not be understood as limiting the scope of protection of the present invention.
[0045] Example 1
[0046] Figure 1 It is a traditional current rotation type linear Hall amplifier temperature compensation structure. It uses a constant current source IB to excite the Hall device H1 to achieve a good temperature coefficient of the circuit. It can achieve a temperature drift of about 5% in the full temperature range. However, to further reduce the temperature drift, it is also necessary to adjust the gain control code of the variable gain amplifier at different temperature points to offset the temperature drift residue of the constant current bias. As shown in the figure, the temperature sensor obtains the current temperature value tc, and obtains the sensitivity correction code ktc at the current temperature through the table lookup / interpolator, and multiplies it with the sensitivity control code gc to output the actual gain control code gain of the variable gain amplifier. Since the sensitivity correction code ktc is a decimal close to 1, when the sensitivity control code gc is small, the temperature compensation accuracy is limited by the 1LSB actual gain control code and the truncation algorithm, and the decimal multiplier consumes a lot of hardware resources.
[0047] In order to overcome the above-mentioned defects of the conventional current rotation type linear Hall amplifier temperature compensation structure, this embodiment provides a low temperature drift linear Hall amplifier circuit, such as Figure 2As shown, it includes: a temperature sensor 11, a register 12, an interpolator 13 and a low-voltage dropout regulator 14, a Hall device 2 and a pre-amplifier 3 for first-order temperature compensation; the output ends of the temperature sensor 11 and the register 12 are connected to the input end of the interpolator 13, the output end of the interpolator 13 is connected to the input end of the low-voltage dropout regulator 14 through a Boolean operator 15, the output end of the low-voltage dropout regulator 14 is connected to the input end of the Hall device 2, and the output end of the Hall device 2 is connected to the input end of the pre-amplifier 3 through a chopper modulation switch circuit 4.
[0048] in,
[0049] The temperature sensor 11, the register 12 and the interpolator 13 jointly realize piecewise linear interpolation, and the low voltage difference regulator 14 is used for constant voltage bias to increase the output voltage of the Hall device 2 to maintain the high initial sensitivity of the Hall device 2. In addition, the low temperature drift linear Hall amplifier circuit also includes: an upper voltage divider resistor Ru, a lower voltage divider resistor Rb and a digital-to-analog converter 16; one end of the upper voltage divider resistor Ru is connected to the Boolean operator 15, and the other end is connected between the output end of the low voltage difference regulator 14 and the input end of the Hall device 2; one end of the lower voltage divider resistor Rb is connected to the Boolean operator 15, and the other end is connected to the ground end of the Hall device 2, and the digital-to-analog converter 16 is connected between the interpolator 13 and the Boolean operator 15.
[0050] In the above-mentioned low-temperature drift linear Hall amplifier structure, the pre-amplifier first performs first-order temperature compensation to control the temperature drift within the full temperature range within 5%, and then uses the temperature sensor 11, register 12 and interpolator 13 to perform piecewise linear interpolation to achieve second-order temperature compensation and fine-tune the constant voltage bias to reduce the temperature drift to the range of ±0.5%.
[0051] The temperature sensor 11, the register 12, the interpolator 13, the upper voltage divider resistor Ru, the lower voltage divider resistor Rb and the digital-to-analog converter 16 together form a second-order temperature compensation circuit, and its internal wiring relationship is as follows: Figure 3 As shown. Figure 3It can be seen from the analysis that the temperature compensation circuit is composed of an external input correction code, a temperature sensor 11, a 5-bit adjustable pull-up current source Iu, a switch Su in series with Iu, a 5-bit adjustable pull-down current source Ib, a switch Sb in series with Ib, and an LDO main circuit unit ALDO amplifier, an MP1 adjustment tube, an upper voltage divider resistor Ru, and a lower voltage divider resistor Rb. The correction code is connected to the temperature sensor 11, and the temperature sensor 11 outputs a 6-bit control code, in which msb is connected to the control input of the upper open tube and the lower switch. When msb is a high effective bit, the upper switch Su is turned on and the lower switch Sb is turned off; when msb is a low effective bit, the upper switch Su is turned off and the lower switch Sb is turned on; the remaining 5-bit control code controls the output current value of the upper current source Iu and the lower current source Ib. The switch Su is connected between the upper current source Iu and the LDO feedback node vfb_ldo, and the switch Sb is connected between the upper current source Ib and the LDO feedback node vfb_ldo. The external input correction code and the current temperature code of the temperature sensor 11 jointly generate the required 6-bit control code to set the output value and gating of the 5-bit adjustable current source Iu, Ib. The bias voltage VLDO of the Hall device 2H1 is written as: VLDO = vref × (Ru + Rb) / Rb ± I × Ru. Among them, the first item is a fixed item, which is about 75% of the power supply voltage; the second item is a temperature compensation item, I is the current source Iu or Ib selected by the switch Su, Sb, the "+" sign corresponds to Sb conduction, and the "-" sign corresponds to Su conduction.
[0052] Furthermore, the low-temperature drift linear Hall amplifier circuit also includes: a differential amplifier 5 and a chopping demodulation switch circuit 6; the pre-amplifier, the differential amplifier 5) and the chopping demodulation switch circuit 6 are connected in sequence.
[0053] Furthermore, the preamplifier 3 includes: an input transconductance stage gm1, a load Hall resistor Rh1a, a load Hall resistor Rh1b and an output common-mode bias voltage vcm1; the positive input terminal of the preamplifier 3 is connected to the positive input terminal of the input transconductance stage gm1, and the negative input terminal of the preamplifier 3 is connected to the negative input terminal of the input transconductance stage gm1; the positive output terminal of the input transconductance stage gm1 is connected to one end of the load Hall resistor Rh1b, and the negative output terminal is connected to one end of the load Hall resistor Rh1a; the other end of the load Hall resistor Rh1b and the other end of the load Hall resistor Rh1a are simultaneously connected to the output common-mode bias voltage vcm1. Figure 1It can be seen that the preamplifier 3 consists of a positive input port 1pi, a negative input port 1ni, an input transconductance stage gm1, load Hall resistors Rh1a and Rh1b, and an output common-mode bias vcm1. The positive input terminal 1pi of the preamplifier 3 is connected to the positive input terminal of the input transconductance stage gm1, and the negative input terminal of the preamplifier 3 is connected to the negative input terminal of the input transconductance stage gm1; the positive output terminal 2p of the transconductance stage is connected to the Hall load resistor Rh1b; the negative output terminal 2n of the transconductance stage is connected to the Hall load resistor Rh1a; the other ends of the two Hall load resistors Rh1a and Rh1b are simultaneously connected to the common-mode voltage vcm1. The differential output voltage 2p–2n of the preamplifier can be expressed as:
[0054] V1o=1po–1no=gm1×vh×Rh1=gm1×K×VLDO / Rh×B×Rh1,
[0055] A1=V1o / B=gm1×K×VLDO×Rh1 / Rh.
[0056] The pre-amplifier differential output voltage gain A1 offsets most of the temperature drift of the Hall device 2H1 through the Rh1 / Rh ratio, thereby achieving the first-order temperature compensation effect; the second term is the DC offset amplification output. Where Rh1 = Rh1a + Rh1b, Rh is the equivalent resistance of the Hall disk H1, B is the external magnetic field, and K is a constant.
[0057] Compared with the traditional current rotation type linear Hall amplifier temperature compensation structure, the low temperature drift linear Hall amplifier circuit provided in this embodiment has the following advantages: first, a constant voltage bias is used in the circuit to increase the output voltage of the Hall device 2 to maintain the high initial sensitivity of the Hall device 2. The constant voltage bias is realized by a low voltage difference linear regulator, and a stable voltage that does not change with temperature can be output; second, two temperature compensations are combined, wherein the preamplifier first performs first-order temperature compensation to control the temperature drift within the full temperature range within 5%, and then uses the temperature sensor 11, the register 12 (used to store the temperature compensation correction code input from the outside) and the interpolator 13 to perform piecewise linear interpolation to achieve second-order temperature compensation, fine-tune the constant voltage bias, and reduce the temperature drift to the range of ±0.5%. Therefore, the low temperature drift linear Hall amplifier circuit provided in this embodiment does not use the sensitivity control code in the process of reducing the temperature drift, and does not need to use the traditional method of multiplying the sensitivity correction code and the control code to output the actual gain control code of the variable gain amplifier, thereby reducing the consumption of resources by the fractional multiplier.
[0058] Example 2
[0059] Corresponding to Embodiment 1, this embodiment provides a temperature compensation method for a low-temperature drift linear Hall amplifier circuit, comprising the following steps:
[0060] Step 1: Within the operating temperature range of the Hall device, the temperature sensor measures multiple test temperature values. The operating temperature range of the Hall device selected in this implementation is -50℃~125℃. A total of 8 temperature points, including -50℃, -25℃, 0℃, 25℃, 50℃, 75℃, 100℃ and 125℃, are measured by taking a temperature point every 25℃, and the operating temperature range of the Hall device is evenly divided into 7 intervals.
[0061] Step 2: For the 8 measured temperature points, obtain the sensitivity deviation value corresponding to each temperature point, and use temperature as the horizontal axis and sensitivity deviation value as the vertical axis to plot the above 8 temperature points and their corresponding 8 sensitivity deviation values as shown below: Figure 4 In the linear difference coordinate diagram shown in the figure, the horizontal axis represents the temperature change, and the vertical axis represents the deviation of the sensitivity at each temperature from 25°C, so the sensitivity deviation corresponding to 25°C is 0. The solid line represents the measured change of sensitivity with temperature, and the dotted line represents the value of piecewise linear interpolation.
[0062] Step 3: According to each sensitivity deviation value, calculate the amount that the constant voltage bias VLDO needs to be adjusted to obtain the corresponding correction code. Taking 0℃ as an example, its corresponding correction code can be obtained by the preset codeword adjustment step. For example, the sensitivity deviation at 0℃ is 2%, and the preset correction code step is 0.25%. Then the range to be adjusted is 2% / 0.25%=8, so 8 needs to be subtracted from the default codeword at 0℃. The correction code can also be adjusted in actual testing to obtain the codeword without sensitivity deviation, which is the correction code corresponding to 0℃. For example, test the sensitivity at 0℃, input the correction code from low to high, and select the codeword with the smallest sensitivity deviation as the correction code corresponding to 0℃.
[0063] Step 4: In addition to the correction codes corresponding to the above 8 temperature points, the correction codes of the remaining temperature points are implemented by a linear interpolator. For example, multiple interpolation points are set in each temperature interval, and the interpolator performs linear interpolation at multiple interpolation points in each temperature interval according to the multiple correction codes and the multiple test temperature values, and obtains the correction code words corresponding to each test temperature value in the entire working temperature range to form a correction code sequence; the constant voltage bias output by the low-dropout regulator is fine-tuned according to the correction code sequence to achieve temperature compensation. In this embodiment, CALN (N = 1 ~ 8) is used to represent the correction code words of 8 test temperature points between -50 ° C and 125 ° C, an interpolation point is set every 2 ° C, and the value of the interpolation point is obtained by a linear formula; T is used to represent the actual output of the temperature sensor, TN (N = 1 ~ 8) represents the output of the temperature sensor at eight test points, and CAL (T) represents the correction code at each temperature. The specific calculation process is as follows:
[0064] The actual temperature value T output by the temperature sensor is obtained, and the temperature interval in which the actual temperature value T is located is determined. Assuming that the actual temperature value T is in the second section (-25°C to 0°C interval), then CAL(T) = (CAL3-CAL2) × (T-T2) / (T3-T2) + CAL2. The formula uses a multiplier and a divider, but in the present invention, these values are all integer codewords. The number of interpolation points is designed. For example, 7 points are inserted in the middle and divided into 8 sections. Then the length of each section is (CAL3-CAL2) / 2^3). The selection can make the multiplication and division amounts all integer multiples of 2. This is only a shift register operation in the circuit implementation, and only a small number of dividers are needed to achieve it.
[0065] As a further description of the present invention, the method for obtaining the correction code comprises the following steps:
[0066] Selecting a plurality of correction codes to form a correction code sequence to be tested, wherein the plurality of correction codes in the correction code sequence to be tested are arranged in ascending order;
[0067] For each test temperature value, the calibration codes to be tested are input into the circuit one by one in ascending order, and the calibration code to be tested that makes the sensitivity deviation value zero or the sensitivity deviation value the smallest is selected as the calibration code.
[0068] As a further description of the present invention, the method of linear difference comprises the following steps:
[0069] Get the actual temperature value output by the temperature sensor;
[0070] The temperature interval in which the actual temperature value is located is determined, and a correction code corresponding to the actual temperature value is obtained using a linear interpolation formula.
[0071] As a further description of the present invention, the linear difference formula is expressed as: CAL(T)=[CAL(n+1)-CAL(n)]×[T–T(n)] / [T(n+1)-T(n)]+CAL(n); wherein T represents the actual temperature value output by the temperature sensor, CAL(T) is the correction code obtained by the difference under the actual temperature value, CAL(n) represents the correction code corresponding to each test temperature value, and T(n) represents each test temperature value.
[0072] The present embodiment provides a temperature compensation method for a low-temperature drift linear Hall amplifier circuit, which fine-tunes the constant voltage bias by outputting a temperature compensation correction code from the outside, and is easy to implement temperature compensation at the system level.
[0073] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A temperature compensation method for a low temperature drift linear Hall amplifier circuit, characterized in that: The temperature compensation method is used in a low-temperature drift linear Hall amplifier circuit, which comprises: a temperature sensor (11), a register (12), an interpolator (13), a low-voltage dropout regulator (14), a Hall device (2), and a preamplifier (3) for first-order temperature compensation; the output ends of the temperature sensor (11) and the register (12) are connected to the input end of the interpolator (13), the output end of the interpolator (13) is connected to the input end of the low-voltage dropout regulator (14) through a Boolean operator (15), the output end of the low-voltage dropout regulator (14) is connected to the input end of the Hall device (2), and the output end of the Hall device (2) is connected to the input end of the preamplifier (3) through a chopping modulation switch circuit (4); It also comprises: an upper voltage-dividing resistor Ru, a lower voltage-dividing resistor Rb and a digital-to-analog converter (16); one end of the upper voltage-dividing resistor Ru is connected to the Boolean operator (15), and the other end is connected between the output end of the low-voltage-difference regulator (14) and the input end of the Hall device (2); one end of the lower voltage-dividing resistor Rb is connected to the Boolean operator (15), and the other end is connected to the ground end of the Hall device (2); the digital-to-analog converter (16) is connected between the interpolator (13) and the Boolean operator (15); The preamplifier (3) comprises: an input transconductance stage gm1, a load Hall resistor Rh1a, a load Hall resistor Rh1b and an output common-mode bias voltage vcm1; the positive input terminal of the preamplifier (3) is connected to the positive input terminal of the input transconductance stage gm1, and the negative input terminal of the preamplifier (3) is connected to the negative input terminal of the input transconductance stage gm1; the positive output terminal of the input transconductance stage gm1 is connected to one end of the load Hall resistor Rh1b, and the negative output terminal is connected to one end of the load Hall resistor Rh1a; the other end of the load Hall resistor Rh1b and the other end of the load Hall resistor Rh1a are simultaneously connected to the output common-mode bias voltage vcm1; The temperature compensation method includes the following steps: Within the operating temperature range of the Hall device, the temperature sensor measures and obtains a plurality of test temperature values, wherein the plurality of test temperature values divide the operating temperature range of the Hall device into a plurality of temperature intervals; Obtain a correction code corresponding to each test temperature value to obtain multiple correction codes; A plurality of interpolation points are set in each temperature interval, and the interpolator performs linear interpolation at the plurality of interpolation points in each temperature interval according to the plurality of correction codes and the plurality of test temperature values, to obtain correction code words corresponding to each test temperature value in the entire operating temperature range, and form a correction code sequence; The constant voltage bias output by the low-dropout regulator is fine-tuned according to the correction code sequence to achieve temperature compensation.
2. The temperature compensation method for a low-temperature drift linear Hall amplifier circuit according to claim 1, characterized in that: The low-temperature drift linear Hall amplifier circuit also includes: a differential amplifier (5) and a chopping demodulation switch circuit (6); the preamplifier (3), the differential amplifier (5) and the chopping demodulation switch circuit (6) are connected in sequence.
3. The temperature compensation method for a low temperature drift linear Hall amplifier circuit according to claim 1, characterized in that: The difference between the temperature values at both ends of each temperature interval is equal.
4. The temperature compensation method for a low temperature drift linear Hall amplifier circuit according to claim 1, characterized in that: The method for obtaining the correction code comprises the following steps: Obtaining a sensitivity deviation value corresponding to the test temperature value; Setting a correction code step length, and obtaining a constant voltage bias adjustment amount according to the correction code step length and the sensitivity deviation value; The correction code is calculated according to the constant voltage bias adjustment amount.
5. The temperature compensation method for a low temperature drift linear Hall amplifier circuit according to claim 1, characterized in that: The method for obtaining the correction code comprises the following steps: Selecting a plurality of correction codes to form a correction code sequence to be tested, wherein the plurality of correction codes in the correction code sequence to be tested are arranged in ascending order; For each test temperature value, the calibration codes to be tested are input into the circuit one by one in ascending order, and the calibration code to be tested that makes the sensitivity deviation value zero or the sensitivity deviation value the smallest is selected as the calibration code.
6. The temperature compensation method for a low temperature drift linear Hall amplifier circuit according to claim 1, characterized in that: The linear interpolation method comprises the following steps: Get the actual temperature value output by the temperature sensor; The temperature interval in which the actual temperature value is located is determined, and a correction code corresponding to the actual temperature value is obtained using a linear interpolation formula.
7. The temperature compensation method for a low temperature drift linear Hall amplifier circuit according to claim 6, characterized in that: The linear interpolation formula is expressed as: CAL(T)=[CAL(n+1)-CAL(n)]×[T–T(n)] / [T(n+1)-T(n)]+CAL(n); wherein T represents the actual temperature value output by the temperature sensor, CAL(T) is the correction code obtained by the difference under the actual temperature value, CAL(n) represents the correction code corresponding to each test temperature value, and T(n) represents each test temperature value.
Citation Information
Cited By
High-sensitivity temperature compensation Hall switch device
CN120896576A
