Temperature sensor trimming and temperature measuring method and device

By dividing the temperature measurement range of the temperature sensor into multiple calibration temperature ranges, and modifying and calibrating the center point temperature of each range, the code adjustment value is obtained, and high-precision temperature measurement in the full temperature range in the prior art is solved. and the problem of high-speed temperature measurement achieves efficient and low-power temperature measurement.

CN119492461AActive Publication Date: 2025-02-21NO 24 RES INST OF CETC
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411625413.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-14
Publication Date
2025-02-21
Estimated Expiration
2044-11-14

AI Technical Summary

Technical Problem

It is difficult for existing temperature sensors to achieve high-precision temperature measurement within the full temperature range, and the single-point adjustment calibration method cannot meet the accuracy requirements of high-speed temperature measurement scenarios. At the same time, the added data calibration processing module will increase power consumption.

Method used

By dividing the temperature measurement range into several equal parts, each equal part is a calibration temperature range, the center point temperature of each calibration temperature range is respectively used for modification and calibration, and the corresponding modification code value is obtained and written to the memory array During the temperature measurement, the calibration temperature range to which the temperature to be measured belongs and the corresponding adjustment code value is called for adjustment and calibration.

Benefits of technology

It realizes high-precision temperature measurement at the full temperature range, reduces calibration time and cost, reduces power consumption during temperature measurement, and supports high-speed temperature measurement, especially in scenarios with small temperature fluctuations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119492461A_ABST
    Figure CN119492461A_ABST
Patent Text Reader

Abstract

The invention discloses a temperature sensor trimming and temperature measuring method and device, and the method comprises the following steps: dividing a temperature measuring range into a plurality of equal parts, taking each equal part as a calibration temperature range, and carrying out the trimming and calibration of the central point temperature of each calibration temperature range, corresponding trimming code values are obtained and written into a trimming code value storage array; and during temperature measurement, the calibration temperature range to which the temperature to be measured belongs is detected, and the corresponding trimming code value is called for trimming and calibration, so that the measured value of the temperature to be measured is obtained. According to the method, the temperature of the center point is calibrated through a self-adaptive method, so that the corresponding trimming code value is obtained, and the calibration time and cost are greatly reduced; when the temperature to be measured is measured, the corresponding trimming code value is directly called for trimming after temperature detection, a complex data calibration processing module does not need to be added, and the power consumption during temperature measurement is greatly reduced while the temperature measurement precision and efficiency are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of integrated circuits, and in particular to a temperature sensor adjustment and temperature measurement method and device. Background Art

[0002] As a key component in modern electronic systems, the performance of temperature sensors directly affects the accuracy and reliability of the system. Compared with traditional temperature sensors, CMOS digital temperature sensors have the advantages of low power consumption and small area, but their operating temperature range is limited and their accuracy is slightly lower than that of traditional temperature sensors. Therefore, their temperature calibration schemes have attracted widespread attention.

[0003] At present, the single-point trimming calibration scheme is a common calibration method. This method attempts to extend the error calibration to the full temperature range by measuring and calibrating the temperature measurement error at a specific temperature point. However, this approach sacrifices the measurement accuracy away from the specific temperature point and cannot meet the high-precision temperature measurement requirements of the full temperature range. At the same time, in order to adjust the temperature error at this point, it is generally impossible to adaptively adjust the relevant parameters, which increases the time and cost of calibration. In order to overcome the limitations of the single-point trimming calibration scheme, traditional digital modules use two main calibration methods. The first method reduces the ADC conversion cycle by adjusting the gain of the Delta-sigma ADC, thereby increasing the temperature measurement speed. However, this method sacrifices accuracy in high-speed temperature measurement scenarios because the ADC conversion cycle is reduced, and it is difficult to achieve high trimming accuracy. The second method adds a complex data calibration processing module. During the temperature measurement process, the output data is always subjected to data calculation and calibration processing to turn it into the expected correct result. Although this method improves the temperature measurement accuracy to a certain extent, the processing time of the digital processing module during the temperature measurement process is relatively long, and the newly added data processing module is always in working state during the temperature measurement process, which increases the power consumption during operation. Summary of the invention

[0004] In view of the above-mentioned deficiencies in the prior art, the technical problem to be solved by the present invention is to provide a method and device for adjusting and measuring temperature of a temperature sensor with high precision and covering the full temperature range.

[0005] In order to solve the above technical problems, a technical solution adopted by the present invention is: to provide a temperature sensor adjustment and temperature measurement method, comprising the following steps:

[0006] The temperature measurement range is divided into several equal parts, each of which is a calibration temperature range, and the center point temperature of each calibration temperature range is taken for trimming and calibration, and the corresponding trimming code value is obtained and written into the trimming code value storage array;

[0007] When measuring temperature, the calibration temperature range to which the temperature to be measured belongs is detected and the corresponding adjustment code value is called to perform adjustment and calibration to obtain the measured value of the temperature to be measured.

[0008] Furthermore, the method for adjusting and calibrating the center point temperature of the calibration temperature range includes the following sub-steps:

[0009] Presetting a standard temperature code value corresponding to the center point temperature of each calibration temperature range, and inputting the standard temperature code value into a storage array of the temperature standard code value to be adjusted;

[0010] Based on the standard temperature code values ​​in the storage array of the temperature standard code values ​​to be adjusted, the measured values ​​when the ambient temperature is the center point temperature of each calibration temperature range are adjusted and calibrated to obtain the adjustment code values ​​corresponding to each calibration temperature range.

[0011] Furthermore, based on the standard temperature code values ​​in the storage array of the temperature standard code values ​​to be adjusted, the measured value when the ambient temperature is the center point temperature of the calibration temperature range is adjusted and calibrated, and the method for obtaining the adjustment code value corresponding to the calibration temperature range includes the following sub-steps:

[0012] The ambient temperature is set as the center point temperature of a calibration temperature range and tested, and the measured code value is used as the center point temperature code value of the calibration temperature range;

[0013] Calling the standard temperature code value corresponding to the center point temperature from the storage array of the temperature standard code value to be adjusted;

[0014] The adjustment code value of the center point temperature of the calibration temperature range is set to a default value;

[0015] Subtract the temperature code value of the center point of the calibration temperature range from the corresponding standard temperature code value to obtain a code difference value;

[0016] Compare the absolute value of the code difference with a preset error threshold; if the absolute value of the code difference is less than or equal to the preset error threshold, the trimming code value of the calibration temperature range is set to a default value, and the trimming calibration of the calibration temperature range is terminated;

[0017] If the absolute value of the code difference is greater than the set error threshold, the adjusted code value is automatically increased or decreased from the default value according to the code difference;

[0018] The resistance value of the variable resistor array in the temperature sensing module is adjusted according to the adjusted trimming code value, and the center point temperature code value at this time is measured;

[0019] Return to the step of subtracting the center point temperature code value of the calibration temperature range from the corresponding standard temperature code value to obtain the code difference value, until the absolute value of the code difference value is less than or equal to the set error threshold, and use the adjusted code value at this time as the adjusted code value of the calibration temperature range.

[0020] Furthermore, the method of increasing or decreasing the adjustment code value from a default value according to the code difference value includes: when the code difference value is a positive value, the adjustment code value is increased by a preset step value based on the default value; when the code difference value is a negative value, the adjustment code value is reduced by a preset step value based on the default value.

[0021] Furthermore, when measuring temperature, the calibration temperature range to which the temperature to be measured belongs is detected and the corresponding adjustment code value is called for adjustment and calibration to obtain the measured value of the temperature to be measured, which specifically includes the following sub-steps:

[0022] When the ambient temperature is the temperature to be measured, the temperature code value of the temperature to be measured is detected;

[0023] Convert the temperature code value of the temperature to be measured into the corresponding temperature value;

[0024] The calibration temperature range to which the temperature value belongs is determined and the adjustment code value of the calibration temperature range is called to adjust and calibrate the temperature code value of the temperature to be measured, so as to obtain an accurate temperature measurement code value of the temperature to be measured.

[0025] Furthermore, after obtaining the accurate temperature measurement code value of the temperature to be measured, the following steps are performed:

[0026] If the temperature to be measured changes, the corresponding adjustment code value is called according to the calibration temperature range to which the temperature to be measured belongs after the change to perform adjustment calibration to obtain the measured value after the temperature to be measured changes.

[0027] In order to solve the above technical problems, another technical solution adopted by the present invention is to provide a temperature sensor adjustment and temperature measurement device, comprising:

[0028] A division module is used to divide the temperature measurement range into several equal parts, each of which is a calibration temperature range and set a standard temperature code value for the center point temperature of each calibration temperature range;

[0029] The temperature sensing module is used to detect the ambient temperature and generate the corresponding temperature code value;

[0030] A trimming code value generating module is used to trim and calibrate the center point temperature of each calibration temperature range divided by the dividing module, obtain the corresponding trimming code value and write it into the trimming code value storage array;

[0031] The temperature measurement and calibration module is used to detect the calibration temperature range to which the temperature to be measured belongs during temperature measurement and call the corresponding adjustment code value for adjustment and calibration to obtain the measured value of the current temperature.

[0032] Furthermore, the temperature sensing module includes a bias current generating circuit, a temperature sensing circuit electrically connected to the bias current output end of the bias current generating circuit, a modulator electrically connected to the temperature sensing circuit, and a filter connected to the serial code stream output end of the modulator, wherein the filter is used to output a temperature code value after denoising the serial code stream and transmit it to the adjustment code value generation module.

[0033] Furthermore, the adjustment code value generation module includes:

[0034] A first storage module is used to store a standard temperature code value of a center point temperature of each calibration temperature range;

[0035] A temperature code value comparator is used to calculate the code difference between the temperature code value of the center point temperature obtained by the temperature sensing module and the corresponding standard temperature code value;

[0036] a first calibration module, used to set the trimming code value to a default value and to compare the absolute value of the code difference value with a set error threshold; and to increase or decrease the trimming code value from the default value according to the code difference value when the absolute value of the code difference value is greater than the set error threshold; a variable resistor array is provided in the bias current generating circuit, and the trimming signal output end of the first calibration module is connected to the variable resistor array of the bias current generating circuit to adjust the bias current; and

[0037] The second storage module is used to store the current trimming code value when the absolute value of the code difference value is less than or equal to a set error threshold.

[0038] Further, the temperature measurement and calibration module includes:

[0039] A temperature range detection module, used to convert the temperature code value of the temperature to be measured detected by the temperature sensing module into a corresponding temperature value and determine the calibration temperature range to which the temperature value belongs;

[0040] The second calibration module is used to call the adjustment code value in the calibration temperature range to adjust and calibrate the temperature code value of the temperature to be measured, so as to obtain an accurate temperature measurement code value of the temperature to be measured.

[0041] The temperature sensor adjustment and temperature measurement method and device of the present invention have at least the following beneficial effects: the present invention realizes adaptive temperature calibration by introducing an adjustment working mode, takes the standard temperature code value as a reference value, combines a temperature code value comparator, a first calibration module for self-incrementing or self-decrementing the adjustment code value, and a temperature sensing module provided with a variable resistor array to form a negative feedback loop, and obtains the corresponding adjustment code value, thereby greatly reducing the time and cost of calibration; when measuring the temperature to be measured, the adjustment code in the adjustment code value storage array is directly called for adjustment after the temperature detection, without adding a complex data calibration processing module, and during the temperature measurement process, it is not necessary to perform data calibration calculation processing on the output data all the time, and it is not necessary for the complex digital calibration module to be in a working state all the time, thereby greatly reducing the power consumption during temperature measurement; when detecting the temperature to be measured, the adjustment time before the filter outputs the correct code value is used, and a rough calculation is performed through the data code stream to detect the temperature range, and the adjustment code value is directly called for adjustment, without consuming extra time for data processing and without sacrificing accuracy, thereby realizing high-speed temperature measurement, especially when the temperature fluctuation range is between a minimum temperature detection range, the advantages are particularly prominent in the high-speed temperature measurement use scenario. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0043] Figure 1 The present invention is a flowchart of a method for identifying characters of a microelectronic assembly circuit according to an embodiment of the present invention.

[0044] Figure 2 Flow chart for trimming the temperature at the center of the calibration temperature range.

[0045] Figure 3 for Figure 2 Flowchart of step S12 in FIG.

[0046] Figure 4 for Figure 1 Flowchart of step S2 in FIG.

[0047] Figure 5 It is a structural block diagram of an embodiment of a temperature sensor adjustment and temperature measurement device of the present invention.

[0048] Figure 6 It is a structural diagram of a temperature sensing module in one embodiment of the temperature sensor adjustment and temperature measurement device of the present invention.

[0049] Figure 7 It is a structural diagram of a temperature sensing module in the prior art.

[0050] Figure 8 for Figure 6 Circuit diagram of the variable resistor array. DETAILED DESCRIPTION

[0051] The present invention will be further described below in conjunction with the accompanying drawings.

[0052] See also Figure 1 , is a flow chart of an embodiment of a method for identifying characters of a microelectronic assembly circuit of the present invention. This embodiment may specifically include the following steps:

[0053] S1. Calibrate the center point temperature and obtain the adjustment code value.

[0054] For example, the temperature measurement range can be divided into several equal parts, each of which is used as a calibration temperature range. The center point temperature of each calibration temperature range is taken for adjustment and calibration, and the corresponding adjustment code value is obtained and written into the adjustment code value storage array. The step size of dividing the temperature measurement range is determined according to the temperature measurement range. It should be noted that the step size of dividing the temperature measurement range cannot be too large, otherwise the measurement accuracy will not meet the requirements. This method can not only cover the full temperature range, but also increase the number of standard temperature ranges by reducing the step size of dividing the temperature measurement range when dividing the temperature measurement range, increase the number of measurement points, and thus improve the accuracy of temperature measurement.

[0055] See also Figure 2 , the trimming and calibration of the center point temperature of the calibration temperature range may include the following steps:

[0056] S11. Preset the standard temperature code value.

[0057] Specifically, the standard temperature code value corresponding to the center point temperature of each calibration temperature range is pre-set, and the standard temperature code value is input into the storage array of the standard temperature code value to be adjusted. In this embodiment, the pre-set standard temperature code value is set according to the formula T=A*Dout-B, where T represents the center point temperature, Dout represents the standard temperature code value, and A and B are preset constants.

[0058] S12. Calibrate the center point temperature based on the standard temperature code value.

[0059] Specifically, based on the standard temperature code values ​​in the storage array of the temperature standard code values ​​to be adjusted, the measured values ​​when the ambient temperature is the center point temperature of each calibration temperature range are adjusted and calibrated respectively to obtain the adjustment code values ​​corresponding to each calibration temperature range.

[0060] See also Figure 3 , this step S12 may include the following sub-steps:

[0061] S121, detect and obtain the center point temperature code value.

[0062] Specifically, the ambient temperature is set as the center point temperature of a calibration temperature range and detected, so that the measured code value is used as the center point temperature code value of the calibration temperature range.

[0063] S122. Call the standard temperature code value.

[0064] Specifically, the standard temperature code value corresponding to the central point temperature is called from the storage array of the standard temperature code value to be adjusted.

[0065] S123: Initialize the adjustment code value.

[0066] Specifically, the adjustment code value of the center point temperature of the calibration temperature range is initialized to a default value, and the default value may be 0 or any other value.

[0067] S124: Calculate the code difference.

[0068] Specifically, the code value of the center point temperature of the calibration temperature range is subtracted from the corresponding standard temperature code value to obtain a code difference value.

[0069] S125. Determine whether the absolute value of the code difference is greater than the error threshold.

[0070] Specifically, an error threshold is preset, the absolute value of the code difference is taken, and the absolute value of the code difference is compared with the preset error threshold to determine whether adjustment and calibration are required. In this embodiment, the error threshold is set to the LSB of the temperature sensor resolution, and the LSB is the least significant bit in the digital signal output by the temperature sensor, which represents the minimum temperature change that the sensor can distinguish.

[0071] S126, end calibration.

[0072] Specifically, if the absolute value of the code difference is less than or equal to the set error threshold, the trimming calibration of the calibration temperature range is terminated, and the trimming code value at this time is written into the trimming code value storage array as the trimming code value of the calibration temperature range. When the absolute value of the code difference is less than or equal to the set error threshold without adjusting the trimming code value, the trimming code value is the set default value, that is, the trimming code value of the calibration temperature range is the default value.

[0073] S127, adjusting the trimming code value.

[0074] Specifically, if the absolute value of the code difference value is greater than the set error threshold, the adjusted code value is incremented or decremented from the default value according to the code difference value. The method of incrementing or decrementing the adjusted code value from the default value according to the code difference value can be: when the code difference value is a positive value, the adjusted code value increases a preset step value on the basis of the default value; when the code difference value is a negative value, the adjusted code value decreases a preset step value on the basis of the default value. In this embodiment, the step value is set to the minimum 001 to improve the measurement accuracy. For example, the default adjusted code value is 001. When the absolute value of the code difference value is greater than the set error threshold, if the code difference value is a positive value, the adjusted code value will increase by one step and become 010. If the code difference value is a negative value, the adjusted code value will decrease by one step and become 000.

[0075] S128, adjusting the temperature sensing module 200 and re-measuring.

[0076] The temperature sensing module 200 is used to detect the ambient temperature and generate a corresponding temperature code value. Specifically, the temperature sensing module 200 of this embodiment includes a bias current generating circuit 210, a temperature sensing circuit 220 electrically connected to the bias current output terminal of the bias current generating circuit 210, a modulator 230 electrically connected to the temperature sensing circuit 220, and a filter 240 connected to the serial code stream output terminal of the modulator 230, wherein the filter 240 is used to output the temperature code value after reducing the noise of the serial code stream and transmit it to the adjustment code value generating module 300. In this embodiment, the modulator 230 adopts a Sigma-delta modulator with high resolution and low noise, and the filter 240 adopts a CIC filter. Please refer to Figure 6 and Figure 7 The temperature sensing module 200 of this embodiment improves the structure of the existing temperature sensing module by replacing the fixed resistor R1 in the existing temperature sensing module with a variable resistor array R. Figure 8 , which is a circuit diagram of the variable resistor array R. In the figure, ADJ<0:M> is the trimming code value for calibrating the variable resistor, and ADJN<0:M> is the value after ADJ<0:M> is inverted. The resistance in the connected circuit can be controlled by the trimming code value, thereby changing the resistance value of the variable resistor array R.

[0077] Specifically, the resistance of the variable resistor array R in the temperature sensing module 200 is adjusted according to the adjusted trimming code value, and the center point temperature code value at this time is measured using the adjusted temperature sensing module 200. The resistance of the variable resistor array R changes, thereby changing the generated bias current, and then changing the center point temperature code value output by the temperature sensing module. Return to execute steps S124 to S128 until the absolute value of the code difference is less than or equal to the set error threshold, and the trimming code value at this time is used as the trimming code value of the calibration temperature range.

[0078] For details, please refer to Figure 6 , is a structural diagram of the temperature sensing module 200 in this embodiment, and the calculation formula of the bias current is as follows:

[0079]

[0080] Among them, I PTAT Denotes the bias current, ΔV BE,b Represents the V of two bipolar transistors. BE The difference, V BE The voltage difference between the base and emitter, R A Represents the bias resistor used to generate and adjust the bias current. By adjusting the resistance of the variable resistor array, R A size, thereby changing the bias current generated.

[0081] S2. Calibrate the temperature to be measured based on the adjustment code value.

[0082] Specifically, when measuring temperature, the calibration temperature range to which the temperature to be measured belongs is detected and the corresponding adjustment code value is called to perform adjustment and calibration to obtain the measurement value of the temperature to be measured.

[0083] See also Figure 4 , this step S2 may include the following sub-steps:

[0084] S21, detecting the temperature code value of the temperature to be measured.

[0085] Specifically, when the ambient temperature is the temperature to be measured, the temperature to be measured is detected, the temperature code value of the temperature to be measured is obtained and transmitted through a serial code stream. A serial code stream refers to a digital data form that is transmitted bit by bit in time sequence. Each bit in the serial code stream may be "0" or "1", and they are arranged in a specific order. In this embodiment, the serial code stream carries information about the temperature code value.

[0086] S22, converting the temperature code value of the temperature to be measured into a corresponding temperature value.

[0087] Specifically, the "1" in the serial code stream is counted within a set period, and the count result is converted into a corresponding temperature value, and "1" represents a specific temperature weight. It should be noted that the set period should be much smaller than the output period of the CIC filter. In order to balance the temperature measurement accuracy and response time, the period of serial code stream calculation needs to be compromised to ensure that temperature changes can be accurately identified and distinguished within the detection temperature range.

[0088] S23. Determine the calibration temperature range and perform calibration.

[0089] Specifically, the calibration temperature range to which the temperature value belongs is determined and the adjustment code value of the calibration temperature range is called, and the resistance value of the variable resistor array of the temperature sensing module is adjusted according to the adjustment code value, thereby adjusting and calibrating the temperature code value of the temperature to be measured, and obtaining an accurate temperature code value of the temperature to be measured. After encoding the temperature code value, a digital code D expressed in degrees Celsius can be obtained. out , which is the temperature value to be measured. Digital code D out The calculation formula is as follows:

[0090] D out =C·μ+D

[0091] Among them, C is 600K, D is -273K, and μ is a variable related to temperature change, which is obtained by the following formula:

[0092]

[0093] Where k is the Boltzmann constant, q is the charge, T is the temperature, p is the current ratio of the two branches, α is the proportionality coefficient, V BE The calculation formula is as follows:

[0094]

[0095] Among them, I s Represents the reverse saturation current of a bipolar transistor.

[0096] From the above formula, we can know that adjusting the bias current I PTAT The variable μ related to temperature change can be changed, thereby changing the detected digital code D out .

[0097] In order to prevent inaccurate measurement results caused by temperature fluctuations, as a preferred implementation, when a change in the measured temperature is detected, the corresponding adjustment code value will be called according to the calibration temperature range to which the measured temperature belongs after the change to perform adjustment and calibration to obtain the measured value after the measured temperature changes.

[0098] See also Figure 5 , is a structural block diagram of an embodiment of a temperature sensor adjustment and temperature measurement device of the present invention. The temperature sensor adjustment and temperature measurement device of this embodiment is used to implement the temperature sensor adjustment and temperature measurement method described in the above embodiment. Specifically, the temperature sensor adjustment and temperature measurement device of this embodiment includes a division module 100, a temperature sensing module 200, an adjustment code value generation module 300 and a temperature measurement calibration module 400. Among them:

[0099] The division module 100 is used to divide the temperature measurement range into a number of equal parts, each of which is a calibration temperature range and sets a standard temperature code value for the center point temperature of each calibration temperature range.

[0100] The temperature sensing module 200 is used to detect the ambient temperature and generate a corresponding temperature code value. The specific structure of the temperature sensing module 200 is described in step S128 of the temperature sensor adjustment and temperature measurement method, and will not be described in detail here.

[0101] The trimming code value generation module 300 is used to trim and calibrate the center point temperature of each calibration temperature range divided by the division module 100, obtain the corresponding trimming code value and write it into the trimming code value storage array. Specifically, the trimming code value generation module 300 of this embodiment includes a first storage module 310, a temperature code value comparator 320, a first calibration module 330 and a second storage module 340. Among them:

[0102] The first storage module 310 is used to store the standard temperature code value of the center point temperature of each calibration temperature range. Specifically, the standard temperature code value is stored in the storage array of the standard temperature code value to be adjusted, and the storage array of the standard temperature code value to be adjusted is integrated in the first storage module.

[0103] The temperature code value comparator 320 is used to calculate the code difference between the temperature code value of the center point temperature obtained by the temperature sensing module 200 and the corresponding standard temperature code value.

[0104] The first calibration module 330 is used to set the trimming code value to a default value and to compare the absolute value of the code difference value with a set error threshold; it is also used to increase or decrease the trimming code value from the default value according to the code difference value when the absolute value of the code difference value is greater than the set error threshold; a variable resistor array R is provided in the bias current generating circuit 210, and the trimming signal output end of the first calibration module 330 is connected to the variable resistor array R of the bias current generating circuit 210 to adjust the bias current.

[0105] The second storage module 340 is used to store the current adjusted code value when the absolute value of the code difference is less than or equal to the set error threshold. Specifically, the adjusted code value is stored in the adjusted code value storage array, which is integrated in the second storage module.

[0106] The temperature measurement and calibration module 400 is used to detect the calibration temperature range to which the temperature to be measured belongs during temperature measurement and call the corresponding adjustment code value for adjustment and calibration to obtain the measured value of the current temperature. Specifically, the temperature measurement and calibration module 400 of this embodiment includes a temperature range detection module 410 and a second calibration module 420. Among them:

[0107] The temperature range detection module 410 is used to convert the temperature code value of the temperature to be measured detected by the temperature sensing module 200 into a corresponding temperature value and determine the calibration temperature range to which the temperature value belongs. Specifically, the temperature range detection module 410 of this embodiment includes a code stream counter for counting "1" in the serial code stream within a set period and a calculation module for converting the counting result into a corresponding temperature value and determining the calibration temperature range to which it belongs.

[0108] The second calibration module 420 is used to call the adjustment code value in the calibration temperature range to adjust and calibrate the temperature code value of the temperature to be measured, so as to obtain an accurate temperature measurement code value of the temperature to be measured.

[0109] The present invention introduces a trimming working mode, takes the standard temperature code value as a reference value, combines a temperature code value comparator, a first calibration module for self-increasing or self-decreasing the trimming code value, and a temperature sensing module provided with a variable resistor array to form a negative feedback loop, thereby realizing adaptive temperature calibration, and obtaining corresponding trimming code values ​​at the same time, greatly reducing the time and cost of calibration; when measuring the temperature to be measured, the trimming code in the trimming code value storage array is directly called for trimming after temperature detection, without adding a complex data calibration processing module, and during the temperature measurement process, there is no need to perform data calibration calculation processing on the output data all the time, and there is no need for a complex digital calibration module to be in a working state all the time, which greatly reduces the power consumption during temperature measurement; when detecting the temperature to be measured, the adjustment time before the filter outputs the correct code value is used, and a rough calculation is performed through the data code stream to detect the temperature range, and the trimming code value is directly called for trimming, without consuming extra time for data processing and without sacrificing accuracy, thereby realizing high-speed temperature measurement, especially when the temperature fluctuation range is between a minimum temperature detection range, the advantages are particularly prominent in the high-speed temperature measurement usage scenario.

[0110] The above content only expresses the preferred embodiments of the present invention, and its description is relatively specific and detailed, but it cannot be understood as limiting the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be based on the attached claims.

Claims

1. A temperature sensor adjustment and temperature measurement method, characterized in that: The following steps are involved: The temperature measurement range is divided into several equal parts, each of which is a calibration temperature range, and the center point temperature of each calibration temperature range is taken for trimming and calibration, and the corresponding trimming code value is obtained and written into the trimming code value storage array; When measuring temperature, the calibration temperature range to which the temperature to be measured belongs is detected and the corresponding adjustment code value is called to perform adjustment and calibration to obtain the measured value of the temperature to be measured.

2. The temperature sensor adjustment and temperature measurement method according to claim 1, characterized in that: The method for trimming and calibrating the center point temperature of the calibration temperature range comprises the following sub-steps: Presetting a standard temperature code value corresponding to the center point temperature of each calibration temperature range, and inputting the standard temperature code value into a storage array of the temperature standard code value to be adjusted; Based on the standard temperature code values ​​in the storage array of the temperature standard code values ​​to be adjusted, the measured values ​​when the ambient temperature is the center point temperature of each calibration temperature range are adjusted and calibrated to obtain the adjustment code values ​​corresponding to each calibration temperature range.

3. The temperature sensor adjustment and temperature measurement method according to claim 2, characterized in that: Based on the standard temperature code values ​​in the storage array of the temperature standard code values ​​to be adjusted, the measured value when the ambient temperature is the center point temperature of the calibration temperature range is adjusted and calibrated, and the method for obtaining the adjustment code value corresponding to the calibration temperature range includes the following sub-steps: The ambient temperature is set as the center point temperature of a calibration temperature range and tested, and the measured code value is used as the center point temperature code value of the calibration temperature range; Calling the standard temperature code value corresponding to the center point temperature from the storage array of the temperature standard code value to be adjusted; The adjustment code value of the center point temperature of the calibration temperature range is set to a default value; Subtract the temperature code value of the center point of the calibration temperature range from the corresponding standard temperature code value to obtain a code difference value; Compare the absolute value of the code difference with a preset error threshold; if the absolute value of the code difference is less than or equal to the preset error threshold, the trimming code value of the calibration temperature range is set to a default value, and the trimming calibration of the calibration temperature range is terminated; If the absolute value of the code difference is greater than the set error threshold, the adjusted code value is automatically increased or decreased from the default value according to the code difference; The resistance value of the variable resistor array in the temperature sensing module is adjusted according to the adjusted trimming code value, and the center point temperature code value at this time is measured; Return to the step of subtracting the center point temperature code value of the calibration temperature range from the corresponding standard temperature code value to obtain the code difference value, until the absolute value of the code difference value is less than or equal to the set error threshold, and use the adjusted code value at this time as the adjusted code value of the calibration temperature range.

4. The temperature sensor adjustment and temperature measurement method according to claim 3, characterized in that: The method of increasing or decreasing the adjustment code value from a default value according to the code difference value includes: when the code difference value is a positive value, the adjustment code value is increased by a preset step value based on the default value; when the code difference value is a negative value, the adjustment code value is reduced by a preset step value based on the default value.

5. The temperature sensor adjustment and temperature measurement method according to claim 1, characterized in that: When measuring temperature, the calibration temperature range to which the temperature to be measured belongs is detected and the corresponding adjustment code value is called for adjustment and calibration to obtain the measured value of the temperature to be measured, which specifically includes the following sub-steps: When the ambient temperature is the temperature to be measured, the temperature code value of the temperature to be measured is detected; Convert the temperature code value of the temperature to be measured into the corresponding temperature value; The calibration temperature range to which the temperature value belongs is determined and the adjustment code value of the calibration temperature range is called to adjust and calibrate the temperature code value of the temperature to be measured, so as to obtain an accurate temperature measurement code value of the temperature to be measured.

6. The temperature sensor adjustment and temperature measurement method according to claim 5, characterized in that: After obtaining the accurate temperature measurement code value of the temperature to be measured, the following steps are performed: If the temperature to be measured changes, the corresponding adjustment code value is called according to the calibration temperature range to which the temperature to be measured belongs after the change to perform adjustment calibration to obtain the measured value after the temperature to be measured changes.

7. A temperature sensor adjustment and temperature measurement device, characterized in that: include: A division module is used to divide the temperature measurement range into several equal parts, each of which is a calibration temperature range and set a standard temperature code value for the center point temperature of each calibration temperature range; The temperature sensing module is used to detect the ambient temperature and generate the corresponding temperature code value; A trimming code value generating module is used to trim and calibrate the center point temperature of each calibration temperature range divided by the dividing module, obtain the corresponding trimming code value and write it into the trimming code value storage array; The temperature measurement and calibration module is used to detect the calibration temperature range to which the temperature to be measured belongs during temperature measurement and call the corresponding adjustment code value for adjustment and calibration to obtain the measured value of the current temperature.

8. The temperature sensor adjustment and temperature measurement device according to claim 7, characterized in that The temperature sensing module includes a bias current generating circuit, a temperature sensing circuit electrically connected to the bias current output end of the bias current generating circuit, a modulator electrically connected to the temperature sensing circuit, and a filter connected to the serial code stream output end of the modulator, wherein the filter is used to output a temperature code value after denoising the serial code stream and transmit it to the adjustment code value generating module.

9. The temperature sensor adjustment and temperature measurement device according to claim 8, characterized in that: The adjustment code value generation module comprises: A first storage module is used to store a standard temperature code value of a center point temperature of each calibration temperature range; A temperature code value comparator is used to calculate the code difference between the temperature code value of the center point temperature obtained by the temperature sensing module and the corresponding standard temperature code value; a first calibration module, used to set the trimming code value to a default value and to compare the absolute value of the code difference value with a set error threshold; and to increase or decrease the trimming code value from the default value according to the code difference value when the absolute value of the code difference value is greater than the set error threshold; a variable resistor array is provided in the bias current generating circuit, and the trimming signal output end of the first calibration module is connected to the variable resistor array of the bias current generating circuit to adjust the bias current; and The second storage module is used to store the current trimming code value when the absolute value of the code difference value is less than or equal to a set error threshold.

10. The temperature sensor adjustment and temperature measurement device according to claim 8, characterized in that: The temperature measurement and calibration module comprises: A temperature range detection module, used to convert the temperature code value of the temperature to be measured detected by the temperature sensing module into a corresponding temperature value and determine the calibration temperature range to which the temperature value belongs; The second calibration module is used to call the adjustment code value in the calibration temperature range to adjust and calibrate the temperature code value of the temperature to be measured, so as to obtain an accurate temperature measurement code value of the temperature to be measured.

Citation Information

Patent Citations

  • Trimming circuit and trimming method for reference voltage

    CN113885643A

  • Band-gap reference voltage calibration method

    CN114296504A

  • Constant current source calibration system in complex temperature environment

    CN115542229A

  • Temperature sensor calibration method, system and device

    CN115717949A

  • Novel precision-adjustable temperature sensor circuit

    CN116242496A