CN109412588A - Crystal oscillator frequency tames method, apparatus, electronic equipment and storage medium - Google Patents
Crystal oscillator frequency tames method, apparatus, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN109412588A CN109412588A CN201811190711.4A CN201811190711A CN109412588A CN 109412588 A CN109412588 A CN 109412588A CN 201811190711 A CN201811190711 A CN 201811190711A CN 109412588 A CN109412588 A CN 109412588A
- Authority
- CN
- China
- Prior art keywords
- crystal oscillator
- frequency
- stage
- voltage
- deviation values
- 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.)
- Granted
Links
- 239000013078 crystal Substances 0.000 title claims abstract description 255
- 238000000034 method Methods 0.000 title claims abstract description 40
- 230000032683 aging Effects 0.000 claims description 11
- 238000004590 computer program Methods 0.000 claims description 3
- 238000012545 processing Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 5
- 230000010355 oscillation Effects 0.000 description 5
- 239000000126 substance Substances 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000005291 magnetic effect Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000007423 decrease Effects 0.000 description 3
- 238000012937 correction Methods 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000630 rising effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000033228 biological regulation Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002427 irreversible effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03L—AUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
- H03L7/00—Automatic control of frequency or phase; Synchronisation
- H03L7/06—Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
- H03L7/08—Details of the phase-locked loop
- H03L7/099—Details of the phase-locked loop concerning mainly the controlled oscillator of the loop
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S19/00—Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
- G01S19/01—Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
- G01S19/13—Receivers
- G01S19/23—Testing, monitoring, correcting or calibrating of receiver elements
-
- G—PHYSICS
- G04—HOROLOGY
- G04G—ELECTRONIC TIME-PIECES
- G04G5/00—Setting, i.e. correcting or changing, the time-indication
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Oscillators With Electromechanical Resonators (AREA)
Abstract
The embodiment of the invention discloses a kind of crystal oscillator frequencies to tame method, apparatus, electronic equipment and storage medium, this method comprises: receiving the pulse signal of navigation time service positioning system output;In the current generation, voltage-controlled adjustment period and adjustment number according to the current generation, the exemplary frequency deviation values of crystal oscillator in the current voltage-controlled adjustment period are calculated according to pulse signal, and the control voltage of crystal oscillator is adjusted according to exemplary frequency deviation values, it completes to work as previous adjustment, stop condition until meeting the current generation, into next stage;If the exemplary frequency deviation values of crystal oscillator meet the deviation threshold range of the last stage, complete to tame, so that crystal oscillator output frequency complies with standard frequency values;The voltage-controlled adjustment period in each stage is different.The embodiment of the present invention point multiple stages carry out taming by different level for crystal oscillator frequency, it more can guarantee taming accurate and reliable, make to generate high-precision ns grades of benchmark inside crystal oscillator, have high-precision time service, punctual precision is improved, time system stability and reliability are enhanced.
Description
Technical field
The present embodiments relate to Clock Synchronization Technologies more particularly to a kind of crystal oscillator frequency to tame method, apparatus, electronics is set
Standby and storage medium.
Background technique
It is accurate that punctual equipment is generally comprised by standard frequency source and the frequency divider with certain frequency dividing ratio, counter are constituted
Clock.It is punctual to refer to that the clock being calibrated in the state of autonomous operation, keeps the error between its time and standard time
Ability as small as possible.The time precision of punctual precision namely clock autonomous operation is that one of measurement clock performance superiority and inferiority is important
Technical indicator.
The punctual ability of clock depends primarily on the frequency stability of standard frequency source.Practical standard frequency source has atom
Frequency marking and high stability crystal oscillator frequency marking two major classes, the latter one are the most widely used standard frequency sources.State crystal oscillator (letter
Referred to as crystal oscillator) the key technical indexes of performance has: initial precision, stability (mainly temperature stability) and ageing rate etc..Root
According to the precision of crystal oscillator and the difference of stability, crystal oscillator can be divided into 4 classes: common crystals (i.e. standard packaging crystal oscillator,
Standard Packaged Crystal Oscillator, SPXO), pressure-controlled crystal oscillator (Voltage Controlled
Crystal Oscillator, VCXO), temperature compensation type crystal oscillator (Temperature Compensate Crystal
Oscillator, TCXO) and thermostatic type crystal oscillator (Oven Controlled Crystal Oscillator, OCXO), there is also
The combination of above-mentioned 4 seed type, such as voltage-controlled constant-temperature crystal oscillator (VOCXO).
Since there are irreversible problem of aging, the frequency accuracy that crystal oscillator exports can generate as time goes by can not
Inverse deviation, this be cause clock keep time accuracy decline the main reason for.Currently, mainly defeated using timing-type GPS receiver
Time reference signal or other time reference signals out calculates the available accuracy error of crystal oscillator, and carries out appropriate correction and mend
It repays.Specifically, what the 1PPS (Pulse Per Second, pulse per second (PPS)) of satellite positioning output and punctual equipment crystal oscillation fractional frequency generated
1PPS compares the clock edge of the two, calculates the oscillator frequency deviation of punctual equipment, provided according to deviation for adjusting
The control voltage of crystal oscillator frequency is allowed to the frequency that is near the mark after the control amendment of multiple frequency.Frequency of the entire program to crystal oscillator
Rate tames and forms a closed control loop, and whether the frequency for detecting the crystal oscillator of punctual equipment always has deviation, if there is inclined
Difference just amendment in time.But the above method is repeatedly corrected according to frequency departure, taming reliability is to be improved.
Summary of the invention
The present invention provides a kind of crystal oscillator frequency and tames method, apparatus, electronic equipment and storage medium, to improve crystal oscillator frequency
Taming accuracy and reliability improves punctual precision.
In a first aspect, the embodiment of the invention provides a kind of crystal oscillator frequencies to tame method, comprising:
Receive the pulse signal of navigation time service positioning system output;
In the current generation, voltage-controlled adjustment period and adjustment number according to the current generation, according to the pulse signal
The exemplary frequency deviation values of crystal oscillator in the current voltage-controlled adjustment period are calculated, and adjust the control of the crystal oscillator according to the exemplary frequency deviation values
Voltage is completed to work as previous adjustment, the stop condition until meeting the current generation, into next stage;
If the exemplary frequency deviation values of crystal oscillator meet the deviation threshold range of the last stage, complete to tame, so that the crystalline substance
The output frequency of vibration complies with standard frequency values;
Wherein, the voltage-controlled adjustment period in each stage is different.
Optionally, the exemplary frequency deviation values of crystal oscillator in the current voltage-controlled adjustment period are calculated according to the pulse signal, comprising:
When the starting of the whole second of the pulse signal is along arrival, obtain what the crystal oscillator generated by whole second frequency counter
Counting of the clock signal in whole second pulse signal obtains whole second frequency measured value;
The frequency departure for calculating the whole second frequency measured value and the standard frequency value obtains the frequency of whole second of the crystal oscillator
Rate deviation;
It adds up to each whole second frequency departure in the current voltage-controlled adjustment period, obtains the crystal oscillator described current
Exemplary frequency deviation values in the voltage-controlled adjustment period.
Optionally, the control voltage of the crystal oscillator is adjusted according to the exemplary frequency deviation values, comprising:
The current voltage-controlled adjustment week is exported according to the corresponding relationship of exemplary frequency deviation values and voltage using digital analog converter
The corresponding voltage control signal of exemplary frequency deviation values in phase, to adjust the control voltage of the crystal oscillator.
Optionally, it in the control voltage for adjusting the crystal oscillator according to the exemplary frequency deviation values, completes after previous adjustment,
Further include:
Judge through when whether previous crystal oscillator output frequency adjusted and/or adjustment number meet stopping for the current generation
Only condition;
If meeting the stop condition of the current generation and the current generation not being the last stage, enter lower single order
Section;
If being unsatisfactory for the stop condition of the current generation, continue next voltage-controlled adjustment period in the current generation
Adjustment;
If being worked as previous exemplary frequency deviation values adjusted to be unsatisfactory for the deviation threshold range of current generation and work as in described
The deviation threshold range in the stage before the last stage, then returning to the corresponding stage is adjusted.
Optionally, it if the exemplary frequency deviation values of crystal oscillator meet the deviation threshold range of the last stage, completes to tame, packet
It includes:
If the exemplary frequency deviation values of crystal oscillator meet the deviation threshold range of the last stage, according to described the last stage
The voltage-controlled adjustment period, circulation adjusts the control voltage of the crystal oscillator.
Optionally, further includes:
If the source GPS in navigation time service positioning system is in vain and the adjustment of crystal oscillator frequency is in the last stage, control
It makes the crystal oscillator and enters the punctual stage, wherein in the punctual stage, the crystal oscillator has according to the clock frequency output tamed
Imitate pulse per second (PPS);
If the source GPS is in vain and the adjustment of crystal oscillator frequency is not in the last stage, the source GPS is waited to become having
Effect, to adjust crystal oscillator frequency since first stage.
Optionally, after controlling the crystal oscillator and entering the punctual stage, further includes:
In the punctual stage, the frequency of crystal oscillator is adjusted according to crystal oscillator degree of aging.
Optionally, the voltage-controlled adjustment period of previous stage is less than the voltage-controlled adjustment period of the latter half.
Second aspect, the embodiment of the invention also provides a kind of crystal oscillator frequencies to tame device, comprising:
Pulsed signal module, for receiving the pulse signal of navigation time service positioning system output;
Crystal oscillator frequency tames module, is used in the current generation, according to the voltage-controlled adjustment period of the current generation and adjustment
Number calculates the exemplary frequency deviation values of crystal oscillator in the current voltage-controlled adjustment period according to the pulse signal, and inclined according to the frequency
Difference adjusts the control voltage of the crystal oscillator, completes to work as previous adjustment, the stop condition until meeting the current generation enters
Next stage;If the exemplary frequency deviation values of crystal oscillator meet the deviation threshold range of the last stage, complete to tame, so that the crystalline substance
The output frequency of vibration complies with standard frequency values;Wherein, the voltage-controlled adjustment period in each stage is different.
The third aspect, the embodiment of the invention also provides a kind of electronic equipment, comprising:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes that the crystal oscillator frequency as described in any embodiment of that present invention tames method.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer
Program realizes that the crystal oscillator frequency as described in any embodiment of that present invention tames method when the program is executed by processor.
The pulse signal for the high stability that the embodiment of the present invention is provided using navigation time service positioning system is as crystal oscillator frequency
Taming benchmark guarantees taming accuracy;And it is divided into multiple stages to carry out taming by different level for crystal oscillator frequency, Mei Gejie
The voltage-controlled adjustment period of section is different, in voltage-controlled adjustment period of the current generation according to the current generation and adjustment number, according to reality
Frequency departure situation adjusts the control voltage of crystal oscillator, to adjust crystal oscillator frequency, when meeting the stop condition of current generation, enters
Next stage, adjusts brilliant voltage-controlled adjustment period and adjustment number according to next stage according to actual frequency deviation situation
The control voltage of vibration, to adjust crystal oscillator frequency, and so on, until frequency departure meets the deviation threshold model of the last stage
Enclose, then complete to tame, crystal oscillator output frequency complies with standard frequency values, thus more can guarantee it is taming accurate and reliable so that crystal oscillator
Inside produces high-precision ns grades of benchmark, has high-precision time service, avoids leading to punctual accuracy decline due to crystal oscillator aging
Problem makes the output frequency of crystal oscillator close to standard frequency value, improves punctual precision, enhance time system stability and
Reliability.
Detailed description of the invention
Fig. 1 is the flow chart that the crystal oscillator frequency that the embodiment of the present invention one provides tames method;
Fig. 2 is the specific flow chart that crystal oscillator frequency provided by Embodiment 2 of the present invention tames method;
Fig. 3 is the structural schematic diagram that the crystal oscillator frequency that the embodiment of the present invention three provides tames device;
Fig. 4 is the structural schematic diagram for the electronic equipment that the embodiment of the present invention four provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is the flow chart that the crystal oscillator frequency that the embodiment of the present invention one provides tames method, and the present embodiment is applicable to tame and docile
The case where crystal oscillator frequency makes punctual equipment output correct time is taken, voltage-controlled crystal oscillator is particularly suitable for.This method can be with
Device is tamed by crystal oscillator frequency to execute, which can be by software and or hardware realization, which can set independently of punctual
It is standby, it is tamed by being connect with punctual equipment with carrying out crystal oscillator frequency, which may alternatively be integrated in punctual equipment.As shown in Figure 1,
This method specifically comprises the following steps:
S110 receives the pulse signal of navigation time service positioning system output.
Wherein, navigation time service positioning system may include GPS (Global Positioning System, global positioning system
System) source and GPS receiver.The source GPS can be the satellite that can continue to send geographical location, height above sea level and time signal, ground
On GPS receiver can receive satellite-signal and the synchronous correction time is provided, i.e. the effective second pulse signal of timing output.Namely
It says, the pulse signal of navigation time service positioning system output is continuous standard 1PPS second pulse signal.It is positioned using navigation time service
The pulse signal for the high stability that system provides is as the reference data for taming crystal oscillator frequency, it is ensured that tames the accurate of result
Property.
S120, in the current generation, voltage-controlled adjustment period and adjustment number according to the current generation, according to the pulse
Signal calculates the exemplary frequency deviation values of crystal oscillator in the current voltage-controlled adjustment period, and adjusts the crystal oscillator according to the exemplary frequency deviation values
Voltage is controlled, completes to work as previous adjustment, the stop condition until meeting the current generation, into next stage.
The present embodiment is divided into multiple stages to adjust crystal oscillator frequency, specifically can be with different levels adjustment from thick to thin,
The crystal oscillation frequency error of earlier stage is larger, and the crystal oscillation frequency error of last stages is smaller, final to realize that crystal oscillator frequency tends to steady
Fixed, be near the mark frequency values.Standard frequency value is determined by the demand of crystal oscillator operative scenario, i.e. the standard frequency of crystal oscillator work
Rate, the fiducial time generated not according to external clock reference.Wherein, the exemplary frequency deviation values of crystal oscillator refer to the actual frequency values of crystal oscillator
With the difference of standard frequency value, specifically crystal oscillator frequency can be adjusted by adjusting the control voltage of crystal oscillator.
Each stage is provided with the corresponding voltage-controlled adjustment period, adjusts number and deviation threshold range, these values can be with
It is configured according to specific requirements.Wherein, in each voltage-controlled adjustment period (how long adjusting a secondary frequencies), Ke Yigen
A crystal oscillator frequency is adjusted according to exemplary frequency deviation values of the crystal oscillator within the period, i.e., every voltage-controlled one para-crystal of adjustment period modulation
Vibration frequency.Adjustment number refers to that the current generation has the number for needing to adjust crystal oscillator frequency altogether.Deviation threshold range is the current generation
Frequency adjust target, for example, deviation threshold range be less than 64ns, if the exemplary frequency deviation values of crystal oscillator are less than after converting
64ns can enter the next stage further fine tuning or complete of progress it may be considered that meeting the stop condition of current generation
At taming.The stop condition of current generation may include: to reach the adjustment number of current generation and/or meet the inclined of current generation
Poor threshold range.
Preferably, the voltage-controlled adjustment period in each stage can be different, and the voltage-controlled adjustment period with the stage and
It becomes larger, i.e. voltage-controlled adjustment period of the voltage-controlled adjustment period of previous stage less than the latter half.The adjustment time in each stage
Number can be set to identical or different.The deviation threshold range in each stage is different, and specific deviation threshold range is with rank
Section and gradually become smaller, i.e., the deviation threshold range of previous stage be greater than the latter half deviation threshold range.Front crystal oscillator as a result,
In the frequency error biggish stage, the integrated regulation time is relatively short, realizes coarse adjustment;The crystal oscillation frequency error lesser stage below,
Adjustment time is relatively longer, realizes fine tuning.
S130 completes to tame, so that institute if the exemplary frequency deviation values of crystal oscillator meet the deviation threshold range of the last stage
The output frequency for stating crystal oscillator complies with standard frequency values.
Wherein, the deviation threshold range of the last stage is usually the deviation of acceptable very little, for example, being less than
8ns meets this deviation threshold range, it may be considered that the output frequency of crystal oscillator complies with standard frequency values, crystal oscillator can be according to
Current clock frequency exports effective pulse per second (PPS).
The technical solution of the present embodiment, the pulse signal of the high stability provided using navigation time service positioning system is as crystalline substance
The taming benchmark of vibration frequency, guarantees taming accuracy;And it is divided into multiple stages to carry out taming by different level for crystal oscillator frequency,
Voltage-controlled adjustment period in each stage is different, in voltage-controlled adjustment period of the current generation according to the current generation and adjustment number, root
The factually control voltage of border frequency departure situation adjustment crystal oscillator, to adjust crystal oscillator frequency, when the stop condition for meeting the current generation
When, into next stage, voltage-controlled adjustment period and adjustment number according to next stage, according to actual frequency deviation situation
The control voltage of crystal oscillator is adjusted, to adjust crystal oscillator frequency, and so on, until frequency departure meets the deviation of the last stage
Threshold range is then completed to tame, and crystal oscillator output frequency complies with standard frequency values, thus more can guarantee taming accurate and reliable, makes
It obtains and produces high-precision ns grades of benchmark inside crystal oscillator, have high-precision time service, avoid leading to punctual precision due to crystal oscillator aging
The problem of decline, makes the output frequency of crystal oscillator close to standard frequency value, improves punctual precision, enhances the steady of time system
Qualitative and reliability.
Based on the above technical solution, optionally, current voltage-controlled adjustment is calculated according to the pulse signal in S120
The exemplary frequency deviation values of crystal oscillator in period, comprising: when the starting of the whole second of the pulse signal is along arrival, pass through whole second frequency counting
Device obtains counting of the clock signal of the crystal oscillator generation in whole second pulse signal, obtains whole second frequency measured value;Calculate institute
The frequency departure for stating whole second frequency measured value Yu the standard frequency value obtains the whole second frequency departure of the crystal oscillator;To described
Each whole second frequency departure adds up in the current voltage-controlled adjustment period, obtains the crystal oscillator within the current voltage-controlled adjustment period
Exemplary frequency deviation values.
Wherein, the starting of whole second of pulse signal is along the rising edge or failing edge that can be whole second pulse signal, as calculating
The time reference of whole second frequency departure.Whole second frequency counter can be by being based on FPGA (Field Programmable Gate
Array, field programmable gate array) it realizes, the present embodiment implements it without detailed description.The clock that crystal oscillator generates
Signal is to be determined by crystal oscillator frequency, therefore count counting of the clock signal of crystal oscillator generation in whole second pulse signal,
Obtain the actual whole second frequency of crystal oscillator.
Further, after obtaining the whole second frequency departure of crystal oscillator, whole second frequency counter can be reset, to utilize
The whole second frequency counter counts next whole second frequency measured value in time, guarantee whole second frequency statistics correctness and in time
Property.
Optionally, the control voltage of the crystal oscillator is adjusted in S120 according to the exemplary frequency deviation values, comprising: turn using digital-to-analogue
Parallel operation exports the exemplary frequency deviation values pair in the current voltage-controlled adjustment period according to the corresponding relationship of exemplary frequency deviation values and voltage
The voltage control signal answered, to adjust the control voltage of the crystal oscillator.
Wherein, the frequency departure signal of binary digit amount form can be converted into the voltage letter of simulation by digital analog converter
Number.The exemplary frequency deviation values of crystal oscillator (such as VCXO) are related with the control size of voltage being added on its tuning circuit.The nominal frequency of crystal oscillator
The corresponding tuning voltage of rate is defined as the half of VCC (i.e. supply voltage).VCC is the VCXO of 5V, when control voltage is 2.5V just
Generate centre frequency.The VCXO that voltage is 0.5~4.5V is controlled, the slope of frequency variation curve is positive.That is, when control
When voltage processed rises to 4.5V from 2.5V, the frequency of crystal oscillator will increase;When control voltage is reduced to 0.5V from 2.5V, the frequency of crystal oscillator
Rate will reduce.As a result, according to the corresponding relationship of exemplary frequency deviation values and control voltage, the adjustment of crystal oscillator frequency can be realized.
Optionally, the control voltage of the crystal oscillator is adjusted according to the exemplary frequency deviation values in S120, completes to work as previous adjustment
Later, can also include:
Judge whether crystal oscillator output frequency and/or adjustment number after current voltage-controlled adjustment period modulation meet described work as
The stop condition of last stage;
If meeting the stop condition of the current generation and the current generation not being the last stage, enter lower single order
Section;
If being unsatisfactory for the stop condition of the current generation, continue next voltage-controlled adjustment period in the current generation
Adjustment;
If the exemplary frequency deviation values after current voltage-controlled adjustment period modulation be unsatisfactory for the deviation threshold range of current generation and
The deviation threshold range in the stage before the current generation, then returning to the corresponding stage is adjusted.
Wherein, for the special circumstances during taming, i.e., through it is current it is voltage-controlled adjust period modulation after exemplary frequency deviation values,
It is not only unsatisfactory for the deviation threshold range of current generation, instead deviation bigger corresponding to the stage before the current generation
Threshold range needs the stage back to before the corresponding current generation to be adjusted, to complete to tame as early as possible.
Optionally, it if exemplary frequency deviation values meet the deviation threshold range of the last stage, completes to tame, comprising: if frequency
Rate deviation meets the deviation threshold range of the last stage, according to the voltage-controlled adjustment period of described the last stage, follows
Ring adjusts the control voltage of the crystal oscillator.
Wherein, the adjustment number of the last stage is infinitely, to carry out according to the voltage-controlled adjustment period in the stage always
Adjustment is kept, to guarantee that the frequency of crystal oscillator maintains in acceptable error range.
Further, if the source GPS is invalid and the adjustment of crystal oscillator frequency is in the last stage, control the crystal oscillator into
Enter the punctual stage, wherein in the punctual stage, the crystal oscillator exports effective pulse per second (PPS) according to the clock frequency tamed;If
The source GPS is invalid and the adjustment of crystal oscillator frequency is not in the last stage, then waits the source GPS to become effectively, with from first rank
Section starts to adjust crystal oscillator frequency.
Wherein, the source GPS is effectively to refer to search satellite-signal.In the case of invalid for the source GPS, tamed and dociled if not completing
Clothes are needed to wait the source GPS effectively and are adjusted since first stage again;If completing to tame, the source GPS is in vain not yet
Influence whether that crystal oscillator normally exports accurate clock signal.
In addition, after controlling the crystal oscillator and entering the punctual stage, further includes: in the punctual stage, according to crystal oscillator aging journey
The clock frequency of degree adjustment crystal oscillator, to compensate the error of frequency drift generation.Wherein, brilliant with the aging of crystal oscillator device itself
Vibration frequency can be deviated.In the punctual stage, periodically crystal oscillator frequency can be finely adjusted according to crystal oscillator degree of aging, to realize
Frequency error compensation is further ensured that the stabilization of crystal oscillator frequency is accurate.
Embodiment two
The present embodiment on the basis of the above embodiments, provides the specific example that crystal oscillator frequency tames method.With it is above-mentioned
Embodiment is identical or corresponding term explains that this embodiment is not repeated.
In the present embodiment, the process of taming adjusts the frequency of crystal oscillator by taking three phases as an example, is followed successively by INIT
(Initialize, initial) stage, ADJ (Adjust, adjustment) stage and LOCK (locking) stage.During taming, early period
The crystal oscillation frequency error in INIT stage is larger, and ADJ stage, the crystal oscillator frequency in ADJ stage can be entered after the adjustment in the stage
Error is relatively small, and the LOCK stage can be entered after the adjustment in the stage, and crystal oscillator frequency value tends to stablize, and be near the mark frequency
Value.The voltage-controlled adjustment period becomes larger with each stage.In the above three stage, the INIT stage is coarse tuning stage, ADJ stage
For the fine tuning stage, LOCK is fine tuning and is kept for the stage, in the LOCK stage, crystal oscillator frequency fine tuning to after complying with standard frequency values,
Crystal oscillator is in LOCK state, i.e., so that crystal oscillator keeps current frequency error range, realizes from there through three phases with different levels
It tames.
Fig. 2 is the specific flow chart that crystal oscillator frequency provided by Embodiment 2 of the present invention tames method, as shown in Fig. 2, the party
Method detailed process is as follows:
Whether effective S201 judges the source GPS, if so, into S202;If it is not, into S208.
S202, crystal oscillator receive effective second pulse signal of GPS receiver or Beidou receiver timing output, start crystal oscillator frequency
The taming process of rate initially enters the INIT stage, and the voltage-controlled adjustment period in INIT stage is 16 seconds, and adjustment number is 8 times, deviation
Threshold range is greater than 16ns and to be less than 64ns (frequency to be scaled the period in the present embodiment to carry out range comparison).?
The INIT stage, every the crystal oscillator frequency of adjustment in 16 seconds.
The whole second in each of adjustment period voltage-controlled for each of the INIT stage, the whole second frequency measured value of crystal oscillator is calculated,
And whole second frequency departure is calculated, thus 16 whole second frequency departures can be obtained in a voltage-controlled adjustment period, and add up this 16 deviations
Value obtains the exemplary frequency deviation values of crystal oscillator in the voltage-controlled adjustment period, and the control of a crystal oscillator is adjusted based on the exemplary frequency deviation values
Voltage, and then the frequency based on control voltage crystal oscillator reality output adjusted can be varied, and reach adjustment crystal oscillator frequency
Thus purpose completes the primary adjustment in INIT stage.
Specifically, determining the reality of crystal oscillator by the 1pps effective impulse signal of the high stability of GPS receiver offer
Frequency utilizes whole second frequency when the starting of the whole second of the received standard 1pps pulse per second (PPS) of crystal oscillator arrives along (rising edge or failing edge)
Counting of the clock signal that rate counters count crystal oscillator generates in whole second pulse signal obtains the whole second frequency actual measurement of crystal oscillator
Value, and the difference of whole second frequency measured value and standard frequency value is calculated, whole second frequency departure is obtained, while frequently by the whole second of crystal oscillator
Rate counter O reset.That is, being that start statistic frequency when the whole second edge of 1pps pulse per second (PPS) arrives whole to calculate every time
Second frequency departure, and after calculating each whole second frequency departure, whole second frequency counter is reset in time, to carry out down
The record of one whole second and calculating.The exemplary frequency deviation values of crystal oscillator in one voltage-controlled adjustment period are input to digital analog converter (such as
DAC8560 data input pin) generates corresponding control voltage by digital analog converter, the primary tune of crystal oscillator frequency is completed
It is whole, it is close to standard frequency value.
S203, judges whether the INIT stage completes, if so, into S204, if it is not, returning to S202 continues the INIT stage
Adjustment next time.
The stop condition in INIT stage can be the adjustment number for reaching the INIT stage and/or the deviation for meeting the INIT stage
Threshold range.For example, whether the exemplary frequency deviation values of the actual frequency and standard frequency that judge crystal oscillator meet every time after adjustment
The deviation threshold range in INIT stage, if satisfied, can then enter the ADJ stage.For another example, according to the adjustment number in INIT stage,
After adjustment 8 times (i.e. effective 128 seconds of continuum meter), into the ADJ stage.For another example, while meeting the adjustment time in INIT stage
Several and deviation threshold range just enters the ADJ stage, wherein assuming that frequency departure is already less than 64ns, but adjusts number and does not reach also
It to 8 times, then can continue to adjust, until having adjusted 8 times, just think that the INIT stage terminates, the ADJ stage can be entered;Alternatively,
It is 8 times adjusted, but frequency departure is still greater than 64ns, then can continue to adjust, until frequency departure is less than 64ns, just think
The INIT stage terminates, and can enter the ADJ stage.
S204, into the ADJ stage, the voltage-controlled adjustment period in ADJ stage is 128 seconds, and adjustment number is 8 times, deviation threshold
Range is greater than 8ns and to be less than 16ns.
It is similar with the INIT stage, in the ADJ stage, each statistical trace 128 seconds each whole second frequency departures, and add up this
128 seconds whole second frequency departures obtain the exemplary frequency deviation values in a voltage-controlled adjustment period, then utilize digital analog converter adjustment one
The control voltage of secondary crystal oscillator, and then the frequency based on control voltage crystal oscillator reality output adjusted can be varied, and reach tune
Thus the purpose of whole crystal oscillator frequency completes the primary adjustment in ADJ stage.In the ADJ stage, every the crystal oscillator frequency of adjustment in 128 seconds
Rate.Wherein, the calculating of specific each whole second and adjustment voltage, referring to the description in INIT stage, details are not described herein again.
S205, judges whether the ADJ stage completes, if so, into S206, if it is not, returning to S204 continues the ADJ stage
It adjusts next time.
The stop condition in ADJ stage can be the adjustment number for reaching the ADJ stage and/or the deviation threshold for meeting the ADJ stage
It is worth range.For example, whether the exemplary frequency deviation values of the actual frequency and standard frequency that judge crystal oscillator meet ADJ every time after adjustment
The deviation threshold range in stage, if satisfied, can then enter the LOCK stage.For another example, according to the adjustment number in ADJ stage, adjustment 8
After secondary (i.e. effective 1024 seconds of continuum meter), into the LOCK stage.For another example, at the same meet the ADJ stage adjustment number and
Deviation threshold range just enters the LOCK stage, wherein assuming that frequency departure is already less than 16ns, but adjusts number and is also not up to 8
It is secondary, then it can continue to adjust, until having adjusted 8 times, just think that the ADJ stage terminates, the LOCK stage can be entered;Alternatively,
Have adjusted 8 times, but frequency departure is still greater than 16ns, then can continue to adjust, until frequency departure be less than 16ns, just think ADJ
Stage terminates, and can enter the LOCK stage.
It should be noted that if being unsatisfactory for the stop condition in ADJ stage by ADJ stage crystal oscillator frequency adjusted, instead
And exemplary frequency deviation values are in the deviation threshold range in INIT stage, then return to the adjustment that S202 re-starts the INIT stage.
S206, into the LOCK stage, voltage-controlled adjustment period in LOCK stage is 1024 seconds, adjustment number be it is unlimited, partially
Poor threshold range is less than 8ns.
It is similar with the INIT stage, in the LOCK stage, each statistical trace 1024 seconds each whole second frequency departures, and add up this
1024 seconds whole second frequency departures are obtained the exemplary frequency deviation values in a voltage-controlled adjustment period, are then adjusted using digital analog converter
The control voltage of crystal oscillator, and then the frequency based on control voltage crystal oscillator reality output adjusted can be varied, and be reached
The purpose of crystal oscillator frequency is adjusted, the primary adjustment in LOCK stage is thus completed.Wherein, the calculating of specific each whole second and tune
Whole voltage, referring to the description in INIT stage, details are not described herein again.In the LOCK stage, every the crystal oscillator frequency of adjustment in 1024 seconds.
If meeting the deviation threshold range in LOCK stage, still maintains and executed every the crystal oscillator frequency circulation of adjustment in 1024 seconds.
It should be noted that if being unsatisfactory for the deviation threshold model in LOCK stage by LOCK stage crystal oscillator frequency adjusted
It encloses, exemplary frequency deviation values are in the deviation threshold range in INIT stage or ADJ stage instead, then return to S202 or S204 is re-started
The adjustment in INIT stage or ADJ stage.
S207 judges whether the source GPS is effective, if so, returning to the adjustment next time that S206 continues the LOCK stage;If
It is no, into S209.
S208, judges whether crystal oscillator is in the LOCK stage, if so, into S209, if it is not, returning to S201.
S209, control crystal oscillator enter HOLD stage (punctual stage).
In the punctual stage, crystal oscillator generates effective 1pps pulse per second (PPS) according to itself clock frequency tamed and exports.It simultaneously can
With being finely adjusted according to crystal oscillator degree of aging to crystal oscillator frequency for selectivity, the error amount of compensation frequency drift generation.
S210 judges whether the source GPS is effective in the punctual stage, if so, returning to S206 continues the next of LOCK stage
Secondary adjustment;If it is not, returning to S209 is kept for the punctual stage.
It can be seen that if the source GPS is effective crystal oscillator frequency can be carried out according to the taming process in above three stage
It tames.It in the case of invalid for the source GPS, is finished if crystal oscillator frequency has been tamed, is in LOCK state, then enter the HOLD stage, if
Crystal oscillator frequency is not tamed and is completed, then the source GPS is waited to become effectively, taming to carry out since the INIT stage.
Embodiment three
Fig. 3 is the structural schematic diagram that the crystal oscillator frequency that the embodiment of the present invention three provides tames device, as shown in figure 3, the dress
It sets and includes:
Pulsed signal module 310, for receiving the pulse signal of navigation time service positioning system output;
Crystal oscillator frequency tames module 320, is used in the current generation, according to the voltage-controlled adjustment period of the current generation and tune
Whole number calculates the exemplary frequency deviation values of crystal oscillator in the current voltage-controlled adjustment period according to the pulse signal, and according to the frequency
Deviation adjusts the control voltage of the crystal oscillator, completes to work as previous adjustment, the stop condition until meeting the current generation, into
Enter next stage;If the exemplary frequency deviation values of crystal oscillator meet the deviation threshold range of the last stage, complete to tame, so that described
The output frequency of crystal oscillator complies with standard frequency values.Wherein, the voltage-controlled adjustment period of previous stage is less than the voltage-controlled tune of the latter half
Complete cycle;Wherein, the voltage-controlled adjustment period in each stage is different.
Optionally, it includes: computing unit that crystal oscillator frequency, which tames module 320, is originated for the whole second when the pulse signal
Along when arriving, counting of the clock signal of the crystal oscillator generation in whole second pulse signal is obtained by whole second frequency counter,
Obtain whole second frequency measured value;The frequency departure for calculating the whole second frequency measured value and the standard frequency value obtains described
The whole second frequency departure of crystal oscillator;It adds up to each whole second frequency departure in the current voltage-controlled adjustment period, obtains the crystalline substance
The exemplary frequency deviation values shaken within the current voltage-controlled adjustment period.
Optionally, it includes: voltage output unit that crystal oscillator frequency, which tames module 320, for according to exemplary frequency deviation values and voltage
Corresponding relationship, the corresponding voltage control signal of exemplary frequency deviation values in the current voltage-controlled adjustment period is exported, to adjust
State the control voltage of crystal oscillator.Specifically, voltage output unit can be realized by digital analog converter.
Optionally, crystal oscillator frequency tames module 320 further include: processing unit, for according to the exemplary frequency deviation values tune
The control voltage of the whole crystal oscillator, complete when previous adjustment after, judge through worked as previous crystal oscillator output frequency adjusted and/or
Whether adjustment number meets the stop condition of the current generation;If meeting the stop condition of the current generation and current generation
It is not the last stage, then enters next stage;If being unsatisfactory for the stop condition of the current generation, continue current
The adjustment in next voltage-controlled adjustment period in stage;If through being unsatisfactory for the inclined of current generation when previous exemplary frequency deviation values adjusted
The deviation threshold range in poor threshold range and the stage before the current generation, then returning to the corresponding stage is adjusted
It is whole.
Further, if the exemplary frequency deviation values that above-mentioned processing unit is also used to crystal oscillator meet the deviation threshold of the last stage
It is worth range, according to the voltage-controlled adjustment period of described the last stage, circulation adjusts the control voltage of the crystal oscillator.
Optionally, above-mentioned apparatus further include: control module, if the source GPS in time service positioning system of navigating it is invalid and
The adjustment of crystal oscillator frequency is in the last stage, then controls the crystal oscillator and enter the punctual stage, wherein in the punctual rank
Section, the crystal oscillator export effective pulse per second (PPS) according to the clock frequency tamed;If the source GPS is invalid and the adjustment of crystal oscillator frequency
It is not in the last stage, then waits the source GPS to become effectively, to adjust crystal oscillator frequency since first stage.
Above-mentioned control module is also used to: after controlling the crystal oscillator and entering the punctual stage, in the punctual stage, according to crystal oscillator
The frequency of degree of aging adjustment crystal oscillator.
Crystal oscillator frequency provided by the embodiment of the present invention, which tames device, can be performed crystalline substance provided by any embodiment of the invention
Vibration frequency tames method, has the corresponding functional module of execution method and beneficial effect.Not detailed description in the present embodiment
Technical detail, reference can be made to the crystal oscillator frequency that any embodiment of that present invention provides tames method.
It should be noted that crystal oscillator frequency provided by the embodiment of the present invention tames device can be realized based on FPGA, tool
Body, whole second frequency statistics is completed by FPGA hardware logic and calculates exemplary frequency deviation values, and passes through the adjustment control of DA conversion circuit
Voltage processed tames crystal oscillator frequency.
Example IV
The embodiment of the present invention four provides a kind of electronic equipment, comprising:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes that the crystal oscillator frequency as described in any embodiment of that present invention tames method.
Fig. 4 is the structural schematic diagram for the electronic equipment that the embodiment of the present invention four provides.Fig. 4, which is shown, to be suitable for being used to realizing this
The block diagram of the example electronic device 12 of invention embodiment.The electronic equipment 12 that Fig. 4 is shown is only an example, should not be right
The function and use scope of the embodiment of the present invention bring any restrictions.
As shown in figure 4, electronic equipment 12 is showed in the form of universal computing device.The component of electronic equipment 12 may include
But be not limited to: one or more processor or processing unit 16, system storage 28, connect different system components (including
System storage 28 and processing unit 16) bus 18.
Bus 18 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts
For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC)
Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Electronic equipment 12 typically comprises a variety of computer system readable media.These media can be it is any can be electric
The usable medium that sub- equipment 12 accesses, including volatile and non-volatile media, moveable and immovable medium.
System storage 28 may include the computer system readable media of form of volatile memory, such as arbitrary access
Memory (RAM) 30 and/or cache memory 32.Electronic equipment 12 may further include other removable/not removable
Dynamic, volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for read and write can not
Mobile, non-volatile magnetic media (Fig. 4 do not show, commonly referred to as " hard disk drive ").Although not shown in fig 4, Ke Yiti
For the disc driver for being read and write to removable non-volatile magnetic disk (such as " floppy disk "), and to moving non-volatile light
The CD drive of disk (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driver
It can be connected by one or more data media interfaces with bus 18.System storage 28 may include at least one program
Product, the program product have one group of (for example, at least one) program module, these program modules are configured to perform the present invention
The function of each embodiment.
Program/utility 40 with one group of (at least one) program module 42 can store and store in such as system
In device 28, such program module 42 includes but is not limited to operating system, one or more application program, other program modules
And program data, it may include the realization of network environment in each of these examples or certain combination.Program module 42
Usually execute the function and/or method in embodiment described in the invention.
Electronic equipment 12 can also be logical with one or more external equipments 14 (such as keyboard, sensing equipment, display etc.)
Letter, can also be enabled a user to one or more equipment interact with the electronic equipment 12 communicate, and/or with make the electronics
Any equipment (such as network interface card, modem etc.) that equipment 12 can be communicated with one or more of the other calculating equipment is logical
Letter.This communication can be carried out by input/output (I/O) interface 22.Also, electronic equipment 12 can also pass through Network adaptation
Device 20 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet) logical
Letter.As shown, network adapter 20 is communicated by bus 18 with other modules of electronic equipment 12.Although should be understood that figure
In be not shown, can in conjunction with electronic equipment 12 use other hardware and/or software module, including but not limited to: microcode, equipment
Driver, redundant processing unit, external disk drive array, RAID system, tape drive and data backup storage system
Deng.
Processing unit 16 by the program that is stored in system storage 28 of operation, thereby executing various function application and
Data processing, such as realize that crystal oscillator frequency provided by the embodiment of the present invention tames method.
In addition, can also include: digital analog converter in electronic equipment 12, it be connected to processing unit 16, for according to frequency
The corresponding relationship of deviation and voltage exports the corresponding voltage control letter of exemplary frequency deviation values in the current voltage-controlled adjustment period
Number, to adjust the control voltage of the crystal oscillator.
Embodiment five
The embodiment of the present invention five additionally provides a kind of computer readable storage medium, is stored thereon with computer program, should
Realize that the crystal oscillator frequency as described in any embodiment of that present invention tames method when program is executed by processor.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media
Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable
Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or
Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: tool
There are electrical connection, the portable computer diskette, hard disk, random access memory (RAM), read-only memory of one or more conducting wires
(ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-
ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage
Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device
Using or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited
In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can
Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for
By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited
In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof
Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++,
Further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with
It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion
Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.?
Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or
The domain wide area network (WAN) is connected to subscriber computer, or, it may be connected to outer computer (such as mentioned using Internet service
It is connected for quotient by internet).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.
Claims (11)
1. a kind of crystal oscillator frequency tames method characterized by comprising
Receive the pulse signal of navigation time service positioning system output;
In the current generation, voltage-controlled adjustment period and adjustment number according to the current generation, calculated according to the pulse signal
The exemplary frequency deviation values of crystal oscillator in the current voltage-controlled adjustment period, and it is electric according to the control that the exemplary frequency deviation values adjust the crystal oscillator
Pressure is completed to work as previous adjustment, the stop condition until meeting the current generation, into next stage;
If the exemplary frequency deviation values of crystal oscillator meet the deviation threshold range of the last stage, complete to tame, so that the crystal oscillator
Output frequency complies with standard frequency values;
Wherein, the voltage-controlled adjustment period in each stage is different.
2. the method according to claim 1, wherein calculating the current voltage-controlled adjustment period according to the pulse signal
The exemplary frequency deviation values of interior crystal oscillator, comprising:
When the starting of the whole second of the pulse signal is along arrival, the clock that the crystal oscillator generates is obtained by whole second frequency counter
Counting of the signal in whole second pulse signal obtains whole second frequency measured value;
The frequency departure for calculating the whole second frequency measured value and the standard frequency value, the whole second frequency for obtaining the crystal oscillator are inclined
Difference;
It adds up to each whole second frequency departure in the current voltage-controlled adjustment period, obtains the crystal oscillator described current voltage-controlled
Adjust the exemplary frequency deviation values in the period.
3. the method according to claim 1, wherein adjusting the control of the crystal oscillator according to the exemplary frequency deviation values
Voltage, comprising:
It is exported in the current voltage-controlled adjustment period using digital analog converter according to the corresponding relationship of exemplary frequency deviation values and voltage
The corresponding voltage control signal of exemplary frequency deviation values, to adjust the control voltage of the crystal oscillator.
4. according to the method described in claim 3, it is characterized in that, in the control for adjusting the crystal oscillator according to the exemplary frequency deviation values
Voltage processed is completed after previous adjustment, further includes:
Judge to be worked as previous crystal oscillator output frequency adjusted and/or adjusts the stopping item whether number meets the current generation
Part;
If meeting the stop condition of the current generation and the current generation not being the last stage, enter next stage;
If being unsatisfactory for the stop condition of the current generation, continue the tune in next voltage-controlled adjustment period in the current generation
It is whole;
If being worked as previous exemplary frequency deviation values adjusted is unsatisfactory for the deviation threshold range of current generation and in the current rank
The deviation threshold range in the stage before section, then returning to the corresponding stage is adjusted.
5. the method according to claim 1, wherein if the exemplary frequency deviation values of crystal oscillator meet the last stage
Deviation threshold range is completed to tame, comprising:
If the exemplary frequency deviation values of crystal oscillator meet the deviation threshold range of the last stage, according to the pressure of described the last stage
Control complete cycle, circulation adjust the control voltage of the crystal oscillator.
6. the method according to claim 1, wherein further include:
If the source GPS in navigation time service positioning system is in vain and the adjustment of crystal oscillator frequency is in the last stage, institute is controlled
It states crystal oscillator and enters the punctual stage, wherein in the punctual stage, the crystal oscillator exports effective second according to the clock frequency tamed
Pulse;
If the source GPS is invalid and the adjustment of crystal oscillator frequency is not in the last stage, wait the source GPS become effectively, with
Crystal oscillator frequency is adjusted since first stage.
7. according to the method described in claim 6, it is characterized in that, also being wrapped after controlling the crystal oscillator and entering the punctual stage
It includes:
In the punctual stage, the frequency of crystal oscillator is adjusted according to crystal oscillator degree of aging.
8. any method in -7 according to claim 1, which is characterized in that after the voltage-controlled adjustment period of previous stage is less than
The voltage-controlled adjustment period in one stage.
9. a kind of crystal oscillator frequency tames device characterized by comprising
Pulsed signal module, for receiving the pulse signal of navigation time service positioning system output;
Crystal oscillator frequency tames module, is used for voltage-controlled adjustment period and adjustment number in the current generation, according to the current generation,
The exemplary frequency deviation values of crystal oscillator in the current voltage-controlled adjustment period are calculated according to the pulse signal, and according to the exemplary frequency deviation values tune
The control voltage of the whole crystal oscillator is completed to work as previous adjustment, the stop condition until meeting the current generation, into lower single order
Section;If the exemplary frequency deviation values of crystal oscillator meet the deviation threshold range of the last stage, complete to tame, so that the crystal oscillator is defeated
Frequency complies with standard frequency values out;Wherein, the voltage-controlled adjustment period in each stage is different.
10. a kind of electronic equipment characterized by comprising
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
Now as crystal oscillator frequency described in any one of claims 1-8 tames method.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
Realize that crystal oscillator frequency described in any one of claims 1-8 such as tames method when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811190711.4A CN109412588B (en) | 2018-10-12 | 2018-10-12 | Crystal oscillator frequency taming method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811190711.4A CN109412588B (en) | 2018-10-12 | 2018-10-12 | Crystal oscillator frequency taming method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109412588A true CN109412588A (en) | 2019-03-01 |
CN109412588B CN109412588B (en) | 2023-07-21 |
Family
ID=65467052
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811190711.4A Active CN109412588B (en) | 2018-10-12 | 2018-10-12 | Crystal oscillator frequency taming method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109412588B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110289812A (en) * | 2019-06-28 | 2019-09-27 | Oppo广东移动通信有限公司 | Method, apparatus, electronic equipment and the storage medium of crystal oscillator frequency compensation |
CN110515102A (en) * | 2019-08-23 | 2019-11-29 | 中国科学院国家授时中心 | A kind of ns grade time reproducing method for controlling crystal oscillator based on satellite common vision observation |
CN110879519A (en) * | 2019-11-08 | 2020-03-13 | 中国科学院长春光学精密机械与物理研究所 | Time system method and system for aerial stereo mapping camera |
CN110908272A (en) * | 2019-12-20 | 2020-03-24 | 昆明理工大学 | 1pps pulse signal timing method |
CN111308881A (en) * | 2020-03-30 | 2020-06-19 | 中国电子科技集团公司第五十四研究所 | Rubidium clock temperature characteristic calibration method and calibration compensation device |
CN111769833A (en) * | 2020-06-19 | 2020-10-13 | 科大智能电气技术有限公司 | Time keeping method and system of low-power-consumption voltage-controlled crystal oscillator |
CN112485519A (en) * | 2020-12-03 | 2021-03-12 | 成都市精准时空科技有限公司 | Method, system, device and medium for measuring absolute frequency difference based on delay line |
CN113765613A (en) * | 2021-07-01 | 2021-12-07 | 齐鲁空天信息研究院 | Dynamic double-node time-frequency synchronization method, device, equipment and storage medium |
CN115268533A (en) * | 2022-08-02 | 2022-11-01 | 泰斗微电子科技有限公司 | Miniature multi-functional time frequency module |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030112086A1 (en) * | 2001-12-19 | 2003-06-19 | Tillotson Brian J. | Apparatus and method for improved crystal time reference |
CN101848076A (en) * | 2010-05-10 | 2010-09-29 | 新邮通信设备有限公司 | Clock signal holding method and device |
CN101900777A (en) * | 2009-05-27 | 2010-12-01 | 河南省电力勘测设计院 | Monitoring method and device of power system |
CN102436174A (en) * | 2011-10-26 | 2012-05-02 | 东莞市泰斗微电子科技有限公司 | Method and corresponding device for taming crystal oscillation frequency of time-keeping device |
US20140093024A1 (en) * | 2012-10-01 | 2014-04-03 | Joshua C. Park | RF Carrier Synchronization and Phase Alignment Methods and Systems |
CN104393869A (en) * | 2014-12-15 | 2015-03-04 | 大唐微电子技术有限公司 | Method and circuit device for dynamically controlling frequency range |
CN107247405A (en) * | 2017-04-14 | 2017-10-13 | 广州北极瑞光电子科技有限公司 | A kind of satellite navigation time service is kept time the solution in clock system |
CN108400861A (en) * | 2018-02-11 | 2018-08-14 | 京信通信系统(中国)有限公司 | Crystal oscillator original frequency method of adjustment and device and clock system |
-
2018
- 2018-10-12 CN CN201811190711.4A patent/CN109412588B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030112086A1 (en) * | 2001-12-19 | 2003-06-19 | Tillotson Brian J. | Apparatus and method for improved crystal time reference |
CN101900777A (en) * | 2009-05-27 | 2010-12-01 | 河南省电力勘测设计院 | Monitoring method and device of power system |
CN101848076A (en) * | 2010-05-10 | 2010-09-29 | 新邮通信设备有限公司 | Clock signal holding method and device |
CN102436174A (en) * | 2011-10-26 | 2012-05-02 | 东莞市泰斗微电子科技有限公司 | Method and corresponding device for taming crystal oscillation frequency of time-keeping device |
US20140093024A1 (en) * | 2012-10-01 | 2014-04-03 | Joshua C. Park | RF Carrier Synchronization and Phase Alignment Methods and Systems |
CN104393869A (en) * | 2014-12-15 | 2015-03-04 | 大唐微电子技术有限公司 | Method and circuit device for dynamically controlling frequency range |
CN107247405A (en) * | 2017-04-14 | 2017-10-13 | 广州北极瑞光电子科技有限公司 | A kind of satellite navigation time service is kept time the solution in clock system |
CN108400861A (en) * | 2018-02-11 | 2018-08-14 | 京信通信系统(中国)有限公司 | Crystal oscillator original frequency method of adjustment and device and clock system |
Non-Patent Citations (1)
Title |
---|
薛毅聪等: "基于GNSS的晶振驯服方法分析", 《全球定位系统》, vol. 42, no. 4, pages 38 - 42 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110289812A (en) * | 2019-06-28 | 2019-09-27 | Oppo广东移动通信有限公司 | Method, apparatus, electronic equipment and the storage medium of crystal oscillator frequency compensation |
CN110515102A (en) * | 2019-08-23 | 2019-11-29 | 中国科学院国家授时中心 | A kind of ns grade time reproducing method for controlling crystal oscillator based on satellite common vision observation |
CN110879519A (en) * | 2019-11-08 | 2020-03-13 | 中国科学院长春光学精密机械与物理研究所 | Time system method and system for aerial stereo mapping camera |
CN110908272A (en) * | 2019-12-20 | 2020-03-24 | 昆明理工大学 | 1pps pulse signal timing method |
CN110908272B (en) * | 2019-12-20 | 2021-04-13 | 昆明理工大学 | 1pps pulse signal timing method |
CN111308881A (en) * | 2020-03-30 | 2020-06-19 | 中国电子科技集团公司第五十四研究所 | Rubidium clock temperature characteristic calibration method and calibration compensation device |
CN111308881B (en) * | 2020-03-30 | 2021-07-13 | 中国电子科技集团公司第五十四研究所 | Rubidium clock temperature characteristic calibration method and calibration compensation device |
CN111769833A (en) * | 2020-06-19 | 2020-10-13 | 科大智能电气技术有限公司 | Time keeping method and system of low-power-consumption voltage-controlled crystal oscillator |
CN112485519A (en) * | 2020-12-03 | 2021-03-12 | 成都市精准时空科技有限公司 | Method, system, device and medium for measuring absolute frequency difference based on delay line |
CN113765613A (en) * | 2021-07-01 | 2021-12-07 | 齐鲁空天信息研究院 | Dynamic double-node time-frequency synchronization method, device, equipment and storage medium |
CN115268533A (en) * | 2022-08-02 | 2022-11-01 | 泰斗微电子科技有限公司 | Miniature multi-functional time frequency module |
Also Published As
Publication number | Publication date |
---|---|
CN109412588B (en) | 2023-07-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109412588A (en) | Crystal oscillator frequency tames method, apparatus, electronic equipment and storage medium | |
JP4164662B2 (en) | Portable terminal and GPS time keeping method | |
KR100687230B1 (en) | Real time clock apparatus and the real time compensating method thereof | |
CN107505832B (en) | A kind of high-precision time dissemination system | |
CN109557577B (en) | Clock generation device and method suitable for node seismograph | |
CN104378109A (en) | Synchronous clock signal compensation method and device | |
US11567529B2 (en) | Real-time clock device and electronic apparatus | |
CN104300969A (en) | High-precision synchronization clock realization method based on full digital phase-locked loop | |
CN103269262A (en) | Time-keeping method of time synchronization device | |
JP2012242190A (en) | Reference signal generation device and reference signal generating method | |
CN117311130A (en) | Synchronous time keeping module based on FPGA and constant temperature crystal oscillator | |
CN109474276B (en) | CPT atomic clock frequency synchronization control method and system | |
CN104656105B (en) | System and method for satellite navigation clock alignment | |
CN101488752B (en) | Temperature frequency correcting apparatus | |
CN108988832B (en) | Method for detecting a delay associated with an electronic device and corresponding electronic device | |
US20200363536A1 (en) | Methods for enhancing non-global navigation satellite system location and timing pseudorange positioning calculations and systems thereof | |
CN101488751B (en) | Measurement system and method for temperature frequency correcting apparatus | |
CN202150850U (en) | Frequency synthesizing device using GNSS second pulse for rapid modification | |
CN104753497A (en) | Method and device for correcting OSCPPS | |
JP2016072912A (en) | Control device for clock signal generating device, control method for clock signal generating device, control program, and clock signal generating device | |
CN110687773B (en) | Method, device and system for measuring time service precision of time unification system | |
CN106444966A (en) | Device and method for adjusting real time clock (RTC) | |
JP5307532B2 (en) | Frequency change measurement method and apparatus | |
CN109061691A (en) | Crystal oscillator module control system based on Big Dipper satellite signal | |
US12117865B2 (en) | Frequency generating device and operation method thereof |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |