Implementation method of piecewise linear interpolation compensation, register, controller and system

By using the temperature compensation parameters and differences of the segment intervals in ASIC to perform segmented linear interpolation compensation of high-precision inertial sensors, the problem of large area required for storage parameters in ASIC implementation is solved, and cost reduction and accuracy guarantee are achieved.

CN119043311APending Publication Date: 2024-11-29THE 13TH RES INST OF CHINA ELECTRONICS TECH GRP CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411188824.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

In ASIC implementation, the temperature zero and scale factor compensation of high-precision inertial sensors require a large number of storage parameters, resulting in increased chip cost.

Method used

By obtaining the temperature compensation parameters of each segment interval, and using the parameters of the reference segment interval and the difference between adjacent segment intervals for segmentation linear interpolation compensation, reducing the number of bits of the OTP system register required for storage.

Benefits of technology

The cost of storing parameters is reduced, while ensuring the segmented linear interpolation compensation effect of high-precision inertial sensors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119043311A_ABST
    Figure CN119043311A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of circuit design, and provides a piecewise linear interpolation compensation implementation method, a register, a controller and a system. The method comprises the following steps: acquiring a temperature compensation parameter of temperature compensation of each segmented interval; each segmented interval comprises a reference segmented interval and a plurality of other segmented intervals; determining a storage value of each segmented interval based on the temperature compensation parameter of the reference segmented interval and the temperature compensation parameters of each other segmented interval; the storage value of the reference segment interval is a temperature compensation parameter of the reference segment interval; the storage value of each other segment interval is a difference value between each other segment interval and the adjacent segment interval; and performing piecewise linear interpolation compensation on the high-precision inertial sensor based on the stored value of each piecewise interval. According to the method provided by the invention, the OTP system register digit required by parameter storage can be reduced, and the cost is reduced on the basis of ensuring the piecewise linear interpolation compensation effect of the high-precision inertial sensor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of circuit design technology, and in particular, relates to a method, register, controller and system for implementing piecewise linear interpolation compensation. Background Art

[0002] Chip-level inertial sensors are affected by factors such as material properties, manufacturing process, and packaging process, and drift errors caused by temperature changes will occur. This error is the main source of chip-level inertial sensor errors. For high-precision sensors, temperature zero compensation and scale factor compensation are required to meet their accuracy requirements. Both compensations can be achieved through piecewise linear interpolation compensation.

[0003] For zero position and scale factor compensation, more area is needed to store various parameters during ASIC implementation, which increases chip cost. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the embodiments of the present application provide a method, register, controller and system for implementing piecewise linear interpolation compensation, which can reduce the number of OTP (one time programmable) system register bits required to store parameters, thereby reducing costs while ensuring the piecewise linear interpolation compensation effect of high-precision inertial sensors.

[0005] This application is implemented through the following technical solutions:

[0006] In a first aspect, an embodiment of the present application provides a method for implementing piecewise linear interpolation compensation, including:

[0007] Obtaining temperature compensation parameters of temperature compensation of each segmented interval; each segmented interval includes a reference segmented interval and a plurality of other segmented intervals;

[0008] Based on the temperature compensation parameter of the reference segmented interval and the temperature compensation parameters of each other segmented interval, the storage value of each segmented interval is determined; the storage value of the reference segmented interval is the temperature compensation parameter of the reference segmented interval; the storage value of each other segmented interval is the difference between each other segmented interval and the adjacent segmented interval;

[0009] Based on the stored values ​​of each segmented interval, piecewise linear interpolation compensation is performed on the high-precision inertial sensor.

[0010] In a possible implementation manner of the first aspect, performing piecewise linear interpolation compensation on the high-precision inertial sensor based on the stored value includes:

[0011] After power-on reset, read the stored value and obtain the current temperature of the high-precision inertial sensor;

[0012] outputting the stored value of the reference segment interval to an output parameter location using the ASIC;

[0013] Based on the stored values ​​of the reference segment intervals of the output parameter position, the high-precision inertial sensor is compensated by piecewise linear interpolation.

[0014] In a possible implementation of the first aspect, based on the stored value and the current temperature, and based on the stored value of the reference segmented interval of the output parameter position, piecewise linear interpolation compensation is performed on the high-precision inertial sensor, including:

[0015] Compare the current temperature interval with the position of the segmented interval corresponding to the current temperature compensation parameter to obtain a comparison result;

[0016] According to the comparison result and the stored value of the reference segment interval of the output parameter position, the pointer is controlled to output the temperature compensation parameter at the current output parameter position;

[0017] The temperature compensation parameters are output based on the current output parameter position, and piecewise linear interpolation compensation is performed on the high-precision inertial sensor.

[0018] In a possible implementation of the first aspect, the comparison result includes that the position of the interval where the current temperature is located is consistent with the position of the segmented interval corresponding to the current temperature compensation parameter, or the position of the interval where the current temperature is located is inconsistent with the position of the segmented interval corresponding to the current temperature compensation parameter;

[0019] According to the comparison result, the pointer is controlled to output the temperature compensation parameters at the current output parameter position, including:

[0020] If the current temperature interval is consistent with the position of the segmented interval corresponding to the current temperature compensation parameter, the control pointer outputs the current temperature compensation parameter at the current output parameter position;

[0021] If the position of the current temperature interval and the segmented interval corresponding to the current temperature compensation parameter are inconsistent, the control pointer moves sequentially from the segmented interval corresponding to the current temperature compensation parameter to the current temperature interval, and accumulates or subtracts the stored values ​​of each segmented interval that has been moved sequentially to obtain the temperature compensation parameter of the current temperature interval.

[0022] In a possible implementation of the first aspect, the control pointer is moved sequentially from the segmented interval corresponding to the current temperature compensation parameter to the interval where the current temperature is located, including:

[0023] The temperature sensor output is divided into two sections: i , then the state machine indicates that the pointer changes from θ i Move to θ1, θ2, ..., θ in sequence i The corresponding adder outputs the temperature compensation parameter K0 and θ1, θ2, ..., θ under the control of the state machine.i The corresponding storage values ​​are added or subtracted to get θ i The output temperature compensation parameter K of the linear segment interval 3,0 .

[0024] In a possible implementation manner of the first aspect, each segment interval is θ -n ......θ -i ,θ -1 ,θ0,θ1,θ i ......θ n ; The temperature compensation parameter of the reference segment interval θ0 is K 0,0 and K 0,1 ; Other segment intervals θ i The temperature compensation parameter is K i,0 and K i,1 ;

[0025] The i-th segment interval θ i The corresponding stored values ​​include a first stored value Q i,0 and the second stored value Q i,1 ;

[0026]

[0027] Among them, K i,0 and K i,1 is the i-th segment interval θ i Two temperature compensation parameters, K i-1,0 and K i-1,1 is the i-1th segment interval θ i-1 Two temperature compensation parameters: K i+1,0 and K i+1,1 is the i+1th segment interval θ i-1 Two temperature compensation parameters.

[0028] In a possible implementation manner of the first aspect, the temperature compensation parameter includes a temperature compensation parameter corresponding to a zero position of the high-precision inertial sensor or a temperature compensation parameter corresponding to a scale factor.

[0029] In a second aspect, the present application provides a register, characterized in that it stores the difference between adjacent segmented intervals as in the first aspect.

[0030] In a third aspect, the present application provides a controller, which is used to execute the implementation method of the piecewise linear interpolation compensation as in the first aspect.

[0031] In a fourth aspect, the present application provides a system for implementing piecewise linear interpolation compensation, including a controller, a temperature sensor, and a MEMS sensitive structure as in the first aspect.

[0032] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.

[0033] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0034] In the embodiments of the present application, starting from the characteristic that the parameters of adjacent linear intervals have a small difference, the temperature compensation parameters, such as the scale factor and the zero position, are reduced by storing the difference between the parameters of each segmented interval and the parameters of the adjacent linear intervals, thereby reducing the number of bits required for storage, thereby reducing the number of bits of the OTP system register required for storing the parameters, thereby ensuring the high-precision piecewise linear interpolation compensation effect of the inertial sensor while reducing the cost.

[0035] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present specification. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0037] Figure 1 It is a flowchart of a method for implementing piecewise linear interpolation compensation provided by an embodiment of the present application;

[0038] Figure 2 It is a schematic diagram of the corresponding relationship between the sensor zero position and the temperature provided in an embodiment of the present application;

[0039] Figure 3 An embodiment of the present application provides Figure 2 A schematic diagram of a segmented interval;

[0040] Figure 4 It is a schematic diagram of a process of performing piecewise linear interpolation compensation provided by an embodiment of the present application;

[0041] Figure 5 This is a schematic diagram of an ASIC circuit design provided by an embodiment of the present application;

[0042] Figure 6 It is a schematic diagram of the structure of a controller provided in one embodiment of the present application. DETAILED DESCRIPTION

[0043] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0044] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0045] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0046] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0047] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0048] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0049] When performing temperature zero compensation and scale factor compensation on high-precision sensors, the linear model of the zero position and temperature correlation of the chip-level inertial device is as follows within a linear range:

[0050] G0=K 0, ×θ+K 0, (1)

[0051] Where G0 is the zero position of the chip-level inertial device, K 0,0 and K 0,1 is the temperature compensation parameter within a single zero bias linear interval, and θ represents the temperature.

[0052] In a linear range, the chip-level inertial device scale factor is related to the linear model of temperature, and the compensation model is as follows:

[0053] K0=K 0, ×θ+K 0, (2)

[0054] Where K0 is the chip-level inertial device scale factor, K 0,2 and K 0,3 is the temperature compensation parameter within a single zero bias linear interval, and θ represents the temperature.

[0055] The inventors found that for zero position and scale factor compensation, in order to improve the compensation effect, it is necessary to divide multiple linear intervals. Each linear interval for compensation requires two parameters. As the number of segments of the linear interval increases, the required parameters increase accordingly. This will result in more area being required to store each parameter in ASIC implementation, thereby increasing chip cost.

[0056] The present invention starts from the characteristic that the parameters of adjacent linear intervals have a small difference. By storing the parameters of a specified linear interval as a reference value, other intervals store the difference between the parameters of the adjacent linear intervals, thereby reducing the number of bits required for storing the scale factor, thereby reducing the number of bits of the OTP system register required for storing the scale factor, and is implemented through an application specific integrated circuit (ASIC), thereby reducing the cost on the basis of ensuring the high-precision piecewise linear interpolation compensation effect of the inertial sensor.

[0057] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0058] Figure 1 is a flowchart of a method for implementing piecewise linear interpolation compensation provided by an embodiment of the present application, referring to Figure 1 , the implementation method of the piecewise linear interpolation compensation is described in detail as follows:

[0059] The embodiment of the present application provides a method for implementing piecewise linear interpolation compensation, including:

[0060] Step 101, obtaining temperature compensation parameters of each segmented interval; each segmented interval includes a reference segmented interval and a plurality of other segmented intervals.

[0061] Exemplarily, the temperature compensation parameter may include a temperature compensation parameter corresponding to a zero position of the high-precision inertial sensor or a temperature compensation parameter corresponding to a scale factor.

[0062] Taking zero compensation as an example, Figure 2 It is a schematic diagram of the corresponding relationship between the sensor zero position and temperature. Figure 2 The temperature θ is divided into several intervals, and the θ0 interval is defined as the reference segment interval, θ -n ......θ -2 ,θ -1 ,θ1,θ2......θ n For other segment intervals.

[0063] like Figure 3 As shown, the solid line part is the actual zero position in a linear segmented interval, and the dashed line part is the zero position after linear interpolation. According to formula (1), the K stored at this position is 0,0 and K 0,1 The zero position can be obtained according to the temperature value during operation, and the sensor can complete the temperature compensation of this interval by deducting the zero position value. Assuming that this linear segmented interval is the reference segmented interval, then K 0,0 and K 0,1 is the temperature compensation parameter of the reference segment interval.

[0064] Step 102: Determine the storage value of each segmented interval based on the temperature compensation parameter of the reference segmented interval and the temperature compensation parameters of each other segmented interval.

[0065] The stored value of the reference segmented interval is the temperature compensation parameter of the reference segmented interval; and the stored value of each other segmented interval is the difference between each other segmented interval and the adjacent segmented interval.

[0066] Exemplarily, considering that if the temperature compensation parameters are directly used as the storage values ​​corresponding to each segmented interval, then the number of OTP system register bits required for the zero position or the scale factor is relatively large, this embodiment directly stores the temperature compensation parameters of the reference segmented interval, and sets the storage values ​​corresponding to other adjacent segmented intervals as differences, which will greatly reduce the number of OTP system register bits required for the zero position or the scale factor.

[0067] Among them, generally, the piecewise linear interpolation compensation effect is improved by dividing more and finer segmented intervals. The more segmented intervals, the larger the storage space of the OTP system register required, which affects the execution speed of the operation. In this embodiment, more and finer segmented intervals are divided, the smaller the difference between the temperature compensation parameters of adjacent linear intervals, the smaller the difference, the fewer the number of bits of the OTP system register required, and the less storage space of the OTP system register is occupied, which can improve the execution speed of the operation to a certain extent.

[0068] Step 103 : performing piecewise linear interpolation compensation on the high-precision inertial sensor based on the stored values ​​of each segmented interval.

[0069] The corresponding temperature compensation parameters can be calculated from the stored values, so that the zero point or scale factor can be calculated according to formula (1) and formula (2) for compensation.

[0070] This embodiment starts from the characteristic that the parameters of adjacent linear intervals have a small difference, and stores the difference between the parameters of each segmented interval and the parameters of the adjacent linear interval, thereby reducing the temperature compensation parameters, such as the scale factor and the zero position, and the number of bits required for storage, thereby reducing the number of bits of the OTP system register required for storing the parameters, thereby ensuring the high-precision piecewise linear interpolation compensation effect of the inertial sensor and reducing the cost.

[0071] An embodiment describes how to specifically determine the storage value of each segmented interval. In step 102, the temperature compensation parameter of the reference segmented interval is stored as a reference value in a storage location corresponding to the reference segmented interval.

[0072] Exemplarily, taking scale factor compensation as an example, its temperature compensation parameters are shown in Table 1, and the storage value of the storage location is the value of the temperature compensation parameter.

[0073] Table 1 Temperature compensation parameter range and corresponding temperature compensation parameters

[0074] Belong to the interval <![CDATA[θ -5 ]]> <![CDATA[θ -4 ]]> <![CDATA[θ -3 ]]> <![CDATA[θ -2 ]]> <![CDATA[θ -1 ]]> <![CDATA[θ0]]> <![CDATA[θ1]]> <![CDATA[θ2]]> <![CDATA[θ3]]> <![CDATA[θ4]]> Parameter 0 <![CDATA[K -5,0 ]]> <![CDATA[K -4,0 ]]> <![CDATA[K -3,0 ]]> <![CDATA[K -2,0 ]]> <![CDATA[K -1,0 ]]> <![CDATA[K 0,0 ]]> <![CDATA[K 1,0 ]]> <![CDATA[K 2,0 ]]> <![CDATA[K 3,0 ]]> <![CDATA[K 4,0 ]]> Parameter 1 <![CDATA[K -5,1 ]]> <![CDATA[K -4,1 ]]> <![CDATA[K -3,1 ]]> <![CDATA[K -2,1 ]]> <![CDATA[K -1,1 ]]> <![CDATA[K 0,1 ]]> <![CDATA[K 1,1 ]]> <![CDATA[K 2,1 ]]> <![CDATA[K 3,1 ]]> <![CDATA[K 4,1 ]]>

[0075] According to the adjacent linear segment intervals, according to the characteristics of small difference in scale factors, in ASIC storage, from the reference parameter K 0,0 and K 0,1 Starting from this, the parameters 0 and 1 in the above table are converted into the difference between adjacent segment intervals, as shown in Table 2.

[0076] Table 2 Temperature compensation parameter range and corresponding temperature compensation parameters and storage values

[0077] Belong to the interval Parameter 0 Stores a value of 0 Parameter 1 Store value 1 …… …… …… …… …… <![CDATA[θ -2 ]]> <![CDATA[K -2,0 ]]> <![CDATA[K -1,0 -K -2,0 ]]> <![CDATA[K -2,1 ]]> <![CDATA[K -1,0 -K -2,1 ]]> <![CDATA[θ -1 ]]> <![CDATA[K -1,0 ]]> <![CDATA[K 0,0 -K -1,0 ]]> <![CDATA[K -1,1 ]]> <![CDATA[K 0,0 -K -1,1 ]]> <![CDATA[θ0]]> <![CDATA[K 0,0 ]]> <![CDATA[K 0,0 ]]> <![CDATA[K 0,1 ]]> <![CDATA[K 0,1 ]]> <![CDATA[θ1]]> <![CDATA[K 1,0 ]]> <![CDATA[K 1,0 -K 0,0 ]]> <![CDATA[K 1,1 ]]> <![CDATA[K 1,1 -K 0,1 ]]> <![CDATA[θ2]]> <![CDATA[K 2,0 ]]> <![CDATA[K 2,0 -K 1,0 ]]> <![CDATA[K 2,1 ]]> <![CDATA[K 2,1 -K 1,1 ]]> …… …… …… …… ……

[0078] Next, based on the temperature compensation parameters of the reference segmented interval, the difference between the temperature compensation parameters of other segmented intervals adjacent to the reference segmented interval is determined, and the difference between the temperature compensation parameters of the remaining other segmented intervals and their adjacent segmented intervals is determined, thereby obtaining the storage values ​​of the reference segmented interval and other segmented intervals.

[0079] See Table 2, each segment interval is θ -n ......θ -i ,θ -1 ,θ0,θ1,θ i ......θ n ; The temperature compensation parameter of the reference segment interval θ0 is K 0,0 and K 0,1 ; Other segment intervals θ i The temperature compensation parameter is K i,0 and K i,1 ;

[0080] The i-th segment interval θ i The corresponding stored values ​​include a first stored value Q i,0 and the second stored value Q i,1 ;

[0081]

[0082] Among them, K i,0 and K i,1 is the i-th segment interval θ i Two temperature compensation parameters, K i-1,0 and K i-1,1 is the i-1th segment interval θ i-1 Two temperature compensation parameters: K i+1,0 and K i+1,1 is the i+1th segment interval θ i-1 Two temperature compensation parameters.

[0083] In this embodiment, since the difference between the parameters of adjacent segmented intervals is small, except for the temperature compensation parameter corresponding to the reference segmented interval θ0, the number of storage bits required for the parameters of other segmented intervals is reduced by more than half, thereby reducing the use cost.

[0084] One embodiment, participating Figure 4 , step 103 comprises:

[0085] Step 1031 , after power-on reset, read the stored value and obtain the current temperature of the high-precision inertial sensor.

[0086] See also Figure 5, two output parameters K0 and K1 are required for compensation in ASIC circuit design, among which, output parameter K0 is mainly used as an example, and the output parameter K1 is the same as the output parameter K0. After the sensor is powered on, the temperature compensation parameters of the reference segment interval θ0 stored in the OTP and the differences of other segment intervals are read into the system register of K0.

[0087] Step 1032, using the ASIC to output the stored value of the reference segment interval to the output parameter location.

[0088] Exemplarily, the state machine controls the stored value K of the reference segment interval based on the stored value control pointer. 0,0 The temperature sensor transmits the current temperature signal to the state machine after filtering and correction.

[0089] Step 1033 , performing piecewise linear interpolation compensation on the high-precision inertial sensor based on the stored values ​​of the reference segment intervals of the output parameter position.

[0090] For example, Figure 5 Only the temperature compensation part of the zero position is shown in FIG. 1 , and the piecewise linear interpolation compensation of the scale factor part is consistent with the compensation of the zero position, which is not shown in the figure. This compensation method can be extended to all piecewise linear interpolation compensations. Then, step 1033 includes:

[0091] The comparison is performed based on the position of the segmented interval corresponding to the temperature compensation parameter of the current output parameter position and the current temperature interval to obtain a comparison result.

[0092] Exemplarily, the state machine compares the relative positions of the interval where the current temperature sensor output is located and the interval corresponding to the output parameter K0, and controls the pointer according to the comparison result.

[0093] According to the comparison result and the stored value of the reference segment interval of the output parameter position, the control pointer outputs the temperature compensation parameter at the current output parameter position.

[0094] The comparison result includes that the position of the interval where the current temperature is located is consistent with the position of the segmented interval corresponding to the current temperature compensation parameter, or the position of the interval where the current temperature is located is inconsistent with the position of the segmented interval corresponding to the current temperature compensation parameter.

[0095] Exemplarily, controlling the pointer to output the temperature compensation parameter at the current output parameter position according to the comparison result includes:

[0096] If the current temperature interval is consistent with the position of the segmented interval corresponding to the current temperature compensation parameter, the control pointer outputs the current temperature compensation parameter at the current output parameter position. For example, if the interval corresponding to the current output parameter K0 is θ0, its current output value is K 0,0 .

[0097] If the position of the current temperature interval and the segment interval corresponding to the current temperature compensation parameter are inconsistent, the control pointer moves from the segment interval corresponding to the current temperature compensation parameter to the segment interval where the current temperature is located, and accumulates or subtracts the stored values ​​of each segment interval that has been moved in sequence to obtain the temperature compensation parameter of the segment interval where the current temperature is located. i , then the state machine indicates that the pointer changes from θ i Move to θ1, θ2, ..., θ in sequence i The corresponding adder outputs the temperature compensation parameter K0 and θ1, θ2, ..., θ under the control of the state machine. i The corresponding storage values ​​are added or subtracted to get θ i The output temperature compensation parameter K of the linear segment interval 3,0 .

[0098] Among them, if the current temperature is higher than the current segmented interval, the current segmented interval and the stored value of the next segmented interval are summed, the next segmented interval becomes the corresponding temperature interval, and the temperature compensation parameters of the corresponding temperature interval are used for temperature compensation; if the current temperature is lower than the current segmented interval, the current segmented interval and the stored value of the current segmented interval are subtracted, the current segmented interval becomes the previous segmented interval, the segmented interval after the difference becomes the corresponding temperature interval, and the temperature compensation parameters of the corresponding temperature interval are used for temperature compensation.

[0099] For example, if the temperature sensor output is in the segmented interval θ3, the state machine pointer moves from θ0 to θ1, θ2, and θ3 in sequence. The corresponding adder accumulates the output temperature compensation parameter K0 and the storage values ​​corresponding to θ1, θ2, and θ3 under the control of the state machine to obtain the output temperature compensation parameter K of the linear segmented interval where θ3 is located. 3,0 .

[0100] The temperature compensation parameters are output based on the current output parameter position, and piecewise linear interpolation compensation is performed on the high-precision inertial sensor.

[0101] According to the above method, the output parameter K of the linear segment interval where θ3 is located is obtained 3,1 Here the state machine and pointer can be shared. The linear interpolation compensation module is based on K 3,0 With K 3,1 , combined with the current temperature information, calculate the zero value after temperature compensation. If the output of the temperature sensor continues to change and moves to other temperature intervals, the state machine controls the pointer to continue to move to the corresponding temperature segment interval based on the area where θ3 is located to complete the update of K0 and K1, thereby realizing piecewise linear interpolation compensation.

[0102] It can be seen that the implementation method of the piecewise linear interpolation compensation of the present invention, compared with the traditional piecewise linear interpolation compensation, greatly reduces the storage overhead of the coefficients, and only adds the addition and subtraction operations of the output parameters. The remaining modules can be reused with the functional modules of the traditional piecewise linear interpolation. For complex curves, such as curves with poles, piecewise linear interpolation is performed, and this method can also be applied after simple modification. It is only necessary to first divide the curve into large interval segments, and each large interval segment is subdivided into small interval segments according to this method, so that each large interval segment stores a reference interval segment and its adjacent small interval segments. This method can also reduce the cost of piecewise linear interpolation.

[0103] An embodiment provides a register, which stores the difference between adjacent segmented intervals mentioned in the implementation method of the piecewise linear interpolation compensation in the above embodiment.

[0104] See also Figure 6 , an embodiment provides a controller, which is used to execute the implementation method of the piecewise linear interpolation compensation in the above embodiment.

[0105] The present application also provides a controller, see Figure 6 The controller 200 may include: at least one processor 210 and a memory 220, wherein the memory 220 stores a computer program that can be run on at least one processor 210, and when the processor 210 executes the computer program, the steps in any of the above method embodiments are implemented.

[0106] Exemplarily, the computer program may be divided into one or more modules / units, one or more modules / units are stored in the memory 220, and executed by the processor 210 to complete the present application. One or more modules / units may be a series of computer program segments capable of completing specific functions, and the program segments are used to describe the execution process of the computer program in the controller 200.

[0107] Those skilled in the art will understand that Figure 6 These are merely examples of controllers and do not constitute a limitation of the controller, which may include more or fewer components than those shown in the figure, or a combination of certain components, or different components, such as input and output devices, network access devices, buses, etc.

[0108] The processor 210 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0109] The memory 220 may be an internal storage unit of the controller or an external storage device of the controller, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. The memory 220 is used to store computer programs and other programs and data required by the controller. The memory 220 may also be used to temporarily store data that has been output or is to be output.

[0110] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0111] The rapid intelligent detection method for physical and chemical indicators of hazardous waste provided in the embodiments of the present application can be applied to controllers such as computers, tablet computers, laptops, netbooks, personal digital assistants (PDAs), etc. The embodiments of the present application do not impose any restrictions on the specific type of controller.

[0112] An embodiment provides a system for implementing piecewise linear interpolation compensation, which uses the controller, temperature sensor and MEMS sensitive structure of the above embodiment.

[0113] The controller is used for performing zero-position or scale factor temperature compensation on the MEMS sensitive structure according to the implementation method of the piecewise linear interpolation compensation and the data of the temperature sensor.

[0114] Exemplarily, the implementation system of piecewise linear interpolation compensation also includes a register as described in the above embodiment.

[0115] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0116] The beneficial effects of a manufacturing method refer to the beneficial effects of the smoking device self-cleaning method of the above embodiment.

[0117] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for implementing piecewise linear interpolation compensation, It is characterized in that include: Acquire temperature compensation parameters of temperature compensation of each segmented interval; each segmented interval includes a reference segmented interval and a plurality of other segmented intervals; Based on the temperature compensation parameter of the reference segmented interval and the temperature compensation parameters of each other segmented interval, the storage value of each segmented interval is determined; the storage value of the reference segmented interval is the temperature compensation parameter of the reference segmented interval; the storage value of each other segmented interval is the difference between each other segmented interval and the adjacent segmented interval; Based on the stored values ​​of each segmented interval, piecewise linear interpolation compensation is performed on the high-precision inertial sensor.

2. The method for implementing piecewise linear interpolation compensation as claimed in claim 1, It is characterized in that The step of performing piecewise linear interpolation compensation on the high-precision inertial sensor based on the stored value includes: After power-on reset, read the stored value and obtain the current temperature of the high-precision inertial sensor; outputting the stored value of the reference segment interval to an output parameter location using the ASIC; Based on the stored values ​​of the reference segmented intervals of the output parameter position, piecewise linear interpolation compensation is performed on the high-precision inertial sensor.

3. The method for implementing piecewise linear interpolation compensation as claimed in claim 2, It is characterized in that The step of performing piecewise linear interpolation compensation on the high-precision inertial sensor based on the stored value of the reference segmented interval of the output parameter position comprises: Comparing the current temperature interval with the position of the segmented interval corresponding to the current temperature compensation parameter to obtain a comparison result; According to the comparison result and the stored value of the reference segment interval of the output parameter position, the pointer is controlled to output the temperature compensation parameter at the current output parameter position; Based on the current output parameter position output temperature compensation parameter, the high-precision inertial sensor is compensated by piecewise linear interpolation.

4. The method for implementing piecewise linear interpolation compensation as claimed in claim 3, It is characterized in that The comparison result includes that the position of the interval where the current temperature is located is consistent with the position of the segmented interval corresponding to the current temperature compensation parameter, or the position of the interval where the current temperature is located is inconsistent with the position of the segmented interval corresponding to the current temperature compensation parameter; The step of controlling the pointer to output the temperature compensation parameter at the current output parameter position according to the comparison result includes: If the interval where the current temperature is located is consistent with the position of the segmented interval corresponding to the current temperature compensation parameter, the control pointer outputs the current temperature compensation parameter at the current output parameter position; If the position of the interval where the current temperature is located is inconsistent with the segmented interval corresponding to the current temperature compensation parameter, the control pointer moves sequentially from the segmented interval corresponding to the current temperature compensation parameter to the interval where the current temperature is located, and the stored values ​​of each segmented interval that has been moved sequentially are accumulated or subtracted to obtain the temperature compensation parameter of the interval where the current temperature is located.

5. The method for implementing piecewise linear interpolation compensation as claimed in claim 4, It is characterized in that The control pointer moves sequentially from the segmented interval corresponding to the current temperature compensation parameter to the interval where the current temperature is located, including: The temperature sensor output is divided into two sections: i , then the state machine indicates that the pointer changes from θ i Move to θ in sequence 1 ,θ 2 ,…,θ i The corresponding adder outputs the temperature compensation parameter K under the control of the state machine. 0 With θ 1 ,θ 2 ,…,θ i The corresponding storage values ​​are added or subtracted to get θ i The output temperature compensation parameter K of the linear segment interval 3,0 .

6. The method for implementing piecewise linear interpolation compensation as claimed in claim 1, It is characterized in that The segment intervals are θ -n ......θ -i ,θ -1 ,θ 0 ,θ 1 ,θ i ......θ n ; The reference segment interval θ 0 The temperature compensation parameter is K 0,0 and K 0,1 ; Other segment intervals θ i The temperature compensation parameter is K i,0 and K i,1 ; The i-th segment interval θ i The corresponding stored values ​​include a first stored value Q i,0 and the second stored value Q i,1 ; Among them, K i,0 and K i,1 is the i-th segment interval θ i Two temperature compensation parameters, K i-1,0 and K i-1,1 is the i-1th segment interval θ i-1 Two temperature compensation parameters: K i+1,0 and K i+1,1 is the i+1th segment interval θ i-1 Two temperature compensation parameters.

7. The method for implementing piecewise linear interpolation compensation as claimed in claim 1, It is characterized in that The temperature compensation parameter includes a temperature compensation parameter corresponding to a zero position of the high-precision inertial sensor or a temperature compensation parameter corresponding to a scale factor.

8. A register, It is characterized in that The difference between adjacent segmented intervals as described in any one of claims 1-7 is stored.

9. A controller, It is characterized in that The controller is used to execute the implementation method of piecewise linear interpolation compensation as described in any one of claims 1-7.

10. A piecewise linear interpolation compensation implementation system, It is characterized in that It comprises the controller, temperature sensor and MEMS sensitive structure as claimed in claim 9.