A temperature sensor offset error and gain error compensation circuit

The compensation circuit addresses offset and gain errors in temperature sensors by calculating and combining error values, enhancing precision in temperature sensing.

CN114978170BActive Publication Date: 2025-07-1558TH RES INST OF CETC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210569100.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-24
Publication Date
2025-07-15
Estimated Expiration
2042-05-24

AI Technical Summary

Technical Problem

The temperature sensor in the analog sensor has offset errors and gain errors, resulting in insufficient accuracy and cannot meet the high-precision requirements.

Method used

A temperature sensor offset error and gain error compensation circuit is designed, including a memory unit, an offset error compensation module, a gain error compensation module and an adder. The compensation value is stored through the memory unit, and the offset error and gain error compensation module are used for calculation. Finally, the compensated temperature value is summed in the adder to achieve global reset.

Benefits of technology

The test accuracy of the temperature sensor is greatly improved and high-precision temperature sampling is achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114978170B_ABST
    Figure CN114978170B_ABST
Patent Text Reader

Abstract

The present invention discloses a compensation circuit for offset error and gain error of a temperature sensor, belonging to the field of large-scale digital integrated circuit design, which includes a storage unit, an offset error compensation module, a gain error compensation module, and an adder 1; before each output of the uncompensated temperature value T by the analog circuit, the three modules of the offset error compensation module, the gain error compensation module, and the adder 1 will undergo a global reset. The present invention provides an effective solution for the offset error and gain error compensation of a high-precision temperature sensor, and can achieve offset compensation and gain compensation for the sampled temperature of the analog circuit of the high-precision temperature sensor, greatly improving the test accuracy. source Before this, a global reset will occur once. The present invention provides an effective solution for the offset error and gain error compensation of a high-precision temperature sensor, and can achieve offset compensation and gain compensation for the sampled temperature of the analog circuit of the high-precision temperature sensor, greatly improving the test accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of large-scale digital integrated circuit design, and particularly relates to a temperature sensor offset error and gain error compensation circuit. Background Art

[0002] Temperature sensors are widely used in fields such as medical treatment and security. In chip-level analog sensors, the temperature sensing probe and the sampling circuit are generally implemented using analog devices. The operating state of analog devices is greatly affected by temperature, resulting in offset error and gain error in the collected temperature results. Only when the offset error and gain error are effectively compensated can the temperature sensor achieve higher accuracy. Therefore, this has become an urgent problem to be solved. Summary of the Invention

[0003] The purpose of the present invention is to provide a temperature sensor offset error and gain error compensation circuit to solve the problems in the background art.

[0004] To solve the above technical problems, the present invention provides a temperature sensor offset error and gain error compensation circuit, including a storage unit, an offset error compensation module, a gain error compensation module, and an adder 1;

[0005] The storage unit stores the offset error configuration and the gain error configuration; the offset error compensation module calculates the offset error compensation value for the test temperature value by selecting the corresponding offset error configuration in the storage unit according to the test temperature value; the gain error compensation module calculates the gain error compensation value by selecting the corresponding gain error configuration in the storage unit according to the test temperature value; the function of the adder 1 is to sum the test temperature value, the offset error compensation value, and the gain error compensation value, and output the compensated temperature value;

[0006] Before the analog circuit outputs the uncompensated temperature value T each time, the offset error compensation module, the gain error compensation module, and the adder 1 will undergo a global reset. source

[0007] In one embodiment, the storage unit includes an EEPROM module and a RegMap module;

[0008] The EEPROM module stores the compensation quantity values required by the offset error compensation module and the gain error compensation module;

[0009] The RegMap module has two functions: one is to receive the compensation quantity values sent by the EEPROM module when powering on, and the other is to store the compensated temperature value T calib ​; wherein the compensation values required by the offset error compensation module are offset(1) and offset(2), and the compensation values required by the gain error compensation module are gain(i), where i = 1, 2... 12.

[0010] In one embodiment, the offset error compensation module includes two sub-modules: a coarse compensation module and a fine compensation module; the coarse compensation module performs coarse compensation on the uncompensated temperature value T source ; the fine compensation module performs fine compensation on the temperature after coarse compensation, and the output result of the offset error compensation module is the T no_offset value, which is then transmitted to the gain error compensation module.

[0011] In one embodiment, the gain error compensation module includes a temperature interval sequence transmitter, a temperature interval matching discriminator, an accumulated compensation amount calculation unit, a current interval compensation amount calculation unit, and an adder 2;

[0012] The function of the temperature interval sequence transmitter is to send temperature interval values, and the interval values are edge(j), where j = 1, 2... 13; the temperature interval values are equally spaced with a spacing of T delta , and edge(j + 1) = edge(j) + T delta , corresponding to temperature intervals (edge(1), edge(2)], (edge(2), edge(3)], (edge(3), edge(4)], (edge(4), edge(5)], (edge(5), edge(6)], (edge(6), edge(7)], (edge(7), edge(8)], (edge(8), edge(9)], (edge(9), edge(10)], (edge(10), edge(11)], (edge(11), edge(12)], (edge(12), edge(13)]; the corresponding interval numbers are 1, 2, 3... 12;

[0013] The temperature interval matching discriminator determines the temperature interval where the T no_offset value is located, and outputs a signal flag which is then transmitted to the accumulated compensation amount calculation unit and the current interval compensation amount calculation unit; when no temperature interval is matched, flag = 0, and when the corresponding temperature interval is matched, flag = 1; assuming that T no_offset falls within the kth temperature interval, that is, edge(k) < T no_offset ≤ edge(k + 1), where k = 1, 2, 3,..., 12;

[0014] The accumulated compensation amount calculation unit calculates the T no_offsetThe cumulative compensation value before the temperature range where the value is located, which is accumulated when flag = 0 and the accumulation ends when flag = 1, and the result is output

[0015] The current range compensation amount calculation unit calculates T no_offset The compensation value of the temperature range where it is located. This module does not work when flag = 0 and works and outputs ΔT when flag = 1 calib_current = gain(k) × [T no_offset - edge(k)];

[0016] Adder 2 calculates the total gain error compensation amount ΔT calib_all and outputs the result ΔT calib_all = ΔT calib_acc + ΔT calib_current .

[0017] In one embodiment, the function of Adder 1 is to sum all the gain error compensation amounts ΔT calib_all and the temperature value T after removing the offset error no_offset to calculate the final result T calib .

[0018] In the temperature sensor offset error and gain error compensation circuit provided by the present invention, it includes a storage unit, an offset error compensation module, a gain error compensation module, and Adder 1; the three modules of the offset error compensation module, the gain error compensation module, and Adder 1 will have a global reset once before the analog circuit outputs the uncompensated temperature value T source each time. The present invention can achieve offset compensation and gain compensation for the sampled temperature of the high-precision temperature sensor analog circuit, greatly improving the test accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 is a schematic diagram of the overall architecture of a temperature sensor offset error and gain error compensation circuit provided by the present invention;

[0020] Figure 2 is a schematic diagram of the calibration effect of a temperature sensor offset error and gain error compensation circuit provided by the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0021] The following further describes in detail a temperature sensor offset error and gain error compensation circuit proposed by the present invention with reference to the accompanying drawings and specific embodiments. According to the following description and the claims, the advantages and features of the present invention will be clearer. It should be noted that the drawings are all in a very simplified form and use non-precise scales, only for conveniently and clearly assisting in explaining the purpose of the embodiments of the present invention.

[0022] The present invention provides a temperature sensor offset error and gain error compensation circuit, and its overall structure is as follows Figure 1 shown, including a storage unit, an offset error compensation module, a gain error compensation module, and an adder 1. The storage unit stores the offset error configuration and the gain error configuration; the offset error compensation module calculates the offset error compensation value for the test temperature value by selecting the corresponding offset error configuration in the storage unit according to the test temperature value; the gain error compensation module calculates the gain error compensation value by selecting the corresponding gain error configuration in the storage unit according to the test temperature value; the function of the adder 1 is to sum the test temperature value, the offset error compensation value, and the gain error compensation value, and output the compensated temperature value; the offset error compensation module, the gain error compensation module, and the adder 1 will perform a global reset once before the analog circuit outputs the uncompensated temperature value T source each time.

[0023] Please continue to refer to Figure 1 , the storage unit includes an EEPROM module and a RegMap module. The EEPROM module stores the compensation quantity values required by the offset error compensation module and the gain error compensation module. The RegMap module has two functions: one is to receive the compensation quantity values sent by the EEPROM module when power is on, and the other is to store the compensated temperature value T calib . The compensation quantity values required by the offset error compensation module are offset(1) and offset(2), and the compensation quantity values required by the gain error compensation module are gain(i), where i = 1, 2... 12.

[0024] The offset error compensation module includes a coarse compensation and a fine compensation sub-module. The function of the coarse compensation module is to perform coarse compensation on the uncompensated temperature value T source (that is, rough offset error compensation); the fine compensation module is to perform fine compensation on the temperature after coarse compensation (that is, fine offset error compensation), and the output result of the offset error compensation module is the T no_offset value, and the offset error compensation effect is as shown in Figure 2 .

[0025] The gain error compensation module includes a temperature range sequence transmitter, a temperature range matching discriminator, an accumulated compensation amount calculation unit, a current range compensation amount calculation unit, and an adder 2. The function of the temperature range sequence transmitter is to send temperature range values, which are -50, -33, -16, 1, 18, 35, 52, 69, 86, 103, 120, 137, 154, corresponding to temperature ranges of (-50, -33], (-33, -16], (-16, 1], (1, 18], (18, 35], (35, 52], (53, 69], (69, 86], (86, 103], (103, 120], (120, 137], (137, 154]; and the corresponding range numbers are 1, 2, 3, …, 12.

[0026] The function of the temperature range matching discriminator is to determine which temperature range the T no_offset value falls into, and output a signal flag to the accumulated compensation amount calculation unit and the current range compensation amount calculation unit; when no temperature range is matched, flag = 0, and when a corresponding temperature range is matched, flag = 1. Assume that the T no_offset falls into the 5th temperature range, that is, 18 < T no_offset ≤ 35.

[0027] The function of the accumulated compensation amount calculation unit is to calculate the accumulated compensation value before the temperature range where the T no_offset value is located. When flag = 0, the accumulation is carried out, and when flag = 1, the accumulation ends, and the output result The function of the current range compensation amount calculation unit is to calculate the compensation value of the temperature range where the T no_offset is located. This module does not work when flag = 0, and works and outputs ΔT calib_current = gain(5) × (T no_offset - 18); the function of the adder 2 is to calculate the total gain error compensation amount ΔT calib_all , and output the result ΔT calib_all = ΔT calib_acc + ΔT calib_current .

[0028] The function of the adder 1 is to sum the total gain error compensation amount ΔT calib_all and the temperature value T no_offset after removing the offset error, and calculate the final result T calib . The final compensation effect is shown in Figure 2 .

[0029] The above description is only a description of the preferred embodiments of the present invention, and does not limit the scope of the present invention in any way. Any changes and modifications made by those of ordinary skill in the art of the present invention according to the above disclosure shall fall within the scope of protection of the claims.

Claims

1. A temperature sensor offset error and gain error compensation circuit, characterized in that, It includes a storage unit, an offset error compensation module, a gain error compensation module, and an adder 1. The storage unit stores the offset error configuration and the gain error configuration; the offset error compensation module selects the corresponding offset error configuration in the storage unit according to the test temperature value to calculate the offset error compensation value for the test temperature value. The gain error compensation module calculates the gain error compensation value by selecting the corresponding gain error configuration in the storage unit according to the test temperature value. The function of the adder 1 is to sum the test temperature value, the offset error compensation value, and the gain error compensation value, and output the compensated temperature value. The three modules, namely the offset error compensation module, the gain error compensation module, and the adder 1, will undergo a global reset once before each output of the uncompensated temperature value T by the analog circuit. source beforehand; The storage unit includes an EEPROM module and a RegMap module. The EEPROM module stores the compensation quantity values required by the offset error compensation module and the gain error compensation module. The RegMap module has two functions: one is to receive the compensation value sent by the EEPROM module during power-on, and the other is to store the compensated temperature value T calib ; where the compensation values required by the offset error compensation module are the coarse compensation offset(1) and the fine compensation offset(2), and the compensation values required by the gain error compensation module are gain(i), i = 1, 2... 12; The offset error compensation module includes two sub-modules: a coarse compensation module and a fine compensation module; the coarse compensation module performs coarse compensation on the uncompensated temperature value T source ; the fine compensation module performs fine compensation on the temperature after coarse compensation, and the output result of the offset error compensation module is the T no_offset value, which is transmitted to the gain error compensation module; The gain error compensation module includes a temperature range sequence transmitter, a temperature range matching discriminator, an accumulated compensation quantity calculation unit, a current range compensation quantity calculation unit, and an adder 2. The function of the temperature range sequence transmitter is to send temperature range values, where the range value is edge(j), and j = 1, 2... 13; the temperature range values are equally spaced with a spacing of T delta , edge(j + 1) = edge(j) + T delta , and the corresponding temperature ranges are (edge(1), edge(2)], (edge(2), edge(3)], (edge(3), edge(4)], (edge(4), edge(5)], (edge(5), edge(6)], (edge(6), edge(7)], (edge(7), edge(8)], (edge(8), edge(9)], (edge(9), edge(10)], (edge(10), edge(11)], (edge(11), edge(12)], (edge(12), edge(13)]; the corresponding range numbers are 1, 2, 3... 12; The temperature range matching discriminator determines T no_offset the temperature range where the value is located, outputs a signal flag and transmits it to the cumulative compensation amount calculation unit and the current range compensation amount calculation unit; when the temperature range is not matched, flag = 0, and when the corresponding temperature range is matched, flag = 1; assuming T no_offset falls within the k-th temperature range, that is, edge(k) < T no_offset ≤ edge(k + 1), k = 1, 2, 3, …, 12; The cumulative compensation amount calculation unit calculates the cumulative compensation value before the temperature range where the T no_offset value is located. When flag = 0, the accumulation is carried out. When flag = 1, the accumulation ends and the result is output ; The current interval compensation amount calculation unit calculates the compensation value for the temperature interval where T is located. This module does not work when flag = 0, and works and outputs when flag = 1 no_offset ; ; The adder 2 calculates the total gain error compensation amount ΔT calib_all , and outputs the result ΔT calib_all = ΔT calib_acc + ΔT calib_current .

2. The temperature sensor offset error and gain error compensation circuit according to claim 1, characterized in that, The function of the adder 1 is to sum all the gain error compensation amounts ΔT calib_all and the temperature value T after removing the offset error no_offset to calculate the final result T calib .

Citation Information

Patent Citations

  • AD converter error calibration method and device, controller and servo driver

    CN113422606A