High-frequency crystal oscillator based on automatic phase error correction

By adopting phase error automatic correction technology in the high-frequency crystal oscillator, the injection signal phase is adjusted in real time, which solves the problem of low energy injection efficiency caused by phase error during the startup process, achieves fast and stable high-frequency crystal oscillation, and improves the efficiency of the injection signal. Crystal oscillator performance and reliability.

WO2024103589A9PCT designated stage expired Publication Date: 2024-10-31NANJING UNIV OF POSTS & TELECOMM +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/083227
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-11-14
Filing Date
2023-03-23
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

The existing high-frequency crystal oscillator has a phase error during the startup process, which reduces the energy injection efficiency, making it impossible to monitor the injection situation in real time, and the frequency accuracy of the injection signal source is high, which limits the rapid startup and stable oscillation of the crystal.

Method used

Using a high-frequency crystal oscillator design based on automatic correction of phase errors, the phase error between the injected signal and the oscillation signal is detected in real time through a twisted ring counter and a peak detector, and the phase of the injected signal is automatically adjusted through a digital module and multiplexer to ensure the phase The error is within 45°, achieving single-ended injection and high-efficiency energy injection.

Benefits of technology

It achieves real-time monitoring and optimization of the injection process, reduces the frequency accuracy requirements of the injection signal source, extends the effective injection time, improves the startup speed and stability of the crystal oscillator, and significantly improves the chip yield.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023083227_31102024_PF_FP_ABST
    Figure CN2023083227_31102024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present invention is a high-frequency crystal oscillator based on automatic phase error correction. The high-frequency crystal oscillator comprises a high-frequency crystal, a load capacitor, two single-pole double-throw switches, a ring oscillator, an 8-frequency-dividing circuit, a twisted ring counter, a peak detector, a buffer, a digital module, a multiplexer and an amplifier. In the present invention, when a circuit performs energy injection on a high-frequency crystal, a phase error between an injection signal and a crystal oscillation signal is also detected and automatically corrected, such that the phase error is always less than 45 degrees. The present invention ensures the continuous and efficient linear growth in the energy inside a high-frequency crystal, and greatly shortens the starting time required for the crystal to reach a stable oscillation amplitude, thereby realizing rapid starting; and on the basis of automatic phase error correction technology, the present invention greatly reduces the signal source frequency precision requirements for generating an energy injection signal whilst greatly shortening the starting time, and the present invention significantly improves the chip yield.
Need to check novelty before this filing date? Find Prior Art

Description

A high-frequency crystal oscillator based on automatic phase error correction Technical Field

[0001] The invention belongs to the technical field of integrated circuits. Background Art

[0002] Crystal oscillators are widely used in integrated circuits and are fundamental components for frequency multiplication in phase-locked loop systems. Their startup time affects the data transmission and reception intervals of the entire system and plays a decisive role in the power consumption of systems operating in a duty cycle mode. With the rapid development of integrated circuits and the increasing popularity of low-power applications, designing a fast-starting, high-frequency crystal oscillator is crucial.

[0003] Currently, there are two main structures for fast-start high-frequency crystal oscillators: one based on a traditional transconductance amplifier and the other based on energy injection. The traditional transconductance amplifier-based fast-start high-frequency crystal oscillator relies primarily on the negative resistance of the circuit to start, supplemented by load regulation technology, allowing the high-frequency crystal to achieve a large loop gain during startup to achieve fast startup. However, the implementation of this method is limited by the initial energy state of the crystal. The transconductance amplifier needs to amplify and frequency-select the weak noise signal in the crystal. Even with other auxiliary technologies, its startup time can only be relatively reduced, not significantly reduced. The energy injection-based fast-start high-frequency crystal oscillator uses energy injection to help the crystal establish its energy state and complete frequency selection in a relatively short period of time. After the crystal amplitude reaches the expected amplitude, the energy injection is disconnected and the crystal is connected to the amplifier to maintain the crystal's steady-state oscillation.

[0004] Energy injection is currently the mainstream fast-start solution. Compared to traditional amplifiers, energy injection offers the advantage of significantly reducing the crystal's frequency-selective amplification time, rapidly increasing energy in a short period of time, and significantly reducing startup time. However, most current energy injection methods utilize a two-ended injection method, performing differential injection at both ends of the crystal. Since both ends of the crystal receive a square wave injection signal during the injection process, the injection effect cannot be determined until the injection is complete. Therefore, current mainstream energy injection methods are blind and lack real-time monitoring of the injection process, making it impossible to determine its effectiveness or the optimal injection duration. Furthermore, energy injection efficiency is dependent on the phase error between the injection signal and the oscillating signal, significantly decreasing when the phase error exceeds 45°. Since the injection signal frequency and the oscillating frequency cannot be exactly equal, the frequency difference between them leads to the accumulation of phase error over time. Therefore, the energy injection time of current mainstream energy injection schemes is limited by the frequency difference between the injection signal and the oscillating frequency. For larger frequency errors, the energy gained by the crystal from the energy injection process is minimal. This is because a larger frequency difference results in rapid phase error accumulation and less energy injection.

[0005] Summary of the Invention

[0006] Purpose of the invention: In order to solve the problems existing in the above-mentioned prior art, the present invention provides a high-frequency crystal oscillator based on automatic correction of phase error.

[0007] Technical solution: The present invention provides a high-frequency crystal oscillator based on automatic phase error correction, comprising a high-frequency crystal, first and second load capacitors, a ring oscillator, an 8-frequency divider circuit, a twisted ring counter, a peak detector, a buffer, a digital module, a multiplexer, an amplifier, and first and second single-pole double-throw switches; one end of the high-frequency crystal is denoted as XO IN , the other end is marked as XO OUT The fixed end of the first single-pole double-throw switch and the high-frequency crystal XO IN The first active end of the first single-pole double-throw switch is connected to the multiplexer, and the second active end is connected to one end of the first capacitor and the input end of the amplifier; the fixed end of the second single-pole double-throw switch is connected to the XO of the high-frequency crystal. OUT The first movable end of the second single-pole double-throw switch is connected to the peak detector, the second movable end is connected to one end of the second capacitor and the output end of the amplifier, and the other ends of the first and second capacitors are grounded;

[0008] When starting the high-frequency crystal oscillator, a digital module is used to generate a switch control signal EN INJ, control the fixed end of the first single-pole double-throw switch to connect to the first movable end of the first single-pole double-throw switch, control the fixed end of the second single-pole double-throw switch to connect to the first movable end of the second single-pole double-throw switch; at the same time, the ring oscillator generates a square wave signal F 64× The square wave signal is transmitted to the 8-frequency divider circuit and the peak detector; the 8-frequency divider circuit divides the square wave signal to generate a frequency-divided signal F 8× , and F 8× Transmitted to the twisted ring counter, the twisted ring counter F 8× Re-dividing the frequency generates 8 signals Phase[7:0] with the same frequency but different phases, and transmits the signal Phase[7:0] to the multiplexer; the peak detector also receives the high frequency crystal XO OUT The output signal PKD IN , the peak detector uses a square wave signal F 64× As a high-frequency working clock, it outputs the pulse signal PKD OUT Reflecting signal PKD IN The peak position of the pulse signal PKD OUT Transmitted to the buffer, the buffer expands the pulse signal PKD OUT The negative pulse width is used to obtain the expanded pulse signal BUFF OUT , and BUFF OUT Transmitted to the digital module; the digital module generates an initial control signal EN[7:0], which is an 8-bit control signal, and the digital module determines the signal PD IN and signal BUFF OUT The edge relationship between the control signal EN[7:0] is switched, and the switched control signal EN[7:0] is transmitted to the multiplexer; the multiplexer is configured to switch the control signal EN[7:0] according to the square wave signal F 64× The frequency and control signal EN[7:0], select a signal from the signal Phase[7:0] and record it as signal PD IN Input to the digital module; the multiplexer also selects a signal in the signal Phase[7:0] as the injection signal according to the control signal EN[7:0] and injects it into the XO of the high-frequency crystal through the first single-pole double-throw switch IN The injection signal is coupled to the XO through a high frequency crystal. OUT end, and the high frequency oscillation signal F generated by the high frequency crystal OSC In XO OUT After end superposition, the signal PKD is obtained IN , signal PKD IN input to the peak detector via a second single-pole double-throw switch;

[0009] In the maintenance phase, the control signal ENINJ The fixed end of the first single-pole double-throw switch is controlled to be connected to the second movable end of the first single-pole double-throw switch, and the fixed end of the second single-pole double-throw switch is controlled to be connected to the second movable end of the second single-pole double-throw switch.

[0010] Furthermore, the twisted ring counter includes first to fourth triggers; the first to fourth triggers are all D triggers, each having a data input terminal, a clock control terminal, a first output terminal and a second output terminal, the signal output by the second output terminal is an inverted signal of the signal output by the first output terminal; the clock control terminals of the first to fourth triggers are all connected to the signal F 8× ;

[0011] The data input of the first trigger is connected to the first output of the fourth trigger. The signal output from the first output of the first trigger is recorded as the first bit signal in Phase[7:0] as Phase[0], and is connected to the data input of the second trigger. The signal output from the first output of the second trigger is recorded as the second bit signal in Phase[7:0] as Phase[1], and is connected to the data input of the third trigger. The signal output from the first output of the third trigger is recorded as the third bit signal in Phase[7:0] as Phase[2], and is connected to the data input of the first trigger. The data input terminals of the four flip-flops are connected; the signal output from the first output terminal of the fourth flip-flop is used as the fourth bit signal in Phase[7:0] and is recorded as Phase[3]; the signals output from the second output terminals of the first to fourth flip-flops are used as the fifth, sixth, seventh and eighth bit signals in Phase[7:0], respectively, and are recorded as Phase[4], Phase[5], Phase[6] and Phase[7]; the phase of the signal Phase[j] is 45° ahead of the phase of the signal Phase[j+1], where j=0, 1, 2, ... 6.

[0012] Furthermore, the peak detector includes a dynamic comparator, a third capacitor, a PMOS transistor, an NMOS transistor and a current source; the inverting input terminal of the dynamic comparator is connected to the signal PKD as the input terminal of the peak detector. IN The non-inverting input terminal of the dynamic comparator is connected to the drain of the NMOS tube and one end of the third capacitor; the source of the NMOS tube and the other end of the third capacitor are both grounded; the output terminal of the dynamic comparator is connected to the gate of the PMOS tube as the output terminal of the peak detector, the source of the PMOS tube is connected to the power supply voltage VDD through the current source, and the drain of the PMOS tube is connected to one end of the third capacitor; the clock input signal of the dynamic comparator is the signal F 64× .

[0013] Furthermore, the multiplexer selects a signal in the signal Phase[7:0] as the injection signal according to the control signal EN[7:0]: when the i-th signal EN[i] in the signal EN[7:0] is 1, the i-th signal Phase[i] in the signal Phase[7:0] is selected as the injection signal, 0≤i≤7.

[0014] Furthermore, the digital module further determines the signal PD IN and signal BUFF OUT The edge relationship between them is as follows:

[0015] If the i-th control signal EN[i] in the current control signal EN[7:0] is 1, and F 64× >64×F OSC When the digital module is in PD IN Detect signal BUFF at the specified rising edge OUT If BUFF OUT If BUFF is 1, set EN[i] to 0 and EN[i+1] to 1. If i=7, set EN[7] to 0 and EN[0] to 1. OUT If it is 0, EN[i]=1 remains unchanged; 0≤i≤7;

[0016] If the i-th control signal EN[i] in the current control signal EN[7:0] is 1, and F 64× <64×F OSC When the digital module is in PD IN BUFF is detected at the specified falling edge OUT If BUFF OUT If BUFF is 1, EN[i]=1 remains unchanged. OUT If EN[i] is 0, set EN[i-1] to 1. If i=0, set EN[0] to 0 and EN[7] to 1.

[0017] If the i-th control signal EN[i] in the current control signal EN[7:0] is 1, and F 64× =64×F OSC When EN[i]=1 is kept unchanged during the process of starting the high-frequency crystal oscillator.

[0018] Furthermore, the multiplexer is configured to generate a square wave signal F. 64× The frequency and control signal EN[7:0], select a signal from the signal Phase[7:0] and record it as signal PD IN Specifically:

[0019] If the i-th control signal EN[i] in the current control signal EN[7:0] is 1, and F 64× >64×F OSC When the multiplexer selects the i+1th signal Phase[i+1] from the signal Phase[7:0] as the signal PD IN If i=7, the multiplexer selects signal Phase[0] as signal PD IN ;0≤i≤7;

[0020] If the i-th control signal EN[i] in the current control signal EN[7:0] is 1, and F 64× <64×F OSC When the multiplexer selects the signal Phase[i-1] as the signal PD IN ; If i = 0, the multiplexer selects signal Phase[7] as signal PD IN .

[0021] Furthermore, the digital module also receives the injection signal Phase SEL , when starting the high frequency crystal oscillator, the switch control signal EN INJ is 1, and for Phase SEL The falling edge of the signal is counted. When the count value reaches the preset number of times, the digital module will EN INJ Set to 0.

[0022] Beneficial effects: The present invention adopts single-ended injection, which can detect the injection situation in real time, avoid the blindness of injection, and ensure continuous and efficient energy injection with a large amplitude; at the same time, combined with the current injection technology's requirements for the frequency accuracy of the injection source, the present invention provides a phase error automatic correction technology. Even for a large frequency error, the phase error can be automatically corrected through the technology of phase error, so that the phase error is always kept within 45°, extending the effective injection time and ensuring efficient energy injection, greatly reducing the frequency accuracy requirements of the signal source that generates the energy injection signal, breaking the previous strict restrictions on the frequency accuracy of the injection signal source on the high-frequency crystal startup time, thereby reducing the accuracy requirements of the injection signal source design and calibration on the high-frequency crystal oscillator circuit chip, and significantly improving the chip yield. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] FIG1 is an overall circuit diagram of the present invention;

[0024] FIG2 is a circuit diagram of a twisted ring counter according to the present invention;

[0025] FIG3 is a circuit diagram of a peak detector according to the present invention;

[0026] FIG4 is a simulation waveform diagram of the ring oscillator, the divide-by-8 frequency circuit, and the twisted ring counter when the frequency of the high-frequency crystal oscillator of the present invention is 24 MHz and the frequency of the ring oscillator is 1.54368 GHz (>64×24 MHz);

[0027] FIG5 is a waveform diagram of the working timing simulation of the digital module detecting phase error when the frequency of the high-frequency crystal oscillator of the present invention is 24 MHz and the frequency of the ring oscillator is 1.54368 GHz (>64×24 MHz);

[0028] FIG6 is a simulation waveform diagram of the digital module continuously changing the injection signal phase control word according to the preset logic when the frequency of the high-frequency crystal oscillator of the present invention is 24 MHz and the frequency of the ring oscillator is 1.54368 GHz (>64×24 MHz);

[0029] FIG7 is a simulation waveform diagram of the high-frequency crystal and the amplifier when the frequency of the high-frequency crystal oscillator is 24 MHz and the frequency of the ring oscillator is 1.54368 GHz (>64×24 MHz) according to the present invention;

[0030] FIG8 is a simulation waveform diagram of the ring oscillator, the divide-by-8 frequency circuit, and the twisted ring counter when the frequency of the high-frequency crystal oscillator of the present invention is 24 MHz and the frequency of the ring oscillator is 1.52832 GHz (<64×24 MHz);

[0031] FIG9 is a waveform diagram of the working timing simulation of the digital module detecting phase error when the frequency of the high-frequency crystal oscillator of the present invention is 24 MHz and the frequency of the ring oscillator is 1.52832 GHz (<64×24 MHz);

[0032] FIG10 is a simulation waveform diagram of the digital module continuously changing the injection signal phase control word according to the preset logic when the frequency of the high-frequency crystal oscillator of the present invention is 24 MHz and the frequency of the ring oscillator is 1.52832 GHz (<64×24 MHz);

[0033] FIG11 is a simulation waveform diagram of the high-frequency crystal and the amplifier when the frequency of the high-frequency crystal oscillator is 24 MHz and the frequency of the ring oscillator is 1.52832 GHz (<64×24 MHz). DETAILED DESCRIPTION

[0034] The accompanying drawings, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0035] As shown in FIG1 , this embodiment provides a high-frequency crystal oscillator based on automatic phase error correction, including a high-frequency crystal, a load capacitor C L1 and CL2 , ring oscillator RO, 8-frequency division circuit, twisted ring counter, peak detector, buffer Buffer, digital module, multiplexer MUX and amplifier; the high-frequency crystal is a two-terminal component used to accurately generate a frequency of F OSC The high frequency oscillation signal, the left end of which is XO IN Used to inject energy, the right end is XO OUT For phase detection; the load capacitance C L1 and C L2 Both are two-terminal components, used to calibrate the oscillation frequency of high-frequency crystals, C L1 The lower plate is grounded, C L1 Upper plate and amplifier input AMP IN Connected, C L2 The lower plate is grounded, C L2 Upper plate and amplifier output AMP OUT The SPDT switches SW1 and SW2 are used to switch between the energy injection and oscillation modes. The fixed end of SW1 is connected to the high-frequency crystal XO IN The upper end of SW1 is connected to one of the output ends of the multiplexer MUX, and the lower end of SW1 is connected to C L1 Upper plate and amplifier input AMP IN Connected, the fixed end of SW2 is connected to the high frequency crystal XO OUT The upper end of SW2 is connected to the input of the peak detector, and the lower end of SW2 is connected to C L2 Upper plate and amplifier output AMP OUT The ring oscillator RO is used to generate a frequency of about 64×F OSC The square wave signal F 64× , whose output end is connected to the input end of the 8-frequency divider circuit and one input end of the peak detector; the 8-frequency divider circuit is used to divide the input signal F 64× Frequency division is performed (in this embodiment, the 8-frequency division circuit is obtained by cascading three 2-frequency division circuits), and the output end of the 8-frequency division circuit outputs a frequency division signal F 8× The output end of the 8-frequency divider circuit is connected to the input end of the twisted ring counter; the twisted ring counter is used to divide the input signal again and output 8 signals Phase[7:0] with the same frequency but different phases. The signal Phase[7:0] output by the twisted ring counter output end is connected to the 8 input ends of the multiplexer MUX respectively and becomes the selected signal of MUX; the peak detector is used to detect the peak value of the input signal, and the input signal of the peak detector is the high-frequency crystal XO OUT Output signal PKD IN and RO output signal F 64× , the peak detector detects the signal PKD INThe peak value of the peak detector is a square wave signal F 64× As a high-frequency working clock, it outputs the pulse signal PKD OUT Reflecting signal PKD IN The peak position of the pulse signal PKD OUT Transmitted to the buffer; the buffer Buffer is used to expand the signal PKD OUT The negative pulse width is convenient for digital module processing, and the buffer Buffer obtains the expanded pulse signal BUFF OUT , and BUFF OUT Transmitted to the digital module; the digital module is used to identify the phase error between the injection signal and the oscillation signal and control the injection timing of the high-frequency crystal. The input signal of the digital module is the output signal BUFF of the buffer Buffer OUT , the output signal PD of the multiplexer MUX IN , Phase SEL And the injection count control word C[9:0] input from the outside, one output terminal of the digital module outputs the switch control signal EN INJ , switch control signal EN INJ The multi-bit control word EN[7:0] is connected to the control end of the single-pole double-throw switch SW1 and SW2, and the other output end outputs a multi-bit control word (i.e., a control signal) EN[7:0]. The multi-bit control word EN[7:0] is connected to an input end of a multiplexer MUX circuit; the multiplexer is configured to generate a square wave signal F 64× The frequency and control signal EN[7:0], select a signal from the signal Phase[7:0] and record it as signal PD IN Input to the digital module, participate in controlling the output signal EN[7:0] of the digital module; the multiplexer also selects a signal in the signal Phase[7:0] as the injection signal according to the control signal EN[7:0] and injects it into the XO of the high-frequency crystal oscillator through the first single-pole double-throw switch. IN The amplifier is used to maintain stable oscillation after the crystal is quickly started. The input terminal is connected to the C L1 The upper plate and S W1 The lower moving end is connected to the output end of C L2 The upper plate and S W2 The lower moving end is connected.

[0036] As shown in FIG2 , the twisted ring counter includes four D flip-flops DFF1 to DFF4; each D flip-flop has a data input terminal D, a clock control terminal C, a first output terminal Q and a second output terminal Q. n The signal output by the second output terminal is the inverted signal of the signal output by the first output terminal; the clock control terminals of the first to fourth flip-flops are all connected to the signal F8× .

[0037] The data input terminal D1 of the first D flip-flop DFF1 is connected to the first output terminal Q4 of the fourth D flip-flop DFF4, and the clock control terminal C1 is connected to the output signal F of the 8-frequency division circuit. 8× The first output terminal Q1 is connected to the data input terminal D2 of the second D flip-flop DFF2 and serves as the output signal Phase[0]. The second output terminal Q n1 As the output signal Phase[4]; the data input terminal D2 of the second D flip-flop DFF2 is connected to the first output terminal Q1 of the first D flip-flop DFF1, and the clock control terminal C2 is connected to the output signal F of the 8-frequency divider circuit. 8× The first output terminal Q2 is connected to the data input terminal D3 of the third D flip-flop DFF3 and serves as the output signal Phase[1]. The second output terminal Q n2 As the output signal Phase[5]; the data input terminal D3 of the third D flip-flop DFF3 is connected to the first output terminal Q2 of the second D flip-flop DFF2, and the clock control terminal C3 is connected to the output signal F of the 8-frequency division circuit. 8× The first output terminal Q3 is connected to the data input terminal D4 of the fourth D flip-flop DFF4 and serves as the output signal Phase[2]. The second output terminal Q n3 As the output signal Phase[6]; the data input terminal D4 of the fourth D flip-flop DFF4 is connected to the first output terminal Q3 of the third D flip-flop DFF3, and the clock control terminal C4 is connected to the output signal F of the 8-frequency division circuit. 8× The first output terminal Q4 is connected to the data input terminal D1 of the first D flip-flop DFF1 and serves as the output signal Phase[3]. The second output terminal Q n4 As the output signal Phase[7]; 4 D flip-flops complete the input signal F 8× The 8-way frequency division generates 8 channels of the same frequency and different phase signals Phase[7:0] at the same time, with a frequency of about F OSC , the phase of signal Phase[j] leads the phase of signal Phase[j+1] by 45°, j=0,1,2,…6.

[0038] As shown in FIG3 , the peak detector includes a dynamic comparator DCMP, a capacitor C PKD , PMOS tube M1, NMOS tube M2 and current source I ref .

[0039] The input terminal A (inverting input terminal) of the dynamic comparator is the input terminal of the peak detector, and the input terminal B (non-inverting input terminal) of the dynamic comparator is connected to the drain of the NMOS tube M2 and the capacitor C PKDThe upper plate of the PMOS tube M1 is connected to the drain of the RO output signal F 64× As the clock input signal of the dynamic comparator, the output end of the dynamic comparator is connected to the gate of the PMOS tube M1 and serves as the output end of the peak detector; the capacitor C PKD The lower plate is grounded, and the upper plate is connected to the input terminal B of the dynamic comparator, the drain of the NMOS tube M2, and the drain of the PMOS tube M1; the gate of the PMOS tube M1 is connected to the output terminal of the dynamic comparator DCMP, and the drain is connected to the capacitor C PKD The upper plate of the dynamic comparator is connected to the input terminal B of the dynamic comparator and the drain of the NMOS tube M2, and the source is connected to the current source I ref The gate of the NMOS tube M2 is connected to the reset signal RST, and the drain is connected to the capacitor C PKD The upper plate, the input terminal B of the dynamic comparator and the drain of the PMOS tube M1 are connected, and the source is grounded; the current source I ref The upper end is connected to the power supply voltage V DD The lower end is connected to the source of the PMOS tube M1. The peak detector detects the input signal PKD IN The peak value of the clock F 64× , the peak detector can be used to detect the pulse signal PKD OUT Accurately reflects the peak position.

[0040] According to considerations such as power consumption and detection accuracy, the peak detector has a variable operating frequency. According to specific needs, the peak detector can be set to detect the peak once every 1, 2, or 4 cycles.

[0041] The selected signal Phase[7:0] of the multiplexer MUX is provided by a twisted ring counter, and the control signal EN[7:0] is provided by a digital module; the control signal EN[7:0] corresponds one-to-one to the selected signal Phase[7:0], that is, EN[i] (0≤i≤7) controls the on-off of the Phase[i] (0≤i≤7) signal. When EN[i]=1 (0≤i≤7), the multiplexer selects Phase[i] as the injection signal Phase SEL .

[0042] The other output terminal PD of the multiplexer IN It depends not only on the control signal EN[7:0], but also on the RO output frequency F 64× Size, F 64× Approximately the crystal oscillation frequency F OSC 64 times, but the two are not exactly equal; signal PD IN The output rules are as follows:

[0043] In this embodiment, at the initial moment, the digital module is given to output an initial control signal EN[7:0] of 10000000, that is, EN[0]=1, and the rest are 0.

[0044] If the current moment EN[i]=1(0≤i≤6) and F 64× >64×F OSC When the multiplexer selects Phase[i+1] as the output PD IN , special; when EN[7]=1 and F 64× >64×F OSC When the multiplexer selects Phase[0] as the output PD IN If the current moment EN[i]=1(1≤i≤7) and F 64× <64×F OSC When the multiplexer selects Phase[i-1] as the output PD IN ; Special, when EN[0]=1 and F 64× <64×F OSC When the multiplexer selects Phase[7] as the output PD IN It should be noted that in this embodiment, at most one control word of EN[7:0] is set to 1 at the same time, and the rest are 0.

[0045] The digital module determines the input signal BUFF OUT and PD IN The edge relationship between them; due to BUFF OUT Yes XO OUT Output signal PKD IN The peak detection of the waveform reflects the PKD IN , that is, the phase information of the crystal oscillation signal, PD IN Is the same as the injected signal Phase SEL The signal with a phase difference of 45° indirectly contains the injected signal Phase SEL The digital module can judge the phase information of the input signal BUFF by OUT and PD IN The edge relationship between the two is used to identify the injection signal Phase SEL With the oscillation signal PKD IN When the digital module detects the phase error between the injected signal and SEL With the oscillation signal PKD IN When the phase difference between them reaches 45°, the digital module changes the EN[7:0] value and selects the signal from Phase[7:0] according to the preset logic to assign it to the injection signal Phase SEL and output signal PD INThe phase error determination method and EN[7:0] value change logic are as follows:

[0046] Phase error detection and injection signal switching:

[0047] When EN[i]=1(0≤i≤6) and F 64× >64×F OSC When the digital module is in PD IN BUFF is detected at the specified rising edge OUT The value of BUFF is detected. OUT If EN[i]=1 is 0, it remains unchanged. OUT =1, then set EN[i] to 0 and EN[i+1] to 1; Specially, when EN[7]=1 and F 64× >64×F OSC When the digital module is in PD IN BUFF is detected at the specified rising edge OUT The value of BUFF is detected. OUT If EN[7]=1 is 0, it remains unchanged. OUT is 1, set EN[7] to 0 and EN[0] to 1.

[0048] When EN[i]=1(1≤i≤7) and F 64× <64×F OSC When the digital module is in PD IN BUFF is detected at the specified falling edge OUT The value of BUFF is detected. OUT If EN[i]=1, it will remain unchanged. OUT is 0, then set EN[i] to 0 and EN[i-1] to 1; Specially, when EN[0]=1 and F 64× <64×F OSC When the digital module is in PD IN BUFF is detected at the falling edge of OUT The value of BUFF is detected. OUT If EN[0]=1 is 1, it remains unchanged. OUT If it is 0, set EN[0] to 0 and EN[7] to 1.

[0049] When EN[i]=1(0≤i≤7) and F 64× =64×F OSC When the phase error between the injection signal and the oscillation signal is very small, there is no need to switch the injection signal. SEL The phase of EN[i]=1 remains unchanged until the injection behavior ends.

[0050] Injection and switching:

[0051] The digital module continuously switches Phase SEL The phase of the signal to the crystal XO IN During the injection process, the digital module will EN INJ Set to 1, control SW1 and SW2, and set Phase SEL With XO IN Connect PKD IN With XO OUT This process is called the injection phase, which is the process of starting the high-frequency crystal. After the injection is completed, the crystal oscillator enters the maintenance phase, and the digital module turns EN INJ Set to 0 (as shown in Figure 1, the digital module input signal C[9:0] is used to preset the number of injections, the digital module SEL The falling edge of the signal is counted. When the count value reaches the preset number of times of C[9:0], the digital module will EN INJ Set to 0, end the injection behavior), control SW1 and SW2, and turn AMP IN With XO IN Connect the AMP OUT With XO OUT connected; in the maintenance phase, the capacitor C L1 and C L2 The size of the capacitor can be adjusted automatically, which plays a role in stabilizing the crystal oscillation frequency and optimizing the phase noise and jitter performance; the amplifier plays a role in maintaining the crystal oscillation signal, so that the oscillation signal will not attenuate and disappear after the crystal is disconnected from the energy injection, providing a stable oscillation signal.

[0052] In this embodiment, a fast-start high-frequency crystal oscillator based on phase error automatic correction technology has a high-frequency crystal frequency of 24 MHz and a ring oscillator frequency of 1.54368 GHz (>64×24 MHz). The simulation waveforms are shown in Figures 4, 5, 6, and 7.

[0053] As shown in Figure 4, the ring oscillator outputs a square wave signal F 64× The frequency is 1.54368GHz, and the 8-frequency divider circuit is F 64× Divide the frequency by 8 and get F 8× Signal, twisted ring counter to F 8× The signal is further divided to generate 8 channels of same-frequency but different-phase signals Phase[7:0] at the same time, with a frequency of approximately F OSC , Phase[j] leads Phase[j+1] by 45°(i≥0).

[0054] As shown in Figure 5, PKD INThe peak detector detects the peak value once every 4 cycles and obtains the output signal PKD reflecting whether the peak value increases. OUT As shown in Figure 5, taking the example of changing the control word from EN[3]=1, EN[4]=0 to EN[3]=0, EN[4]=1, first, EN[3]=1, Phase[3] is selected as the injection signal and assigned to Phase SEL At the same time, the peak detector monitors the peak growth. OUT and BUFF OUT The negative pulse width is missing, indicating that the peak value is no longer growing. If the injection is continued at Phase [3], the efficiency will be reduced or even the growth of crystal energy will be inhibited. It is necessary to switch the injection signal Phase SEL Phase; then, the digital module in PD IN BUFF is detected at the specified falling edge of OUT If it is 1, that is, the negative pulse width is missing, the digital module sets EN[3] to 0, sets EN[4] to 1, selects Phase[4] as the injection signal and assigns it to Phase SEL , continue energy injection.

[0055] As shown in Figure 6, it is used to control the injection signal Phase SEL Phase EN[7:0] continuously jumps to ensure continuous and efficient energy injection of the crystal until the injection is completed, and the control signal EN INJ From 1 to 0, the high-frequency crystal is connected to the amplifier to maintain steady-state oscillation; as shown in Figure 7, the early stage of the energy injection process uses single-ended injection, XO IN For square wave injection, XO OUT Used to detect phase error; the last injection of the energy injection process uses double-ended injection, XO IN With XO OUT The purpose is to further improve the efficiency of energy injection. After the injection is completed, the control signal EN INJ From 1 to 0, connect the crystal to the amplifier, and the amplifier input AMP IN With output AMP OUT A waveform appears.

[0056] When the high-frequency crystal frequency is 24 MHz and the ring oscillator frequency is 1.52832 GHz (<64×24 MHz), the simulation waveforms are shown in Figures 8, 9, 10, and 11.

[0057] As shown in Figure 8, the ring oscillator outputs a square wave signal F 64× The frequency is 1.52832GHz, and the 8-frequency divider circuit is F 64× Divide the frequency by 8 and get F 8× Signal, twisted ring counter to F8× The signal is further divided to generate 8 channels of same-frequency but different-phase signals Phase[7:0] at the same time, with a frequency of approximately F OSC , Phase[i] leads Phase[i+1] by 45°.

[0058] As shown in Figure 9, PKD IN The peak detector detects the peak value once every two cycles and obtains the output signal PKD reflecting whether the peak value increases. OUT As shown in Figure 9, taking the example of changing the control word from EN[5]=1, EN[4]=0 to EN[5]=0, EN[4]=1, first, EN[5]=1, Phase[5] is selected as the injection signal and assigned to Phase SEL At the same time, the peak detector monitors the peak situation. IN Collect BUFF at the specified falling edge OUT The value is 0, indicating that the phase error has accumulated to 45 degrees. If the injection is continued at Phase [5], the efficiency will be reduced or even the growth of crystal energy will be inhibited. It is necessary to switch the injection signal Phase SEL The digital module sets EN[5] to 0 and EN[4] to 1, and selects Phase[4] as the injection signal to assign the value to Phase SEL , continue energy injection.

[0059] As shown in Figure 10, it is used to control the injection signal Phase SEL Phase EN[7:0] continuously jumps to ensure continuous and efficient energy injection of the crystal until the injection is completed, and the control signal EN INJ From 1 to 0, the crystal is connected to the amplifier to maintain steady-state oscillation; as shown in Figure 11, the early stage of the energy injection process uses single-ended injection, XO IN For square wave injection, XO OUT Used to detect phase error; the last injection of the energy injection process uses double-ended injection, XO IN With XO OUT The purpose is to further improve the efficiency of energy injection. After the injection is completed, the control signal EN INJ From 1 to 0, connect the crystal to the amplifier, and the amplifier input AMP IN With output AMP OUT A waveform appears.

[0060] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any appropriate manner without contradiction. To avoid unnecessary repetition, the present invention will not further describe various possible combinations.

Claims

1. A high frequency crystal oscillator based on automatic phase error correction, characterized in that: The invention comprises a high frequency crystal, a first load capacitor, a second load capacitor, a ring oscillator, an 8-frequency division circuit, a twisted ring counter, a peak detector, a buffer, a digital module, a multiplexer, an amplifier, and a first single-pole double-throw switch and a second single-pole double-throw switch; one end of the high frequency crystal is marked as XO IN , the other end is denoted as XO OUT The fixed end of the first single-pole double-throw switch and the high-frequency crystal XO IN The first moving end of the first single-pole double-throw switch is connected to the multiplexer, and the second moving end is connected to one end of the first capacitor and the input end of the amplifier; the fixed end of the second single-pole double-throw switch is connected to the XO of the high-frequency crystal OUT The first moving end of the second single-pole double-throw switch is connected to the peak detector, the second moving end is connected to one end of the second capacitor and the output end of the amplifier, and the other ends of the first and second capacitors are grounded; When starting the high-frequency crystal oscillator, a digital module is used to generate a switch control signal EN INJ , control the fixed end of the first single-pole double-throw switch to connect to the first moving end of the first single-pole double-throw switch, control the fixed end of the second single-pole double-throw switch to connect to the first moving end of the second single-pole double-throw switch; at the same time, the ring oscillator generates a square wave signal F 64× , and transmits the square wave signal to an 8-frequency division circuit and a peak detector; the 8-frequency division circuit divides the square wave signal to generate a frequency division signal F 8× , and F 8× Transmitted to the twisted ring counter, the twisted ring counter F 8× Re-dividing the frequency generates 8 signals Phase[7:0] with the same frequency but different phases, and transmits the signal Phase[7:0] to the multiplexer; the peak detector also receives the high-frequency crystal XO OUT The output signal PKD IN , the peak detector uses a square wave signal F 64× As a high-frequency working clock, the output pulse signal PKD OUT PKD IN The peak position of the pulse signal PKD OUT Transmitted to the buffer, the buffer expands the pulse signal PKD OUT The negative pulse width is obtained to obtain the expanded pulse signal BUFF OUT , and BUFF OUT The digital module generates an initial control signal EN[7:0], which is an 8-bit control signal. IN and signal BUFF OUT The edge relationship between the control signal EN[7:0] is switched, and the switched control signal EN[7:0] is transmitted to the multiplexer; the multiplexer is based on the square wave signal F 64× The frequency and control signal EN[7:0] select a signal from the signal Phase[7:0] and record it as signal PD IN Input to the digital module; the multiplexer also selects a signal in the signal Phase[7:0] as the injection signal according to the control signal EN[7:0] and injects it into the XO of the high-frequency crystal through the first single-pole double-throw switch IN The injection signal is coupled to the XO through a high frequency crystal. OUT end, and the high frequency oscillation signal F generated by the high frequency crystal OSC In XO OUT After end superposition, the signal PKD is obtained IN , signal PKD IN input to a peak detector via a second single-pole double-throw switch; In the maintenance phase, the control signal EN INJ The fixed end of the first single-pole double-throw switch is controlled to be connected to the second movable end of the first single-pole double-throw switch, and the fixed end of the second single-pole double-throw switch is controlled to be connected to the second movable end of the second single-pole double-throw switch.

2. A high-frequency crystal oscillator based on automatic phase error correction according to claim 1, characterized in that: The twisted ring counter includes first to fourth triggers; the first to fourth triggers are all D triggers, each having a data input terminal, a clock control terminal, a first output terminal and a second output terminal, the signal output by the second output terminal is an inverted signal of the output signal of the first output terminal; the clock control terminals of the first to fourth triggers are all connected to the signal F 8× ; The data input terminal of the first trigger is connected to the first output terminal of the fourth trigger. The signal output by the first output terminal of the first trigger is recorded as the first bit signal in Phase[7:0] as Phase[0], and is connected to the data input terminal of the second trigger. The signal output by the first output terminal of the second trigger is recorded as the second bit signal in Phase[7:0] as Phase[1], and is connected to the data input terminal of the third trigger. The signal output by the first output terminal of the third trigger is recorded as the third bit signal in Phase[7:0] as Phase[2], and is connected to the data input terminal of the third trigger. The data input ends of the four flip-flops are connected; the signal output from the first output end of the fourth flip-flop is used as the fourth bit signal in Phase[7:0] and is recorded as Phase[3]; the signals output from the second output ends of the first to fourth flip-flops are used as the fifth, sixth, seventh and eighth bit signals in Phase[7:0], respectively, and are recorded as Phase[4], Phase[5], Phase[6] and Phase[7]; the phase of the signal Phase[j] is 45° ahead of the phase of the signal Phase[j+1], j=0,1,2,…6.

3. A high-frequency crystal oscillator based on automatic phase error correction according to claim 1, characterized in that: The peak detector includes a dynamic comparator, a third capacitor, a PMOS tube, an NMOS tube and a current source; the inverting input end of the dynamic comparator is used as the input end of the peak detector to connect the signal PKD IN ; The non-inverting input end of the dynamic comparator is connected to the drain of the NMOS tube and one end of the third capacitor; the source of the NMOS tube and the other end of the third capacitor are both grounded; the output end of the dynamic comparator is connected to the gate of the PMOS tube as the output end of the peak detector, the source of the PMOS tube is connected to the power supply voltage VDD through the current source, and the drain of the PMOS tube is connected to one end of the third capacitor; the clock input signal of the dynamic comparator is the signal F 64× .

4. A high-frequency crystal oscillator based on automatic phase error correction according to claim 1, characterized in that: The multiplexer selects a signal in the signal Phase[7:0] as the injection signal according to the control signal EN[7:0]: when the i-th signal EN[i] in the signal EN[7:0] is 1, the i-th signal Phase[i] in the signal Phase[7:0] is selected as the injection signal, 0≤i≤7.

5. A high frequency crystal oscillator based on automatic phase error correction according to claim 1, characterized in that: The digital module also determines the signal PD IN and signal BUFF OUT The edge relationship between them is as follows: If the i-th control signal EN[i] in the current control signal EN[7:0] is 1, and F 64× >64×F OSC When the digital module is in PD IN Detect signal BUFF at the specified rising edge OUT If BUFF OUT If BUFF is 1, EN[i] is set to 0 and EN[i+1] is set to 1. If i=7, EN[7] is set to 0 and EN[0] is set to 1. OUT is 0, then EN[i]=1 remains unchanged; 0≤i≤7; If the i-th control signal EN[i] in the current control signal EN[7:0] is 1, and F 64× <64×F OSC When the digital module is in PD IN BUFF is detected at the specified falling edge OUT If BUFF OUT is 1, then EN[i]=1 remains unchanged. If BUFF OUT If i is 0, EN[i] is set to 0 and EN[i-1] is set to 1. If i=0, EN[0] is set to 0 and EN[7] is set to 1; If the i-th control signal EN[i] in the current control signal EN[7:0] is 1, and F 64× =64×F OSC , EN[i]=1 is kept unchanged during the process of starting the high-frequency crystal oscillator.

6. A high frequency crystal oscillator based on automatic phase error correction according to claim 1, characterized in that: The multiplexer is configured to generate a square wave signal F 64× The frequency and control signal EN[7:0] select a signal from the signal Phase[7:0] and record it as signal PD IN Specifically: If the i-th control signal EN[i] in the current control signal EN[7:0] is 1, and F 64× >64×F OSC When the multiplexer selects the i+1th signal Phase[i+1] from the signal Phase[7:0] as the signal PD IN If i=7, the multiplexer selects signal Phase[0] as signal PD IN ; 0≤i≤7; If the i-th control signal EN[i] in the current control signal EN[7:0] is 1, and F 64× <64×F OSC When the multiplexer selects the signal Phase[i-1] as the signal PD IN ; If i = 0, the multiplexer selects signal Phase[7] as signal PD IN .

7. A high frequency crystal oscillator based on automatic phase error correction according to claim 1, characterized in that: The digital module also receives the injection signal Phase SEL , when starting the high frequency crystal oscillator, the switch control signal EN INJ is 1, and for Phase SEL The falling edge of the signal is counted. When the count value reaches the preset number of times, the digital module will EN INJ Set to 0.