A system for automatically correcting the frequency of a crystal oscillator

Through the dynamic interlocking mechanism of parallel quartz crystal oscillators and capacitors, using the signal interlocking of XOR gates and NOR gates, combined with the length standard of the delay line, the real-time clock frequency of the crystal oscillator is automatically adjusted, solving the problem of capacitor aging. and frequency inaccuracies caused by temperature changes, improving the stability and accuracy of frequency signals.

CN118487558BActive Publication Date: 2024-09-20CHENGDU UFO TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410948696.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-09-20
Estimated Expiration
2044-07-16

AI Technical Summary

Technical Problem

It is difficult for the existing technology to effectively automatically adjust the natural frequency of the crystal oscillator, especially when the capacitor ages and changes in temperature, resulting in inaccurate frequency signals.

Method used

By connecting quartz crystal oscillators in parallel, introducing fixed capacitors and adjustable capacitors, using the signal interlocking mechanism of XOR gates and XOR gates, and combining the length of the delay line as the clock cycle standard, the real-time clock frequency of the resonant crystal oscillator is achieved. Automatic adjustment and locking.

Benefits of technology

It improves the automatic adjustment accuracy and stability of the clock frequency of the crystal oscillator, solves the impact of capacitance attenuation and temperature changes on the frequency, and ensures the accuracy of the frequency signal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118487558B
    Figure CN118487558B
Patent Text Reader

Abstract

A system for automatically correcting the frequency of a crystal oscillator relates to the technical field of oscillators. A power supply line and a signal line of a resonant crystal oscillator are connected in series with a fixed capacitor and an adjustable capacitor respectively along the grounding direction. A first clock signal and a second clock signal are led out at the same point based on the clock signal output end of the resonant crystal oscillator, and are electrically connected to the signal input end of an XOR gate, wherein a delay line is used in any one of the first clock signal and the second clock signal, and the delay period of the delay line is an integer multiple of the fixed clock period of the resonant crystal oscillator, and the output signal of the XOR gate is used as an adjustment signal for adjusting the adjustable capacitor; two points separated by half a period are led out on the delay line, and are electrically connected to the input end of an XOR gate, and the output signal of the XOR gate is used as a control signal for controlling the adjustment signal of the XOR gate. The capability and accuracy of automatic adjustment of the real-time clock period or clock frequency are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of oscillators, and in particular to a system for automatically correcting the frequency of a crystal oscillator. Background Art

[0002] The oscillation of a crystal oscillator is inseparable from the capacitor. The ability of the capacitor to store electricity will directly affect the accuracy of the frequency signal of the crystal oscillator. For example, as the capacitor ages, its internal structure may change as the capacitor is used for a longer time, causing the capacitance of the capacitor to decrease, and thus the amount of electricity stored will also decrease. Temperature changes, the operating temperature of the capacitor will affect its performance, and excessively high or low temperatures will cause the capacitor's ability to store electricity to decay. In the prior art, although the crystal oscillator has the ability to automatically adjust the frequency, it is difficult to lock the inherent or designed frequency of the crystal oscillator for automatic adjustment.

[0003] In view of this, the prior art needs to be further improved. Summary of the invention

[0004] In view of the above problems existing in the prior art, at least one of the problems is solved and a system for automatically correcting the frequency of a crystal oscillator is provided. The purpose of the present invention is to dynamically interlock voltage parameters and mechanical parameters through a resonant crystal oscillator, introduce an adjustable capacitor into the adjustment mechanism of the dynamic interlocking, and then introduce a fixed capacitor and an adjustable capacitor into the dynamic interlocking mechanism, introduce a fixed clock cycle or clock frequency standard using the length of a delay line, and introduce it into the dynamic interlocking mechanism, so as to achieve the locking of the fixed clock cycle or clock frequency by the dynamic interlocking, and improve the ability and accuracy of automatic adjustment of the real-time clock cycle or clock frequency.

[0005] The technical solution to achieve the purpose of the present invention is:

[0006] The present application provides a system for automatically correcting the frequency of a crystal oscillator, which comprises: a quartz crystal oscillator, an XOR gate, an XOR gate, a capacitor and a delay line, wherein the capacitor comprises a fixed capacitor and an adjustable capacitor;

[0007] At least two identical quartz crystals are connected in parallel and packaged into a resonant crystal oscillator;

[0008] The power supply line and signal line of the resonant crystal oscillator are connected in series with a fixed capacitor and an adjustable capacitor respectively along the ground direction;

[0009] Based on the clock signal output end of the resonant crystal oscillator, a first clock signal and a second clock signal are led out at the same point and electrically connected to the signal input end of an XOR gate, wherein a delay line is used in any one of the first clock signal and the second clock signal, the delay period of the delay line is an integer multiple of a fixed clock period of the resonant crystal oscillator, and the output signal of the XOR gate is used as an adjustment signal for adjusting an adjustable capacitor; two points separated by half a period are led out on the delay line and electrically connected to the input end of an XOR gate, and the output signal of the XOR gate is used as a control signal for controlling the adjustment signal of the XOR gate, and the half period is half of an inherent clock period of the resonant crystal oscillator.

[0010] It should be noted that the resonant crystal oscillator is connected to an oscillation circuit, or to an oscillation circuit in a chip, to provide an oscillating clock signal; the specific connection methods are different, but the essence is the same. When an external oscillation circuit is used, the resonant crystal oscillator is directly connected to a dedicated oscillation circuit; when a chip has a built-in oscillation circuit, the resonant crystal oscillator is connected to a dedicated pin of a microcontroller or other integrated circuit; an oscillation frequency is provided as a system clock source, or to synchronize various circuit modules. At least two identical quartz crystal oscillators are connected in parallel and resonate, and the voltage parameters and mechanical parameters of the resonant crystal oscillator are dynamically interlocked to achieve automatic dynamic frequency adjustment; by adjusting the capacitance value of the adjustable capacitor, the voltage parameters of the resonant crystal oscillator are adjusted, and the adjustable capacitor is introduced into the dynamic interlocking adjustment mechanism, and then the fixed capacitor and the adjustable capacitor are introduced into the dynamic interlocking mechanism.The clock signal output end based on the resonant crystal oscillator refers to the resonant crystal oscillator and the oscillation circuit forming a clock signal, and serving as the output end of the clock signal. Two clock signals are led out from the clock signal output end of the resonant crystal oscillator. The first clock signal and the second clock signal differ by an integral multiple of the fixed clock cycle of the resonant crystal oscillator. The first clock signal and the second clock signal are electrically connected to the signal input end of the XOR gate. When the clock cycle generated by the resonant crystal oscillator in the real-time state is the same as the fixed clock cycle, the output end of the XOR gate outputs a low level. The clock cycle generated by the resonant crystal oscillator in the real-time state is the same as the fixed clock cycle. When the periods are different, that is, compared with the fixed clock period of the resonant crystal oscillator, the clock period generated by the resonant crystal oscillator in real time is in a larger or smaller state, the output end of the XOR gate outputs a high level, and the output end of the XOR gate is used as an adjustment signal for adjusting the adjustable capacitor. The adjustment signal increases or decreases the capacitance value of the adjustable capacitor, thereby changing the voltage parameter of the resonant crystal oscillator, thereby adjusting the voltage parameter of the resonant crystal oscillator; two points separated by half a period are drawn out on the delay line and electrically connected to the input end of the XOR gate, and the output signal of the XOR gate is used as a control signal for controlling the adjustment signal of the XOR gate. The half period is half of an inherent clock period of the resonant crystal oscillator. The length of the delay line is used as a standard for the clock period or clock frequency. That is, two points with an interval of half a period are provided on the delay line. It takes half a clock period for the clock signal to pass through the two points with an interval of half a period. The length of the delay line is stable, and the length of the two points with an interval of half a period is also stable. The standard for the clock period or clock frequency is also stable. Therefore, the stability of the clock period or clock frequency standard is improved, and the standard for the clock period or clock frequency is introduced into the resonance interlocking mechanism. For example, the adjustment mechanism of the adjustable capacitor adopts a micro motor, and the high-level voltage provided by the output end of the XOR gate makes the micro motor rotate, thereby adjusting the capacitance value of the adjustable capacitor, and the output signal of the XOR gate controls the output end of the XOR gate to increase, decrease or lock the adjustable capacitance; specifically, the output signal of the XOR gate controls the signal of the output end of the XOR gate, for example, the output signal of the XOR gate controls the output end of the XOR gate to increase the adjustable capacitance, or the output signal of the XOR gate controls the output end of the XOR gate to decrease the adjustable capacitance, or the output signal of the XOR gate controls the output end of the XOR gate to lock the adjustable capacitance.In the working state, the resonant crystal oscillator is interfered by interference factors. When the real-time clock cycle is greater than the fixed clock cycle, the capacitance value of the adjustable capacitor is reduced so that the real-time clock cycle is equal to the fixed clock cycle; when the real-time clock cycle is less than the fixed clock cycle, the capacitance value of the adjustable capacitor is increased so that the real-time clock cycle is equal to the fixed clock cycle; when the fixed capacitor attenuates, the capacitance value of the adjustable capacitor is increased so that the real-time clock cycle is equal to the fixed clock cycle; the capacitance value of the adjustable capacitor has the ability to be increased or decreased.

[0011] Compared with the prior art, the beneficial effects of the present invention include:

[0012] (1) At least two identical quartz crystal oscillators are connected in parallel to generate resonance, and the voltage parameters and mechanical parameters of the resonant crystal oscillator are dynamically interlocked to achieve automatic dynamic frequency adjustment; by adjusting the capacitance value of the adjustable capacitor, the voltage parameters of the resonant crystal oscillator are adjusted, and the adjustable capacitor is introduced into the dynamic interlocking adjustment mechanism, and then the fixed capacitor and the adjustable capacitor are introduced into the dynamic interlocking mechanism;

[0013] (2) Leading out two clock signals at the clock signal output end of the resonant crystal oscillator, the first clock signal and the second clock signal differing by an integral multiple of the fixed clock period of the resonant crystal oscillator, the first clock signal and the second clock signal being electrically connected to the signal input end of an XOR gate, the output end of the XOR gate being used as a regulating signal for regulating the adjustable capacitor, and the regulating signal having a real-time regulation function;

[0014] (3) Two points separated by half a period are drawn out on the delay line and electrically connected to the input of an X-OR gate. The output signal of the X-OR gate is used as a control signal for controlling the X-OR gate adjustment signal. The half period is half of an inherent clock period of the resonant crystal oscillator. The length of the delay line is used as a standard for the clock period or clock frequency. The length of the delay line is stable, thereby improving the stability of the clock period or clock frequency standard, thereby introducing the clock period or clock frequency standard into the resonant interlocking mechanism; at the same time, the problem of the resonant crystal oscillator's automatic adjustment and capacitor attenuation lacking the ability to lock the standard frequency is solved. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0016] Figure 1 It is a schematic diagram of the structure of a resonant crystal oscillator and a capacitor;

[0017] Figure 2 It is a schematic diagram of the structure of setting the XOR gate and XOR gate by bringing out two clock signals;

[0018] Figure 3 This is a judgment diagram for an interval of half a period. DETAILED DESCRIPTION

[0019] To make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be described clearly and completely in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them.

[0020] Therefore, the following detailed description of the embodiments of the present invention is not intended to limit the scope of the invention claimed for protection, but merely represents some embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0021] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features and technical solutions in the embodiments may be combined with each other.

[0022] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0023] The present invention is further described in detail below with reference to the embodiments.

[0024] Example

[0025] like Figures 1 to 3 As shown, the present application provides a system for automatically correcting the frequency of a crystal oscillator, which includes: a quartz crystal oscillator, an XOR gate, a NOT gate, a capacitor and a delay line, wherein the capacitor includes a fixed capacitor and an adjustable capacitor, and the XOR gate includes a first XOR gate and a second XOR gate;

[0026] At least two identical quartz crystal oscillators are connected in parallel and packaged into a resonant crystal oscillator, and the voltage parameters and mechanical parameters of the resonant crystal oscillator are dynamically interlocked;

[0027] The power supply line and signal line of the resonant crystal oscillator are connected in series with a fixed capacitor and an adjustable capacitor respectively along the ground direction;

[0028] Based on the clock signal output end of the resonant crystal oscillator, the first clock signal and the second clock signal are led out at the same point, and are electrically connected to the signal input end of the first XOR gate, wherein a delay line is used in any one of the first clock signal and the second clock signal, and the delay period of the delay line is an integer multiple of the fixed clock period of the resonant crystal oscillator, and the output signal of the first XOR gate is used as an adjustment signal for adjusting the adjustable capacitor; two points separated by half a period are led out on the delay line, and are electrically connected to the input end of the second XOR gate, and the output end of the second XOR gate is connected in series with a NOT gate, and the output signal of the NOT gate is used as a control signal for controlling the adjustment signal of the first XOR gate, and the half period is half of an inherent clock period of the resonant crystal oscillator. It should be noted that the delay period of the delay line is an integer multiple of the fixed clock period of the resonant crystal oscillator, such as 1 times or 5 times. Preferably, the delay period of the delay line adopts a 1-time period of the fixed clock period of the resonant crystal oscillator, which has the advantage of reducing the probability of error occurrence and improving the accuracy of detection. It should be noted that the effect of setting an XOR gate at two points separated by half a period on the delay line is the same as the effect of connecting a NOT gate in series at the output end of the second XOR gate.

[0029] In order to better achieve the purpose of the present invention, in some embodiments of the present invention, further, at least two identical quartz crystal oscillators are connected in parallel. Specifically, the parallel quartz crystal oscillators are identical in shape and cutting structure, so that each identical quartz crystal oscillator has the same frequency. In the working state, the parallel quartz crystal oscillators are used to transfer mechanical energy in a combination of air conduction and mechanical transmission to form resonance, and automatically adjust the mechanical parameters of the resonant crystal oscillator, which include: vibration frequency, amplitude and phase; the natural frequencies of the parallel quartz crystal oscillators are the same, and after the resonance effect is formed, the mechanical vibration frequency, amplitude and phase of the parallel quartz crystal oscillators will gradually become the same; in the working state, the parallel resonant crystal oscillator is used, and the voltages at both ends have equal characteristics, and the voltage parameters of the resonant crystal oscillator are automatically adjusted, which include: change period, amplitude and phase; the resonant crystal oscillator on each branch , there are differences in the voltage change period, amplitude and phase. In the parallel circuit structure, the voltage change period, amplitude and phase of each resonant crystal oscillator on the branch are automatically adjusted to be the same; the parallel quartz crystal oscillators change the voltage change period, amplitude and phase of the resonant crystal oscillator in a resonant manner; the parallel resonant crystal oscillators will drive the parallel quartz crystal oscillators with the same voltage change period, amplitude and phase to form resonance; the parallel quartz crystal oscillators resonate, at least two resonant crystal oscillators are connected in parallel, and the mechanical vibration frequency, amplitude and phase of the resonant crystal oscillator are interlocked with the voltage change period, amplitude and phase of the resonant crystal oscillator. The resonant crystal oscillator has the following four adjustment mechanisms. The first adjustment mechanism is that the resonance of at least two quartz crystal oscillators adjusts the mechanical vibration frequency, amplitude and phase of the quartz crystal oscillators to the standard state under the resonant condition. The second adjustment mechanism is that the parallel resonant crystal oscillators adjust the voltage change period, amplitude and phase of the resonant crystal oscillators to the standard state of circuit parallel connection; the third adjustment mechanism is that the resonance generated by at least two quartz crystal oscillators makes the mechanical vibration frequency, amplitude and phase of each quartz crystal oscillator the same, and under the action of the piezoelectric effect, the voltage change period, amplitude and phase generated by each resonant crystal oscillator are the same; the fourth adjustment mechanism is that at least two crystal oscillation structures are connected in parallel, and the voltage change period, amplitude and phase of each resonant crystal oscillator are the same. Under the action of the piezoelectric effect, the mechanical vibration frequency, amplitude and phase generated by each quartz crystal oscillator are the same.

[0030] In order to better achieve the purpose of the present invention, in some embodiments of the present invention, it is further preferred to combine Figure 1As shown, two identical quartz crystal oscillators adopt a parallel structure. The two identical quartz crystal oscillators are packaged in the same housing to form a resonance effect. The smallest structural unit is used to achieve both function and cost saving. Specifically, the first quartz crystal oscillator V1 and the second quartz crystal oscillator V2 are connected in parallel and packaged in the same housing to form a resonant crystal oscillator. The power supply line and the signal line of the resonant crystal oscillator are connected in series along the grounding direction, respectively, with the first group of capacitors and the second group of capacitors. The first group of capacitors includes a first fixed capacitor C1 and a first adjustable capacitor C2, and the first fixed capacitor C1 and the first adjustable capacitor C2 are in a series structure; the second group of capacitors includes a second fixed capacitor C3 and a second adjustable capacitor C4, and the second fixed capacitor C3 and the second adjustable capacitor C4 are in a series structure. The capacitance values ​​of the first fixed capacitor C1 and the second fixed capacitor C3 are fixed, giving full play to the advantages of fixed capacitors, such as simple structure, small size, low cost, good stability, small parameter change, high reliability and long service life; the capacitance values ​​of the first adjustable capacitor C2 and the second adjustable capacitor C4 can be increased or decreased, and the adjustable capacitors can flexibly adjust the capacitance values, and introduce the first group of capacitors and the second group of capacitors into the dynamic interlocking mechanism of the voltage parameters and mechanical parameters of the resonant crystal oscillator, directly acting on the voltage parameters of the resonant crystal oscillator, and changing the mechanical parameters of the resonant crystal oscillator through the piezoelectric effect. The power supply line and the signal line of the resonant crystal oscillator are respectively provided with a first wiring point A and a second wiring point B along the reverse grounding direction, and the first wiring point A and the second wiring point B are connected to the oscillation circuit. It should be noted that C represents the nominal load capacitance of the resonant crystal oscillator, and C g Indicates the capacitance value of the first group of capacitors, C d represents the capacitance value of the second group of capacitors, Cs represents the capacitance value of the stray capacitance of the circuit board, C1 represents the capacitance value of the first fixed capacitor, C3 represents the capacitance value of the second fixed capacitor, C2 represents the real-time capacitance value of the first adjustable capacitor, and the real-time capacitance value is between the adjustable minimum capacitance value and the maximum capacitance value, and C4 represents the real-time capacitance value of the second adjustable capacitor, and the real-time capacitance value is between the adjustable minimum capacitance value and the maximum capacitance value. The specific formula is as follows:

[0031] C g = C1+ C2

[0032] C d = C3+ C4

[0033] C = (C g ×C d )÷(C g ×C d ) + Cs

[0034] × means multiplication, ÷ means division, and + means addition.

[0035] In order to better achieve the purpose of the present invention, in some embodiments of the present invention, it is further preferred that the first adjustable capacitor C2 and the second adjustable capacitor C4 are combined with a micro DC motor to form a device that uses a micromechanical structure to achieve adjustable capacitance. The first adjustable capacitor C2 and the second adjustable capacitor C4 include a fixed electrode, a movable electrode, a driving mechanism and an insulating layer. The fixed electrode: is usually located on the substrate and remains stationary; the movable electrode: is suspended above the fixed electrode and supported by a micromechanical structure (such as a cantilever beam, a spring, etc.); the micro DC motor: is used to control the position of the movable electrode, and common ones include electrostatic drive, piezoelectric drive, etc.; the insulating layer: is located between the two electrodes to prevent direct contact. The principle of parallel plate capacitors: the capacitance value is proportional to the area of ​​the plates and inversely proportional to the distance between the plates; the capacitance value is adjusted by changing the distance or overlapping area between the movable electrode and the fixed electrode; the driving mechanism (such as applying a voltage) causes the movable electrode to displace, thereby changing the electrode spacing or overlapping area; the capacitance value variation range depends on the structural design, material properties and driving capability. The specific adjustment methods include spacing adjustment and area adjustment. Spacing adjustment: changing the distance between the two electrodes; area adjustment: changing the overlapping area of ​​the two electrodes. The micro DC motor system has the advantages of small size, high integration, and high adjustment accuracy.

[0036] In order to better achieve the purpose of the present invention, in some embodiments of the present invention, further, the delay line uses a conductor, and a magnetic shielding layer is provided on the outer layer of the conductor to perform magnetic shielding. Figure 2 , the first wire L1 and the second wire L2 are both made of the same wire, and there is a wire length difference between the first wire L1 and the second wire L2, and the difference of the wire length difference is the length of the delay line, and the delay line includes an integer multiple of the length of the unit delay line, such as 1 times the length of the unit delay line or 10 times the length of the unit delay line. The first clock signal and the second clock signal are connected to the first wire L1 and the second wire L2 respectively. Specifically, the first clock signal is connected to the first wire L1, and the second clock signal is connected to the second wire L2; or, the first clock signal is connected to the second wire L2, and the second clock signal is connected to the first wire L1. The length of the unit delay line is S, the propagation speed of the clock signal in the wire is V, and the time of a unit clock cycle is t. The formula is:

[0037] S=V×t

[0038] The second wire L2 adopts a delay line, and the delay line of the second wire L2 is assembled in a winding manner, which has the advantage of reducing the space for packaging the second wire L2. The first wire L1 is provided with a first terminal N1 and a third terminal N3, and the second wire L2 is provided with a second terminal N2 and a fourth terminal N4; the first terminal N1 and the second terminal N2 are used as input terminals of the clock signal; the third terminal N3 and the fourth terminal N4 are used as output terminals of the clock signal; the third terminal N3 and the fourth terminal N4 are connected to the input terminal of the XOR gate, and the output terminal of the XOR gate controls the micro DC motor, and the output terminal of the XOR gate controls the micro DC motor. The capacitance values ​​of the first adjustable capacitor C2 and the second adjustable capacitor C4 are adjusted. Specifically, the length of the delay line is determined by the fixed or designed clock cycle of the resonant crystal oscillator. When the real-time clock cycle is the same as the fixed clock cycle, the output end of the XOR gate XOR is a low level, which has no effect on the micro DC motor; when the real-time clock cycle is different from the fixed clock cycle, the output end of the XOR gate XOR is a high level. The high level of the output end of the XOR gate XOR allows the micro DC motor to rotate, thereby adjusting the first adjustable capacitor C2 and the second adjustable capacitor C4.

[0039] In order to better achieve the purpose of the present invention, in some embodiments of the present invention, it is further preferred that an amplifier circuit is respectively provided at the first terminal N1 and the second terminal N2 to increase the voltage of the clock signal entering the first terminal N1 and the second terminal N2. It should be noted that this is to increase the load capacity of the clock signal entering the first terminal N1 and the second terminal N2.

[0040] In order to better achieve the purpose of the present invention, in some embodiments of the present invention, further, a commutation circuit is arranged between the output end of the XOR gate XOR and the micro DC motor, and the commutation circuit changes the rotation direction of the micro DC motor. For example, a bridge commutation circuit is adopted to control the micro DC motor to rotate clockwise or counterclockwise, so as to increase or decrease the capacitance values ​​of the first adjustable capacitor C2 and the second adjustable capacitor C4.

[0041] In order to better achieve the purpose of the present invention, in some embodiments of the present invention, further, a first middle point N5 and a second middle point N6 are set on the second wire L2; the length between the first middle point N5 and the second middle point N6 is the distance transmitted by half a cycle, and the half cycle is half of the fixed clock cycle of the resonant crystal oscillator. The length between the first middle point N5 and the second middle point N6 is the distance transmitted by half a cycle, which is conducive to simplifying the detection circuit and method, and can improve the accuracy of detection. The first intermediate point N5 and the second intermediate point N6 are connected to the input end of the XNOR gate, and the output signal of the XNOR gate and the timer jointly control the commutation circuit; there are three states for controlling the commutation circuit, the first state is the locking state, locking the capacitance value of the first adjustable capacitor C2 and the second adjustable capacitor C4, and the real-time clock cycle of the resonant crystal oscillator is equal to the fixed clock cycle; the second state is the increasing state, the real-time clock cycle of the resonant crystal oscillator is less than the fixed clock cycle, and the capacitance value of the first adjustable capacitor C2 and the second adjustable capacitor C4 is increased until the real-time clock cycle of the resonant crystal oscillator is equal to the fixed clock cycle; the third state is the decreasing state, the real-time clock cycle of the resonant crystal oscillator is greater than the fixed clock cycle, and the capacitance value of the first adjustable capacitor C2 and the second adjustable capacitor C4 is decreased until the real-time clock cycle of the resonant crystal oscillator is equal to the fixed clock cycle. It should be noted that the frequency and clock cycle of the resonant crystal oscillator are inversely proportional to each other, and adjusting the clock cycle is also adjusting the frequency.

[0042] In order to better achieve the purpose of the present invention, in some embodiments of the present invention, further, a timer is set at the output end of the XNOR gate; the first time scale T1 and the second time scale T2 are selected as the period scale, and the phase difference between the first time scale T1 and the second time scale T2 is half of the fixed clock period of the resonant crystal oscillator; the timer records the number and duration of the high level of the output signal of the XNOR gate within a clock period according to the real-time clock period. It should be noted that, in combination with Figure 2 and Figure 3As shown, the clock signal is transmitted from the first intermediate point N5 to the second intermediate point N6, the first intermediate point N5 corresponds to the signal of the first time scale T1 of the clock signal, and the second intermediate point N6 corresponds to the signal of the second time scale T2 of the clock signal; of course, it can also correspond in this way, the first intermediate point N5 corresponds to the signal of the second time scale T2 of the clock signal, and the second intermediate point N6 corresponds to the signal of the first time scale T1 of the clock signal. With the first time scale T1 and the second time scale T2 as the period scale, the transmitted clock signal is not limited by the transmission direction, for example, the clock signal CLK1 transmitted to the right, or the clock signal CLK2 transmitted to the left. Taking the real-time clock cycle of the resonant crystal oscillator as an example, which is equal to the fixed clock cycle, and taking one clock cycle as an example, the first high-level terminal D1 and the second high-level terminal D2 of the clock signal CLK1 correspond to the first time scale T1 and the second time scale T2; the third low-level terminal D3 and the fourth low-level terminal D4 of the clock signal CLK1 correspond to the first time scale T1 and the second time scale T2; let the output signal of the XNOR gate XNOR appear high level, and the high level appears twice in one clock cycle, and record the duration of the high level, and use it as the standard duration. Similarly, the fifth low-level terminal D5 and the sixth low-level terminal D6 of the clock signal CLK2 correspond to the first time scale T1 and the second time scale T2; the seventh high-level terminal D7 and the eighth high-level terminal D8 of the clock signal CLK2 correspond to the first time scale T1 and the second time scale T2; let the output signal of the XNOR gate XNOR appear high level, and the high level appears twice in one clock cycle, and record the duration of the high level, and use it as the standard duration. In the fine-tuning state, for example, the real-time clock cycle is within the range of half the fixed clock cycle and twice the fixed clock cycle; when the real-time clock cycle is within the range of half the fixed clock cycle and once the fixed clock cycle, within one real-time clock cycle, the output signal of the XNOR gate does not appear high; when the real-time clock cycle is within the range of once the fixed clock cycle and twice the fixed clock cycle, within one real-time clock cycle, although the output signal of the XNOR gate appears high twice, the duration of each high level is longer than the standard duration, so the judgment is made according to the timer.

[0043] It should be noted that for technical features that are not fully explained, conventional technical means are used.

[0044] The above embodiments are only used to illustrate the present invention and are not intended to limit the technical solutions described in the present invention. Although the present invention has been described in detail with reference to the above embodiments, the present invention is not limited to the above specific implementation methods. Therefore, any modification or equivalent replacement of the present invention; and all technical solutions and improvements thereof that do not depart from the spirit and scope of the invention are included in the scope of the claims of the present invention.

Claims

1. A system for automatically correcting the frequency of a crystal oscillator, comprising: A quartz crystal oscillator, an XOR gate, an XNOR gate, a capacitor and a delay line, wherein the capacitor includes a fixed capacitor and an adjustable capacitor; characterized in that at least two identical quartz crystal oscillators are connected in parallel and packaged into a resonant crystal oscillator; The voltage parameters and mechanical parameters are dynamically interlocked through a resonant crystal oscillator, and the adjustable capacitor is introduced into the dynamic interlocking adjustment mechanism; The power supply line and signal line of the resonant crystal oscillator are connected in series with a fixed capacitor and an adjustable capacitor respectively along the ground direction; The adjustment mechanism of the adjustable capacitor uses a micro motor. The high-level voltage provided by the output end of the XOR gate makes the micro motor rotate, thereby adjusting the capacitance value of the adjustable capacitor. The output signal of the XOR gate controls the output end of the XOR gate to increase, decrease or lock the adjustable capacitor. Based on the clock signal output end of the resonant crystal oscillator, a first clock signal and a second clock signal are led out at the same point and electrically connected to the signal input end of an XOR gate, wherein a delay line is used in any one of the first clock signal and the second clock signal, and the delay period of the delay line is an integer multiple of the fixed clock period of the resonant crystal oscillator, and the output signal of the XOR gate is used as an adjustment signal for adjusting the adjustable capacitor; two points separated by half a period are led out on the delay line and electrically connected to the input end of the XOR gate, and the output signal of the XOR gate is used as a control signal for controlling the adjustment signal of the XOR gate.

2. A system for automatically correcting the frequency of a crystal oscillator according to claim 1, wherein: The fixed capacitor includes a first fixed capacitor C1 and a second fixed capacitor C3, and the adjustable capacitor includes a first adjustable capacitor C2 and a second adjustable capacitor C4, and is characterized in that the power supply line and the signal line of the resonant crystal oscillator are connected in series along the grounding direction, respectively, and the first group of capacitors includes the first fixed capacitor C1 and the first adjustable capacitor C2, and the first fixed capacitor C1 and the first adjustable capacitor C2 are in a series structure; the second group of capacitors includes the second fixed capacitor C3 and the second adjustable capacitor C4, and the second fixed capacitor C3 and the second adjustable capacitor C4 are in a series structure.

3. The system for automatically correcting the frequency of a crystal oscillator according to claim 2, further comprising: The micro DC motor is characterized in that the first adjustable capacitor C2 and the second adjustable capacitor C4 are combined with the micro DC motor to form a device that uses a micro-mechanical structure to achieve adjustable capacitance value.

4. A system for automatically correcting the frequency of a crystal oscillator according to claim 1, characterized in that: The delay line adopts a conductive wire, and a magnetic shielding layer is arranged on the outer layer of the conductive wire.

5. The system for automatically correcting the frequency of a crystal oscillator according to claim 1, characterized in that: The first clock signal and the second clock signal are connected to the first wire L1 and the second wire L2 respectively.

6. The system for automatically correcting the frequency of a crystal oscillator according to claim 3, further comprising: The commutation circuit is characterized in that a commutation circuit is arranged between the output end of the XOR gate and the micro DC motor.

7. The system for automatically correcting the frequency of a crystal oscillator according to claim 1, further comprising: A timer, characterized in that the output signal of the XNOR gate sets the timer.

Citation Information

Patent Citations

  • Oscillation device and electronic equipment

    CN110649907A

  • Crystal oscillator driving circuit

    CN117691951A

  • Crystal oscillator based on resonance

    CN118054756A

  • Crystal oscillator control circuit and method

    CN118232909A

  • Tuning fork microresonator

    GB1379670A