CN111903219B - Method for processing high-precision clock compensation circuit - Google Patents
Method for processing high-precision clock compensation circuit Download PDFInfo
- Publication number
- CN111903219B CN111903219B CN200810077911.9A CN200810077911A CN111903219B CN 111903219 B CN111903219 B CN 111903219B CN 200810077911 A CN200810077911 A CN 200810077911A CN 111903219 B CN111903219 B CN 111903219B
- Authority
- CN
- China
- Prior art keywords
- temperature compensation
- converter
- clock
- output
- memory
- 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.)
- Active
Links
Images
Landscapes
- Oscillators With Electromechanical Resonators (AREA)
Abstract
The invention discloses a method for processing a high-precision clock compensation circuit, and relates to a digital temperature compensation circuit technology of a high-stability clock source in the field of communication. On the basis of a traditional temperature compensation framework, a compensation algorithm combining digital temperature compensation and real-time phase compensation is adopted for circuit design, so that the accuracy of the temperature compensation reaching 0.1ppm is ensured; and the low power consumption requirement is met by configuring different working modes. The invention also has the advantages of obviously improving the compensation precision of the real-time clock, greatly reducing the power consumption of the clock circuit, having high application flexibility and the like, and particularly being widely applied to various occasions requiring the use of high-precision clocks as high-precision clocks, such as mobile communication, navigation positioning and the like.
Description
Technical Field
The invention relates to a high-precision clock compensation circuit processing method in the communication field, which is particularly suitable for being used as a high-precision clock in mobile communication, navigation positioning and remote control telemetering equipment with high-precision requirements.
Background
The traditional high-precision clock compensation methods mainly include two methods:
firstly, the capacitor array in the external crystal oscillator is controlled by a digital circuit to adjust the frequency, and the digital crystal oscillator has the advantages of simple circuit structure and easy realization. The disadvantage is that the frequency adjustment is hopping, cannot be changed continuously, and the oscillator phase noise is poor.
And secondly, adjusting the capacitance of a capacitance diode in the external crystal oscillator by using the analog voltage output by the D/A to adjust the frequency. Its advantages are continuous frequency regulation and high phase noise of oscillator. The disadvantage is that the circuit structure is complex and the area of the circuit is large.
In order to obtain a high-precision clock reference and provide accurate time source information, an improved, simple and low-power consumption compensation algorithm is needed for designing a high-precision temperature compensation circuit, and the algorithm is easy to implement by hardware and an application-specific integrated circuit.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method for processing a high-precision clock compensation circuit of a high-stability clock source, which avoids the disadvantages of the background art. On the basis of a traditional temperature compensation framework, a compensation method combining digital temperature compensation and real-time phase compensation is adopted for circuit design, so that the accuracy of 0.1ppm is ensured; and the low power consumption requirement is met by configuring different working modes. The invention also has the characteristics of obviously improving the compensation precision of the real-time clock, greatly reducing the power consumption of the clock circuit, having strong application flexibility and the like, and can be widely applied to various occasions with high-precision clock requirements, as high-precision clocks, mobile communication, navigation positioning and the like.
The object of the invention is achieved in that it comprises the steps of:
firstly, a temperature sensor 2, an A/D converter 3, a D/A converter 7, a memory 5 and an oscillation tank 11 are adopted to form a temperature compensation circuit framework;
secondly, the temperature sensor 2 senses the external environment change to generate an analog electric signal of the environment temperature change and sends the analog electric signal to the A/D converter 3, and the A/D converter 3 converts the analog electric signal of the environment temperature change into a digital signal;
the A/D converter 3 outputs the digital signal to the memory 5 as a read address, and reads out the temperature compensation data preset and written in the memory 5 corresponding to the current temperature;
outputting the temperature compensation data output by the memory 5 to the D/A converter 7, and controlling the oscillation output frequency of the oscillation tank 11;
fifthly, under different working temperatures, repeating the steps from the first step to the fourth step for temperature compensation, so that the temperature compensation precision of the oscillating tank 11 under the normal working condition reaches 10-6;
Setting the digit of the A/D converter 3 to be more than or equal to 14 bits, and setting the digit of the D/A converter 7 to be more than or equal to 10 bits;
the temperature compensation data output by the memory 5 is output to the D/A converter 7 by taking 10 bits as low as the temperature compensation data and converted into an analog signal, and the analog signal controls the output oscillation frequency of the oscillation tank 11; taking a high 4-digit number to output to the switch capacitor arrays 13-1 and 13-2, and controlling the output oscillation frequency of the oscillation tank 11 by the output capacitance feedback of the switch capacitor arrays 13-1 and 13-2;
initializing a real-time clock module 10 by an IIC interface 9, and counting the output oscillation frequency of the oscillation tank 11 in the step (c) by the real-time clock module 10 in a normal and standby working mode by time, minute and second;
ninthly, correcting the aging parameters of the crystal oscillator IN the normal working mode by a compensation algorithm module 8, compensating the aging characteristics by inputting a clock with the frequency being more than or equal to 50MHz and a clock with the frequency being more than or equal to 1PPS _ IN, compensating the phase difference between the clock with the frequency being more than or equal to 50MHz and the clock with the frequency being more than or equal to 1PPS _1N, generating the phase difference by the oscillation tank 11, feeding the temperature compensation data corresponding to the phase difference back to the memory 5 for temperature compensation control, updating the temperature compensation data of the memory 5 at intervals of set time, and setting the updating time interval of the temperature compensation data of the memory 5 by an IIC interface 9 according to the ambient temperature of a circuit and the requirement of;
repeatedly and ninthly step high-precision temperature compensation under different working temperatures of the R part to ensure that the temperature compensation precision of the oscillating tank 11 reaches 10 under the normal working condition-7。
Compared with the background technology, the invention has the following advantages:
(1) the present invention can obtain high clock output accuracy by increasing the number of bits of the a/D converter 3 and the D/a converter 7.
(2) The invention has the function of adjusting the real-time aging characteristic and improves the reliability and the precision of the temperature compensation circuit.
(3) The invention has a low power consumption working mode, the circuit is convenient to integrate with the communication portable equipment, and the service performance of the circuit is improved.
Drawings
FIG. 1 is an electrical schematic block diagram of an embodiment of the present invention. In fig. 1: the system comprises a power management module 1, a temperature sensor 2, an A/D converter 3, a selector 4, a memory 5, a selector 6, a D/A converter 7, a compensation algorithm module 8, an IIC interface 9, a real-time clock module 10, an oscillation tank 11, a quartz crystal 12 and a capacitance switch array 13-1 and 13-2.
FIG. 2 is a schematic diagram of waveform control of a high-precision compensation algorithm according to an embodiment of the present invention.
Detailed Description
Referring to fig. 1 and 2, an electrical schematic block diagram of an embodiment of the present invention is shown in fig. 1, which includes: the device comprises a power management module 1, a temperature sensor 2, an A/D converter 3, a selector 4, a memory 5, a selector 6, a D/A converter 7, a compensation algorithm module 8, an IIC interface 9, a real-time clock module 10, an oscillation tank 11, a quartz crystal 12 and capacitor switch arrays 13-1 and 13-2.
The power management module 1 adopts 3.3V/3V double-voltage power supply. The selector 4 and the selector 6 are used for selectively outputting the temperature compensation parameter and the aging correction parameter, and are manufactured by adopting corresponding general devices. The quartz crystal 12 functions to generate a fixed oscillation frequency.
The invention comprises the following steps:
the temperature compensation circuit framework is formed by adopting a temperature sensor 2, an A/D converter 3, a D/A converter 7, a memory 5 and an oscillation tank 11. The temperature range of the temperature sensor 2 is-40 to +85 ℃; the number of bits of the A/D converter 3 is set to be more than or equal to 14 bits; the 7-bit number of the D/A converter is set to be more than or equal to 10 bits; the storage capacity of the memory 5 is 16K × 10 bits; the oscillation tank 11 is composed of an RLC network consisting of a variable capacitance diode, a capacitor and an inductor and a frequency divider, and can output the oscillation frequency corresponding to a quartz crystal and the 1PPS clock obtained by the frequency divider; the quartz crystal 11 is selected according to the oscillation frequency required by the specific application environment, and the embodiment is selected as the crystal with the oscillation frequency of 32.768 KHz. In the embodiment of the invention, the temperature sensor 2, the A/D converter 3, the D/A converter 7 and the memory 5 are all manufactured by adopting corresponding devices which are commonly used.
Secondly, the temperature sensor 2 senses the external environment change to generate an analog electric signal of the environment temperature change and sends the analog electric signal of the environment temperature change to the A/D converter 3, and the A/D converter 3 converts the analog electric signal of the environment temperature change into a digital signal.
Thirdly, the A/D converter 3 outputs the digital signal to the memory 5 to be used as a read address, and reads out the temperature compensation data which is preset and written into the memory 5 and corresponds to the current temperature.
And fourthly, inputting the temperature compensation data output by the memory 5 into the D/A converter 7 to control the oscillation output frequency of the oscillation tank 11.
Fifthly, under different working temperatures, repeating the steps from the first step to the fourth step for temperature compensation, so that the temperature compensation precision of the oscillating tank 11 under the normal working condition reaches 10-6。
Setting the number of bits of the A/D converter 3 to be more than or equal to 14 bits, and setting the number of bits of the D/A converter 7 to be more than or equal to 10 bits. Embodiment the bit number of the a/D converter 3 of the present invention is set to 14 bits; the D/A converter bit number is set to 10 bits.
The temperature compensation data output by the memory 5 is output to the D/A converter 7 by taking 10 bits as low as the temperature compensation data and converted into an analog signal, and the analog signal controls the output oscillation frequency of the oscillation tank 11; the high 4-digit number is output to the switch capacitor arrays 13-1 and 13-2, and the output capacitance of the switch capacitor arrays 13-1 and 13-2 controls the output oscillation frequency of the oscillation tank 11 in a feedback mode. Embodiments the switched capacitor arrays 13-1, 13-2 of the present invention are formed as capacitor banks from standard cell capacitors.
The real-time clock module 10 is initialized by the IIC interface 9, and the real-time clock module 10 counts time, minutes and seconds of the output oscillation frequency of the oscillation tank 11 in the step (c) under normal and standby working modes. The IIC interface 9 of the invention adopts a standard interface configuration, and the real-time clock module 10 is composed of a standard time, minute and second timer.
Ninthly, correcting the aging parameters of the crystal oscillator IN the normal working mode by the compensation algorithm module 8, compensating the aging characteristics by inputting a clock with the frequency being more than or equal to 50MHz and a clock with the frequency being more than or equal to 1PPS _ IN, compensating the phase difference between the clock with the frequency being more than or equal to 50MHz and the clock with the frequency being more than or equal to 1PPS _ IN and generated by the oscillation tank 11 by the aging characteristics, feeding back the temperature compensation data corresponding to the phase difference to the memory 5 for temperature compensation control, updating the temperature compensation data of the memory 5 at intervals of set time, and setting the temperature compensation data updating time interval of the memory 5 by the IIC interface 9 according to the ambient temperature of the circuit and the requirements of low. Example the 50MHz clock is set to 50 MHz. The embodiment sets the update time interval to position 1/1000 s.
Repeatedly and ninthly step high-precision temperature compensation under different working temperatures of the R part to ensure that the temperature compensation precision of the oscillating tank 11 reaches 10 under the normal working condition-7。
The working process of the invention is as follows: the temperature change value is converted into an electric signal by a temperature sensor 2 circuit, the electric signal is converted into a digital value after being changed by an A/D converter 3, the digital value is used as an address signal of a built-in memory 5 through a selector 4, the temperature compensation parameter of an oscillation groove 11 is read out, and the temperature compensation parameter is used as an analog value to adjust the output oscillation frequency of the oscillation groove 11 through a selector 6 and a D/A converter 7. Meanwhile, the output oscillation frequency of the oscillation tank 11 is adjusted as a digital value through the processing of the compensation algorithm module 8 and the real-time clock module 10, so that high-precision temperature compensation clock output and accurate timekeeping are realized.
Wherein the D/A converter 7 adopts the precision of more than or equal to 14 bits, wherein high bits (more than or equal to 4 bits) are used for controlling the capacitor arrays 13-1 and 13-2 to adjust the output oscillation frequency of the oscillation tank 11; the remaining bits adjust the output oscillation frequency of the oscillation tank 11 by the analog voltage output from the D/a converter 7. The circuit of the invention has strong realizability, low power consumption and high-precision temperature compensation (better than 1 multiplied by 10)-7)。
The compensation algorithm module 8 of the invention mainly completes two functions, firstly, the phase (delta phi) information of 1PPS clock output by the detection oscillation tank 11; the other is to calculate and generate a corresponding compensation voltage (Δ V) according to the detected phase information deviation, so as to lock the 1PPS output by the oscillation tank 11 with the 1PPS _ IN input signal. As shown in fig. 2, fig. 2 is a schematic diagram of waveform control of the high-precision compensation algorithm according to the embodiment of the present invention. The compensation algorithm module 8 starts from the rising edge of the 1PPS _ IN signal, counts by using a 50MHz clock, and detects the phase difference between the 1PPS clock output by the oscillation tank 11 and the 1PPS _ IN input signal; and calculating compensation parameters needing to be added according to the phase difference, outputting the compensation parameters to a compensation algorithm module 8 to calibrate the output oscillation frequency of the oscillation groove 11, circularly operating until the total phase difference does not exceed 1 clock period of 50MHz, namely entering a locking state, transmitting the compensation information in the stable state to a memory 5 after the locking state is reached and the stable state is confirmed, and controlling the output high-precision oscillation frequency of the oscillation groove 11 at different temperatures through a D/A converter 7.
Claims (1)
1. A method for high precision clock compensation circuit processing, comprising the steps of:
a temperature sensor (2), an A/D converter (3), a D/A converter (7), a memory (5) and an oscillation tank (11) form a temperature compensation circuit framework;
secondly, the temperature sensor (2) senses the external environment change to generate an analog electric signal of the environment temperature change and sends the analog electric signal of the environment temperature change to the A/D converter (3), and the A/D converter (3) converts the analog electric signal of the environment temperature change into a digital signal;
the A/D converter (3) outputs the digital signal to the memory (5) as a read address, and reads out the temperature compensation data preset and written in the memory (5) corresponding to the current temperature;
fourthly, inputting the temperature compensation data output by the memory (5) into a D/A converter (7) and controlling the output oscillation frequency of the oscillation tank (11);
fifthly, under different working temperatures, repeating the steps from the first step to the fourth step to carry out temperature compensation, so that the temperature compensation precision of the oscillating tank (11) under the normal working condition reaches 10-6;
It is characterized by also comprising the following steps:
setting the digit of the A/D converter (3) to be more than or equal to 14 bits, and setting the digit of the D/A converter (7) to be more than or equal to 10 bits;
the temperature compensation data output by the memory (5) takes the lower 10 digits to be output to a D/A converter (7) to be converted into an analog signal, and the analog signal controls the output oscillation frequency of an oscillation tank (11); taking a high 4-digit number to output to the switched capacitor arrays (13-1, 13-2), and controlling the output oscillation frequency of the oscillation tank (11) by the output capacitance feedback of the switched capacitor arrays (13-1, 13-2);
initializing a real-time clock module (10) by an IIC interface (9), and counting the output oscillation frequency of the oscillation tank (11) in the step (c) by the real-time clock module (10) in a normal and standby working mode in time, minute and second;
ninthly, correcting the aging parameters of the crystal oscillator IN the normal working mode by a compensation algorithm module (8), compensating the aging characteristics of the aging parameter by inputting a clock with the frequency being more than or equal to 50MHz and a clock with the frequency being more than or equal to 1PPS _ IN, compensating the phase difference between the clock with the frequency being more than or equal to 50MHz and the clock with the frequency being more than or equal to 1PPS _ IN and generated by an oscillation tank (11), feeding temperature compensation data corresponding to the phase difference back to a memory (5) for temperature compensation control, updating the temperature compensation data of the memory (5) at intervals of set time, and setting the updating time interval of the temperature compensation data of the memory (5) by an IIC interface (9) according to the ambient temperature of a circuit and the requirement of low power;
under different working temperatures of the R part, repeating to nine steps high precision temperature compensation to make the temperature compensation precision of the oscillating tank (11) reach 10 under normal working condition-7。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200810077911.9A CN111903219B (en) | 2008-12-01 | 2008-12-01 | Method for processing high-precision clock compensation circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200810077911.9A CN111903219B (en) | 2008-12-01 | 2008-12-01 | Method for processing high-precision clock compensation circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111903219B true CN111903219B (en) | 2012-05-16 |
Family
ID=73172418
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200810077911.9A Active CN111903219B (en) | 2008-12-01 | 2008-12-01 | Method for processing high-precision clock compensation circuit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111903219B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108155983A (en) * | 2016-12-05 | 2018-06-12 | 中兴通讯股份有限公司 | A kind of method and device of system disturbance offset power consumption fluctuation and introduced |
CN111399418A (en) * | 2020-03-30 | 2020-07-10 | 中国电子科技集团公司第五十四研究所 | Low-power-consumption power-off time-keeping module |
CN112367077A (en) * | 2019-07-26 | 2021-02-12 | 敦宏科技股份有限公司 | Intelligent low-current oscillation circuit compensation method with wide operating voltage and temperature |
-
2008
- 2008-12-01 CN CN200810077911.9A patent/CN111903219B/en active Active
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108155983A (en) * | 2016-12-05 | 2018-06-12 | 中兴通讯股份有限公司 | A kind of method and device of system disturbance offset power consumption fluctuation and introduced |
CN108155983B (en) * | 2016-12-05 | 2021-12-24 | 中兴通讯股份有限公司 | Method and device for counteracting system disturbance introduced by power consumption fluctuation |
CN112367077A (en) * | 2019-07-26 | 2021-02-12 | 敦宏科技股份有限公司 | Intelligent low-current oscillation circuit compensation method with wide operating voltage and temperature |
CN112367077B (en) * | 2019-07-26 | 2023-10-13 | 敦宏科技股份有限公司 | Intelligent low-current oscillation circuit compensation method with wide operating voltage and temperature |
CN111399418A (en) * | 2020-03-30 | 2020-07-10 | 中国电子科技集团公司第五十四研究所 | Low-power-consumption power-off time-keeping module |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103296968B (en) | System and method for the low-power timing of park mode radio | |
CN107483016B (en) | Temperature-compensated oscillating circuit, oscillator, method of manufacturing the same, electronic apparatus, and moving object | |
JP2008054134A (en) | Ring oscillator, semiconductor integrated circuit provided with the same, and electronic equipment | |
US10367451B2 (en) | Temperature-compensated crystal oscillator based on digital circuit | |
JP2004503977A (en) | Calibration apparatus and method for generating clock pulse in integrated circuit | |
JP2007027981A (en) | Oscillator and control method thereof | |
Griffith et al. | A 65nm CMOS DCXO system for generating 38.4 MHz and a real time clock from a single crystal in 0.09 mm 2 | |
CN111903219B (en) | Method for processing high-precision clock compensation circuit | |
TW201526548A (en) | Improved low-power oscillator | |
US20180013384A1 (en) | Temperature-compensated crystal oscillator based on analog circuit | |
JP4745102B2 (en) | Reference current control circuit, crystal oscillator control IC with temperature compensation function, crystal oscillator and mobile phone | |
CN202818228U (en) | High-precision digital temperature compensation type crystal oscillator | |
Zhang et al. | A 2.4-GHz energy-efficient transmitter for wireless medical applications | |
JP2007208584A (en) | Frequency adjusting circuit | |
CN104065344A (en) | Low-consumption oscillator | |
CN210405226U (en) | RC oscillating circuit | |
CN207490904U (en) | A kind of on piece low power consumption high-precision reference clock | |
CN205068074U (en) | Temperature compensation circuit of broken line characteristic | |
CN101388646A (en) | Successive approximation temperature and frequency correcting method and device | |
CN104796139A (en) | Quick frequency stabilization voltage-controlled oscillator | |
CN115065323A (en) | Automatic temperature compensation system and compensation method for crystal oscillator | |
CN203775188U (en) | Clock generator | |
CN201956971U (en) | Digital temperature compensation crystal oscillator | |
CN201467103U (en) | Temperature sensing oscillator | |
CN201515347U (en) | Temperature frequency correcting device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR03 | Grant of secret patent right | ||
DC01 | Secret patent status has been lifted | ||
DC01 | Secret patent status has been lifted |