Temperature sensor and debugging system

By introducing a debugging control module into the temperature sensor, the calculation unit is paused to quickly locate errors and optimize calibration model parameters, thus solving the problem of low calibration efficiency of high-precision temperature sensors and achieving rapid and efficient calibration.

CN118641059BActive Publication Date: 2025-01-14SHENZHEN SIYUAN SEMICON CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411119009.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2025-01-14
Estimated Expiration
2044-08-15

AI Technical Summary

Technical Problem

Existing high-precision temperature sensors suffer from high convergence difficulty and long processing time when adjusting calibration model parameters, and cannot quickly locate errors in the algorithm, resulting in low calibration efficiency.

Method used

A temperature sensor and debugging system are provided, including a temperature calculation module, a temperature calibration module, and a debugging control module. The debugging control module controls the calculation unit to pause and output results, quickly traces the faulty link, and optimizes the calibration model parameters.

Benefits of technology

This technology enables rapid location of errors in the temperature sensor's computational unit, reducing the convergence difficulty and time of the calibration model and improving calibration efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118641059B_ABST
    Figure CN118641059B_ABST
Patent Text Reader

Abstract

The present application discloses a temperature sensor and a debugging system, and relates to the technical field of temperature sensors. The temperature sensor includes a temperature calculation module, a temperature calibration module and a debugging control module. Among them, the temperature calculation module and the temperature calibration module include multiple computing units. The debugging control module is used to control the temperature sensor to enter the debugging mode. In the debugging mode, the debugging control module is used to control any one of the computing units to calculate and output the corresponding calculation result and then pause. In the debugging mode, each computing unit pauses after obtaining the calculation result and outputs the obtained calculation result. During the pause period, it can be determined whether the calculation of the corresponding computing unit is correct based on the output calculation result, so as to trace which computing unit (link) has an error to achieve rapid error correction, and it can also be verified whether the model parameter performance is converged based on the output calculation result, so as to reduce the convergence difficulty and calibration time of the calibration model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of temperature sensors, and more specifically, to a temperature sensor and a debugging system. Background Art

[0002] High-precision temperature sensors can be used in hardware devices such as storage modules (such as DDR5), solid-state disks, computing motherboards, and communication equipment to monitor temperature in real time and ensure reliable operation of hardware devices. High-precision temperature sensors can perform reference temperature calculations internally and have calibration models for temperature calibration.

[0003] To ensure the accuracy of the temperature value, the high-precision temperature sensor needs to verify the correctness of the temperature algorithm and whether the model parameters can meet the performance requirements. The usual practice is to repeatedly run the temperature sensor in a specific environment to collect temperature information and obtain the temperature value. On the one hand, the correctness of the algorithm is verified by comparing the actual temperature value with the theoretical temperature value. However, once an error occurs, it is impossible to know which link in the internal algorithm has a problem, and all links of the algorithm can only be traversed to correct the error. On the other hand, the temperature value performance is detected to see if it meets expectations. If not, the calibration model parameters are repeatedly adjusted until the temperature value performance converges. The more calibration model parameters, the more difficult it is to converge and the longer it takes. Summary of the invention

[0004] Embodiments of the present application provide a temperature sensor and a debugging system.

[0005] The temperature sensor provided in the embodiment of the present application may include a temperature calculation module, a temperature calibration module and a debugging control module. Among them, the temperature calculation module and the temperature calibration module may include multiple computing units. The debugging control module may be used to control the temperature sensor to enter a debugging mode. In the debugging mode, the debugging control module is used to control any one of the computing units to calculate and output the corresponding calculation result and then pause.

[0006] The debugging control module can control the temperature sensor to enter the debugging mode. In the debugging mode, the debugging control module can send corresponding debugging control instructions to the calculation unit in the temperature calculation module. Under the control of the debugging control instruction, each calculation unit pauses after obtaining the calculation result, and outputs the obtained calculation result, and other calculation units will not execute the calculation process. During the pause period, it can be determined whether the corresponding calculation unit calculation is correct according to the output calculation result, so that it can be traced back in time which calculation unit (link) has an error, and the error can be corrected quickly. The debugging control module can send corresponding debugging control instructions to the calculation unit in the temperature calibration module. Under the control of the debugging control instruction, each calculation unit of the temperature calibration module can be paused after completing the calculation and outputting the corresponding calculation result. During the pause period, it can be verified whether the model parameter performance converges according to the output calculation result, which is conducive to reducing the convergence difficulty and calibration time of the calibration model in the temperature sensor.

[0007] In some embodiments, the plurality of computing units are cascaded, and the computing unit at the next level performs calculations based on the calculation results of the computing unit at the previous level, and is in a waiting state during the suspension of the computing unit at the previous level.

[0008] In some embodiments, the temperature sensor includes a process jump circuit. The debugging control module is used to control the calculation operation to jump from the calculation unit of the previous level to the calculation unit of the next level according to the jump instruction of the process jump circuit when the calculation result of the calculation unit of the previous level is verified to be correct, so that the calculation unit of the next level performs calculation according to the calculation result of the calculation unit of the previous level.

[0009] In some embodiments, the debugging control module is further configured to control the temperature sensor to enter a normal operating mode, in which the plurality of computing units perform continuous calculations to determine a temperature value.

[0010] In some embodiments, the temperature sensor includes a calculation output port and a temperature output port, the calculation output port is used to output the calculation result of each level of the calculation unit, and the temperature output port is used to output the temperature value.

[0011] In some embodiments, the temperature sensor further includes an internal parameter storage module, a debugging parameter interface and a parameter selection circuit, the debugging parameter interface is connected to the temperature calculation module and the temperature calibration module through the parameter selection circuit, and the internal parameter storage module is connected to the temperature calculation module and the temperature calibration module through the parameter selection circuit. The debugging control module is used to control the temperature calculation module and the temperature calibration module to select the debugging parameters connected to the debugging parameter interface through the parameter selection circuit in the debugging mode, or to select the internal parameters connected to the internal parameter storage module through the parameter selection circuit in the normal working mode.

[0012] In some implementations, in the debugging mode, when the calculation result is erroneous, the debugging control module is used to control the debugging parameter interface to update the debugging parameters, and control the calculation unit to recalculate according to the updated debugging parameters.

[0013] In certain implementations, when the calculation result recalculated by the calculation unit is verified to be correct, the debugging control module is used to control the internal parameter storage module to replace the corresponding internal parameter with the updated debugging parameter.

[0014] In certain embodiments, the temperature calculation module is configured to calculate the basic temperature value according to a predetermined temperature calculation method, wherein the predetermined temperature calculation method includes a table calculation method, a thermocouple calculation method, or a thermistor calculation method.

[0015] In some embodiments, the temperature sensor includes a data acquisition module and a filter. The data acquisition module is connected to the temperature calculation module through the filter, the data acquisition module is used to collect temperature-related data, the filter is used to filter the temperature-related data, and the temperature calculation module is used to calculate the basic temperature value according to the filtered temperature-related data.

[0016] In certain embodiments, the temperature calibration module is configured to calculate and determine a calibrated temperature value based on a predetermined temperature calibration method and the base temperature value, wherein the predetermined temperature calibration method includes comparison calibration, water bath calibration, internal reference calibration, or linear regression calibration.

[0017] The debugging system provided in the embodiments of the present application may include the temperature sensor and the verification device provided in the embodiments of the present application. The verification device may verify whether the calculation result output by the temperature sensor is correct.

[0018] The embodiment of the present application provides a temperature sensor and a debugging system. The temperature sensor may include a temperature calculation module, a temperature calibration module and a debugging control module. The temperature calculation module and the temperature calibration module may include multiple computing units. The debugging control module may be used to control the temperature sensor to enter a debugging mode. In the debugging mode, the debugging control module is used to control any one of the computing units to calculate and output the corresponding calculation result and then pause.

[0019] The debugging control module can control the temperature sensor to enter the debugging mode. In the debugging mode, the debugging control module can send corresponding debugging control instructions to the calculation unit in the temperature calculation module. Under the control of the debugging control instruction, each calculation unit pauses after obtaining the calculation result, and outputs the obtained calculation result, and other calculation units will not execute the calculation process. During the pause period, it can be determined whether the corresponding calculation unit calculation is correct according to the output calculation result, so that it can be traced back in time which calculation unit (link) has an error, and the error can be corrected quickly. The debugging control module can send corresponding debugging control instructions to the calculation unit in the temperature calibration module. Under the control of the debugging control instruction, each calculation unit of the temperature calibration module can be paused after completing the calculation and outputting the corresponding calculation result. During the pause period, it can be verified whether the model parameter performance converges according to the output calculation result, which is conducive to reducing the convergence difficulty and calibration time of the calibration model in the temperature sensor.

[0020] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0022] Figure 1 is a schematic diagram of a temperature sensor according to an embodiment of the present application;

[0023] Figure 2 is a schematic diagram of a debugging system according to an embodiment of the present application;

[0024] Figure 3 is a schematic diagram of a plurality of computing units cascaded in an embodiment of the present application;

[0025] Figure 4 is a schematic diagram of multiple computing units executing computing steps in an embodiment of the present application;

[0026] Figure 5 is a schematic diagram of a module of a temperature sensor in certain embodiments of the present application;

[0027] Figure 6 It is a schematic diagram of the working process of the temperature sensor entering the debugging mode according to the implementation mode of the present application. DETAILED DESCRIPTION

[0028] The embodiments of the present application are described in detail below, and the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.

[0029] High-precision temperature sensors can be used in hardware devices such as storage modules (such as DDR5), solid-state disks, computing motherboards, and communication equipment to monitor temperature in real time and ensure reliable operation of hardware devices. High-precision temperature sensors can perform reference temperature calculations internally and have calibration models for temperature calibration.

[0030] To ensure the accuracy of temperature values, high-precision temperature sensors need to verify the correctness of the temperature algorithm and whether the model parameters can meet the performance requirements. The usual practice is to repeatedly run the temperature sensor in a specific environment to collect temperature information and obtain the temperature value. On the one hand, the correctness of the algorithm is verified by comparing the actual temperature value with the theoretical temperature value. However, once an error occurs, it is impossible to know which link in the internal algorithm has a problem, and all links of the algorithm can only be traversed to correct the error. On the other hand, the temperature value performance is detected to see if it meets expectations. If not, the calibration model parameters are repeatedly adjusted until the temperature value performance converges. The more calibration model parameters, the greater the difficulty of convergence and the longer the time consumed. To solve this problem, the embodiment of the present application provides a temperature sensor (such as Figure 1 as well as Figure 5 as shown) and the debugging system (as Figure 2 shown).

[0031] Reference Figure 1 The temperature sensor 100 provided in the embodiment of the present application may include a temperature calculation module 10, a temperature calibration module 11 and a debugging control module 20. The temperature calculation module 10 and the temperature calibration module 11 may include multiple computing units. The debugging control module 20 may be used to control the temperature sensor 100 to enter a debugging mode. In the debugging mode, the debugging control module 20 is used to control any computing unit to calculate and output the corresponding calculation result and then pause.

[0032] Specifically, the temperature calculation module 10 and the multiple calculation units in the temperature calibration module 11 can convert the physical signals (such as thermoelectric potential, voltage or current changes) received by the temperature sensor 100 into readable digital signals or temperature values, and display the readable temperature values ​​on the temperature sensor 100.

[0033] The computing unit may include an operator. An operator is a circuit that performs arithmetic and logical operations. The operator may include an adder, a subtractor, a multiplier, a divider, and a logic gate (AND, OR, NOT, XOR, etc.). The computing unit may calculate the input signal based on the calculation logic set by the operator and obtain the corresponding calculation result. The calculation process performed by the operator of a computing unit may be set as a calculation link.

[0034] In the temperature calculation module 10, the operators of multiple calculation units are used in combination, and multiple calculation links are used in combination, so that the temperature calculation module 10 can use a specific mathematical formula, such as the relationship between the temperature difference potential and temperature (for thermocouples) or the relationship between resistance and temperature (for thermistors), to calculate the basic temperature value. In the temperature calibration module 11, the operators of multiple calculation units are used in combination, and multiple calculation links are used in combination, so that the temperature calibration module 11 can correct the basic temperature value determined by the temperature calculation module 10 according to the calibration coefficient or curve corresponding to the temperature sensor 100, and obtain the corrected temperature value.

[0035] The debugging control module 20 can control the temperature sensor 100 to enter the debugging mode. In the debugging mode, the debugging control module 20 can send corresponding debugging control instructions to the calculation units in the temperature calculation module 10. Under the control of the debugging control instructions, each calculation unit pauses after obtaining the calculation result, and outputs the obtained calculation result, and other calculation units will not execute the calculation process. During the pause period, it can be determined whether the corresponding calculation unit is correct according to the output calculation result, so that it can be traced in time which calculation unit (link) has an error, and the error can be corrected quickly.

[0036] Similarly, in the debugging mode, the debugging control module 20 can send corresponding debugging control instructions to the calculation units in the temperature calibration module 11. Under the control of the debugging control instructions, each calculation unit of the temperature calibration module 11 can be paused after completing the calculation and outputting the corresponding calculation results. During the pause period, it can be verified whether the model parameter performance converges according to the output calculation results, which is conducive to reducing the convergence difficulty and calibration time of the calibration model in the temperature sensor 100.

[0037] The temperature sensor 100 provided in the embodiment of the present application has a debugging mode that can be paused and has variable model parameters. In the debugging mode, each calculation link of the temperature sensor 100 can be traced back in time to meet the requirements of rapid debugging and high precision of the temperature sensor 100.

[0038] The temperature sensor 100 provided in the embodiment of the present application can be used in various application scenarios with precise temperature requirements, such as storage modules (such as DDR5), solid-state disks, computing motherboards, communication equipment, chips and other hardware devices, to monitor the temperature in real time and ensure the reliable operation of the hardware devices.

[0039] Furthermore, the hardware and algorithm used by the temperature sensor 100 can be consistent with the hardware device used by the temperature sensor 100, so as to save hardware resources and software resources and facilitate user use. For example, the temperature sensor 100 can be used in a chip, and the hardware and algorithm used by the temperature sensor 100 in the debugging mode are completely consistent with the actual chip, solidified inside the chip, with high confidentiality, and convenient for users to use.

[0040] Reference Figure 2 The debugging system 1000 provided in the embodiment of the present application may include the temperature sensor 100 and the verification device 200 provided in the embodiment of the present application. The verification device 200 may verify whether the calculation result output by the temperature sensor 100 is correct.

[0041] Specifically, the verification device 200 can set a corresponding verification model according to each calculation link in the temperature sensor 100, and the verification model can determine whether the calculation result of each calculation link is correct.

[0042] The calculation model verification device may include predefined values, and the calculation result of each calculation link may be compared with the predefined values, and whether the calculation result is correct is determined based on the comparison result. The calculation model verification device may also include a predefined data model, and the predefined data model may verify whether the calculation result is correct.

[0043] The debugging system 1000 may further include a display module, which may display information of each calculation link of the temperature sensor 100. The information of the calculation link may include whether the calculation link performs calculation work, whether the calculation link outputs calculation results, the calculation results of the calculation link, whether the calculation results of the calculation link are verified, and whether the calculation results of the calculation link are verified correctly.

[0044] The debugging system 1000 may further include a human-computer interaction module. The user may send debugging instructions through the human-computer interaction module and control the debugging control module 20 to control the temperature sensor 100 to enter the debugging mode. The user may send verification instructions through the human-computer interaction module to control the verification device 200 to verify the calculation results.

[0045] Reference Figure 3 In some embodiments, multiple computing units are cascaded, and the next-level computing unit performs calculations based on the calculation results of the previous-level computing unit and is in a waiting state during the suspension of the previous-level computing unit.

[0046] Specifically, each calculation unit in the temperature calculation module 10 pauses after determining the calculation result, and the next level calculation unit is in a waiting state. During the pause of the calculation unit, the next level calculation unit may not execute the calculation process, and at this time, it can be determined whether the calculation of the corresponding calculation unit is correct according to the output calculation result.

[0047] Each calculation unit in the temperature calibration module 11 pauses after determining the calculation result, and the next level calculation unit is in a waiting state. During the pause of the calculation unit, the next level calculation unit may not execute the calculation process. At this time, it can be verified whether the model parameter performance converges according to the output calculation result, which is conducive to reducing the convergence difficulty and calibration time of the calibration model in the temperature sensor 100.

[0048] Furthermore, each calculation unit can implement a step of a calculation link. In the process of calculating and determining the basic temperature value and the calibrated temperature value, after each calculation link is completed, the calculation process is paused, and the subsequent calculation links are in a waiting state, and the verification device 200 can verify the corresponding calculation results.

[0049] by Figure 4 For example, the process of calculating and determining the basic temperature value may include a gain calculation link and an offset calculation link. After the gain calculation link is executed, the verification device 200 may verify the calculation result of the gain calculation link, and the offset calculation link may be in a paused state. After the calculation result of the gain calculation link is verified, the offset calculation link may continue to perform calculations.

[0050] The process of calculating and determining the calibrated temperature value may include m-level first calibration links and n-level second calibration links. After executing each first calibration link, the verification device 200 may verify the corresponding calculation result, and the subsequent first calibration link and second calibration link may be in a paused state. After verifying the calculation result of each first calibration link, the second calibration link may continue to perform calculations.

[0051] In some embodiments, the debugging control module 20 is further used to control the temperature sensor 100 to enter a normal working mode. In the normal working mode, a plurality of calculation units perform continuous calculations to determine a temperature value.

[0052] Specifically, in the temperature calculation module 10, multiple calculation units are cascaded, and the next level calculation unit performs calculations based on the calculation results of the previous level calculation unit. In normal working mode, the operators of multiple cascaded calculation units can perform calculations continuously without gaps, the first level calculation unit in the temperature calculation module 10 can obtain temperature-related data, and the last level calculation unit in the temperature calculation module 10 can calculate and determine and output the basic temperature value.

[0053] In the temperature calibration module 11, multiple calculation units are cascaded, and the next level calculation unit performs calculations based on the calculation results of the previous level calculation unit. In normal working mode, the operators of multiple cascaded calculation units can perform calculations continuously without gaps, the first level calculation unit in the temperature calibration module 11 can obtain the basic temperature value output by the temperature calculation module 10, and the last level calculation unit in the temperature calibration module 11 can calculate and determine and output the calibrated temperature value.

[0054] by Figure 4 For example, the process of calculating and determining the basic temperature value may include a gain calculation link and an offset calculation link. After the gain calculation link is executed, the offset calculation link may calculate and determine the basic temperature value according to the calculation result of the gain calculation link.

[0055] The process of calculating and determining the calibrated temperature value may include an m-level first calibration link and an n-level second calibration link. The first-level first calibration link may be calculated based on the basic temperature value, and the m-level first calibration link continuously calculates and determines the calibrated temperature value 1. The first-level second calibration link may be calculated based on the calibrated temperature value 1, and the n-level second calibration link continuously calculates and determines the calibrated temperature value 2.

[0056] Reference Figure 4 In some embodiments, the temperature calculation module 10 is configured to calculate the basic temperature value according to a predetermined temperature calculation method, and the predetermined temperature calculation method includes a table calculation method, a thermocouple calculation method, or a thermistor calculation method.

[0057] Specifically, the table lookup calculation method is a nonlinear conversion method based on the pre-stored relationship between temperature and output signal. The temperature sensor 100 stores a series of known temperature-output value corresponding data tables, and the calculation link in the temperature calculation module 10 can output the corresponding basic temperature value based on the temperature-output value corresponding data table.

[0058] In the temperature sensor 100, a thermocouple can be used as a temperature measuring element, and the thermocouple works based on the principle of thermoelectric effect. Thermoelectric effect refers to the phenomenon that when two conductors of different materials are connected together, a voltage difference is generated at their contact point, and this phenomenon is called thermoelectric potential. The thermocouple calculation method can calculate the temperature by measuring the thermoelectric potential. The calculation link in the temperature calculation module 10 can output the corresponding basic temperature value according to the thermoelectric potential.

[0059] In the temperature sensor 100, a thermistor can be used as a temperature measuring element, and the resistance value of the thermistor changes with the temperature. The calculation link in the temperature calculation module 10 can output a corresponding basic temperature value according to the resistance value of the thermistor.

[0060] Reference Figure 4In some embodiments, the temperature calibration module 11 is configured to calculate and determine the calibrated temperature value based on a predetermined temperature calibration method and a base temperature value. The predetermined temperature calibration method includes comparison calibration, water bath calibration, internal reference calibration, or linear regression calibration.

[0061] Specifically, the comparison calibration method can compare the temperature sensor 100 with a standard sensor of known accuracy to determine the accuracy of the temperature sensor. The calculation link in the temperature calibration module 11 can calibrate the basic temperature value according to the standard sensor to obtain the calibrated temperature value.

[0062] The water bath calibration method can fix the temperature sensor 100 in a temperature-controllable water bath device, and compare the basic temperature value with the actual temperature of the water bath to measure the accuracy of the temperature sensor. The calculation link in the temperature calibration module 11 can calibrate the basic temperature value according to the actual temperature of the water bath to obtain the calibrated temperature value.

[0063] The internal reference method calibration can control the temperature of the temperature sensor 100 through an external device, so that the temperature of the internal reference point of the temperature sensor 100 reaches a known value, and then compares the basic temperature value with the determined known value to calibrate the accuracy of the temperature sensor. The calculation link in the temperature calibration module 11 can calibrate the basic temperature value according to the temperature value of the internal reference point to obtain the calibrated temperature value.

[0064] The linear regression calibration method can obtain the basic temperature value at multiple known temperature points, and use the collected data to establish a linear relationship model between the basic temperature value and the temperature, and then determine the calibration formula based on the linear relationship model. The calculation link in the temperature calibration module 11 can calibrate the basic temperature value according to the determined calibration formula to obtain the calibrated temperature value.

[0065] Reference Figure 5 In some embodiments, the temperature sensor 100 includes a calculation output port 32 and a temperature output port 31. The calculation output port 32 is used to output the calculation result of each level of calculation unit. The temperature output port 31 is used to output the temperature value.

[0066] Specifically, each calculation unit can implement the steps of a calculation link. In the process of calculating and determining the basic temperature value, after each calculation link is completed, the calculation result of the calculation link can be connected to the verification device 200 through the calculation output port 32, and the verification device 200 can verify the calculation result connected to the calculation output port 32.

[0067] In the temperature calculation module 10, multiple calculation units are cascaded, and the last level calculation unit in the temperature calculation module 10 can calculate and output the basic temperature value. The basic temperature value can be connected to the verification device 200 through the temperature output terminal, and the verification device 200 can verify the basic temperature value.

[0068] In the temperature calibration module 11, multiple calculation units are cascaded, and the last level calculation unit in the temperature calibration module 11 can calculate and output the calibrated temperature value. The calibrated temperature value can be connected to the verification device 200 through the temperature output terminal, and the verification device 200 can verify the calibrated temperature value.

[0069] Reference Figure 5 In some embodiments, the temperature sensor 100 may include a process jump circuit 13. The debugging control module 20 is used to control the calculation operation to jump from the previous level calculation unit to the next level calculation unit according to the jump instruction of the process jump circuit 13 when the calculation result of the previous level calculation unit is verified to be correct, so that the next level calculation unit performs calculation according to the calculation result of the previous level calculation unit.

[0070] Specifically, the process jump circuit 13 can generate a jump instruction. The temperature sensor 100 may further include a jump instruction input port 14, and the jump instruction may be written into the process jump circuit 13 through the jump instruction input port 14. The jump instruction may be provided to the calculation units in the temperature calculation module 10 and the temperature calibration module 11, so that the calculation operation jumps from the upper level calculation unit to the lower level calculation unit. The jump instruction may also be provided to the debug control module 20, so that the debug control module 20 controls the calculation operation to jump from the upper level calculation unit to the lower level calculation unit.

[0071] Each calculation unit can implement the steps of a calculation link. In the process of calculating and determining the basic temperature value and the calibrated temperature value, after each calculation link is completed, the calculation process is suspended, and the subsequent calculation links are in a waiting state, and the verification device 200 can verify the corresponding calculation results. If the verified calculation result is correct, the calculation operation can jump from the previous level calculation unit to the next level calculation unit, so that the next level calculation unit performs calculations according to the calculation results of the previous level calculation unit.

[0072] Reference Figure 5In some embodiments, the temperature sensor 100 further includes an internal parameter storage module 41, a parameter selection circuit 42, and a debugging parameter interface 43. The debugging parameter interface 43 is connected to the temperature calculation module 10 and the temperature calibration module 11 through the parameter selection circuit 42, and the internal parameter storage module 41 is connected to the temperature calculation module 10 and the temperature calibration module 11 through the parameter selection circuit 42. The debugging control module 20 is used to control the temperature calculation module 10 and the temperature calibration module 11 to select the debugging parameters connected to the debugging parameter interface 43 through the parameter selection circuit 42 in the debugging mode, or to select the internal parameters connected to the internal parameter storage module 41 through the parameter selection circuit 42 in the normal working mode.

[0073] Specifically, the debugging parameter can be a parameter written externally. In the debugging mode, the user can write the debugging parameter through the debugging parameter interface 43, and the debugging parameter can be set according to the requirements. The debugging control module 20 can control the temperature calculation module 10 and the temperature calibration module 11 to select the debugging parameter connected to the debugging parameter interface 43 through the parameter selection circuit 42, so that the calculation unit in the temperature calculation module 10 and the temperature calibration module 11 can calculate according to the debugging parameter, and each calculation result can be verified by the verification device 200.

[0074] The internal parameter storage module 41 can be a data storage module in the form of registers, OTP, MTP, flash, etc., and the internal parameters can be parameters preset inside the temperature sensor 100. In the normal working mode, the debugging control module 20 can control the temperature calculation module 10 and the temperature calibration module 11 to select the internal parameters through the parameter selection circuit 42, so that the calculation units in the temperature calculation module 10 and the temperature calibration module 11 can perform continuous calculations according to the internal parameters to determine the temperature value.

[0075] Reference Figure 5 In some implementations, in the debugging mode, when the calculation result is wrong, the debugging control module 20 is used to control the debugging parameter interface 43 to update the debugging parameters, and control the calculation unit to recalculate according to the updated debugging parameters.

[0076] When the verification device 200 determines that the calculation result is wrong, the user can write updated debugging parameters through the debugging parameter interface 43. The updated debugging parameters can be set according to needs, so that the calculation units in the temperature calculation module 10 and the temperature calibration module 11 can recalculate according to the updated debugging parameters, and the new calculation result can continue to be verified by the verification device 200 until the verification device 200 determines that the calculation result is correct.

[0077] Reference Figure 5In some implementations, when the calculation result recalculated by the calculation unit is verified to be correct, the debugging control module 20 is used to control the internal parameter storage module 41 to replace the corresponding internal parameter with the updated debugging parameter.

[0078] Specifically, the temperature sensor 100 may further include a parameter writing module. The parameter writing module may be connected between the debugging parameter interface 43 and the internal parameter storage module 41 . The parameter writing module may also be connected to the debugging control module 20 .

[0079] When the calculation result recalculated by the calculation unit is verified to be correct, the debugging control module 20 can control the parameter writing module to write the debugging parameters of the debugging parameter interface 43 into the internal parameter storage module 41, and replace the corresponding internal parameters with the updated debugging parameters. The replaced internal parameters can be set according to the verified data, which is conducive to improving the accuracy of the temperature sensor 100.

[0080] Reference Figure 5 In some embodiments, the temperature sensor 100 includes a filter 51 and a data acquisition module 52. The data acquisition module 52 is connected to the temperature calculation module 10 through the filter 51. The data acquisition module is used to collect temperature-related data. The filter 51 is used to filter the temperature-related data. The temperature calculation module 10 is used to calculate the basic temperature value based on the filtered temperature-related data.

[0081] The data acquisition module 52 can acquire temperature-related information, which can be an analog signal or a digital signal. The data acquisition module 52 can include a digital-to-analog converter, which can convert the analog signal into a digital signal.

[0082] The filter 51 may be a Sinc filter or other types of filters, and the type of the filter 51 may be set according to actual needs. The filter 51 may filter the temperature-related data so that the temperature calculation module 10 is used to calculate the basic temperature value according to the filtered temperature-related data.

[0083] In some embodiments, the jump instruction input port 14, the debugging parameter interface 43, the temperature output port 31 and the calculation output port 32 can be arbitrarily combined into any number of communication interfaces, and the number of communication interfaces can be set according to actual needs.

[0084] Reference Figure 6 When the temperature sensor 100 enters the debugging mode, the temperature acquisition module can collect temperature-related information, and the filter 51 can filter the temperature-related information.

[0085] The temperature calculation module 10 can perform the steps of calculating the basic temperature value, and the temperature calibration module 11 can perform the steps of calculating the temperature value after calibration. After each calculation link is executed, the calculation process is paused, and the subsequent calculation links are in a waiting state. The verification device 200 can verify the corresponding calculation results. When the verified calculation results are correct, a jump instruction can be sent to make the calculation operation jump from the upper-level calculation unit to the lower-level calculation unit, so that the lower-level calculation unit performs calculations according to the calculation results of the upper-level calculation unit. Based on continuous verification and jump instructions, the parameters of the temperature calculation module 10 and the temperature calibration module 11 can be optimized.

[0086] After the last calculation step of the temperature calibration module 11 is executed, it is determined whether the debugging is completed. If it is determined that the debugging is completed, the temperature sensor 100 can exit the debugging mode.

[0087] If it is determined that the debugging is not completed, the user can send the debugging instruction again, and the temperature sensor 100 continues to be in the debugging mode and executes the debugging workflow. The temperature acquisition module can re-collect temperature-related information, the filter 51 can re-filter the temperature-related information, the temperature calculation module 10 can re-calculate the basic temperature value, and the temperature calibration module 11 can recalculate the temperature value after calibration. Each calculation step can be paused after execution, and the subsequent calculation links are in a waiting state, and the verification device 200 can verify the corresponding calculation results.

[0088] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples without contradiction.

[0089] In addition, the term "connection" should be understood in a broad sense, for example, it can include fixed connection, detachable connection, or integral connection; it can include direct connection, indirect connection through an intermediate medium, and internal communication between two elements. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0090] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0091] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0092] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A temperature sensor, characterized in that: include: A temperature calculation module and a temperature calibration module, wherein the temperature calculation module and the temperature calibration module include a plurality of calculation units, wherein the plurality of calculation units are cascaded, and the calculation unit at the next level performs calculations according to the calculation results of the calculation unit at the previous level, and is in a waiting state during the suspension of the calculation unit at the previous level; A debugging control module, used to control the temperature sensor to enter a debugging mode, in which the debugging control module is used to control any one of the calculation units to calculate and output a corresponding calculation result and then pause, so that the verification device verifies the calculation result of the corresponding one of the calculation units; The debugging control module is also used to control the temperature sensor to enter a normal working mode, in which the multiple calculation units perform continuous calculations to determine the temperature value; The temperature sensor further comprises a calculation output port, a temperature output port, an internal parameter storage module, a debugging parameter interface and a parameter selection circuit, wherein the calculation output port is used to output the calculation result of each level of the calculation unit, the temperature output port is used to output the temperature value, the debugging parameter interface is connected to the temperature calculation module and the temperature calibration module through the parameter selection circuit, and the internal parameter storage module is connected to the temperature calculation module and the temperature calibration module through the parameter selection circuit; The debugging control module is used to control the temperature calculation module and the temperature calibration module to select the debugging parameters connected to the debugging parameter interface through the parameter selection circuit in the debugging mode, or to select the internal parameters connected to the internal parameter storage module through the parameter selection circuit in the normal working mode.

2. The temperature sensor according to claim 1, characterized in that: The temperature sensor includes a process jump circuit, and the debugging control module is used to control the calculation operation to jump from the calculation unit at the previous level to the calculation unit at the next level according to the jump instruction of the process jump circuit when the calculation result of the calculation unit at the previous level is verified to be correct, so that the calculation unit at the next level performs calculation according to the calculation result of the calculation unit at the previous level.

3. The temperature sensor according to claim 1, characterized in that: In the debugging mode, when the calculation result is erroneous, the debugging control module is used to control the debugging parameter interface to update the debugging parameters, and control the calculation unit to recalculate according to the updated debugging parameters.

4. The temperature sensor according to claim 3, characterized in that: When the calculation result recalculated by the calculation unit is verified to be correct, the debugging control module is used to control the internal parameter storage module to replace the corresponding internal parameter with the updated debugging parameter.

5. The temperature sensor according to claim 1, characterized in that: The temperature calculation module is configured to calculate a basic temperature value according to a predetermined temperature calculation method, wherein the predetermined temperature calculation method includes a table lookup calculation method, a thermocouple calculation method or a thermistor calculation method.

6. The temperature sensor according to claim 5, characterized in that: The temperature sensor includes a data acquisition module and a filter. The data acquisition module is connected to the temperature calculation module through the filter. The data acquisition module is used to collect temperature-related data. The filter is used to filter the temperature-related data. The temperature calculation module is used to calculate the basic temperature value based on the filtered temperature-related data.

7. The temperature sensor according to claim 5, characterized in that: The temperature calibration module is configured to calculate and determine a calibrated temperature value according to a predetermined temperature calibration method and the basic temperature value. The predetermined temperature calibration method includes comparison calibration, water bath calibration, internal reference calibration or linear regression calibration.

8. A debugging system, characterized in that: The debugging system comprises a temperature sensor and a verification device as described in any one of claims 1 to 7, wherein the verification device is configured to verify whether a calculation result output by the temperature sensor is correct.

Citation Information

Patent Citations

  • Temperature sensor algorithm

    CN112798135A