An adaptive adjustment crystal oscillator amplitude detection circuit and a detection method thereof

By using an adaptively adjusted crystal oscillator amplitude detection circuit, and employing a current mirror circuit and a comparator CMP to detect the output amplitude of the crystal oscillator, the influence of process angle and temperature changes on the detection is resolved, thus achieving stable oscillation and rapid startup of the crystal oscillator.

CN117630464BActive Publication Date: 2026-11-27NEWRADIO TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202311499606.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-13
Publication Date
2026-11-27
Estimated Expiration
2043-11-13

AI Technical Summary

Technical Problem

Existing technologies fail to effectively consider process angle and temperature changes when detecting whether a crystal oscillator has fully started oscillating, resulting in a trade-off between oscillation stability and oscillation speed, which affects the performance of the crystal oscillator.

Method used

A current mirror circuit is constructed using branch 1, branch 2 and branch 3. The output amplitude of the crystal oscillator is detected by the comparator CMP, and the detection threshold is adaptively adjusted to adapt to process angle and temperature changes, so as to ensure the crystal oscillator has stable oscillation at startup while accelerating the startup speed.

Benefits of technology

It achieves stability and rapid start-up of crystal oscillator amplitude detection under process angle and temperature changes, provides greater design margin, and ensures the stability and speed of crystal oscillator.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117630464B_ABST
    Figure CN117630464B_ABST
Patent Text Reader

Abstract

The application provides a crystal oscillator amplitude detection circuit and a detection method thereof, and belongs to the technical field of crystal oscillator circuits. The detection circuit is connected to the output end of the crystal oscillator and comprises a branch 1 for detecting the output amplitude of the crystal oscillator, a branch 2 for generating a comparator input voltage varying with temperature and process angle, a branch 3 for generating a current required for the operation of the branches 1 and 2, and a comparator for comparing the input voltage generated by the branches 1 and 2. The threshold value for detecting whether the crystal oscillator is completely started is adaptively changed with the change of the temperature and the process angle, and the threshold value is slightly smaller than the amplitude at which the crystal oscillator is completely started. The auxiliary starting circuit of the crystal oscillator is turned off through the detection result, the starting stability of the crystal oscillator is ensured, the starting speed of the crystal oscillator is accelerated, greater design margin is brought, and the application can be widely used in oscillation circuits based on crystals.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of crystal oscillator circuit technology, and particularly relates to an adaptive adjustment crystal oscillator amplitude detection circuit and its detection method. Background Technology

[0002] Crystal oscillators (SOs) are commonly found in various communication systems, such as ultra-wideband communication and Bluetooth communication, to generate the low-noise clock signal required by the entire system. The startup time of a crystal oscillator is relatively long, typically on the order of milliseconds. Therefore, a startup circuit can be added outside the crystal oscillator circuit. This circuit only operates during the initial oscillation phase of the crystal oscillator; once the crystal oscillation has fully started, the startup circuit is turned off to save power.

[0003] To achieve the aforementioned function of disabling the additional startup circuit, it is a very common practice to determine whether the crystal oscillator has completed oscillation by detecting the output amplitude of the crystal oscillator. Specifically:

[0004] (1) The approach to detecting the amplitude of a crystal oscillator in patent CN110224689A is to detect the voltage amplitude of the crystal oscillator and adjust the current of the crystal oscillator startup circuit according to the voltage amplitude to make the crystal oscillator amplitude reach a preset value. To this end, this invention introduces a feedback amplifier that operates only during the startup phase, in addition to the feedback amplifier in the crystal oscillator circuit. In such cases... Figure 1 In the crystal oscillator fast start circuit shown, X is an external crystal; the external load capacitor C 1,1 and C 1,2 Used to stabilize the oscillation start-up circuit; feedback resistor R 1,1 The system is used to provide DC bias for the crystal oscillator starting circuit; the crystal oscillator starting circuit provides stable oscillation conditions for the external crystal; the gain control circuit detects the amplitude of the passive crystal oscillator and adjusts the current of the crystal oscillator starting circuit according to the amplitude of the passive crystal oscillator so that the amplitude of the passive crystal oscillator reaches the preset value; the DC voltage generating circuit connected to the crystal oscillator starting circuit generates a DC voltage signal based on the AC voltage signal output by the crystal oscillator starting circuit; the buffer circuit compares the output of the crystal oscillator starting circuit with the output of the DC voltage generating circuit, and determines whether the amplitude of the passive crystal oscillator has reached the preset value based on the comparison result. If the preset value is reached, the additional starting circuit current is turned off.

[0005] (2) Patent CN201410435976 is similar in concept to CN110224689A, proposing a feedback amplifier for starting the circuit to detect the amplitude of the crystal oscillator. In such cases... Figure 2 In the crystal oscillator fast start circuit shown, transistor M 2,1 M 2,3 M 2,4 M 2,5 M 2,6 M2,7 With resistance R 2,1, R 2,3 This forms a current mirror structure, providing appropriate bias current to each branch. Capacitor C 2,1 This forms an AC coupling circuit to transmit the amplitude information of the crystal oscillator to M. 2,1 VDD is the system power supply, and XO and XI are the port connections for the external crystal. This circuit monitors the crystal oscillator's amplitude in real time and compares it with a preset value Vbias. The automatic gain control circuit (i.e., M...)... 2,3 ,,M 2,5 M 2,6 M 2,7 The current flowing through the start-up amplifier is dynamically adjusted. When the crystal oscillator has not yet started or the amplitude is relatively small, the crystal oscillator can be started up quickly. As the amplitude of the crystal oscillator increases, the automatic gain control circuit gradually reduces the rated current flowing through the start-up amplifier, thereby enabling the crystal oscillator to start up quickly while achieving low power consumption.

[0006] While the aforementioned inventions successfully shut down the additional startup circuit by detecting the output amplitude of the crystal oscillator, both CN110224689A and CN201410435976 use preset values ​​to determine whether the crystal oscillator has fully started oscillating. This approach does not take into account the effects of process angles and temperature changes on the circuit, which leads to the following two significant problems:

[0007] (1) If the preset value is set too high, the output amplitude of the crystal oscillator after the oscillation is fully started may still be less than the preset value in some process corners. At this time, the additional start-up circuit cannot be shut off normally, which affects the oscillation stability of the crystal oscillator.

[0008] (2) If the preset value is set too small, the output amplitude of the crystal oscillator after oscillation is fully started will be much higher than the preset value under some process angles. In this case, the additional start-up circuit will be shut down too early, affecting the start-up speed of the crystal oscillator.

[0009] The two issues mentioned above are essentially a trade-off between oscillation stability and oscillation speed. To ensure oscillation stability at extreme process angles, it is necessary to sacrifice the oscillation speed at some process angles, resulting in greater performance costs. Summary of the Invention

[0010] The purpose of this invention is to overcome the shortcomings of existing technologies and propose an adaptively adjustable crystal oscillator amplitude detection circuit and its detection method. This invention has advantages such as high universality and high stability with changes in temperature and process angle.

[0011] This invention provides an adaptive adjustment crystal oscillator amplitude detection circuit, connected to the output of the crystal oscillator, comprising: branch 1, branch 2, branch 3, and comparator CMP;

[0012] Branch 1 consists of a first transistor NM1, a capacitive load C1, a resistive load R1, and a fourth transistor NM4, and is used to detect the output amplitude of the crystal oscillator; Branch 2 consists of a second transistor NM2 and a fifth transistor NM5, and is used to generate the input voltage of the comparator CMP; Branch 3 consists of a current source I1 and a third transistor NM3, and is used to generate the current required for the operation of Branch 1 and Branch 2.

[0013] The g-terminal of the first transistor NM1 is connected to the output terminal of the crystal oscillator, the d-terminal is connected to the power supply, and the s-terminal is connected to one end of the resistor R1 and the positive terminal of the capacitor C1, respectively; the negative terminal of the capacitor C1 is connected to ground; the g-terminal of the fourth transistor NM4 is connected to the g-terminal of the third transistor NM3 and the g-terminal of the fifth transistor NM5 to form a current mirror connection structure; the s-terminal of the fourth transistor NM4 is connected to ground, and the d-terminal is connected to the other end of the resistor R1; the g-terminal and d-terminal of the second transistor NM2 are connected to the power supply, and the s-terminal is connected to the d-terminal of the fifth transistor NM5; the s-terminal of the fifth transistor NM5 is connected to ground; the g-terminal and d-terminal of the third transistor NM3 are connected to the output terminal of the current source I1, and the s-terminal is connected to ground; wherein, the power supply is used to provide power supply voltage VDD for the crystal oscillator, branch 1, and branch 2, respectively;

[0014] The positive input of the comparator CMP is connected to the source (s) terminal of the first transistor NM1, and the negative input is connected to the source (s) terminal of the second transistor NM2; the comparator CMP is used to compare the magnitudes of the input voltages generated by branch 1 and branch 2.

[0015] In one specific embodiment of the present invention, the transistor is an n-type transistor.

[0016] In a specific embodiment of the present invention, the detection circuit operates as follows:

[0017] When the crystal oscillator has no output, the g terminal of the first transistor NM1 has no input, and the fourth transistor NM4 discharges the capacitor C1 through the resistor R1 until the capacitor C1 is discharged to ground.

[0018] When the crystal oscillator has an output, a periodic signal appears at the g terminal of the first transistor NM1. The first transistor NM1 repeatedly charges the capacitor C1 at the crystal resonant frequency. The voltage on the capacitor C1 is gradually charged to the amplitude of the periodic signal appearing at the g terminal of the first transistor NM1, which is the output amplitude of the crystal oscillator. At this time, the voltage at the s terminal of the first transistor NM1 is:

[0019] V S,NM1 =V XO -V GS,1 (1)

[0020] Among them, V XO The output amplitude of the crystal oscillator is VDD, with a maximum value equal to the power supply voltage. The voltage V between the g and s terminals of the first transistor NM1 is V. GS,1 for:

[0021]

[0022] Among them, I NM4 Let be the current from the d-terminus of the fourth transistor NM4 to the s-terminus, μ be the electron mobility of the transistor, and C be the current from the d-terminus of the transistor to the s-terminus of the transistor. ox This represents the gate oxide capacitance per unit area. V represents the aspect ratio of the first transistor NM1. th,NM1 The threshold voltage of the first transistor NM1; L represents the transistor length, and W represents the transistor width;

[0023] Since the g terminal of the second transistor NM2 is connected to the power supply, the voltage at the s terminal of NM2 is:

[0024]

[0025] Where VDD is the power supply voltage, I NM5 Let be the current from the d-terminal to the s-terminal of transistor NM5. V represents the aspect ratio of the second transistor NM2. th,NM2 is the threshold voltage of transistor NM2.

[0026] This invention also proposes a crystal oscillator amplitude detection method based on the above-described detection circuit, comprising:

[0027] When the crystal oscillator starts oscillating, the waveform amplitude at the output terminal of the crystal oscillator is small. Therefore, the voltage input to the comparator CMP in branch 1 is less than the voltage input to the comparator CMP in branch 2. The comparator CMP outputs a low level, indicating that the crystal oscillator has not finished oscillating.

[0028] When the crystal oscillator is nearing the end of its oscillation, the output waveform of the crystal oscillator is close to the power supply voltage VDD. Then, the voltage input to the comparator CMP in branch 1 is greater than the voltage input to the comparator CMP in branch 2. The comparator CMP outputs a high level, indicating that the crystal oscillator has finished oscillating, thus completing the amplitude detection of the crystal oscillator.

[0029] The features and beneficial effects of this invention are as follows:

[0030] The detection circuit of this invention uses branches 1, 2, and 3 to form a current mirror circuit, replicating the current of the reference current source I1. This minimizes the impact of process angle and temperature on the crystal oscillator amplitude detection result. The output voltage of branch 1 follows the crystal oscillator amplitude, while the output voltage of branch 2 follows the power supply voltage. This invention solves the problem in existing technologies where detection stability is affected by temperature and process angle. The threshold for detecting whether the crystal oscillator is fully oscillating adaptively changes with process angle and temperature, ensuring that this threshold is slightly less than the amplitude required for full oscillation. While ensuring the oscillation stability of the crystal oscillator, it accelerates the oscillation speed, providing greater design margin. This invention can be widely applied to crystal-based oscillation circuits. Attached Figure Description

[0031] Figure 1 This is a schematic diagram of a crystal oscillator fast start-up circuit from patent CN110224689A;

[0032] Figure 2 This is a schematic diagram of a crystal oscillator fast start-up circuit according to patent CN201410435976;

[0033] Figure 3 This is a schematic diagram of the structure of an adaptively adjustable crystal oscillator amplitude detection circuit according to an embodiment of the present invention. Detailed Implementation

[0034] This invention proposes an adaptively adjustable crystal oscillator amplitude detection circuit and its detection method, which are described in detail below with reference to embodiments and accompanying drawings:

[0035] This invention proposes an adaptively adjustable crystal oscillator amplitude detection circuit, the structure of which is as follows: Figure 3 As shown, the adaptively adjusted crystal oscillator amplitude detection circuit is connected to the output of the crystal oscillator (Cystal osc) and includes branch 1, branch 2, branch 3, and comparator CMP.

[0036] Branch 1 consists of a source-follower transistor NM1, a capacitive load C1, a resistive load R1, and a transistor NM4 used as a current mirror, for detecting the output amplitude of the crystal oscillator; Branch 2 consists of a source-follower transistor NM2 and a transistor NM5, for generating a comparator input voltage that varies with the temperature process angle; Branch 3 consists of a current source I1 and a transistor NM3, for generating the current required for the operation of Branch 1 and Branch 2.

[0037] Furthermore, the g-terminal of transistor NM1 is connected to the output terminal of the crystal oscillator, the d-terminal is connected to the power supply, and the s-terminal is connected to one end of the resistor R1 and the positive terminal of the capacitor C1; the negative terminal of capacitor C1 is connected to ground; the g-terminal of transistor NM4 is connected to the g-terminals of transistors NM3 and NM5 respectively to form a current mirror connection structure; the s-terminal of transistor NM4 is connected to ground, and the d-terminal is connected to the other end of resistor R1. The g-terminal and d-terminal of transistor NM2 are connected to the power supply, and the s-terminal is connected to the d-terminal of transistor NM5. The s-terminal of transistor NM5 is connected to ground. The g-terminal and d-terminal of transistor NM3 are connected to the output terminal of current source I1, and the s-terminal is connected to ground. The power supply is used to provide the power supply voltage VDD to the crystal oscillator, branch 1, and branch 2 respectively.

[0038] The positive input of comparator CMP is connected to the source (s) terminal of transistor NM1 in branch 1, and the negative input is connected to the source (s) terminal of transistor NM2 in branch 2. Comparator CMP compares the input voltages generated by branch 1 and branch 2: if the input voltage generated by branch 1 is greater than the input voltage generated by branch 2, comparator CMP outputs a high level, indicating that the crystal oscillator has finished oscillating. Based on this output, the auxiliary oscillation circuit of the crystal oscillator can be turned off to save power. If the input voltage generated by branch 1 is less than the input voltage generated by branch 2, comparator CMP outputs a low level, indicating that the crystal oscillator has not finished oscillating.

[0039] The adaptively adjustable crystal oscillator amplitude detection circuit described in this invention has no special requirements in terms of component selection. In this embodiment, all transistors are of the same type, namely n-type transistors, although their sizes may differ.

[0040] Furthermore, the working principle of the adaptively adjusted crystal oscillator amplitude detection circuit described in this invention is as follows:

[0041] When the crystal oscillator has no output, there is no input at the g terminal of NM1, and NM4 discharges capacitor C1 through resistor R1 until capacitor C1 is discharged to ground. When the crystal oscillator has an output, a periodic signal (usually a square wave or sine wave with the frequency of the crystal resonant frequency) appears at the g terminal of NM1. NM1 repeatedly charges capacitor C1 at the crystal resonant frequency. Since the charging current of NM1 is much greater than the discharging current of NM4, the voltage on capacitor C1 will be gradually charged to the amplitude of the periodic signal appearing at the g terminal of NM1, which is the output amplitude of the crystal oscillator. At this time, the voltage at the s terminal of NM1 can be expressed as follows:

[0042] V S,NM1 =V XO -V GS,1 (1)

[0043] Among them, V XOThe output amplitude of the crystal oscillator is VDD, with a maximum value equal to the power supply voltage. The voltage V between the g and s terminals of transistor NM1 is... GS,1 It can be calculated using the following expression:

[0044]

[0045] Among them, I NM4 Let be the current from the d-terminus of transistor NM4 to the s-terminus, μ be the electron mobility of the transistor (all transistors of the same type manufactured using the same process have the same electron mobility), and C be the current from the d-terminus of transistor NM4 to the s-terminus of transistor NM4. ox This represents the gate oxide capacitance per unit area. V represents the aspect ratio of transistor NM1. th,NM1 This is the threshold voltage of transistor NM1. In this embodiment, all transistors have the same length L, but different widths W.

[0046] Branch 2 consists of a source-follower transistor NM2 and a current mirror NM5. Since the g terminal of NM2 is connected to the power supply, the voltage at the s terminal of NM2 is:

[0047]

[0048] Where VDD is the power supply voltage, I NM5 Let be the current from the d-terminus to the s-terminus of transistor NM5, μ be the electron mobility of the transistor, and C be the current from the d-terminus to the s-terminus. ox This represents the gate oxide capacitance per unit area. V represents the aspect ratio of transistor NM2. th,NM2 is the threshold voltage of transistor NM2.

[0049] In this embodiment, combining equations (1), (2), and (3), it can be obtained that, assuming the threshold voltage of NM1 is not significantly different from the threshold voltage of NM2, by adjusting the dimensions of NM1, NM2, NM4, and NM5, while satisfying... Under the condition that the crystal oscillator is fully oscillating, i.e., V XO When = VDD, V S,NM1 >V S,NM2 This conclusion is independent of the VDD value, that is, independent of changes in process angle and temperature.

[0050] Furthermore, this embodiment of the invention also proposes a crystal oscillator amplitude detection method based on the above-described detection circuit, comprising:

[0051] When the crystal oscillator starts oscillating, the waveform amplitude at the output terminal of the crystal oscillator is small. The voltage generated across resistor R1 and capacitor C1 is less than the voltage generated by transistor NM2 in branch 2. That is, the voltage at comparator CMP in branch 1 is less than the voltage at comparator CMP in branch 2. At this time, the comparison result of comparator CMP is low, indicating that the crystal oscillator has not finished oscillating.

[0052] When the crystal oscillator is nearing the end of its oscillation, its output waveform is close to the power supply voltage VDD. The voltage generated across resistor R1 and capacitor C1 is greater than the voltage generated by transistor NM2 in branch 2. That is, the voltage input to comparator CMP in branch 1 is greater than the voltage input to comparator CMP in branch 2. At this time, the comparator CMP outputs a high level, indicating that the crystal oscillator has finished oscillating. At this point, the fast start-up module in the crystal oscillator circuit is turned off to reduce the power consumption of the crystal oscillator, thus completing the amplitude detection of the crystal oscillator.

Claims

1. An adaptively adjustable crystal oscillator amplitude detection circuit, connected to the output terminal of a crystal oscillator, characterized in that, include: Branch 1, Branch 2, Branch 3, Comparator CMP; Branch 1 consists of a first transistor NM1, a capacitor C1, a resistor R1, and a fourth transistor NM4, and is used to detect the output amplitude of the crystal oscillator; Branch 2 consists of a second transistor NM2 and a fifth transistor NM5, and is used to generate the input voltage of the comparator CMP; Branch 3 consists of a current source I1 and a third transistor NM3, and is used to generate the current required for the operation of Branch 1 and Branch 2. The g-terminal of the first transistor NM1 is connected to the output terminal of the crystal oscillator, the d-terminal is connected to the power supply, and the s-terminal is connected to one end of the resistor R1 and the positive terminal of the capacitor C1, respectively; the negative terminal of the capacitor C1 is connected to ground; the g-terminal of the fourth transistor NM4 is connected to the g-terminal of the third transistor NM3 and the g-terminal of the fifth transistor NM5 to form a current mirror connection structure; the s-terminal of the fourth transistor NM4 is connected to ground, and the d-terminal is connected to the other end of the resistor R1; the g-terminal and d-terminal of the second transistor NM2 are connected to the power supply, and the s-terminal is connected to the d-terminal of the fifth transistor NM5; the s-terminal of the fifth transistor NM5 is connected to ground; the g-terminal and d-terminal of the third transistor NM3 are connected to the output terminal of the current source I1, and the s-terminal is connected to ground; wherein, the power supply is used to provide power supply voltage VDD for the crystal oscillator, branch 1, and branch 2, respectively; The positive input of the comparator CMP is connected to the source (s) terminal of the first transistor NM1, and the negative input is connected to the source (s) terminal of the second transistor NM2; the comparator CMP is used to compare the magnitudes of the input voltages generated by branch 1 and branch 2.

2. The detection circuit according to claim 1, characterized in that, The transistor is an n-type transistor.

3. The detection circuit according to claim 1, characterized in that, The working principle of the detection circuit is as follows: When the crystal oscillator has no output, the g terminal of the first transistor NM1 has no input, and the fourth transistor NM4 discharges the capacitor C1 through the resistor R1 until the capacitor C1 is discharged to ground. When the crystal oscillator has an output, a periodic signal appears at the g terminal of the first transistor NM1. The first transistor NM1 repeatedly charges the capacitor C1 at the crystal resonant frequency. The voltage on the capacitor C1 is gradually charged to the amplitude of the periodic signal appearing at the g terminal of the first transistor NM1, which is the output amplitude of the crystal oscillator. At this time, the voltage at the s terminal of the first transistor NM1 is: (1) in, The output amplitude of the crystal oscillator is VDD, with a maximum value equal to the power supply voltage. The voltage between the g and s terminals of the first transistor NM1 is... for: (2) in, Let be the current from the d-terminus of the fourth transistor NM4 to the s-terminus, and μ be the electron mobility of the transistor. This represents the gate oxide capacitance per unit area. The aspect ratio of the first transistor NM1 is... The threshold voltage of the first transistor NM1; L represents the transistor length, and W represents the transistor width; Since the g terminal of the second transistor NM2 is connected to the power supply, the voltage at the s terminal of NM2 is: (3) Where VDD is the power supply voltage. Let be the current from the d-terminal to the s-terminal of transistor NM5. The aspect ratio of the second transistor NM2 is... is the threshold voltage of transistor NM2.

4. A method for detecting the amplitude of a crystal oscillator based on the detection circuit described in any one of claims 1-3, characterized in that, include: When the crystal oscillator starts oscillating, the waveform amplitude at the output terminal of the crystal oscillator is small. Therefore, the voltage input to the comparator CMP in branch 1 is less than the voltage input to the comparator CMP in branch 2. The comparator CMP outputs a low level, indicating that the crystal oscillator has not finished oscillating. When the crystal oscillator is nearing the end of its oscillation, the output waveform of the crystal oscillator is close to the power supply voltage VDD. Then, the voltage input to the comparator CMP in branch 1 is greater than the voltage input to the comparator CMP in branch 2. The comparator CMP outputs a high level, indicating that the crystal oscillator has finished oscillating, thus completing the amplitude detection of the crystal oscillator.

Citation Information

Patent Citations

  • Rapid low-power-consumption crystal oscillator starting circuit

    CN104270113A

  • Oscillation circuit

    CN110224689A

  • Fast oscillation starting crystal oscillator, electronic system and method

    CN108521268A

  • Very low power consumption quartz crystal oscillation circuit

    CN109274334A