CN108900161A - A kind of crystal resonator clock-temperature-error compensation method - Google Patents
A kind of crystal resonator clock-temperature-error compensation method Download PDFInfo
- Publication number
- CN108900161A CN108900161A CN201810485835.9A CN201810485835A CN108900161A CN 108900161 A CN108900161 A CN 108900161A CN 201810485835 A CN201810485835 A CN 201810485835A CN 108900161 A CN108900161 A CN 108900161A
- Authority
- CN
- China
- Prior art keywords
- temperature
- frequency
- clock
- crystal oscillator
- compensation
- 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
- 239000013078 crystal Substances 0.000 title claims abstract description 47
- 238000000034 method Methods 0.000 title claims abstract description 11
- 238000005259 measurement Methods 0.000 claims abstract description 5
- 238000012360 testing method Methods 0.000 claims description 3
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 238000013459 approach Methods 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 230000009514 concussion Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000010358 mechanical oscillation Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03B—GENERATION OF OSCILLATIONS, DIRECTLY OR BY FREQUENCY-CHANGING, BY CIRCUITS EMPLOYING ACTIVE ELEMENTS WHICH OPERATE IN A NON-SWITCHING MANNER; GENERATION OF NOISE BY SUCH CIRCUITS
- H03B5/00—Generation of oscillations using amplifier with regenerative feedback from output to input
- H03B5/02—Details
- H03B5/04—Modifications of generator to compensate for variations in physical values, e.g. power supply, load, temperature
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03B—GENERATION OF OSCILLATIONS, DIRECTLY OR BY FREQUENCY-CHANGING, BY CIRCUITS EMPLOYING ACTIVE ELEMENTS WHICH OPERATE IN A NON-SWITCHING MANNER; GENERATION OF NOISE BY SUCH CIRCUITS
- H03B5/00—Generation of oscillations using amplifier with regenerative feedback from output to input
- H03B5/30—Generation of oscillations using amplifier with regenerative feedback from output to input with frequency-determining element being electromechanical resonator
- H03B5/32—Generation of oscillations using amplifier with regenerative feedback from output to input with frequency-determining element being electromechanical resonator being a piezoelectric resonator
Landscapes
- Oscillators With Electromechanical Resonators (AREA)
Abstract
A kind of crystal resonator clock-temperature-error compensation method, it is related to electronic circuit technology field, and in particular to a kind of crystal resonator clock-temperature-error compensation method.It is comprised the steps of:A, it by the operating temperature of temperature sensor measurement crystal oscillator, is handled to obtain clock synchronization error by frequency of the FPGA analog input card to crystal oscillator, to measure the frequency departure of real crystal oscillator at different temperatures;B, temperature, frequency curve characteristic model are constructed, vertex temperature is found out;C, the frequency division value to UART clock is calculated;D, frequency division value and crystal oscillator frequency are compared;E, it is calculated according to vertex deviation, vertex temperature, multinomial coefficient and obtains amount of temperature compensation, to draw high out a curve, increase compensation point.After adopting the above technical scheme, the present invention has the beneficial effect that:It can improve precision of current crystal resonator clock under the conditions of different temperature, it, which is operated, calculates simple and convenient, have the advantages that real-time compensation, with high accuracy.
Description
Technical field
The present invention relates to electronic circuit technology fields, and in particular to a kind of crystal resonator clock-temperature-error compensation method.
Background technique
Crystal oscillator, hereinafter referred to as crystal oscillator are that the piezoelectric effect of crystal is utilized to manufacture, when on the two sides in chip
When adding alternating voltage, chip can mechanically deform repeatedly and generate vibration, and this mechanical oscillation can generate alternation in turn
Voltage.When the frequency of additional alternating voltage is a certain particular value, amplitude is obviously increased, bigger than the amplitude under other frequencies
It is more, resonance is generated, this phenomenon is known as piezoelectric resonator.Crystal oscillator, which generates, vibrates necessary additional external clock circuit, and usually one
Amplify feed circuit, only a piece of crystal oscillator can not achieve concussion.In existing most of electronic equipment, by crystal oscillator
Apply certain voltage to which it is vibrated, and by the vibration number of record crystal oscillator to realize clock timing.But electronics
Heat caused by the environment temperature or electronic equipment of equipment itself can be such that the temperature of crystal oscillator changes, when temperature becomes
When change, the vibration frequency of crystal oscillator will appear variation, so, will be gone out by recording the clock timing of vibration number of crystal oscillator
, there is deviation so as to cause elapsed time clock whole in electronic equipment, reduces the accurate of electronic equipment clock timing in existing deviation
Property, and the deviation is generally all compensated by same error amount, and the accuracy of compensation is also reduced.
Requirement with people to the time is higher and higher and the specific function of some products needs high-precision clock
Guarantee, however wishes that product has higher cost advantage again.Therefore the MCU of built-in RTC is often selected, but built-in RTC at present
MCU be required to the frequency reference source by external 32768Hz crystal resonator as RTC.The crystal resonator of ordinary temperature coefficient is not
Frequency difference is larger under the conditions of same temperature, causes the clock jitter of RTC very big.It is difficult to be directly used in high-precision product.
Summary of the invention
In view of the defects and deficiencies of the prior art, the present invention intends to provide a kind of crystal resonator clock temperature errors to mend
Compensation method, it is larger that it can solve current crystal resonator frequency difference under the conditions of different temperature, causes clock jitter very big, it is difficult to directly
For high-precision product.
To achieve the above object, the present invention is using following technical scheme:It is comprised the steps of:
A, by the operating temperature of temperature sensor measurement crystal oscillator, by FPGA analog input card to the frequency of crystal oscillator
Rate is handled to obtain clock synchronization error, to measure the frequency departure of real crystal oscillator at different temperatures;
B, temperature, frequency curve characteristic model are constructed, vertex temperature is found out;
C, the frequency division value to UART clock is calculated;
D, frequency division value and crystal oscillator frequency are compared;
E, it is calculated according to vertex deviation, vertex temperature, multinomial coefficient and obtains amount of temperature compensation, so that a curve is drawn high out,
Increase compensation point.
By the way that frequency dividing circuit is arranged in FPGA analog input card in the step a, the frequency and GPS second of crystal oscillator are obtained
Clock synchronization error between pulse.By being compared with GPS second pulse, so as to greatly improve the precision of error.
When constructing temperature, frequency curve in the step b and obtain the symmetry axis of clock crystal frequency temperature curve;Temperature
The compensating parameter for spending compensated curve tests the value of obtained symmetry axis according to high/low temperature uniformly to set.
Increase compensation point in the step e using few plus once or add once come the frequency overall error before compensating.
The working principle of the invention:By AD frequency division coefficient and temperature sensor sampling temperature and offset, calculate pair
The frequency division value of 32768Hz clock obtains 1Hz signal.By compensating to multiple spot, the compensation rate of different temperatures is obtained, thus
An error curve is obtained, by increasing software compensation point, Approach by inchmeal 32768, to obtain the high-precision of total temperature range
Clocking error.
After adopting the above technical scheme, the present invention has the beneficial effect that:It can improve current crystal resonator clock in different temperature
Precision under the conditions of degree, it, which is operated, calculates simple and convenient, and measurement precisely, has the advantages that real-time compensation, with high accuracy.
Specific embodiment
Present embodiment the technical solution adopted is that:It is comprised the steps of:
A, by the operating temperature of temperature sensor measurement crystal oscillator, by FPGA analog input card to the frequency of crystal oscillator
Rate is handled to obtain clock synchronization error, to measure the frequency departure of real crystal oscillator at different temperatures;
B, temperature, frequency curve characteristic model are constructed, vertex temperature is found out;
C, the frequency division value to UART clock is calculated;
D, frequency division value and crystal oscillator frequency are compared;
E, it is calculated according to vertex deviation, vertex temperature, multinomial coefficient and obtains amount of temperature compensation, so that a curve is drawn high out,
Increase compensation point.
By the way that frequency dividing circuit is arranged in FPGA analog input card in the step a, the frequency and GPS second of crystal oscillator are obtained
Clock synchronization error between pulse.By being compared with GPS second pulse, so as to greatly improve the precision of error.
When constructing temperature, frequency curve in the step b and obtain the symmetry axis of clock crystal frequency temperature curve;Temperature
The compensating parameter for spending compensated curve tests the value of obtained symmetry axis according to high/low temperature uniformly to set.
Increase compensation point in the step e using few plus once or add once come the frequency overall error before compensating.
By AD frequency division coefficient and temperature sensor sampling temperature and offset, the frequency division value to 32768Hz clock is calculated,
Obtain 1Hz signal.By being compensated to multiple spot, the compensation rate of different temperatures is obtained, to obtain an error curve, is passed through
Increase software compensation point, Approach by inchmeal 32768, to obtain the high-precision clocking error of total temperature range.
The above is only used to illustrate the technical scheme of the present invention and not to limit it, and those of ordinary skill in the art are to this hair
The other modifications or equivalent replacement that bright technical solution is made, as long as it does not depart from the spirit and scope of the technical scheme of the present invention,
It is intended to be within the scope of the claims of the invention.
Claims (4)
1. a kind of crystal resonator clock-temperature-error compensation method, it is characterised in that:It is comprised the steps of:
A, by the operating temperature of temperature sensor measurement crystal oscillator, by FPGA analog input card to the frequency of crystal oscillator
Rate is handled to obtain clock synchronization error, to measure the frequency departure of real crystal oscillator at different temperatures;
B, temperature, frequency curve characteristic model are constructed, vertex temperature is found out;
C, the frequency division value to UART clock is calculated;
D, frequency division value and crystal oscillator frequency are compared;
E, it is calculated according to vertex deviation, vertex temperature, multinomial coefficient and obtains amount of temperature compensation, so that a curve is drawn high out,
Increase compensation point.
2. a kind of crystal resonator clock-temperature-error compensation method according to claim 1, it is characterised in that:The step a
In by the way that frequency dividing circuit is arranged in FPGA analog input card, obtain clock synchronization between the frequency of crystal oscillator and GPS second pulse and miss
Difference.
3. a kind of crystal resonator clock-temperature-error compensation method according to claim 1, it is characterised in that:The step b
In when constructing temperature, frequency curve and obtain the symmetry axis of clock crystal frequency temperature curve;The compensation of temperature compensation curve
Parameter tests the value of obtained symmetry axis according to high/low temperature uniformly to set.
4. a kind of crystal resonator clock-temperature-error compensation method according to claim 1, it is characterised in that:The step e
The middle compensation point that increases is using few plus once or add once come the frequency overall error before compensating.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810485835.9A CN108900161A (en) | 2018-05-21 | 2018-05-21 | A kind of crystal resonator clock-temperature-error compensation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810485835.9A CN108900161A (en) | 2018-05-21 | 2018-05-21 | A kind of crystal resonator clock-temperature-error compensation method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108900161A true CN108900161A (en) | 2018-11-27 |
Family
ID=64342999
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810485835.9A Pending CN108900161A (en) | 2018-05-21 | 2018-05-21 | A kind of crystal resonator clock-temperature-error compensation method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108900161A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112737507A (en) * | 2021-02-01 | 2021-04-30 | 山东新港电子科技有限公司 | Method for realizing RTC high precision based on temperature sensor |
CN114200815A (en) * | 2021-11-15 | 2022-03-18 | 秦佳电气有限公司 | Method and system for improving timing precision of common timer |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0019591A1 (en) * | 1979-05-22 | 1980-11-26 | Societe Suisse Pour L'industrie Horlogere Management Services S.A. | Quartz oscillator with temperature compensation |
CN103248358A (en) * | 2013-05-30 | 2013-08-14 | 上海贝岭股份有限公司 | Real-time clock compensating device and method |
CN103439876A (en) * | 2013-07-24 | 2013-12-11 | 深圳市航天泰瑞捷电子有限公司 | Method for calibrating clocks of electric energy meter |
CN106026919A (en) * | 2016-05-16 | 2016-10-12 | 南京理工大学 | Time-keeping compensation method for high-precision crystal oscillator |
-
2018
- 2018-05-21 CN CN201810485835.9A patent/CN108900161A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0019591A1 (en) * | 1979-05-22 | 1980-11-26 | Societe Suisse Pour L'industrie Horlogere Management Services S.A. | Quartz oscillator with temperature compensation |
CN103248358A (en) * | 2013-05-30 | 2013-08-14 | 上海贝岭股份有限公司 | Real-time clock compensating device and method |
CN103439876A (en) * | 2013-07-24 | 2013-12-11 | 深圳市航天泰瑞捷电子有限公司 | Method for calibrating clocks of electric energy meter |
CN106026919A (en) * | 2016-05-16 | 2016-10-12 | 南京理工大学 | Time-keeping compensation method for high-precision crystal oscillator |
Non-Patent Citations (1)
Title |
---|
陈富涛: ""一种高精度温度补偿型实时钟电路"", 《电子与封装》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112737507A (en) * | 2021-02-01 | 2021-04-30 | 山东新港电子科技有限公司 | Method for realizing RTC high precision based on temperature sensor |
CN114200815A (en) * | 2021-11-15 | 2022-03-18 | 秦佳电气有限公司 | Method and system for improving timing precision of common timer |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10754370B2 (en) | Fine-grained clock resolution using low and high frequency clock sources in a low-power system | |
TWI473418B (en) | Oscillation device | |
CN102075143A (en) | Temperature compensation method for piezoelectric oscillator, and piezoelectric oscillator | |
CN106569544B (en) | Real-time timepiece chip and its clock correcting method, device | |
JP6282723B2 (en) | High-precision timekeeping method for quartz electronic watches | |
JP5266308B2 (en) | Time reference temperature compensation method | |
CN108900161A (en) | A kind of crystal resonator clock-temperature-error compensation method | |
US11567529B2 (en) | Real-time clock device and electronic apparatus | |
CN107315338A (en) | A kind of chronometer time correcting device | |
CN104375004A (en) | Method and system for measuring crystal oscillator frequency error | |
JP2013167597A (en) | Real time clock | |
CN113359191B (en) | Real-time correction method of constant-temperature crystal oscillator and electromagnetic receiver | |
CN104518758A (en) | Temperature compensated timing signal generator | |
JP4973035B2 (en) | Ultrasonic flow meter | |
KR101731698B1 (en) | Time base including an oscillator, a frequency divider circuit and clocking pulse inhibition circuit | |
JPH07104248B2 (en) | Vibration period detection method in vibration type densitometer | |
WO2014112398A1 (en) | Electronic weighing device having flow calculation function | |
KR101066543B1 (en) | High precision clock generation apparatus and method with synchronizing standard time | |
Xu et al. | Correction method for TOA measurement of target signal based on Kalman Filter | |
Bespal’ko et al. | Compensation of Accuracy Error for Time Interval Measurements | |
JP2014055877A (en) | Radar device, and time detecting method of radar device | |
TWI772810B (en) | Time measurement apparatus and method | |
JP2003106906A (en) | Temperature measuring method | |
Fang et al. | Design and implementation of calibration circuit for crystal oscillator | |
CN105591632B (en) | Real-time clock generation method and device |
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 |
Application publication date: 20181127 |
|
RJ01 | Rejection of invention patent application after publication |