WO2023071720A1 - Hall sensor temperature compensation circuit and hall sensor temperature compensation method - Google Patents

Hall sensor temperature compensation circuit and hall sensor temperature compensation method Download PDF

Info

Publication number
WO2023071720A1
WO2023071720A1 PCT/CN2022/123751 CN2022123751W WO2023071720A1 WO 2023071720 A1 WO2023071720 A1 WO 2023071720A1 CN 2022123751 W CN2022123751 W CN 2022123751W WO 2023071720 A1 WO2023071720 A1 WO 2023071720A1
Authority
WO
WIPO (PCT)
Prior art keywords
temperature
compensation
module
hall sensor
analog
Prior art date
Application number
PCT/CN2022/123751
Other languages
French (fr)
Chinese (zh)
Inventor
吕阳
叶明盛
张坡
侯晓伟
武鹏
彭懋
Original Assignee
宁波中车时代传感技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 宁波中车时代传感技术有限公司 filed Critical 宁波中车时代传感技术有限公司
Publication of WO2023071720A1 publication Critical patent/WO2023071720A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05FSYSTEMS FOR REGULATING ELECTRIC OR MAGNETIC VARIABLES
    • G05F1/00Automatic systems in which deviations of an electric quantity from one or more predetermined values are detected at the output of the system and fed back to a device within the system to restore the detected quantity to its predetermined value or values, i.e. retroactive systems
    • G05F1/10Regulating voltage or current
    • G05F1/46Regulating voltage or current wherein the variable actually regulated by the final control device is dc
    • G05F1/56Regulating voltage or current wherein the variable actually regulated by the final control device is dc using semiconductor devices in series with the load as final control devices
    • G05F1/565Regulating voltage or current wherein the variable actually regulated by the final control device is dc using semiconductor devices in series with the load as final control devices sensing a condition of the system or its load in addition to means responsive to deviations in the output of the system, e.g. current, voltage, power factor
    • G05F1/567Regulating voltage or current wherein the variable actually regulated by the final control device is dc using semiconductor devices in series with the load as final control devices sensing a condition of the system or its load in addition to means responsive to deviations in the output of the system, e.g. current, voltage, power factor for temperature compensation

Definitions

  • the invention belongs to the technical field of sensors, and relates to a Hall sensor, in particular to a Hall sensor temperature compensation circuit and a compensation method thereof.
  • the traditional temperature compensation is divided into analog compensation and digital compensation.
  • the analog mainly realizes the compensation of temperature drift by adjusting the capacitance/resistance
  • the digital mainly realizes the compensation of temperature drift through the look-up table or the temperature characteristic of eradicating the temperature drift through the first-order or second-order calculation of the compensation value. compensate.
  • analog compensation technology such as piezoresistors, etc., which can adjust the sensitivity and the offset of the output zero point with temperature, but this is often at the expense of the sensitivity and the accuracy of the output zero point.
  • the analog compensation technique is fixed, not suitable for production or field-changed compensation and calibration.
  • a Hall sensor temperature compensation circuit comprising:
  • the analog compensation module is connected with the Hall sensing module, and is used for analog compensation to the generated analog voltage signal;
  • the temperature sensor module is used to obtain the current external environment temperature information
  • An output module configured to convert the analog voltage signal after analog compensation to output a digital voltage signal
  • a digital compensation module which includes a compensation calculation unit, the compensation calculation unit generates a corresponding compensation codeword according to the external environment temperature information, and the compensation codeword includes a gain codeword and a drift codeword, and then the gain codeword is used to gain the analog compensation process Compensate, and perform drift compensation on the analog-to-digital conversion process through the drift codeword.
  • the steps for the compensation calculation unit to obtain the compensation codeword include:
  • A2 Configure the temperature inflection point for the compensation calculation unit
  • A3 Divide the temperature range into multiple temperature segments according to the temperature inflection point, and select the gain temperature coefficient and drift temperature coefficient of each temperature segment;
  • A4 Generate compensation codewords according to the preset calculation formula according to the gain temperature coefficient and the drift temperature coefficient.
  • the digital compensation module further includes:
  • the calculation formula for generating the compensation codeword is specifically as follows:
  • gain0 is the gain coefficient of the zero point
  • TC_g is the configured gain temperature coefficient
  • K0 is the voltage coefficient converted according to the reference voltage value
  • K1 is the coefficient used to adjust the zero offset
  • TC_f is the configured drift temperature coefficient
  • T is the temperature Difference.
  • the purpose of the present invention is also to provide a Hall sensor temperature compensation control method, according to the above compensation circuit, measure the external temperature and perform temperature compensation on the Hall sensor.
  • the present invention has the following beneficial effects:
  • the present invention uses a combination of digital and analog compensation for temperature compensation. Compared with conventional analog compensation methods, this design is less dependent on the process, which makes the Hall sensor have higher precision and better circuit consistency. Compared with the implementation of digital look-up table, the required storage space is small, and the response speed of the output signal is faster. Compared with the second-order compensation calculation method, it is simpler, and it is convenient for design and implementation and customer application. Compared with the first-order compensation calculation, the calculation accuracy is higher. High, the compensation range is larger.
  • the built-in temperature sensor is used, and the external temperature information is converted into a bit data stream through the analog-to-digital converter, which is used for the temperature calculation unit to restore the temperature information, so that the obtained temperature information is fast and accurate, and no additional external temperature acquisition device is required.
  • the circuit design is reasonable and efficient.
  • the present invention selects the temperature inflection point and configures the temperature coefficient according to the initial output result of the Hall sensor chip, and then calculates the corresponding compensation code word in combination with the temperature difference, and performs gain adjustment and drift adjustment through the compensation code word.
  • the temperature compensation method has higher accuracy High, practical, small storage space, greatly improving the integration of the Hall sensor chip.
  • Fig. 2 is a structural block diagram of the digital compensation module in the present invention.
  • FIG. 3 is a schematic diagram of gain compensation coefficients and inflection points in the present invention.
  • the present invention provides a Hall sensor temperature compensation circuit, including:
  • Hall sensor module which generates analog voltage signal according to external magnetic field and current
  • the analog compensation module is connected with the Hall sensing module, and is used for analog compensation to the generated analog voltage signal;
  • the temperature sensor module is used to obtain the current external environment temperature information
  • An output module configured to convert the analog voltage signal after analog compensation to output a digital voltage signal
  • a digital compensation module which includes a compensation calculation unit, the compensation calculation unit generates a corresponding compensation codeword according to the external environment temperature information, and the compensation codeword includes a gain codeword and a drift codeword, and then the gain codeword is used to gain the analog compensation process Compensate, and perform drift compensation on the analog-to-digital conversion process through the drift codeword.
  • a Hall sensor temperature compensation circuit uses digital and analog compensation to perform temperature compensation on the voltage signal drift of the Hall sensor chip caused by changes in the external environment temperature, through the Hall sensor module and the analog compensation module Perform analog compensation on the Hall sensor, and perform digital compensation on the Hall sensor through the digital compensation module.
  • this design is less dependent on the process, which makes the Hall sensor have higher precision and circuit consistency.
  • the required storage space is small, the response speed of the output signal is faster, and the calculation method of the second-order compensation is simpler, and it is convenient for design and implementation and customer application.
  • the calculation accuracy is higher and the compensation range is larger.
  • the temperature sensor is used to obtain the current external environment temperature information, and convert the real-time temperature analog signal into a real-time temperature data signal through a built-in digital-to-analog converter.
  • the temperature sensor collects the temperature information of the external environment in real time, and converts the real-time temperature analog signal into a voltage value.
  • the voltage signal is converted into a real-time temperature data signal, that is, the voltage signal is converted into a data stream and output to the temperature calculation unit.
  • the temperature calculation unit restores the code stream information output by the temperature sensor to the ambient temperature, that is, converts the real-time temperature data signal into a real-time temperature signal T1, and calculates the temperature difference T according to T1 and the preset high and low temperature inflection point temperature T0, and the preset high and low temperature inflection point temperature T0 generally takes the normal temperature of 25 degrees Celsius.
  • A1 Judging the appropriate inflection point temperature according to the initial state of the Hall sensor
  • A3 Divide the temperature range into multiple temperature segments according to the temperature inflection point, and select the gain temperature coefficient and drift temperature coefficient of each temperature segment;
  • A4 Generate compensation codewords according to the preset calculation formula according to the gain temperature coefficient and the drift temperature coefficient.
  • gain0 is the gain coefficient of the zero point
  • TC_g is the configured gain temperature coefficient
  • K0 is the voltage coefficient converted according to the reference voltage value
  • K1 is the coefficient used to adjust the zero offset
  • TC_f is the configured drift temperature coefficient
  • T is the temperature Difference.
  • the gain codeword and the drift codeword are obtained through the compensation calculation unit, and the gain codeword is used to adjust the gain of the signal amplification unit (AMP).
  • the working principle of the compensation calculation unit is: first, according to the initial output of the sensor chip The state judges the appropriate inflection point temperature, and then configures the inflection point for the port I_inf_pt_c and port I_inf_pt_h of the compensation calculation unit through the external software, divides the temperature range into multiple temperature segments according to the temperature inflection point, and then selects the temperature coefficient of each temperature segment (TC_g /TC_f), and finally combined with the calculation result T of the temperature difference, the compensation codeword is obtained according to the calculation formula.
  • the temperature range of the Hall sensor is -40 degrees to 125 degrees. According to the initial state of the Hall sensor chip output, select the appropriate inflection point temperature. For example, as shown in Figure 3, divide the temperature into 4 segments, then you need to set 3 inflection point temperatures, such as -20 degrees, 25 degrees, 85 degrees (the temperature point is mainly determined according to the change curve of the chip output results), after selecting the appropriate inflection point temperature, and then through the external software to compensate the calculation unit port I_inf_pt_c and port I_inf_pt_h configures the inflection point, and then further configures the temperature coefficient (TC_g/TC_f) of each temperature segment, and finally combines the temperature difference T to calculate the corresponding gain codeword and drift codeword.
  • 3 inflection point temperatures such as -20 degrees, 25 degrees, 85 degrees (the temperature point is mainly determined according to the change curve of the chip output results)
  • the calculation unit port I_inf_pt_c and port I_inf_pt_h configures the
  • the temperature compensation method provided by this embodiment has higher precision, strong practicability, and small storage space, which greatly improves the integration degree of the Hall sensor chip.
  • the temperature calculation unit includes a DEM module, an LPF module and an AVG module, wherein the specific work of the temperature calculation unit includes steps:
  • B4 Calculate the difference between the real-time temperature signal T1 and the preset inflection point temperature T0 to obtain the temperature difference T.
  • the temperature calculation unit restores the code stream information output by the temperature sensor to the ambient temperature, that is, converts the real-time temperature data signal into a real-time temperature signal T1, and calculates the temperature difference T according to T1 and the preset high and low temperature inflection point temperature T0
  • the specific working process of the temperature calculation unit is as follows: first, the temperature sensor inputs the real-time temperature data signal into the DEM module (extraction module), which extracts the input real-time temperature data signal and performs cumulative calculation, and the cumulative calculation result is input into the LPF module (Digital low-pass filter) followed by discrete convolution, that is, multiplying the corresponding coefficients on consecutive N temperature points and summing them, and then summing and averaging the output results of the LPF module through the AVG module (average module) The real-time temperature signal T1 is obtained, and finally the difference between the real-time temperature signal T1 and the preset high and low temperature inflection point temperature T0 is calculated to obtain the temperature difference T.
  • DEM module extraction module
  • the temperature calculation unit can adjust the gain and offset of the temperature calculation result through the port I_temp_offset_trim and the port I_temp_co_trim through the external software.
  • the port I_tsr_en can turn off the calculation function of the module.
  • the port I_tsr_out_force can output a fixed temperature value to the subsequent module.
  • the analog compensation module includes a signal amplification unit, which is used for multi-stage amplification of the analog voltage signal generated by the Hall sensor module, wherein the first-stage amplification is based on the gain code word output by the compensation calculation unit By adjusting the resistance coefficient of the signal amplifying unit, the gain trimming of the analog voltage signal is carried out.
  • the analog compensation module also includes a filter unit (LPF) connected to the signal amplification unit, the filter unit includes an operational amplifier, a resistor, and a capacitor, wherein the operational amplifier is used to amplify the input signal, and the resistor is used to amplify the input signal.
  • the circuit performs feedback regulation, and the capacitor is used for signal filtering and regulation.
  • the analog compensation module includes a signal amplifying unit and a filtering unit, and the signal amplifying unit performs gain trimming on the input voltage signal according to the gain codeword output by the compensation calculation unit, specifically, the signal amplifying unit performs gain adjustment on the input voltage signal Multi-stage amplification is performed, wherein the first-stage amplification adjusts the resistance coefficient according to the gain code word of the compensation calculation unit, and then realizes the gain adjustment of the input analog voltage signal.
  • the filter unit that is, the active second-order low-pass filter, mainly includes an operational amplifier, resistors, and capacitors.
  • the operational amplifier is used to amplify the input voltage signal, the resistor plays a role of feedback adjustment to the circuit, and the capacitor is used to filter and adjust the signal, and the frequency of the passing signal can be adjusted by changing the capacitance of the capacitor.
  • the differential voltage is output, and then the differential voltage is filtered by the chopper unit, and the analog temperature drift compensation of Hall is realized by combining the amplification and low-pass filtering in the analog compensation module , and then combined with digital temperature compensation to realize the final temperature compensation.
  • the temperature compensation method provided by this embodiment is less dependent on the process, so that the circuit has better consistency and higher precision.
  • the Hall sensor temperature compensation circuit provided by this embodiment further includes an output module, the output module is respectively connected to the filtering unit and the compensation calculation unit, and the output module is based on the digital compensation module
  • the calculation result adjusts Vref (reference voltage), thereby changing Vout (output voltage signal), and the voltage signal after analog compensation and digital compensation minimizes the output voltage drift and ensures the accuracy of the output voltage.
  • the present invention also provides a Hall sensor temperature compensation control method. According to the compensation circuit according to the first embodiment, the external temperature is measured and the Hall sensor is temperature compensated.
  • connection and “fixation” should be interpreted in a broad sense, for example, “fixation” can be a fixed connection, a detachable connection, or an integral body; it can be a mechanical connection or an electrical connection; it can be a direct connection , can also be indirectly connected through an intermediary, and can be an internal communication between two elements or an interaction relationship between two elements, unless otherwise clearly defined.
  • fixation can be a fixed connection, a detachable connection, or an integral body; it can be a mechanical connection or an electrical connection; it can be a direct connection , can also be indirectly connected through an intermediary, and can be an internal communication between two elements or an interaction relationship between two elements, unless otherwise clearly defined.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Automation & Control Theory (AREA)
  • Hall/Mr Elements (AREA)
  • Measuring Magnetic Variables (AREA)

Abstract

A Hall sensor temperature compensation circuit, comprising a Hall sensing module, which generates an analog voltage signal according to an external magnetic field and a current; an analog compensation module, which is connected to the Hall sensing module, and is used for performing analog compensation on the generated analog voltage signal; and a digital compensation module, which comprises a compensation calculation unit, wherein the compensation calculation unit obtains compensation codewords according to external environment temperature information, and then performs gain compensation on an analog compensation process and performs offset compensation on an analog-to-digital conversion process by means of the compensation codewords. Temperature compensation is performed by means of combining digital compensation with analog compensation, such that the dependence on a process is low, the precision of a Hall sensor is higher, the circuit consistency is better, a storage space required is small, the response speed of an output signal is faster, and a compensation range is wider.

Description

一种霍尔传感器温度补偿电路及其补偿方法A Hall sensor temperature compensation circuit and its compensation method 技术领域technical field
本发明属于传感器技术领域,涉及一种霍尔传感器,尤其涉及一种霍尔传感器温度补偿电路及其补偿方法。The invention belongs to the technical field of sensors, and relates to a Hall sensor, in particular to a Hall sensor temperature compensation circuit and a compensation method thereof.
背景技术Background technique
在磁场传感器领域中,霍尔传感器是一种利用霍尔效应设计而成的半导体器件,其特点是可以外部磁场信号转化为电压信号,该信号的大小与外部磁场信号的大小成比例。作为半导体器件它有着明显的缺点,即随着外部环境温度的变化输出电压信号会发生漂移。这种温漂在常温下不明显,但是在高低温下温漂可能会影响磁传感器系统的工作性能,因此温度补偿电路的目的就是有针对性消除半导体器件的温漂。In the field of magnetic field sensors, a Hall sensor is a semiconductor device designed using the Hall effect. Its characteristic is that it can convert an external magnetic field signal into a voltage signal, and the magnitude of the signal is proportional to the magnitude of the external magnetic field signal. As a semiconductor device, it has obvious disadvantages, that is, the output voltage signal will drift with the change of the external environment temperature. This kind of temperature drift is not obvious at normal temperature, but the temperature drift may affect the working performance of the magnetic sensor system at high and low temperatures, so the purpose of the temperature compensation circuit is to eliminate the temperature drift of semiconductor devices in a targeted manner.
传统的温度补偿分为模拟补偿和数字补偿,模拟主要通过调节电容/电阻实现温漂的补偿,数字主要通过查找表或者根绝温漂的温度特性通过一阶或者二阶计算补偿值实现温漂的补偿。霍尔传感器芯片目前大都采用模拟补偿技术,比如采用压敏电阻等,可以调节灵敏度和输出零点随温度产生的偏移,但这往往是牺牲灵敏度和输出零点的精度为代价的。另外模拟补偿技术是固定的,不适合生产或者现场改变的补偿和校准。The traditional temperature compensation is divided into analog compensation and digital compensation. The analog mainly realizes the compensation of temperature drift by adjusting the capacitance/resistance, and the digital mainly realizes the compensation of temperature drift through the look-up table or the temperature characteristic of eradicating the temperature drift through the first-order or second-order calculation of the compensation value. compensate. At present, most Hall sensor chips use analog compensation technology, such as piezoresistors, etc., which can adjust the sensitivity and the offset of the output zero point with temperature, but this is often at the expense of the sensitivity and the accuracy of the output zero point. In addition, the analog compensation technique is fixed, not suitable for production or field-changed compensation and calibration.
发明内容Contents of the invention
本发明的目的是针对现有的技术存在上述问题,提出了一种精度高、补偿范围大、存储空间小以及响应速度快的霍尔传感器温度补偿电路及其补偿方法。The object of the present invention is to solve the above-mentioned problems in the existing technology, and propose a Hall sensor temperature compensation circuit and compensation method with high precision, large compensation range, small storage space and fast response speed.
为了实现上述目的,本发明采用的技术方案为:In order to achieve the above object, the technical scheme adopted in the present invention is:
一种霍尔传感器温度补偿电路,包括:A Hall sensor temperature compensation circuit, comprising:
霍尔传感模块,根据外部磁场和电流产生模拟电压信号;Hall sensor module, which generates analog voltage signal according to external magnetic field and current;
模拟补偿模块,与霍尔传感模块相连接,用于对产生的模拟电压信号进行模拟补偿;The analog compensation module is connected with the Hall sensing module, and is used for analog compensation to the generated analog voltage signal;
温度传感器模块,用于获取当前外界环境温度信息;The temperature sensor module is used to obtain the current external environment temperature information;
输出模块,用于将模拟补偿后的模拟电压信号经模数转换后输出数字电压信号;An output module, configured to convert the analog voltage signal after analog compensation to output a digital voltage signal;
数字补偿模块,其包括补偿计算单元,补偿计算单元根据外界环境温度信息生成对应的补偿码字,所述补偿码字包括增益码字和漂移码字,进而由增益码字对模拟补偿过程进行增益补偿,并通过漂移码字对模数转换过程进行漂移补偿。A digital compensation module, which includes a compensation calculation unit, the compensation calculation unit generates a corresponding compensation codeword according to the external environment temperature information, and the compensation codeword includes a gain codeword and a drift codeword, and then the gain codeword is used to gain the analog compensation process Compensate, and perform drift compensation on the analog-to-digital conversion process through the drift codeword.
在上述的一种霍尔传感器温度补偿电路中,补偿计算单元获得补偿码字的步骤包括:In the aforementioned Hall sensor temperature compensation circuit, the steps for the compensation calculation unit to obtain the compensation codeword include:
A1:根据霍尔传感器的初始状态判断合适的拐点温度;A1: Judging the appropriate inflection point temperature according to the initial state of the Hall sensor;
A2:对补偿计算单元配置温度拐点;A2: Configure the temperature inflection point for the compensation calculation unit;
A3:根据温度拐点将温度范围划分为多个温度段,并选取每个温度段的增益温度系数和漂移温度系数;A3: Divide the temperature range into multiple temperature segments according to the temperature inflection point, and select the gain temperature coefficient and drift temperature coefficient of each temperature segment;
A4:根据增益温度系数和漂移温度系数按照预设计算公式生成补偿码字。A4: Generate compensation codewords according to the preset calculation formula according to the gain temperature coefficient and the drift temperature coefficient.
在上述的一种霍尔传感器温度补偿电路中,数字补偿模块还包括:In the aforementioned temperature compensation circuit for a Hall sensor, the digital compensation module further includes:
温度计算单元,与所述温度传感器相连接,用于将外界环境温度信息转换为实时温度信号T1,并根据预设拐点温度T0和实时温度信号T1通过预设算法计算温度差T。The temperature calculation unit is connected with the temperature sensor, and is used to convert the external environment temperature information into a real-time temperature signal T1, and calculate the temperature difference T through a preset algorithm according to the preset inflection point temperature T0 and the real-time temperature signal T1.
在上述的一种霍尔传感器温度补偿电路中,温度计算单元包括DEM模块、LPF模块以及AVG模块,其中,温度计算单元的具体工作包括步骤:In the aforementioned Hall sensor temperature compensation circuit, the temperature calculation unit includes a DEM module, an LPF module, and an AVG module, wherein the specific work of the temperature calculation unit includes steps:
B1:通过DEM模块对获取的外界环境温度信息进行抽取,并 进行累加计算,得到累加后的环境温度信息;B1: Extract the obtained external environment temperature information through the DEM module, and perform cumulative calculations to obtain the accumulated environmental temperature information;
B2:通过LPF模块对累加后的环境温度信息进行离散卷积;B2: Perform discrete convolution on the accumulated ambient temperature information through the LPF module;
B3:通过AVG模块对LPF模块输出结果进行均值计算,得到实时温度信号T1;B3: Calculate the average value of the output result of the LPF module through the AVG module to obtain the real-time temperature signal T1;
B4:将实时温度信号T1与预设拐点温度T0进行差值计算,得到温度差T。B4: Calculate the difference between the real-time temperature signal T1 and the preset inflection point temperature T0 to obtain the temperature difference T.
在上述的一种霍尔传感器温度补偿电路中,生成补偿码字的计算公式具体如下:In the aforementioned Hall sensor temperature compensation circuit, the calculation formula for generating the compensation codeword is specifically as follows:
增益码字:GAIN_TRIM=(gain0+1)*TC_g*T+gain0;Gain code word: GAIN_TRIM=(gain0+1)*TC_g*T+gain0;
漂移码字:OFFSET_TRIM=K0*(TC_f*T+1)–K1;Drift codeword: OFFSET_TRIM=K0*(TC_f*T+1)–K1;
其中,gain0为零点的增益系数,TC_g为配置的增益温度系数,K0是根据参考电压值换算的电压系数,K1为用于调节零点偏移的系数;TC_f为配置的漂移温度系数,T为温度差。Among them, gain0 is the gain coefficient of the zero point, TC_g is the configured gain temperature coefficient, K0 is the voltage coefficient converted according to the reference voltage value, K1 is the coefficient used to adjust the zero offset; TC_f is the configured drift temperature coefficient, and T is the temperature Difference.
在上述的一种霍尔传感器温度补偿电路中,模拟补偿模块包括信号放大单元,其用于对霍尔传感模块产生的模拟电压信号进行多级放大,其中一级放大是根据补偿计算单元输出的增益码字通过调整信号放大单元的电阻系数,对模拟电压信号进行增益修调。In the aforementioned Hall sensor temperature compensation circuit, the analog compensation module includes a signal amplification unit, which is used to perform multi-stage amplification of the analog voltage signal generated by the Hall sensor module, wherein the first stage of amplification is based on the output of the compensation calculation unit The gain code word adjusts the gain of the analog voltage signal by adjusting the resistance coefficient of the signal amplifying unit.
在上述的一种霍尔传感器温度补偿电路中,模拟补偿模块还包括与信号放大单元相连接的滤波单元,所述滤波单元包括运算放大器、电阻以及电容,其中,运算放大器用于对输入信号进行放大,电阻用于对电路进行反馈调节,电容用于信号的过滤调节。In the aforementioned Hall sensor temperature compensation circuit, the analog compensation module further includes a filter unit connected to the signal amplifying unit, and the filter unit includes an operational amplifier, a resistor, and a capacitor, wherein the operational amplifier is used to process the input signal Amplification, resistors are used for feedback regulation of the circuit, and capacitors are used for signal filtering and regulation.
在上述的一种霍尔传感器温度补偿电路中,所述霍尔传感模块包括电源、相互串联的两霍尔元件以及斩波单元,两霍尔元件的输入端均连接电源,且两霍尔元件的输出端均连接斩波单元,斩波单元输出端连接模拟补偿模块。In the above-mentioned Hall sensor temperature compensation circuit, the Hall sensor module includes a power supply, two Hall elements connected in series and a chopper unit, the input ends of the two Hall elements are connected to the power supply, and the two Hall elements The output terminals of the components are all connected to the chopping unit, and the output terminals of the chopping unit are connected to the analog compensation module.
本发明的目的还在于提供一种霍尔传感器温度补偿控制方法,根据上述的补偿电路,测量外界温度并对霍尔传感器进行温度补 偿。The purpose of the present invention is also to provide a Hall sensor temperature compensation control method, according to the above compensation circuit, measure the external temperature and perform temperature compensation on the Hall sensor.
与现有技术相比,本发明具有以下有益效果:Compared with the prior art, the present invention has the following beneficial effects:
1、本发明采用数字和模拟补偿相结合的方式进行温度补偿,跟常规模拟补偿方法相比,本设计对工艺依赖性低,这使得霍尔传感器的精度更高,电路一致性更好,相较于数字查表的实现方式,所需存储空间小,输出信号的响应速度更快,相对于二阶补偿计算方式更加简单,且便于设计实现以及客户应用,相较于一阶补偿计算精度更高,补偿范围更大。1. The present invention uses a combination of digital and analog compensation for temperature compensation. Compared with conventional analog compensation methods, this design is less dependent on the process, which makes the Hall sensor have higher precision and better circuit consistency. Compared with the implementation of digital look-up table, the required storage space is small, and the response speed of the output signal is faster. Compared with the second-order compensation calculation method, it is simpler, and it is convenient for design and implementation and customer application. Compared with the first-order compensation calculation, the calculation accuracy is higher. High, the compensation range is larger.
2、采用内置温度传感器,并通过模数转换器将外界温度信息转化为比特的数据流,供温度计算单元还原温度信息,使得获取到的温度信息快速且准确,无需额外外接温度获取装置,整个电路设计合理高效。2. The built-in temperature sensor is used, and the external temperature information is converted into a bit data stream through the analog-to-digital converter, which is used for the temperature calculation unit to restore the temperature information, so that the obtained temperature information is fast and accurate, and no additional external temperature acquisition device is required. The circuit design is reasonable and efficient.
3、本发明根据霍尔传感器芯片初始输出结果选取温度拐点并配置温度系数,然后结合温度差值计算对应的补偿码字,通过补偿码字进行增益修调和漂移修调,本温度补偿方法精度更高,实用性强,存储空间小,大大提高了霍尔传感器芯片的集成化程度。3. The present invention selects the temperature inflection point and configures the temperature coefficient according to the initial output result of the Hall sensor chip, and then calculates the corresponding compensation code word in combination with the temperature difference, and performs gain adjustment and drift adjustment through the compensation code word. The temperature compensation method has higher accuracy High, practical, small storage space, greatly improving the integration of the Hall sensor chip.
附图说明Description of drawings
图1是本发明中的电路结构框图。Fig. 1 is a block diagram of the circuit structure in the present invention.
图2是本发明中的数字补偿模块结构框图。Fig. 2 is a structural block diagram of the digital compensation module in the present invention.
图3是本发明中的增益补偿系数与拐点示意图。FIG. 3 is a schematic diagram of gain compensation coefficients and inflection points in the present invention.
具体实施方式Detailed ways
以下是本发明的具体实施例并结合附图,对本发明的技术方案作进一步的描述,但本发明并不限于这些实施例。The following are specific embodiments of the present invention and in conjunction with the accompanying drawings, the technical solutions of the present invention are further described, but the present invention is not limited to these embodiments.
需要说明,本发明实施例中所有方向性指示(诸如上、下、左、右、前、后……)仅用于解释在某一特定姿态(如附图所示)下各部件之间的相对位置关系、运动情况等,如果该特定姿态发 生改变时,则该方向性指示也相应地随之改变。It should be noted that all directional indications (such as up, down, left, right, front, back...) in the embodiments of the present invention are only used to explain the relationship between the components in a certain posture (as shown in the accompanying drawings). Relative positional relationship, movement conditions, etc., if the specific posture changes, the directional indication also changes accordingly.
实施例一Embodiment one
如图1至图3所示,本发明提供了一种霍尔传感器温度补偿电路,包括:As shown in Figures 1 to 3, the present invention provides a Hall sensor temperature compensation circuit, including:
霍尔传感模块,根据外部磁场和电流产生模拟电压信号;Hall sensor module, which generates analog voltage signal according to external magnetic field and current;
模拟补偿模块,与霍尔传感模块相连接,用于对产生的模拟电压信号进行模拟补偿;The analog compensation module is connected with the Hall sensing module, and is used for analog compensation to the generated analog voltage signal;
温度传感器模块,用于获取当前外界环境温度信息;The temperature sensor module is used to obtain the current external environment temperature information;
输出模块,用于将模拟补偿后的模拟电压信号经模数转换后输出数字电压信号;An output module, configured to convert the analog voltage signal after analog compensation to output a digital voltage signal;
数字补偿模块,其包括补偿计算单元,补偿计算单元根据外界环境温度信息生成对应的补偿码字,所述补偿码字包括增益码字和漂移码字,进而由增益码字对模拟补偿过程进行增益补偿,并通过漂移码字对模数转换过程进行漂移补偿。A digital compensation module, which includes a compensation calculation unit, the compensation calculation unit generates a corresponding compensation codeword according to the external environment temperature information, and the compensation codeword includes a gain codeword and a drift codeword, and then the gain codeword is used to gain the analog compensation process Compensate, and perform drift compensation on the analog-to-digital conversion process through the drift codeword.
本发明提供的一种霍尔传感器温度补偿电路,对外界环境温度变化导致的霍尔传感器芯片电压信号漂移采用数字和模拟补偿相结合的方式进行温度补偿,通过霍尔传感模块和模拟补偿模块对霍尔传感器进行模拟补偿,通过数字补偿模块对霍尔传感器进行数字补偿,跟常规模拟补偿方法相比,本设计对工艺依赖性低,这使得霍尔传感器的精度更高,电路一致性更好,相较于数字查表的实现方式,所需存储空间小,输出信号的响应速度更快,相对于二阶补偿计算方式更加简单,且便于设计实现以及客户应用,相较于一阶补偿计算精度更高,补偿范围更大。A Hall sensor temperature compensation circuit provided by the present invention uses digital and analog compensation to perform temperature compensation on the voltage signal drift of the Hall sensor chip caused by changes in the external environment temperature, through the Hall sensor module and the analog compensation module Perform analog compensation on the Hall sensor, and perform digital compensation on the Hall sensor through the digital compensation module. Compared with the conventional analog compensation method, this design is less dependent on the process, which makes the Hall sensor have higher precision and circuit consistency. Well, compared with the implementation of digital look-up table, the required storage space is small, the response speed of the output signal is faster, and the calculation method of the second-order compensation is simpler, and it is convenient for design and implementation and customer application. Compared with the first-order compensation The calculation accuracy is higher and the compensation range is larger.
优选地,如图1至图3所示,数字补偿模块还包括:Preferably, as shown in Figures 1 to 3, the digital compensation module further includes:
温度计算单元,与所述温度传感器相连接,用于将外界环境温度信息转换为实时温度信号T1,并根据预设拐点温度T0和实时温度信号T1通过预设算法计算温度差T。The temperature calculation unit is connected with the temperature sensor, and is used to convert the external environment temperature information into a real-time temperature signal T1, and calculate the temperature difference T through a preset algorithm according to the preset inflection point temperature T0 and the real-time temperature signal T1.
进一步优选地,温度传感器用于获取当前外界环境温度信息, 并通过内置数模转换器将实时温度模拟信号转换为实时温度数据信号。Further preferably, the temperature sensor is used to obtain the current external environment temperature information, and convert the real-time temperature analog signal into a real-time temperature data signal through a built-in digital-to-analog converter.
在本实施例中,温度传感器实时采集外界环境温度信息,并将实时温度模拟信号转化为电压值,该电压值输入到温度传感器内部的数模转换器中,通过跟内部的基准电压不断的进行比较,将电压信号转化为实时温度数据信号,即将电压信号转化为数据流输出至温度计算单元。温度计算单元将温度传感器输出的码流信息还原为环境温度,即将实时温度数据信号转换为实时温度信号T1,并根据T1和预设高低温拐点温度T0计算温度差T,预设高低温拐点温度T0一般取常温25摄氏度。在本实施例中,采用内置温度传感器,并通过模数转换器将外界温度信息转化为比特的数据流,供温度计算单元还原温度信息,使得获取到的温度信息快速且准确,无需额外外接温度获取装置,整个电路设计合理高效。In this embodiment, the temperature sensor collects the temperature information of the external environment in real time, and converts the real-time temperature analog signal into a voltage value. For comparison, the voltage signal is converted into a real-time temperature data signal, that is, the voltage signal is converted into a data stream and output to the temperature calculation unit. The temperature calculation unit restores the code stream information output by the temperature sensor to the ambient temperature, that is, converts the real-time temperature data signal into a real-time temperature signal T1, and calculates the temperature difference T according to T1 and the preset high and low temperature inflection point temperature T0, and the preset high and low temperature inflection point temperature T0 generally takes the normal temperature of 25 degrees Celsius. In this embodiment, a built-in temperature sensor is used, and the external temperature information is converted into a bit data stream through an analog-to-digital converter, which is used for the temperature calculation unit to restore the temperature information, so that the obtained temperature information is fast and accurate, and no additional external temperature information is required. The acquisition device, the entire circuit design is reasonable and efficient.
优选地,如图1至图3所示,补偿计算单元生成对应的补偿码字的步骤包括:Preferably, as shown in Figures 1 to 3, the step of generating a corresponding compensation codeword by the compensation calculation unit includes:
A1:根据霍尔传感器的初始状态判断合适的拐点温度;A1: Judging the appropriate inflection point temperature according to the initial state of the Hall sensor;
A2:对补偿计算单元配置温度拐点;A2: Configure the temperature inflection point for the compensation calculation unit;
A3:根据温度拐点将温度范围划分为多个温度段,并选取每个温度段的增益温度系数和漂移温度系数;A3: Divide the temperature range into multiple temperature segments according to the temperature inflection point, and select the gain temperature coefficient and drift temperature coefficient of each temperature segment;
A4:根据增益温度系数和漂移温度系数按照预设计算公式生成补偿码字。A4: Generate compensation codewords according to the preset calculation formula according to the gain temperature coefficient and the drift temperature coefficient.
进一步优选地,生成补偿码字的计算公式具体如下:Further preferably, the calculation formula for generating the compensation codeword is specifically as follows:
增益码字:GAIN_TRIM=(gain0+1)*TC_g*T+gain0;Gain code word: GAIN_TRIM=(gain0+1)*TC_g*T+gain0;
漂移码字:OFFSET_TRIM=K0*(TC_f*T+1)–K1;Drift codeword: OFFSET_TRIM=K0*(TC_f*T+1)–K1;
其中,gain0为零点的增益系数,TC_g为配置的增益温度系数,K0是根据参考电压值换算的电压系数,K1为用于调节零点偏移的系数;TC_f为配置的漂移温度系数,T为温度差。Among them, gain0 is the gain coefficient of the zero point, TC_g is the configured gain temperature coefficient, K0 is the voltage coefficient converted according to the reference voltage value, K1 is the coefficient used to adjust the zero offset; TC_f is the configured drift temperature coefficient, and T is the temperature Difference.
在本实施例中,通过补偿计算单元获取增益码字和漂移码字,增益码字用于对信号放大单元(AMP)进行增益调节,补偿计算单元的工作原理为:首先根据传感器芯片输出的初始状态判断合适的拐点温度,然后通过外部软件对补偿计算单元的端口I_inf_pt_c和端口I_inf_pt_h配置拐点,根据温度拐点将温度范围划分为多个温度段,在这之后选取每个温度段的温度系数(TC_g/TC_f),最后结合温度差的计算结果T,根据计算公式得到补偿码字。例:霍尔传感器的温度范围在-40度到125度,根据霍尔传感器芯片输出的初始状态,选择合适的拐点温度,例如如图3所示,将温度分为4段,那就需要设置3个拐点温度,如-20度,25度,85度(该温度点主要根据芯片输出结果变化曲线来确定),选取合适的拐点温度后,然后通过外部软件对补偿计算单元的端口I_inf_pt_c和端口I_inf_pt_h配置拐点,然后进一步去配置每个温度段的温度系数(TC_g/TC_f),最后结合温度差值T,计算对应的增益码字和漂移码字。当需要提高温度补偿的精度时,可以根据霍尔传感器芯片输出的初始状态曲线,选取更多的拐点温度,对整个温度范围进行更多的分段,以满足所需要的补偿精度。本实施例提供的温度补偿方法精度更高,实用性强,存储空间小,大大提高了霍尔传感器芯片的集成化程度。In this embodiment, the gain codeword and the drift codeword are obtained through the compensation calculation unit, and the gain codeword is used to adjust the gain of the signal amplification unit (AMP). The working principle of the compensation calculation unit is: first, according to the initial output of the sensor chip The state judges the appropriate inflection point temperature, and then configures the inflection point for the port I_inf_pt_c and port I_inf_pt_h of the compensation calculation unit through the external software, divides the temperature range into multiple temperature segments according to the temperature inflection point, and then selects the temperature coefficient of each temperature segment (TC_g /TC_f), and finally combined with the calculation result T of the temperature difference, the compensation codeword is obtained according to the calculation formula. Example: The temperature range of the Hall sensor is -40 degrees to 125 degrees. According to the initial state of the Hall sensor chip output, select the appropriate inflection point temperature. For example, as shown in Figure 3, divide the temperature into 4 segments, then you need to set 3 inflection point temperatures, such as -20 degrees, 25 degrees, 85 degrees (the temperature point is mainly determined according to the change curve of the chip output results), after selecting the appropriate inflection point temperature, and then through the external software to compensate the calculation unit port I_inf_pt_c and port I_inf_pt_h configures the inflection point, and then further configures the temperature coefficient (TC_g/TC_f) of each temperature segment, and finally combines the temperature difference T to calculate the corresponding gain codeword and drift codeword. When the accuracy of temperature compensation needs to be improved, more inflection point temperatures can be selected according to the initial state curve output by the Hall sensor chip, and more segments can be made on the entire temperature range to meet the required compensation accuracy. The temperature compensation method provided by this embodiment has higher precision, strong practicability, and small storage space, which greatly improves the integration degree of the Hall sensor chip.
优选地,如图2所示,温度计算单元包括DEM模块、LPF模块以及AVG模块,其中,温度计算单元的具体工作包括步骤:Preferably, as shown in Figure 2, the temperature calculation unit includes a DEM module, an LPF module and an AVG module, wherein the specific work of the temperature calculation unit includes steps:
B1:通过DEM模块对获取的外界环境温度信息进行抽取,并进行累加计算,得到累加后的环境温度信息;B1: Extract the obtained external environment temperature information through the DEM module, and perform cumulative calculations to obtain the accumulated environmental temperature information;
B2:通过LPF模块对累加后的环境温度信息进行离散卷积;B2: Perform discrete convolution on the accumulated ambient temperature information through the LPF module;
B3:通过AVG模块对LPF模块输出结果进行均值计算,得到实时温度信号T1;B3: Calculate the average value of the output result of the LPF module through the AVG module to obtain the real-time temperature signal T1;
B4:将实时温度信号T1与预设拐点温度T0进行差值计算,得到温度差T。B4: Calculate the difference between the real-time temperature signal T1 and the preset inflection point temperature T0 to obtain the temperature difference T.
在本实施例中,温度计算单元将温度传感器输出的码流信息还原为环境温度,即将实时温度数据信号转换为实时温度信号T1,并根据T1和预设高低温拐点温度T0计算温度差T,温度计算单元的具体工作过程为:首先,温度传感器将实时温度数据信号输入DEM模块(提取模块),该模块对输入的实时温度数据信号进行抽取,并进行累加计算,累加计算的结果输入LPF模块(数字低通滤波器)后进行离散卷积,即对连续N个温度点乘上相应的系数并求和,然后再通过AVG模块(平均值模块)对LPF模块的输出结果进行求和平均计算得到实时温度信号T1,最后将实时温度信号T1与预设高低温拐点温度T0进行差值计算,得到温度差T。另外,为了保证温度计算的线性度以及准确性,温度计算可以单元可以通过外部软件对端口I_temp_offset_trim和端口I_temp_co_trim调整温度计算结果的增益以及偏移,特别的,端口I_tsr_en可以关闭模块的计算功能,配合端口I_tsr_out_force可以给后级模块输出一个固定温度值。In this embodiment, the temperature calculation unit restores the code stream information output by the temperature sensor to the ambient temperature, that is, converts the real-time temperature data signal into a real-time temperature signal T1, and calculates the temperature difference T according to T1 and the preset high and low temperature inflection point temperature T0, The specific working process of the temperature calculation unit is as follows: first, the temperature sensor inputs the real-time temperature data signal into the DEM module (extraction module), which extracts the input real-time temperature data signal and performs cumulative calculation, and the cumulative calculation result is input into the LPF module (Digital low-pass filter) followed by discrete convolution, that is, multiplying the corresponding coefficients on consecutive N temperature points and summing them, and then summing and averaging the output results of the LPF module through the AVG module (average module) The real-time temperature signal T1 is obtained, and finally the difference between the real-time temperature signal T1 and the preset high and low temperature inflection point temperature T0 is calculated to obtain the temperature difference T. In addition, in order to ensure the linearity and accuracy of the temperature calculation, the temperature calculation unit can adjust the gain and offset of the temperature calculation result through the port I_temp_offset_trim and the port I_temp_co_trim through the external software. In particular, the port I_tsr_en can turn off the calculation function of the module. The port I_tsr_out_force can output a fixed temperature value to the subsequent module.
优选地,如图1所示,模拟补偿模块包括信号放大单元,其用于对霍尔传感模块产生的模拟电压信号进行多级放大,其中一级放大是根据补偿计算单元输出的增益码字通过调整信号放大单元的电阻系数,对模拟电压信号进行增益修调。Preferably, as shown in Figure 1, the analog compensation module includes a signal amplification unit, which is used for multi-stage amplification of the analog voltage signal generated by the Hall sensor module, wherein the first-stage amplification is based on the gain code word output by the compensation calculation unit By adjusting the resistance coefficient of the signal amplifying unit, the gain trimming of the analog voltage signal is carried out.
进一步优选地,模拟补偿模块还包括与信号放大单元相连接的滤波单元(LPF),所述滤波单元包括运算放大器、电阻以及电容,其中,运算放大器用于对输入信号进行放大,电阻用于对电路进行反馈调节,电容用于信号的过滤调节。Further preferably, the analog compensation module also includes a filter unit (LPF) connected to the signal amplification unit, the filter unit includes an operational amplifier, a resistor, and a capacitor, wherein the operational amplifier is used to amplify the input signal, and the resistor is used to amplify the input signal. The circuit performs feedback regulation, and the capacitor is used for signal filtering and regulation.
在本实施例中,模拟补偿模块包括信号放大单元和滤波单元,信号放大单元根据补偿计算单元输出的增益码字对输入的电压信号进行增益修调,具体地,信号放大单元对输入的电压信号进行多级放大,其中一级放大根据补偿计算单元的增益码字调整电阻系数,进而实现对输入的模拟电压信号进行增益修调。例:若信 号放大单元的放大倍数为GAIN_TRIM且修调倍数设定为50%-150%,那么输入电压v_in与输出电压v_out的关系为v_out=v_in*GAIN_TRIM,其输出结果v_out的范围为0.5v_in~1.5v_in。滤波单元,即有源二阶低通滤波器,主要包括运算放大器、电阻、电容。运算放大器用于对输入的电压信号进行放大,电阻对电路起到反馈调节的作用,电容用于信号的过滤调节,通过改变电容的容值可调整通过的信号频率。In this embodiment, the analog compensation module includes a signal amplifying unit and a filtering unit, and the signal amplifying unit performs gain trimming on the input voltage signal according to the gain codeword output by the compensation calculation unit, specifically, the signal amplifying unit performs gain adjustment on the input voltage signal Multi-stage amplification is performed, wherein the first-stage amplification adjusts the resistance coefficient according to the gain code word of the compensation calculation unit, and then realizes the gain adjustment of the input analog voltage signal. Example: If the amplification factor of the signal amplification unit is GAIN_TRIM and the trimming factor is set to 50%-150%, then the relationship between the input voltage v_in and the output voltage v_out is v_out=v_in*GAIN_TRIM, and the range of the output result v_out is 0.5v_in ~1.5v_in. The filter unit, that is, the active second-order low-pass filter, mainly includes an operational amplifier, resistors, and capacitors. The operational amplifier is used to amplify the input voltage signal, the resistor plays a role of feedback adjustment to the circuit, and the capacitor is used to filter and adjust the signal, and the frequency of the passing signal can be adjusted by changing the capacitance of the capacitor.
优选地,如图1所示,霍尔传感模块包括电源、相互串联的两霍尔元件以及斩波单元(chop),两霍尔元件的输入端均连接电源,且两霍尔元件的输出端均连接斩波单元,斩波单元输出端连接模拟补偿模块。Preferably, as shown in Figure 1, the Hall sensing module includes a power supply, two Hall elements connected in series and a chopping unit (chop), the input terminals of the two Hall elements are connected to the power supply, and the output of the two Hall elements Both terminals are connected to the chopper unit, and the output terminal of the chopper unit is connected to the analog compensation module.
在本实施例中,通过两个霍尔元件的驱动,输出差分电压,然后通过斩波单元对差分电压进行过滤,结合模拟补偿模块中的放大和低通滤波来实现霍尔的模拟温漂补偿,然后结合数字温度补偿实现最终的温度补偿,与传统模拟补偿相比,本实施例提供的温度补偿方法对工艺依赖性低,使得电路的一致性更好、精度更高。In this embodiment, through the driving of two Hall elements, the differential voltage is output, and then the differential voltage is filtered by the chopper unit, and the analog temperature drift compensation of Hall is realized by combining the amplification and low-pass filtering in the analog compensation module , and then combined with digital temperature compensation to realize the final temperature compensation. Compared with the traditional analog compensation, the temperature compensation method provided by this embodiment is less dependent on the process, so that the circuit has better consistency and higher precision.
优选地,如图1所示,本实施例提供的一种霍尔传感器温度补偿电路,还包括输出模块,所述输出模块分别连接滤波单元和补偿计算单元,所述输出模块根据数字补偿模块的计算结果调节Vref(参考电压),从而改变Vout(输出电压信号),经模拟补偿和数字补偿后的电压信号最大程度地减少了输出电压漂移,保证了输出电压的精度。Preferably, as shown in Figure 1, the Hall sensor temperature compensation circuit provided by this embodiment further includes an output module, the output module is respectively connected to the filtering unit and the compensation calculation unit, and the output module is based on the digital compensation module The calculation result adjusts Vref (reference voltage), thereby changing Vout (output voltage signal), and the voltage signal after analog compensation and digital compensation minimizes the output voltage drift and ensures the accuracy of the output voltage.
实施例二Embodiment two
本发明还提供了一种霍尔传感器温度补偿控制方法,根据根据实施例一所述的补偿电路,测量外界温度并对霍尔传感器进行温度补偿。The present invention also provides a Hall sensor temperature compensation control method. According to the compensation circuit according to the first embodiment, the external temperature is measured and the Hall sensor is temperature compensated.
需要说明的是,在本发明中如涉及“第一”、“第二”、“一” 等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本发明的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。术语“连接”、“固定”等应做广义理解,例如,“固定”可以是固定连接,也可以是可拆卸连接,或成一体;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系,除非另有明确的限定。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明中的具体含义。It should be noted that, in the present invention, descriptions involving "first", "second", "one" and so on are only for description purposes, and cannot be understood as indicating or implying their relative importance or implicitly indicating The number of technical characteristics. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In the description of the present invention, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined. The terms "connection" and "fixation" should be interpreted in a broad sense, for example, "fixation" can be a fixed connection, a detachable connection, or an integral body; it can be a mechanical connection or an electrical connection; it can be a direct connection , can also be indirectly connected through an intermediary, and can be an internal communication between two elements or an interaction relationship between two elements, unless otherwise clearly defined. Those of ordinary skill in the art can understand the specific meanings of the above terms in the present invention according to specific situations.
另外,本发明各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本发明要求的保护范围之内。In addition, the technical solutions of the various embodiments of the present invention can be combined with each other, but it must be based on the realization of those skilled in the art. When the combination of technical solutions is contradictory or cannot be realized, it should be considered as a combination of technical solutions. Does not exist, nor is it within the scope of protection required by the present invention.
本文中所描述的具体实施例仅仅是对本发明精神作举例说明。本发明所属技术领域的技术人员可以对所描述的具体实施例做各种各样的修改或补充或采用类似的方式替代,但并不会偏离本发明的精神或者超越所附权利要求书所定义的范围。The specific embodiments described herein are merely illustrative of the spirit of the invention. Those skilled in the art to which the present invention belongs can make various modifications or supplements to the described specific embodiments or adopt similar methods to replace them, but they will not deviate from the spirit of the present invention or go beyond the definition of the appended claims range.

Claims (9)

  1. 一种霍尔传感器温度补偿电路,其特征在于,包括:A Hall sensor temperature compensation circuit, characterized in that it comprises:
    霍尔传感模块,根据外部磁场和电流产生模拟电压信号;Hall sensor module, which generates analog voltage signal according to external magnetic field and current;
    模拟补偿模块,与霍尔传感模块相连接,用于对产生的模拟电压信号进行模拟补偿;The analog compensation module is connected with the Hall sensing module, and is used for analog compensation to the generated analog voltage signal;
    温度传感器模块,用于获取当前外界环境温度信息;The temperature sensor module is used to obtain the current external environment temperature information;
    输出模块,用于将模拟补偿后的模拟电压信号经模数转换后输出数字电压信号;An output module, configured to convert the analog voltage signal after analog compensation to output a digital voltage signal;
    数字补偿模块,其包括补偿计算单元,补偿计算单元根据外界环境温度信息生成对应的补偿码字,所述补偿码字包括增益码字和漂移码字,进而由增益码字对模拟补偿过程进行增益补偿,并通过漂移码字对模数转换过程进行漂移补偿。A digital compensation module, which includes a compensation calculation unit, the compensation calculation unit generates a corresponding compensation codeword according to the external environment temperature information, and the compensation codeword includes a gain codeword and a drift codeword, and then the gain codeword is used to gain the analog compensation process Compensate, and perform drift compensation on the analog-to-digital conversion process through the drift codeword.
  2. 根据权利要求1所述的一种霍尔传感器温度补偿电路,其特征在于,补偿计算单元生成对应的补偿码字的步骤包括:A Hall sensor temperature compensation circuit according to claim 1, wherein the step of generating a corresponding compensation codeword by the compensation calculation unit comprises:
    A1:根据霍尔传感器的初始状态判断合适的拐点温度;A1: Judging the appropriate inflection point temperature according to the initial state of the Hall sensor;
    A2:对补偿计算单元配置温度拐点;A2: Configure the temperature inflection point for the compensation calculation unit;
    A3:根据温度拐点将温度范围划分为多个温度段,并选取每个温度段的增益温度系数和漂移温度系数;A3: Divide the temperature range into multiple temperature segments according to the temperature inflection point, and select the gain temperature coefficient and drift temperature coefficient of each temperature segment;
    A4:根据增益温度系数和漂移温度系数按照预设计算公式生成补偿码字。A4: Generate compensation codewords according to the preset calculation formula according to the gain temperature coefficient and the drift temperature coefficient.
  3. 根据权利要求2所述的一种霍尔传感器温度补偿电路,其特征在于,数字补偿模块还包括:A kind of Hall sensor temperature compensation circuit according to claim 2, is characterized in that, digital compensation module also comprises:
    温度计算单元,与所述温度传感器相连接,用于将外界环境温度信息转换为实时温度信号T1,并根据预设拐点温度T0和实时温度信号T1通过预设算法计算温度差T。The temperature calculation unit is connected with the temperature sensor, and is used to convert the external environment temperature information into a real-time temperature signal T1, and calculate the temperature difference T through a preset algorithm according to the preset inflection point temperature T0 and the real-time temperature signal T1.
  4. 根据权利要求3所述的一种霍尔传感器温度补偿电路,其特征在于,温度计算单元包括DEM模块、LPF模块以及AVG模块,其中,温度计算单元的具体工作包括步骤:The temperature compensation circuit for a Hall sensor according to claim 3, wherein the temperature calculation unit includes a DEM module, an LPF module, and an AVG module, wherein the specific work of the temperature calculation unit includes steps:
    B1:通过DEM模块对获取的外界环境温度信息进行抽取,并 进行累加计算,得到累加后的环境温度信息;B1: Extract the obtained external environment temperature information through the DEM module, and perform cumulative calculations to obtain the accumulated environmental temperature information;
    B2:通过LPF模块对累加后的环境温度信息进行离散卷积;B2: Perform discrete convolution on the accumulated ambient temperature information through the LPF module;
    B3:通过AVG模块对LPF模块输出结果进行均值计算,得到实时温度信号T1;B3: Calculate the average value of the output result of the LPF module through the AVG module to obtain the real-time temperature signal T1;
    B4:将实时温度信号T1与预设拐点温度T0进行差值计算,得到温度差T。B4: Calculate the difference between the real-time temperature signal T1 and the preset inflection point temperature T0 to obtain the temperature difference T.
  5. 根据权利要求4所述的一种霍尔传感器温度补偿电路,其特征在于,生成补偿码字的计算公式具体如下:A kind of Hall sensor temperature compensation circuit according to claim 4, is characterized in that, the calculation formula that generates compensation code word is specifically as follows:
    增益码字:GAIN_TRIM=(gain0+1)*TC_g*T+gain0;Gain code word: GAIN_TRIM=(gain0+1)*TC_g*T+gain0;
    漂移码字:OFFSET_TRIM=K0*(TC_f*T+1)–K1;Drift codeword: OFFSET_TRIM=K0*(TC_f*T+1)–K1;
    其中,gain0为零点的增益系数,TC_g为配置的增益温度系数,K0是根据参考电压值换算的电压系数,K1为用于调节零点偏移的系数;TC_f为配置的漂移温度系数,T为温度差。Among them, gain0 is the gain coefficient of the zero point, TC_g is the configured gain temperature coefficient, K0 is the voltage coefficient converted according to the reference voltage value, K1 is the coefficient used to adjust the zero offset; TC_f is the configured drift temperature coefficient, and T is the temperature Difference.
  6. 根据权利要求1所述的一种霍尔传感器温度补偿电路,其特征在于,模拟补偿模块包括信号放大单元,其用于对霍尔传感模块产生的模拟电压信号进行多级放大,其中一级放大是根据补偿计算单元输出的增益码字通过调整信号放大单元的电阻系数,对模拟电压信号进行增益修调。A Hall sensor temperature compensation circuit according to claim 1, characterized in that the analog compensation module includes a signal amplification unit, which is used for multi-stage amplification of the analog voltage signal generated by the Hall sensor module, wherein one stage The amplification is to adjust the gain of the analog voltage signal by adjusting the resistance coefficient of the signal amplification unit according to the gain code word output by the compensation calculation unit.
  7. 根据权利要求6所述的一种霍尔传感器温度补偿电路,其特征在于,模拟补偿模块还包括与信号放大单元相连接的滤波单元,所述滤波单元包括运算放大器、电阻以及电容,其中,运算放大器用于对输入信号进行放大,电阻用于对电路进行反馈调节,电容用于信号的过滤调节。A Hall sensor temperature compensation circuit according to claim 6, wherein the analog compensation module further includes a filter unit connected to the signal amplifying unit, and the filter unit includes an operational amplifier, a resistor and a capacitor, wherein the operation The amplifier is used to amplify the input signal, the resistor is used to adjust the feedback of the circuit, and the capacitor is used to filter and adjust the signal.
  8. 根据权利要求1所述的一种霍尔传感器温度补偿电路,其特征在于,所述霍尔传感模块包括电源、相互串联的两霍尔元件以及斩波单元,两霍尔元件的输入端均连接电源,且两霍尔元件的输出端均连接斩波单元,斩波单元输出端连接模拟补偿模块。The temperature compensation circuit for a Hall sensor according to claim 1, wherein the Hall sensor module includes a power supply, two Hall elements connected in series and a chopping unit, and the input ends of the two Hall elements are The power supply is connected, and the output terminals of the two Hall elements are connected to the chopping unit, and the output terminals of the chopping unit are connected to the analog compensation module.
  9. 一种霍尔传感器温度补偿方法,其特征在于,根据权利要 求1任一项所述的补偿电路,测量外界温度并对霍尔传感器进行温度补偿。A Hall sensor temperature compensation method, characterized in that, according to the compensation circuit according to any one of claim 1, the external temperature is measured and the Hall sensor is temperature compensated.
PCT/CN2022/123751 2021-11-01 2022-10-08 Hall sensor temperature compensation circuit and hall sensor temperature compensation method WO2023071720A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111281765.3 2021-11-01
CN202111281765.3A CN113703512B (en) 2021-11-01 2021-11-01 Hall sensor temperature compensation circuit and compensation method thereof

Publications (1)

Publication Number Publication Date
WO2023071720A1 true WO2023071720A1 (en) 2023-05-04

Family

ID=78647626

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/123751 WO2023071720A1 (en) 2021-11-01 2022-10-08 Hall sensor temperature compensation circuit and hall sensor temperature compensation method

Country Status (2)

Country Link
CN (1) CN113703512B (en)
WO (1) WO2023071720A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113703512B (en) * 2021-11-01 2022-03-08 宁波中车时代传感技术有限公司 Hall sensor temperature compensation circuit and compensation method thereof
CN116772904B (en) * 2023-08-22 2024-06-11 杭州辰控智能控制技术有限公司 Signal compensation method of magnetic encoder, magnetic encoder and calibration system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003014788A (en) * 2001-07-02 2003-01-15 Victor Co Of Japan Ltd Current sensor
JP2017173073A (en) * 2016-03-23 2017-09-28 株式会社ハーモニック・ドライブ・システムズ Analog sensor temperature compensation device
CN107340424A (en) * 2017-05-22 2017-11-10 合肥师范学院 A kind of temperature compensation of Hall current sensor
CN109708672A (en) * 2017-10-26 2019-05-03 英飞凌科技股份有限公司 The sensor compensated using digital assistant 1/X analog gain
CN110542870A (en) * 2019-08-08 2019-12-06 宁波中车时代传感技术有限公司 Compensation circuit for sensitivity and zero temperature drift in Hall sensor integrated chip and compensation method thereof
CN111551878A (en) * 2020-05-25 2020-08-18 南京邮电大学 Hall sensor temperature drift compensation circuit
CN111596236A (en) * 2020-06-11 2020-08-28 赛卓电子科技(上海)有限公司 Magnetic field sensor with sensitivity correction and offset correction functions and implementation method
CN113703512A (en) * 2021-11-01 2021-11-26 宁波中车时代传感技术有限公司 Hall sensor temperature compensation circuit and compensation method thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102109360B (en) * 2009-12-24 2012-07-11 上海华虹Nec电子有限公司 Signal processing circuit of linear Hall sensor
CN109631954B (en) * 2019-01-28 2021-05-11 绍兴光大芯业微电子有限公司 Programmable linear Hall sensor chip structure for realizing on-chip temperature compensation function

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003014788A (en) * 2001-07-02 2003-01-15 Victor Co Of Japan Ltd Current sensor
JP2017173073A (en) * 2016-03-23 2017-09-28 株式会社ハーモニック・ドライブ・システムズ Analog sensor temperature compensation device
CN107340424A (en) * 2017-05-22 2017-11-10 合肥师范学院 A kind of temperature compensation of Hall current sensor
CN109708672A (en) * 2017-10-26 2019-05-03 英飞凌科技股份有限公司 The sensor compensated using digital assistant 1/X analog gain
CN110542870A (en) * 2019-08-08 2019-12-06 宁波中车时代传感技术有限公司 Compensation circuit for sensitivity and zero temperature drift in Hall sensor integrated chip and compensation method thereof
CN111551878A (en) * 2020-05-25 2020-08-18 南京邮电大学 Hall sensor temperature drift compensation circuit
CN111596236A (en) * 2020-06-11 2020-08-28 赛卓电子科技(上海)有限公司 Magnetic field sensor with sensitivity correction and offset correction functions and implementation method
CN113703512A (en) * 2021-11-01 2021-11-26 宁波中车时代传感技术有限公司 Hall sensor temperature compensation circuit and compensation method thereof

Also Published As

Publication number Publication date
CN113703512B (en) 2022-03-08
CN113703512A (en) 2021-11-26

Similar Documents

Publication Publication Date Title
WO2023071720A1 (en) Hall sensor temperature compensation circuit and hall sensor temperature compensation method
JP4671305B2 (en) Physical quantity sensor
US7906976B2 (en) Switched capacitor measurement circuit for measuring the capacitance of an input capacitor
CN108871633B (en) Signal conditioning circuit of pressure sensor
CN110798220B (en) Analog-to-digital conversion method and analog-to-digital conversion device of temperature sensor
EP1632779B1 (en) Hall sensor module and integrated circuit for use with an external Hall sensor
US20220065709A1 (en) Temperature measurement circuit, temperature and light intensity measurement circuit, temperature measurement method and temperature and light intensity measurement method
CN107707210B (en) Self-zeroing high-gain differential amplifying circuit
CN203550961U (en) Low-cost flexible gyroscopic force balancing circuit
CN114489206B (en) Bias current and bias voltage independent adjusting system based on current amplifier
CN111342785A (en) Signal conditioning circuit
JP2003042870A (en) Temperature characteristics correcting circuit apparatus for sensor and sensor temperature characteristics correcting method
JPH08293330A (en) Battery temperature detecting device
CN111857220A (en) Temperature sampling circuit and control method thereof
CN215494756U (en) Analog-digital double-closed-loop bidirectional constant current source
CN108627190B (en) High-precision magnetic sensor correction structure and correction method based on integrated circuit
JP2002374131A (en) Automatic correction circuit of operational amplifier offset voltage
Dutta et al. Low offset, low noise, variable gain interfacing circuit with a novel scheme for sensor sensitivity and offset compensation for MEMS based, Wheatstone bridge type, resistive smart sensor
CN215116497U (en) Current detection circuit
CN213632448U (en) Compatible Pt temperature sensor sampling circuit
CN212969608U (en) AD sampling circuit of high accuracy
CN219244708U (en) Flow sensor signal processing circuit device
CN217424394U (en) Zero-full-position adjusting system of sensor
CN218587165U (en) ADC correction circuit applied to wide-range current detection
CN114323328A (en) PT 1000-based high-precision isolation temperature measuring device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22885602

Country of ref document: EP

Kind code of ref document: A1