CN108875142A - A kind of unlimited order easily realizes temperature compensation system - Google Patents
A kind of unlimited order easily realizes temperature compensation system Download PDFInfo
- Publication number
- CN108875142A CN108875142A CN201810514436.0A CN201810514436A CN108875142A CN 108875142 A CN108875142 A CN 108875142A CN 201810514436 A CN201810514436 A CN 201810514436A CN 108875142 A CN108875142 A CN 108875142A
- Authority
- CN
- China
- Prior art keywords
- digital
- temperature
- vtemp
- vout
- function model
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/30—Circuit design
- G06F30/36—Circuit design at the analogue level
- G06F30/367—Design verification, e.g. using simulation, simulation program with integrated circuit emphasis [SPICE], direct methods or relaxation methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/02—Digital function generators
- G06F1/03—Digital function generators working, at least partly, by table look-up
- G06F1/0307—Logarithmic or exponential functions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2101/00—Indexing scheme relating to the type of digital function generated
- G06F2101/04—Trigonometric functions
Abstract
The invention discloses a kind of unlimited orders easily to realize temperature compensation system, needs the system output signal of temperature-compensating to have temperature simulation value Vtemp and voltage-mode analog values Vout, and the two signal is passed to digital analog converter;Analog temperature value Vtemp and analog voltage Vout is converted into digital temperature value Digital Vtemp and digital voltage value Digital Vout by ADC by digital analog converter, is exported to microprocessor;A kind of function model is selected in microprocessor, function model includes:Trigonometric function model and diexponential function model, and digital temperature value Digital Vtemp and digital voltage value Digital Vout are fitted, obtain the memory module Rom that function model coefficient sends digital compensation circuit to;Digital compensation circuit compensates digital temperature value Digital Vtemp, digital voltage value Digital Vout, ROM of input the function model coefficient read using cordic algorithm or LUT Method, final output thermal compensation signal;Realize the fitting effect that can reach higher order polynomial, coefficient is less, calculates simple, it is easy to accomplish technical effect.
Description
Technical field
The present invention relates to temperature-compensating fields, and in particular, to a kind of unlimited order easily realizes temperature compensation system.
Background technique
At present for the system of temperature-compensating, temperature-compensating mainly has analog- and digital- two methods.Simulation is main to be used
The technologies such as PTAT (with absolute temperature is proportional) and CTAT (with absolute temperature complementarity) design reading circuit, compensate they and temperature
The relationship of degree.It is digital mainly to use polynomial curve fitting, surface fitting, Kalman filtering, the progress such as BP neural network algorithm
Compensation.Both methods also has certain limitation, for example analogy method precision is not high and needs to debug repeatedly, digital method algorithm
Complexity, it is not easy of integration etc..
Summary of the invention
The present invention provides a kind of unlimited orders easily to realize temperature compensation system, the system for solving existing temperature-compensating
It needs to debug repeatedly, digital method algorithm is complicated, technical problem not easy of integration, and the quasi- of higher order polynomial can be reached by realizing
Effect is closed, and coefficient is less, calculates the technical effect for being simply easy to be realized with hardware language.
A kind of unlimited order of the invention easily realizes temperature compensation system using double-exponential function or trigonometric function to temperature
Curve compensates, and carries out hardware modeling to function model using hardware description language Verilog HDL, so that entire compensation
Circuit module is desirably integrated into mems accelerometer.
For achieving the above object, this application provides a kind of unlimited orders easily to realize temperature compensation system, the temperature
Spending compensation system includes:
Need system, digital analog converter, microprocessor, the digital compensation circuit, memory module Rom of temperature-compensating;
Needing the system output signal of temperature-compensating has a temperature simulation value Vtemp and voltage-mode analog values Vout, and by the two
Signal passes to digital analog converter;Analog temperature value Vtemp and analog voltage Vout are converted by digital analog converter by ADC
Digital temperature value Digital Vtemp and digital voltage value Digital Vout is exported to microprocessor;It is selected in microprocessor
A kind of function model, function model include:Trigonometric function model and diexponential function model, and to digital temperature value Digital
Vtemp and digital voltage value Digital Vout are fitted, and are obtained function model coefficient and are sent depositing for digital compensation circuit to
Memory modules Rom;Digital compensation circuit uses cordic algorithm or LUT Method to the digital temperature value Digital of input
The function model coefficient that Vtemp, digital voltage value Digital Vout, ROM are read compensates, final output thermal compensation signal.
Further, double-exponential function is:
Y=α1×exp(β1×x)+α2×exp(β2×x);Wherein, in double-exponential function, a1And a2For in fitting function
Linear coefficient;β1For the nonlinear factor in fitting function;X is function argument, that is, corresponding temperature value;
Trigonometric function is:
Y=a0+a1×sin(x)+a2× cos (x), wherein in trigonometric function, a0For linear coefficient;a1For sinusoidal coefficients;
a2For cosine coefficient;X is function argument, that is, corresponding temperature value.
One or more technical solution provided by the present application, has at least the following technical effects or advantages:
Function model uses double-exponential function (y=α1×exp(β1×x)+α2×exp(β2× x)) or trigonometric function y=a0
+a1×sin(x)+a2× cos (x), due to having infinite order in the Taylor expansion of the two, the energy in temperature curve fitting
Enough reach the fitting effect of higher order polynomial, and coefficient is less.
In digital compensation circuit (Digital Compensated circuit) design process, using cordic algorithm
Or the methods of look-up table, it can quickly and efficiently calculate double-exponential function (y=α1×exp(β1×x)+α2×exp(β2×x))
Or trigonometric function y=a0+a1×sin(x)+a2× cos (x), entire algorithm are that addition and subtraction is iterated, and calculate simply, are easy to
It is realized with hardware language.
The digital circuit blocks are easy of integration into mems accelerometer.It only need to there are Rom by coefficient (Coefficients)
In, when input temperature values (Digital Vtemp) and voltage value (the Digital Vout) for needing to compensate, can directly obtain
Offset (Compensated Signal) at this temperature.
Detailed description of the invention
Attached drawing described herein is used to provide to further understand the embodiment of the present invention, constitutes one of the application
Point, do not constitute the restriction to the embodiment of the present invention;
Fig. 1 is that unlimited order easily realizes temperature compensation system block schematic illustration in the application;
Fig. 2 is effect temperature compensation schematic diagram in the application.
Specific embodiment
The present invention provides a kind of unlimited orders easily to realize temperature compensation system, the system for solving existing temperature-compensating
It needs to debug repeatedly, digital method algorithm is complicated, technical problem not easy of integration, and the quasi- of higher order polynomial can be reached by realizing
Effect is closed, and coefficient is less, calculates the technical effect for being simply easy to be realized with hardware language.
To better understand the objects, features and advantages of the present invention, with reference to the accompanying drawing and specific real
Applying mode, the present invention is further described in detail.It should be noted that in the case where not conflicting mutually, the application's
Feature in embodiment and embodiment can be combined with each other.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, still, the present invention may be used also
Implemented with being different from the other modes being described herein in range using other, therefore, protection scope of the present invention is not by under
The limitation of specific embodiment disclosed in face.
A kind of unlimited order of the invention easily realizes temperature compensation system and structure (frame diagram is as shown in Figure 1), first root
Select suitable function model according to data and curves, then by the temperature of ADC quantization and output digit signals by computer or
Double exponential function fit coefficient a is calculated in microprocessor1,a2, β1,β2Or trigonometric function fitting coefficient a0, a1, a2.Next
Coefficient is stored in the Rom of digital compensation circuit, finally using temperature output digital quantity as input, passes through digital compensation circuit
To offset.Only it need to change coefficient in Rom, so that compensation becomes convenient, flexible.A kind of unlimited order of the invention easily realizes temperature
Compensation system and structure are spent, system block diagram is as shown in Figure 1, the temperature compensation system includes:
Need system, digital analog converter, microprocessor, the digital compensation circuit, memory module Rom of temperature-compensating;It needs
It wants the system output signal of temperature-compensating to have temperature simulation value Vtemp and voltage-mode analog values Vout, and the two signal is passed to
Digital analog converter;Analog temperature value Vtemp and analog voltage Vout are converted into digital temperature value by ADC by digital analog converter
Digital Vtemp and digital voltage value Digital Vout is exported to microprocessor;A kind of Function Modules are selected in microprocessor
Type, function model include:Trigonometric function model and diexponential function model, and to digital temperature value Digital Vtemp sum number
Word voltage value Digital Vout is fitted, and obtains the memory module that function model coefficient sends digital compensation circuit to
Rom;Digital compensation circuit uses cordic algorithm or LUT Method to digital temperature value Digital Vtemp, the number of input
The function model coefficient that word voltage value Digital Vout, ROM are read compensates, final output thermal compensation signal.
Experiment carries out temperature-compensating using two mems accelerometer M1, M2 type, and table 1 is hardware compensating circuit counting M2 type
Diexponential function model calculated result and theoretical value compare, and relative error reaches 10-4, meet requirement of engineering precision.Finally
Compensation result is illustrated in fig. 2 shown below, and M1 type uses trigonometric function model, and M2 type uses diexponential function model.Temperature error peak peak
Value reduces an order of magnitude or more.Table 1 is the modelsim simulation result of M2 model.
Table 1
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (2)
1. a kind of unlimited order easily realizes temperature compensation system, which is characterized in that the temperature compensation system includes:
Need system, digital analog converter, microprocessor, the digital compensation circuit, memory module Rom of temperature-compensating;
Needing the system output signal of temperature-compensating has a temperature simulation value Vtemp and voltage-mode analog values Vout, and by the two signal
Pass to digital analog converter;Analog temperature value Vtemp and analog voltage Vout are converted into number by ADC by digital analog converter
Temperature value Digital Vtemp and digital voltage value Digital Vout is exported to microprocessor;One kind is selected in microprocessor
Function model, function model include:Trigonometric function model and diexponential function model, and to digital temperature value Digital
Vtemp and digital voltage value Digital Vout are fitted, and are obtained function model coefficient and are sent depositing for digital compensation circuit to
Memory modules Rom;Digital compensation circuit uses cordic algorithm or LUT Method to the digital temperature value Digital of input
The function model coefficient that Vtemp, digital voltage value Digital Vout, ROM are read compensates, final output thermal compensation signal.
2. unlimited order according to claim 1 easily realizes temperature compensation system, which is characterized in that double-exponential function is:
Y=α1×exp(β1×x)+α2×exp(β2×x);Wherein, in double-exponential function, a1And a2It is linear in fitting function
Coefficient;β1For the nonlinear factor in fitting function;X is function argument, that is, corresponding temperature value;
Trigonometric function is:
Y=a0+a1×sin(x)+a2× cos (x), wherein in trigonometric function, a0For linear coefficient;a1For sinusoidal coefficients;a2For
Cosine coefficient;X is function argument, that is, corresponding temperature value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810514436.0A CN108875142A (en) | 2018-05-25 | 2018-05-25 | A kind of unlimited order easily realizes temperature compensation system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810514436.0A CN108875142A (en) | 2018-05-25 | 2018-05-25 | A kind of unlimited order easily realizes temperature compensation system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108875142A true CN108875142A (en) | 2018-11-23 |
Family
ID=64333774
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810514436.0A Pending CN108875142A (en) | 2018-05-25 | 2018-05-25 | A kind of unlimited order easily realizes temperature compensation system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108875142A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114440934A (en) * | 2022-03-11 | 2022-05-06 | 恒玄科技(上海)股份有限公司 | Method, device, equipment and storage medium for temperature compensation of measurement result |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104467816A (en) * | 2014-12-29 | 2015-03-25 | 电子科技大学 | Temperature compensation system of crystal oscillator |
CN106603068A (en) * | 2016-12-09 | 2017-04-26 | 电子科技大学 | Temperature compensating system of temperature compensated crystal oscillator |
-
2018
- 2018-05-25 CN CN201810514436.0A patent/CN108875142A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104467816A (en) * | 2014-12-29 | 2015-03-25 | 电子科技大学 | Temperature compensation system of crystal oscillator |
CN106603068A (en) * | 2016-12-09 | 2017-04-26 | 电子科技大学 | Temperature compensating system of temperature compensated crystal oscillator |
Non-Patent Citations (2)
Title |
---|
冯林 等: ""标准击实试验的曲线拟合方法"", 《路基工程》 * |
刘一兵 等: ""一种基于传感器温度补偿的双指数函数拟合算法"", 《电子应用技术》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114440934A (en) * | 2022-03-11 | 2022-05-06 | 恒玄科技(上海)股份有限公司 | Method, device, equipment and storage medium for temperature compensation of measurement result |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Bayliss et al. | Mappings and accuracy for Chebyshev pseudo-spectral approximations | |
Rhebergen et al. | A space–time discontinuous Galerkin method for the incompressible Navier–Stokes equations | |
Gunzburger et al. | On Stokes--Ritz projection and multistep backward differentiation schemes in decoupling the Stokes--Darcy model | |
Chu et al. | A three-point sixth-order nonuniform combined compact difference scheme | |
Heuer | Additive Schwarz method for the p-version of the boundary element method for the single layer potential operator on a plane screen | |
Giles et al. | Progress in adjoint error correction for integral functionals | |
CN108875142A (en) | A kind of unlimited order easily realizes temperature compensation system | |
Chang | Taylor series method for solving a class of nonlinear singular boundary value problems arising in applied science | |
Hannani et al. | Incompressible Navier-Stokes computations with SUPG and GLS formulations—A comparison study | |
Doha et al. | Numerical algorithm for solving multi-pantograph delay equations on the half-line using Jacobi rational functions with convergence analysis | |
Baranovskii | The optimal start control problem for 2D Boussinesq equations | |
Zainuddin et al. | Direct fifth order block backward differentation formulas for solving second order ordinary differential equations | |
Baohua et al. | Integral transform analysis of natural convection in porous enclosures | |
Gottlieb | Spectral methods for compressible plow problems | |
Liseikin et al. | Compact difference schemes and layer resolving grids for numerical modeling of problems with boundary and interior layers | |
Iqbal et al. | Approximations for linear tenth-order boundary value problems through polynomial and non-polynomial cubic spline techniques | |
Livermore | An implementation of the exponential time differencing scheme to the magnetohydrodynamic equations in a spherical shell | |
Okada et al. | Some recent developments in finite-strain elastoplasticity using the field-boundary element method | |
WORNOM | A critical study of higher-order numerical methods for solving the boundary-layer equations | |
Dutka et al. | A method for improving the accuracy of polynomial regression analysis | |
Lu et al. | Reconstruction of the Lorenz and Chen systems with noisy observations | |
Tsai et al. | Error analysis of the L2 least‐squares finite element method for incompressible inviscid rotational flows | |
Roach et al. | Unconditional stability, monotonicity and accuracy of the linear exponential interpolation function for the Burgers Equation | |
Abu Shanab | Numerical Methods for Solving Third Order Two-Point Boundary Value Problems | |
Akyuz-Dascioglu et al. | A collocation method for linear integral equations in terms of the generalized Bernstein polynomials |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181123 |