Temperature sensor trimming and temperature measurement method and apparatus
By dividing the temperature sensor's measurement range into multiple calibration temperature ranges and using a variable resistor array and temperature code value comparator for adaptive calibration, the problem of insufficient accuracy across the entire temperature range in traditional temperature sensor calibration methods is solved, achieving high-precision and low-power temperature measurement.
Patent Information
- Application Number
- CN202411625413.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-14
- Publication Date
- 2025-12-05
- Estimated Expiration
- 2044-11-14
AI Technical Summary
In the prior art, the calibration methods for CMOS digital temperature sensors are complex, increasing calibration time and power consumption. However, traditional temperature sensor calibration methods cannot achieve high-precision temperature measurement across the entire temperature range, and the calibration process is complicated.
The temperature measurement range is divided into several equal parts, each part being 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 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 for calibration. Adaptive calibration is performed using a variable resistor array and a temperature code value comparator.
It achieves high-precision temperature measurement across the entire temperature range, reducing calibration time and power consumption, and has high-speed temperature measurement capabilities, especially when the temperature fluctuation range is small.
Smart Images

Figure CN119492461B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of integrated circuits, in particular to a temperature sensor trimming and temperature measurement method and device. BACKGROUND
[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 working temperature range is limited, and their precision is slightly lower than that of traditional temperature sensors. Therefore, their temperature calibration scheme has attracted widespread attention.
[0003] Currently, single-point trimming calibration scheme is a common calibration method. This method measures and calibrates the temperature measurement error at a certain specific temperature point, in an attempt to extend the error calibration to the full temperature range. 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 not possible to adaptively adjust the related parameters, increasing the time and cost of calibration. In order to overcome the limitations of the single-point trimming calibration scheme, traditional digital modules adopt two main calibration methods. The first method adjusts the gain of the Delta-sigma ADC to reduce the ADC conversion period, thereby improving the temperature measurement speed. However, this method sacrifices precision in high-speed temperature measurement scenarios due to the reduction in ADC conversion period, making it difficult to achieve high trimming accuracy. The second method adds a complex data calibration processing module, which continuously performs data operation and calibration processing on the output data during temperature measurement to make it the desired correct result. Although this method improves the temperature measurement accuracy to some extent, the processing time of the digital processing module during temperature measurement is relatively long, and the newly added data processing module is always in working state during temperature measurement, increasing the power consumption during working. SUMMARY
[0004] In view of the above problems of the prior art, the technical problem to be solved by the present application is to provide a temperature sensor trimming and temperature measurement method and device with high precision and full temperature range coverage.
[0005] To solve the above technical problems, one technical solution adopted by the present application is to provide a temperature sensor trimming and temperature measurement method, comprising the following steps:
[0006] Divide the temperature measurement range into several equal parts, each part being a calibration temperature range, and take the center point temperature of each calibration temperature range for trimming and calibration to obtain the corresponding trimming code value and write it into the trimming code value storage array;
[0007] The temperature to be measured is detected to belong to a calibration temperature range, and a corresponding adjustment code value is called to adjust and calibrate the calibration temperature range, so as to obtain a measurement value of the temperature to be measured.
[0008] Further, the method for adjusting and calibrating the center point temperature of the calibration temperature range comprises the following sub-steps:
[0009] The standard temperature code value corresponding to the center point temperature of each calibration temperature range is preset, and the standard temperature code value is input into the temperature standard code value storage array to be adjusted;
[0010] Based on the standard temperature code value in the temperature standard code value storage array to be adjusted, the measurement value when the ambient temperature is the center point temperature of each calibration temperature range is adjusted and calibrated, so as to obtain the adjustment code value corresponding to each calibration temperature range.
[0011] Further, based on the standard temperature code value in the temperature standard code value storage array to be adjusted, the measurement value when the ambient temperature is the center point temperature of each calibration temperature range is adjusted and calibrated, so as to obtain the adjustment code value corresponding to each calibration temperature range.
[0012] The ambient temperature is set to the center point temperature of a calibration temperature range and is detected, and the measured code value is taken as the center point temperature code value of the calibration temperature range;
[0013] The standard temperature code value corresponding to the center point temperature is called from the temperature standard code value storage array 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] The center point temperature code value of the calibration temperature range is subtracted from the corresponding standard temperature code value to obtain a code difference value;
[0016] The absolute value of the code difference value is compared with a preset error threshold value, if the absolute value of the code difference value is less than or equal to the set error threshold value, the adjustment code value of the calibration temperature range is the default value, and the adjustment and calibration of the calibration temperature range is ended;
[0017] If the absolute value of the code difference value is greater than the set error threshold value, the adjustment code value is increased or decreased from the default value according to the code difference value;
[0018] The resistance value of the variable resistance array in the temperature sensing module is adjusted according to the adjusted adjustment code value, and the center point temperature code value at this time is measured;
[0019] Return the center point temperature code value of the calibration temperature range and the corresponding standard temperature code value, and 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 the adjustment code value at this time is taken as the adjustment code value of the calibration temperature range.
[0020] Further, the method of increasing or decreasing the adjustment code value from the default value according to the code difference value comprises: when the code difference value is positive, the adjustment code value is increased by a preset step value based on the default value; when the code difference value is negative, the adjustment code value is decreased by a preset step value based on the default value.
[0021] Further, the step of detecting the calibration temperature range to which the to-be-measured temperature belongs and calling the corresponding adjustment code value for adjustment calibration to obtain the measurement value of the to-be-measured temperature comprises the following sub-steps:
[0022] When the environment temperature is the to-be-measured temperature, the temperature code value of the to-be-measured temperature is detected;
[0023] The temperature code value of the to-be-measured temperature is converted into a 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 to-be-measured temperature, to obtain an accurate temperature measurement code value of the to-be-measured temperature.
[0025] Further, after obtaining the accurate temperature measurement code value of the to-be-measured temperature, the following steps are further performed:
[0026] If the to-be-measured temperature changes, the corresponding adjustment code value is called according to the calibration temperature range to which the to-be-measured temperature belongs after the change, to obtain the measurement value of the to-be-measured temperature after the change.
[0027] To solve the above technical problems, another technical solution adopted by the present application is to provide a temperature sensor adjustment and temperature measurement device, comprising:
[0028] The division module is used for dividing the temperature measurement range into several equal parts, each part being a calibration temperature range, and setting the standard temperature code value of the center point temperature of each calibration temperature range;
[0029] The temperature sensing module is used for detecting the environment temperature and generating a corresponding temperature code value;
[0030] The adjustment code value generation module is used for adjusting and calibrating the center point temperature of each calibration temperature range divided by the division module, to obtain the corresponding adjustment code value and write it into the adjustment code value storage array;
[0031] The temperature measurement calibration module is used for detecting the calibration temperature range to which the to-be-measured temperature belongs when measuring the temperature, and calling the corresponding adjustment code value for adjustment calibration, to obtain the measurement value of the current temperature.
[0032] Further, the temperature sensing module comprises a bias current generating circuit, a temperature sensing circuit electrically connected with a bias current output terminal of the bias current generating circuit, a modulator electrically connected with the temperature sensing circuit, and a filter connected with a serial code stream output terminal of the modulator, the filter being used for outputting a temperature code value after noise reduction of the serial code stream and transmitting the temperature code value to the adjusted code value generating module.
[0033] Further, the adjusted code value generating module comprises:
[0034] a first storage module, used for storing a standard temperature code value of a center point temperature of each calibration temperature range;
[0035] a temperature code value comparator, used for calculating a code difference value between a temperature code value of the center point temperature obtained by the temperature sensing module and a corresponding standard temperature code value;
[0036] a first calibration module, used for setting the adjusted code value as a default value and comparing an absolute value of the code difference value with a set error threshold value, and further used for increasing or decreasing the adjusted 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 value, wherein a variable resistance array is set in the bias current generating circuit, and an adjusted signal output terminal of the first calibration module is connected with the variable resistance array of the bias current generating circuit to adjust the bias current; and
[0037] a second storage module, used for storing a current adjusted code value when the absolute value of the code difference value is less than or equal to the set error threshold value.
[0038] Further, the temperature calibration module comprises:
[0039] a temperature range detection module, used for converting a temperature code value of a to-be-measured temperature detected by the temperature sensing module into a corresponding temperature value and determining a calibration temperature range to which the temperature value belongs;
[0040] a second calibration module, used for calling the adjusted code value of the calibration temperature range to adjust and calibrate the temperature code value of the to-be-measured temperature, so as to obtain an accurate temperature measurement code value of the to-be-measured temperature.
[0041] The temperature sensor adjustment and temperature measurement method and device has at least the following beneficial effects: the temperature sensor adjustment and temperature measurement method and device introduces an adjustment mode, takes a 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 adjustment code value, and a temperature sensing module provided with a variable resistance array to form a negative feedback loop, realizes self-adaptive calibration of the temperature, obtains a corresponding adjustment code value, greatly reduces the time and cost of calibration, directly calls the adjustment code in the adjustment code storage array for adjustment after temperature detection when measuring the temperature to be measured, does not need to increase a complex data calibration processing module, does not need to perform data calibration operation processing on the output data during the temperature measurement process, does not need a complex digital calibration module to be in a working state all the time, greatly reduces the power consumption during the temperature measurement, utilizes the adjustment time before the filter outputs a correct code value to detect the temperature range through rough calculation of a data code stream, directly calls the adjustment code value for adjustment, does not need to consume redundant time for data processing and does not need to sacrifice the precision, and thus realizes high-speed temperature measurement, especially in the high-speed temperature measurement use scenario when the temperature fluctuation range is between a minimum temperature detection range, and the advantage is particularly prominent. BRIEF DESCRIPTION OF DRAWINGS
[0042] The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and serve to explain the principles of the application, and do not limit the application. In the drawings:
[0043] Figure 1 The flowchart of the method for identifying characters of a microelectronic assembly circuit according to an embodiment of the application.
[0044] Figure 2 The flowchart of the adjustment and calibration of the center point temperature of the calibration temperature range.
[0045] Figure 3 The flowchart of the adjustment and calibration of the center point temperature of the calibration temperature range. Figure 2 The flowchart of step S12.
[0046] Figure 4 The flowchart of the adjustment and calibration of the center point temperature of the calibration temperature range. Figure 1 The flowchart of step S2.
[0047] Figure 5 The structure block diagram of the temperature sensor adjustment and temperature measurement device according to an embodiment of the application.
[0048] Figure 6 The structure diagram of the temperature sensing module in the temperature sensor adjustment and temperature measurement device according to an embodiment of the application.
[0049] Figure 7 The structure diagram of the temperature sensing module in the temperature sensor adjustment and temperature measurement device according to an embodiment of the application.
[0050] Figure 8 For Figure 6 Circuit diagram of the variable resistance array. DETAILED DESCRIPTION
[0051] The application will be further described below with reference to the drawings.
[0052] Referring to Figure 1 , the flow chart of an embodiment of the method for identifying microelectronic assembly circuit characters. The embodiment can specifically include the following steps:
[0053] S1, calibrate the center point temperature to obtain the adjusted code value.
[0054] For example, the temperature measurement range can be divided into several equal parts, and the center point temperature of each calibration temperature range is taken as an adjustment calibration, and the corresponding adjusted code value is obtained and written into the adjusted 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 cannot meet the requirements. This method not only can cover the full temperature range, but also can increase the number of measurement points by reducing the step size of dividing the temperature measurement range when dividing the temperature measurement range, thereby improving the temperature measurement accuracy.
[0055] Referring to Figure 2 , the center point temperature of the calibration temperature range can be adjusted and calibrated, which can 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 preset, and the standard temperature code value is input into the temperature standard code value storage array to be adjusted. In the embodiment, the preset standard temperature code value is set according to the formula T=A*Dout-B, wherein 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 value in the temperature standard code value storage array to be adjusted, the measurement value when the environmental temperature is the center point temperature of each calibration temperature range is adjusted and calibrated respectively, and the adjusted code value corresponding to each calibration temperature range is obtained.
[0060] Referring to Figure 3 , the step S12 can include the following sub-steps:
[0061] S121, detect the center point temperature code value.
[0062] Specifically, the ambient temperature is set as a center point temperature of a calibration temperature range and detected, and the measured code value is taken as a center point temperature code value of the calibration temperature range.
[0063] S122, a standard temperature code value is called.
[0064] Specifically, the standard temperature code value corresponding to the center point temperature is called from the to-be-adjusted temperature standard code value storage array.
[0065] S123, an adjustment code value is initialized.
[0066] Specifically, the adjustment code value of the center point temperature of the calibration temperature range is initialized as a default value, which can be 0 or any other value.
[0067] S124, a code difference value is calculated.
[0068] Specifically, the center point temperature code value of the calibration temperature range is subtracted from the corresponding standard temperature code value to obtain the code difference value.
[0069] S125, it is judged whether the absolute value of the code difference value is greater than an error threshold value.
[0070] Specifically, an error threshold value is set in advance, the absolute value of the code difference value is taken, and the absolute value of the code difference value is compared with the error threshold value set in advance to determine whether adjustment calibration is needed. In the embodiment, the error threshold value is set as 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 smallest temperature change amount that can be distinguished by the sensor.
[0071] S126, the calibration is ended.
[0072] Specifically, if the absolute value of the code difference value is less than or equal to the set error threshold value, the adjustment calibration of the calibration temperature range is ended, and the adjustment code value at this time is taken as the adjustment code value of the calibration temperature range and written into the adjustment code value storage array. When the adjustment of the adjustment code value is not performed and the absolute value of the code difference value is less than or equal to the set error threshold value, the adjustment code value is the set default value, i.e., the adjustment code value of the calibration temperature range is the default value.
[0073] S127, the adjustment code value is adjusted.
[0074] Specifically, if the absolute value of the code difference value is greater than the set error threshold, the adjustment code value is increased or decreased from the default value according to the code difference value. The method of increasing or decreasing the adjustment code value from the default value according to the code difference value can be: when the code difference value is positive, the adjustment code value is increased by a preset step value based on the default value; when the code difference value is negative, the adjustment code value is decreased by a preset step value based on the default value. In this embodiment, the step value is set to the smallest 001 to improve the measurement accuracy. For example, the default adjustment 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 positive, the adjustment code value will be increased by a step to become 010, if the code difference value is negative, the adjustment code value will be decreased by a step to become 000.
[0075] S128, adjust the temperature sensing module 200 and re-measure.
[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 the present 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, the filter 240 is used to output the temperature code value after noise reduction of the serial code stream and transmit 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 With Figure 7 The temperature sensing module 200 of the present embodiment improves the structure of the existing temperature sensing module, and changes the fixed resistor R1 in the existing temperature sensing module to a variable resistance array R. Please refer to Figure 8 , the circuit diagram of the variable resistance array R, in which ADJ<0:M> is the adjustment code value for calibrating the variable resistance, and ADJN<0:M> is the value after ADJ<0:M> is inverted, the resistance in the access circuit can be controlled by the adjustment code value, thereby changing the resistance value of the variable resistance array R.
[0077] Specifically, the resistance value of the variable resistance array R in the temperature sensing module 200 is adjusted according to the adjusted adjustment code value, and the center point temperature code value at this time is measured by using the adjusted temperature sensing module 200. The resistance value of the variable resistance array R changes, thereby changing the generated bias current and the output center point temperature code value of the temperature sensing module. Return to execute steps S124-S128 until the absolute value of the code difference value is less than or equal to the set error threshold, and the adjustment code value at this time is taken as the adjustment code value of the calibration temperature range.
[0078] Specifically, please refer toFigure 6 , the calculation formula of the bias current is as follows:
[0079]
[0080] wherein I PTAT represents the bias current, AV BE,b represents the difference between the V BE of the two bipolar transistors, V BE is the voltage difference between the base and the emitter, R A represents the bias resistance for generating and adjusting the size of the bias current, and the resistance value of the adjustable resistance array can be changed to change the size of R A , thereby changing the generated bias current.
[0081] S2, calibrating the to-be-measured temperature based on the trimming code value.
[0082] Specifically, when measuring the temperature, the calibration temperature range to which the to-be-measured temperature belongs is detected, and the corresponding trimming code value is called for trimming and calibration to obtain the measurement value of the to-be-measured temperature.
[0083] Referring to Figure 4 , the step S2 can include the following sub-steps:
[0084] S21, detecting the temperature code value of the to-be-measured temperature.
[0085] Specifically, when the ambient temperature is the to-be-measured temperature, the to-be-measured temperature is detected to obtain the temperature code value of the to-be-measured temperature and transmit it through a serial code stream. The serial code stream refers to a form of digital data transmitted bit by bit in time sequence. Each bit in the serial code stream can be "0" or "1", and they are arranged in a specific order. In the present embodiment, the serial code stream carries the information of the temperature code value.
[0086] S22, converting the temperature code value of the to-be-measured temperature into a corresponding temperature value.
[0087] Specifically, the "1" in the serial code stream is counted within a set period, and the counting result is converted into a corresponding temperature value. "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 the response time, the period of serial code stream calculation needs to be considered to ensure that within the detection temperature range, the temperature change can be accurately identified and distinguished.
[0088] S23, determining the calibration temperature range and performing calibration.
[0089] Specifically, a calibration temperature range to which the temperature value belongs is determined, and a trimming code value of the calibration temperature range is called to adjust the resistance value of the variable resistance array of the temperature sensing module, so as to realize trimming and calibration of the temperature code value of the to-be-measured temperature, and obtain an accurate temperature code value of the to-be-measured temperature. After the temperature code value is processed by encoding, a digital code D out , that is, the temperature value of the to-be-measured temperature, is obtained. out The calculation formula of the digital code D
[0090] D out = C mu + D
[0091] Wherein, C is 600K, D is -273K, and mu is a variable related to temperature change, which is obtained by the following formula:
[0092]
[0093] Wherein, k represents the Boltzmann constant, q represents the charge quantity, T represents the temperature, p represents the current ratio of the two branches, and a represents the proportional coefficient. BE The calculation formula of the digital code D
[0094]
[0095] Wherein, I s represents the reverse saturation current of the bipolar transistor.
[0096] It can be seen from the above formula that adjusting the bias current I PTAT can change the variable mu related to temperature change, and then change the detected digital code D out .
[0097] In order to prevent temperature fluctuation from causing inaccurate measurement results, as a preferred embodiment, when it is detected that the to-be-measured temperature changes, the corresponding trimming code value is called according to the calibration temperature range to which the to-be-measured temperature belongs after the change, and trimming and calibration are performed to obtain the measurement value after the change of the to-be-measured temperature.
[0098] Please refer to Figure 5 , which is a structure block diagram of an embodiment of the temperature sensor trimming and temperature measuring device. The temperature sensor trimming and temperature measuring device of the embodiment is used to realize the temperature sensor trimming and temperature measuring method as described in the above embodiment. Specifically, the temperature sensor trimming and temperature measuring device of the embodiment includes a division module 100, a temperature sensing module 200, a trimming code value generation module 300, and a temperature calibration module 400. Wherein:
[0099] The division module 100 is used to divide the temperature measurement range into several equal parts, and each part is a calibration temperature range, and the standard temperature code value of the center point temperature of each calibration temperature range is set.
[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 above-mentioned temperature sensor calibration and temperature measurement method, and will not be described again here.
[0101] The calibration code value generation module 300 is used to calibrate the center point temperature of each calibration temperature range divided by the division module 100, obtain the corresponding calibration code value, and write it into the calibration code value storage array. Specifically, the calibration code value generation module 300 of the present 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 to-be-calibrated temperature standard code value storage array, which is integrated in the first storage module.
[0103] The temperature code value comparator 320 is used to calculate the code difference value 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 calibration code value to a default value and is used to compare the absolute value of the code difference value with the set error threshold value; and is also used to increase or decrease the calibration 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 value; The bias current generating circuit 210 is provided with a variable resistance array R, and the calibration signal output end of the first calibration module 330 is connected with the variable resistance 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 calibration code value when the absolute value of the code difference value is less than or equal to the set error threshold value. Specifically, the calibration code value is stored in the calibration code value storage array, which is integrated in the second storage module.
[0106] The temperature measurement calibration module 400 is used to detect the calibration temperature range to which the to-be-measured temperature belongs when measuring the temperature and call the corresponding calibration code value for calibration, and obtain the measurement value of the current temperature. Specifically, the temperature measurement calibration module 400 of the present 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 for converting the temperature code value of the temperature to be measured detected by the temperature sensing module 200 into a corresponding temperature value and determining the calibration temperature range to which the temperature value belongs. Specifically, the temperature range detection module 410 of the embodiment includes a code stream counter for counting the '1's 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 the temperature value belongs.
[0108] The second calibration module 420 is used for calling the trimming code value of the calibration temperature range to trim and calibrate the temperature code value of the temperature to be measured, so as to obtain the accurate temperature measurement code value of the temperature to be measured.
[0109] The present application realizes self-adaptive calibration of temperature by introducing a trimming working mode, taking the standard temperature code value as a reference value, combining a negative feedback loop composed of 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 resistance array, etc., and simultaneously obtaining the corresponding trimming code value, thereby greatly reducing the time and cost of calibration; when measuring the temperature to be measured, the trimming code in the trimming code storage array is directly called for trimming after temperature detection, without the need to increase a complex data calibration processing module, and the output data does not need to be subjected to data calibration operation processing all the time in the temperature measurement process, without the need for a complex digital calibration module to be in 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 utilized to perform rough calculation through the data code stream to detect the temperature range, and the trimming code value is directly called for trimming, without the need to consume redundant time for data processing or sacrifice accuracy, so that high-speed temperature measurement is realized, and the advantage is particularly prominent in the high-speed temperature measurement use scenario when the temperature fluctuation range is between a minimum temperature detection range.
[0110] The above only expresses the preferred embodiments of the present application, which are described in detail, but cannot be understood as limiting the scope of the patent. It should be noted that, for those skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the protection scope of the present application patent should be subject to the appended claims.
Claims
1. A method for adjusting and measuring a temperature sensor, characterized in that, Includes the following steps: The temperature measurement range is divided into several equal parts, each part being 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. Methods for adjusting the center point temperature of the calibration temperature range include: A standard temperature code value corresponding to the center point temperature of each calibration temperature range is preset, and the standard temperature code value is input into the standard temperature code value storage array of the temperature 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; this step includes the following sub-steps: Set the ambient temperature to the center point temperature of a calibration temperature range and perform a test. Use the measured code value as the center point temperature code value of the calibration temperature range. Retrieve the standard temperature code value corresponding to the center point temperature from the standard temperature code value storage array to be adjusted; Set the correction code value of the center point temperature of the calibration temperature range to the default value; The difference between the center point temperature code value of the calibration temperature range and the corresponding standard temperature code value is obtained. The absolute value of the code difference is compared with a preset error threshold. If the absolute value of the code difference is less than or equal to the preset error threshold, the adjustment code value of the calibration temperature range is the default value, and the adjustment calibration of the calibration temperature range ends. If the absolute value of the code difference is greater than the set error threshold, the adjustment code value will be incremented or decremented from the default value according to the code difference. Adjust the resistance of the variable resistor array in the temperature sensing module according to the adjusted adjustment code value, and measure the center point temperature code value at this time. 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 adjustment code value at this time as the adjustment code value of the calibration temperature range. During temperature measurement, the system detects the calibration temperature range to which the temperature to be measured belongs and calls the corresponding correction code value for correction and calibration to obtain the measured value of the temperature to be measured.
2. The temperature sensor adjustment and temperature measurement method as described in claim 1, characterized in that, The method for incrementing or decrementing the adjustment code value from the default value based on the code difference value includes: when the code difference value is positive, the adjustment code value is increased by a preset step value based on the default value; when the code difference value is negative, the adjustment code value is decreased by a preset step value based on the default value.
3. The temperature sensor adjustment and temperature measurement method as described in claim 1, characterized in that, The process of detecting the calibration temperature range to which the temperature to be measured belongs and calling the corresponding correction code value for correction and calibration to obtain the measured value of the temperature to be measured 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 obtained. Convert the temperature code value of the temperature to be measured into the corresponding temperature value; Determine the calibration temperature range to which the temperature value belongs, and call the adjustment code value of the calibration temperature range to adjust and calibrate the temperature code value of the temperature to be measured, so as to obtain the accurate temperature code value of the temperature to be measured.
4. The temperature sensor adjustment and temperature measurement method as described in claim 3, characterized in that, After obtaining the accurate temperature measurement code value of the temperature to be measured, the following steps are also 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 has changed, and the measurement value after the temperature to be measured changes is obtained.
5. A temperature sensor adjustment and temperature measurement device, used to implement the temperature sensor adjustment and temperature measurement method according to any one of claims 1-4, characterized in that, include: The division module is used to divide the temperature measurement range into several equal parts, each part being a calibration temperature range and setting the standard temperature code value of 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; The adjustment code value generation module is used to adjust and calibrate the center point temperature of each calibration temperature range divided by the division module, obtain the corresponding adjustment code value, and write it into the adjustment code value storage array. The temperature 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 correction code value for correction and calibration to obtain the measured value of the current temperature.
6. The temperature sensor adjustment and temperature measurement device as described in claim 5, characterized in that... The temperature sensing module includes a bias current generating circuit, a temperature sensing circuit electrically connected to the bias current output terminal 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 terminal of the modulator. The filter is used to reduce noise in the serial code stream and output a temperature code value, which is then transmitted to the tuning code value generation module.
7. The temperature sensor adjustment and temperature measurement device as described in claim 6, characterized in that, The modifier code value generation module includes: The first storage module is used to store the standard temperature code value of the center point temperature of each calibration temperature range; 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. The first calibration module is used to set the adjustment 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 increment or decrement the adjustment 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; the bias current generation circuit is provided with a variable resistor array, and the adjustment signal output terminal of the first calibration module is connected to the variable resistor array of the bias current generation circuit to adjust the bias current; and The second storage module is used to store the current adjustment code value when the absolute value of the code difference is less than or equal to the set error threshold.
8. The temperature sensor adjustment and temperature measurement device as described in claim 6, characterized in that, The temperature measurement and calibration module includes: The temperature range detection module is used to convert the temperature code value of the temperature to be measured detected by the temperature sensing module into the 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 of the calibration temperature range to adjust and calibrate the temperature code value of the temperature to be measured, so as to obtain the accurate temperature 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