Oscillation amplitude detection circuit and detection method for clock oscillator chip
By designing an oscillation amplitude detection circuit for the clock oscillator chip, the amplitude of the oscillation signal is directly detected to control the working state of the chip, which solves the problem of inconsistent chip start-up to stable working time, and realizes the stability of the chip output waveform and the development process. Simple and efficient.
Patent Information
- Application Number
- CN202410663507.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-09-06
AI Technical Summary
Existing clock oscillator chips have different times from start-up to stable operation, resulting in a waste of chip working time or unstable output, and the development process is cumbersome and increases development costs.
Design an oscillation amplitude detection circuit, including a filter capacitor, an amplification circuit, an inverter circuit, a capacitor and a feedback loop. It controls the working state of the chip by directly detecting the amplitude of the oscillation signal and ensures that the output waveform is normal, thus simplifying the development process and reducing costs.
This enables the clock oscillator chip to output a normal waveform from the beginning, ensuring the stability of the chip, simplifying the development process, saving development costs, and does not require a large amount of testing.
Smart Images

Figure CN118611635A
Abstract
Description
Technical Field
[0001] The invention discloses an oscillation amplitude detection circuit, which belongs to the technical field of clock oscillator chips, and specifically relates to an oscillation amplitude detection circuit and a detection method for a clock oscillator chip. Background Art
[0002] It takes a certain amount of time for a high-frequency crystal oscillator to start oscillating and stabilize, and the amplitude of the oscillating signal gradually increases during this period. Before the amplitude of the oscillating signal reaches a certain value (usually 0.3V), it cannot be amplified well by the amplifier circuit, which makes the circuit output waveform abnormal for a period of time after it is started. Most existing solutions estimate the oscillating time through repeated tests, and let the chip delay for a fixed period of time before starting to work.
[0003] The disadvantage of the existing solution is that due to the differences between individual crystal oscillator chips, the time from oscillation to stable operation is also different, which may cause waste of chip working time or the output is still unstable. In addition, a large number of test estimates will make the chip development process cumbersome and increase development costs. Summary of the invention
[0004] Purpose of the invention: To provide an oscillation amplitude detection circuit and detection method for a clock oscillator chip to solve the above-mentioned problems.
[0005] In the first aspect, an oscillation amplitude detection circuit for a clock oscillator chip, the oscillation amplitude detection circuit is composed of a filter capacitor, an amplifier circuit, an inverting circuit, a capacitor and a feedback loop;
[0006] One end VIN of the filter capacitor is connected to the output end of the oscillation circuit, and the other end is connected to the input end of the amplifier circuit. The output end of the amplifier circuit is connected to the input end of the inverter circuit. The output end of the inverter circuit outputs a signal. The feedback loop is connected to the inverter circuit. The capacitor is connected between the amplifier circuit and the inverter circuit.
[0007] The amplifier circuit is connected to the enable terminal EN.
[0008] In a further embodiment, the filter capacitor is composed of a capacitor
[0009] The inverting circuit is composed of three inverters, and the three inverters are connected in the first phase;
[0010] The capacitor is composed of a MOS tube;
[0011] The feedback loop is composed of two MOS tubes.
[0012] In a further embodiment, the oscillation amplitude detection circuit includes: a capacitor C1, an amplifier circuit, a MOS tube M1, a MOS tube M2, a MOS tube M3, an inverter INV1, an inverter INV2, and an inverter INV3;
[0013] The capacitor C1 is used as a filter capacitor, the inverter INV1, the inverter INV2 and the inverter INV3 form an inverting circuit, the MOS transistor M1 is used as a capacitor, and the MOS transistor M2 and the MOS transistor M3 form a feedback loop.
[0014] In a further embodiment, one end of the capacitor C1 is connected to the output end VIN of the oscillation circuit, and the other end is connected to the input end of the amplifier circuit. The output end of the amplifier circuit is simultaneously connected to the input end of the inverter INV1 and the gate of the MOS tube M1. The output end of the inverter INV1 is connected to the input end of the inverter INV2. The source and drain of the MOS tube M1 are grounded to the GND. The drain of the MOS tube M2 and the drain of the MOS tube M3 are both connected between the output end of the inverter INV1 and the input end of the inverter INV2. The gate and source of the MOS tube M2 and the source of the MOS tube M3 are connected to the power supply end VDD. The output end of the inverter INV2 is simultaneously connected to the gate of the MOS tube M3 and the input end of the inverter INV3. The output end of the inverter INV2 outputs a signal Y. The inverters INV1, INV2 and INV3 are all connected to the power supply end VDD and the ground end GND.
[0015] In a further embodiment, the amplifying circuit includes: a MOS tube M4, a MOS tube M5, a MOS tube M6, a MOS tube M7, a resistor R1, a resistor R2, and a resistor R3;
[0016] One end of the resistor R1 is connected to the gate of the MOS tube M6 and to the other end of the capacitor C1, the other end of the resistor R1 is simultaneously connected to the drain of the MOS tube M7 and the gate of the MOS tube M5, one end of the resistor R3 is simultaneously connected to the gate and drain of the MOS tube M5, the other end of the resistor R3 is connected to the drain of the MOS tube M4, the gate of the MOS tube M4 is connected to the gate of the MOS tube M7 and to the enable terminal EN, the source of the MOS tube M6, the source of the MOS tube M7 and the source of the MOS tube M5 are all connected to the power supply terminal VDD, one end of the resistor R2 is connected to the drain of the MOS tube M6 and to the input end of the inverter INV1, and the other end of the resistor R2 is connected to the source of the MOS tube M4 and to the ground terminal GND.
[0017] An oscillation amplitude detection method for a clock oscillator chip is implemented using the oscillation amplitude detection circuit for a clock oscillator chip described above. The oscillation amplitude detection circuit VIN terminal is connected to the output terminal of the oscillation circuit. When the oscillation circuit starts working and becomes stable, the output oscillation signal amplitude gradually increases and eventually reaches a stable state.
[0018] In a further embodiment, in the oscillation amplitude detection, EN is an enable terminal. When the enable terminal EN is connected to a low level, the circuit works normally; when the enable terminal EN is connected to a low level, the circuit is turned off and a high level signal is output to stop the subsequent circuit from working.
[0019] In a further embodiment, when the oscillation amplitude detection circuit works normally, the MOS tube M4 and the MOS tube M5 in the amplifier circuit are turned on, and a fixed DC voltage V is provided to the input terminal A of the amplifier circuit. A , making the MOS tube M6 tube in a state of being about to be turned on.
[0020] In a further embodiment, the oscillation signal is input into the amplifier circuit from the A port, and the current I is obtained through the MOS tube M6. D6 , current I D6 It oscillates with the oscillation signal, and its magnitude is related to the amplitude of the oscillation signal, and an output voltage V is obtained. YN ;
[0021] The MOS tube M1 in the oscillation amplitude detection circuit is used as a capacitor to weaken the output voltage V YN The oscillation amplitude is adjusted to obtain a voltage close to DC, so that the output voltage V YN The value of has a process of rising to stability;
[0022] The feedback loop formed by the MOS tube M2 and the MOS tube M3 limits the output signal of the inverter INV1 tube so that the high and low level values thereof are the values of VDD and GND.
[0023] In a further embodiment, the oscillation amplitude detection circuit includes two working states:
[0024] State 1: When the amplitude of the oscillation signal does not reach the set value, the output voltage V YN The flip voltage of the inverter INV1 is not reached. At this time, the inverter INV1 outputs a high level, the inverter INV2 outputs a low level, the MOS tube M3 is turned on, the output signal Y is a high level, and the subsequent amplifier circuit does not work;
[0025] State 2: When the amplitude of the oscillation signal is greater than the set value, the output voltage of the amplifier circuit is greater than the flip voltage of the inverter INV1. At this time, the inverter INV1 outputs a low level, the inverter INV2 outputs a high level, the MOS tube M3 is turned off, the output signal Y is a low level, and the subsequent amplifier circuit starts to work.
[0026] The present invention has the following beneficial effects:
[0027] 1. The oscillation amplitude detection circuit of the present invention can make the output waveform of the clock oscillator chip in a normal state from the beginning, thereby ensuring the stability of the chip operation.
[0028] 2. The present invention controls the working state of the chip by directly detecting the amplitude of the oscillation signal, so that the working state of the chip is more stable and the development process is more concise and efficient.
[0029] 3. The present invention can make the chip have a normal waveform at the beginning of output, so that the chip works more stably, and has a simple structure, does not require a large number of tests, and saves development costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is a schematic diagram of the oscillation amplitude detection circuit of the present invention.
[0031] Figure 2 It is a schematic diagram of an amplifier circuit AMP of the present invention. DETAILED DESCRIPTION
[0032] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0033] Embodiment 1:
[0034] An oscillation amplitude detection circuit for a clock oscillator chip, such as Figure 1 As shown, the oscillation amplitude detection circuit is composed of a filter capacitor, an amplifier circuit (AMP), an inverting circuit, a capacitor and a feedback loop;
[0035] One end VIN of the filter capacitor is connected to the output end of the oscillation circuit, and the other end is connected to the input end of the amplifier circuit (AMP), the output end of the amplifier circuit (AMP) is connected to the input end of the inverter circuit, the output end of the inverter circuit outputs a signal, the feedback loop is connected to the inverter circuit, and the capacitor is connected between the amplifier circuit (AMP) and the inverter circuit;
[0036] The amplifier circuit (AMP) is connected to the enable terminal EN.
[0037] In one embodiment, Figure 1 As shown, the filter capacitor consists of a capacitor
[0038] The inverting circuit is composed of three inverters, and the three inverters are connected in the first phase;
[0039] The capacitor is composed of a MOS tube;
[0040] The feedback loop is composed of two MOS tubes.
[0041] In one embodiment, Figure 1 As shown, the oscillation amplitude detection circuit includes: a capacitor C1, an amplifier circuit (AMP), a MOS tube M1, a MOS tube M2, a MOS tube M3, an inverter INV1, an inverter INV2, and an inverter INV3;
[0042] The capacitor C1 is used as a filter capacitor, the inverter INV1, the inverter INV2 and the inverter INV3 form an inverting circuit, the MOS transistor M1 is used as a capacitor, and the MOS transistor M2 and the MOS transistor M3 form a feedback loop.
[0043] In one embodiment, Figure 1 As shown, one end of the capacitor C1 is connected to the output end VIN of the oscillation circuit, and the other end is connected to the input end of the amplifier circuit (AMP). The output end of the amplifier circuit (AMP) is simultaneously connected to the input end of the inverter INV1 and the gate of the MOS tube M1. The output end of the inverter INV1 is connected to the input end of the inverter INV2. The source and drain of the MOS tube M1 are grounded to the GND. The drain of the MOS tube M2 and the drain of the MOS tube M3 are both connected between the output end of the inverter INV1 and the input end of the inverter INV2. The gate and source of the MOS tube M2 and the source of the MOS tube M3 are connected to the power supply end VDD. The output end of the inverter INV2 is simultaneously connected to the gate of the MOS tube M3 and the input end of the inverter INV3. The output end of the inverter INV2 outputs a signal Y. The inverters INV1, INV2 and INV3 are all connected to the power supply end VDD and the ground end GND.
[0044] In one embodiment, Figure 2 As shown, the amplifier circuit (AMP) includes: MOS tube M4, MOS tube M5, MOS tube M6, MOS tube M7, resistor R1, resistor R2, resistor R3;
[0045] One end of the resistor R1 is connected to the gate of the MOS tube M6 and to the other end of the capacitor C1, the other end of the resistor R1 is simultaneously connected to the drain of the MOS tube M7 and the gate of the MOS tube M5, one end of the resistor R3 is simultaneously connected to the gate and drain of the MOS tube M5, the other end of the resistor R3 is connected to the drain of the MOS tube M4, the gate of the MOS tube M4 is connected to the gate of the MOS tube M7 and to the enable terminal EN, the source of the MOS tube M6, the source of the MOS tube M7 and the source of the MOS tube M5 are all connected to the power supply terminal VDD, one end of the resistor R2 is connected to the drain of the MOS tube M6 and to the input end of the inverter INV1, and the other end of the resistor R2 is connected to the source of the MOS tube M4 and to the ground terminal GND.
[0046] Embodiment 2:
[0047] A method for detecting an oscillation amplitude of a clock oscillator chip is implemented by using the oscillation amplitude detection circuit for a clock oscillator chip as described above, and is characterized in that the oscillation amplitude detection circuit VIN terminal is connected to the output terminal of the oscillation circuit, and when the oscillation circuit is in the process of starting to work and stabilizing, the output oscillation signal amplitude gradually increases and finally reaches a stable state.
[0048] In one embodiment, Figure 1 to Figure 2 As shown, in the oscillation amplitude detection, EN is the enable terminal. When the enable terminal EN is connected to a low level, the circuit works normally; when the enable terminal EN is connected to a low level, the circuit is turned off and a high level signal is output to stop the subsequent circuit from working.
[0049] In one embodiment, Figure 1 to Figure 2 As shown, when the oscillation amplitude detection circuit works normally, the MOS tube M4 and the MOS tube M5 in the amplifier circuit (AMP) are turned on, and a fixed DC voltage V is provided to the input terminal A of the amplifier circuit (AMP). A , making the MOS tube M6 tube in a state of being about to be turned on.
[0050] In one embodiment, Figure 1 to Figure 2 As shown, the oscillation signal is input into the amplifier circuit (AMP) from port A, and the current I is obtained through the MOS tube M6. D6 , current I D6 It oscillates with the oscillation signal, and its magnitude is related to the amplitude of the oscillation signal, and an output voltage V is obtained. YN ;
[0051] The MOS tube M1 in the oscillation amplitude detection circuit is used as a capacitor to weaken the output voltage V YN The oscillation amplitude is adjusted to obtain a voltage close to DC, so that the output voltage VYN The value of has a process of rising to stability;
[0052] The feedback loop formed by the MOS tube M2 and the MOS tube M3 limits the output signal of the inverter INV1 tube, so that its high and low level values are the values of VDD and GND, thereby making the flipping process of INV2 closer to the ideal situation.
[0053] In one embodiment, Figure 1 to Figure 2 As shown, the oscillation amplitude detection circuit includes two working states:
[0054] State 1: When the amplitude of the oscillation signal does not reach the set value, the output voltage V YN The flip voltage of the inverter INV1 is not reached. At this time, the inverter INV1 outputs a high level, the inverter INV2 outputs a low level, the MOS tube M3 is turned on, the output signal Y is a high level, and the subsequent amplifier circuit (AMP) does not work;
[0055] State 2: When the amplitude of the oscillation signal is greater than the set value, the output voltage of the amplifier circuit (AMP) is greater than the flip voltage of the inverter INV1. At this time, the inverter INV1 outputs a low level, the inverter INV2 outputs a high level, the MOS tube M3 is turned off, the output signal Y is a low level, and then the amplifier circuit (AMP) starts to work.
[0056] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the invention.
Claims
1. An oscillation amplitude detection circuit for a clock oscillator chip, characterized in that: The oscillation amplitude detection circuit is composed of a filter capacitor, an amplifier circuit, an inverting circuit, a capacitor and a feedback loop; One end VIN of the filter capacitor is connected to the output end of the oscillation circuit, and the other end is connected to the input end of the amplifier circuit. The output end of the amplifier circuit is connected to the input end of the inverter circuit. The output end of the inverter circuit outputs a signal. The feedback loop is connected to the inverter circuit. The capacitor is connected between the amplifier circuit and the inverter circuit. The amplifier circuit is connected to the enable terminal EN.
2. The oscillation amplitude detection circuit for a clock oscillator chip according to claim 1, characterized in that: The filter capacitor consists of a capacitor The inverting circuit is composed of three inverters, and the three inverters are connected in the first phase; The capacitor is composed of a MOS tube; The feedback loop is composed of two MOS tubes.
3. The oscillation amplitude detection circuit for a clock oscillator chip according to claim 2, characterized in that: The oscillation amplitude detection circuit comprises: a capacitor C1, an amplifier circuit, a MOS tube M1, a MOS tube M2, a MOS tube M3, an inverter INV1, an inverter INV2, and an inverter INV3; The capacitor C1 is used as a filter capacitor, the inverter INV1, the inverter INV2 and the inverter INV3 form an inverting circuit, the MOS transistor M1 is used as a capacitor, and the MOS transistor M2 and the MOS transistor M3 form a feedback loop.
4. The oscillation amplitude detection circuit for a clock oscillator chip according to claim 3, characterized in that: One end of the capacitor C1 is connected to the output end VIN of the oscillation circuit, and the other end is connected to the input end of the amplifier circuit. The output end of the amplifier circuit is simultaneously connected to the input end of the inverter INV1 and the gate of the MOS tube M1. The output end of the inverter INV1 is connected to the input end of the inverter INV2. The source and drain of the MOS tube M1 are grounded to the GND. The drain of the MOS tube M2 and the drain of the MOS tube M3 are both connected between the output end of the inverter INV1 and the input end of the inverter INV2. The gate and source of the MOS tube M2 and the source of the MOS tube M3 are connected to the power supply end VDD. The output end of the inverter INV2 is simultaneously connected to the gate of the MOS tube M3 and the input end of the inverter INV3. The output end of the inverter INV2 outputs a signal Y. The inverters INV1, INV2 and INV3 are all connected to the power supply end VDD and the ground end GND.
5. The oscillation amplitude detection circuit for a clock oscillator chip according to claim 4, characterized in that: The amplifying circuit includes: MOS tube M4, MOS tube M5, MOS tube M6, MOS tube M7, resistor R1, resistor R2, resistor R3; One end of the resistor R1 is connected to the gate of the MOS tube M6 and to the other end of the capacitor C1, the other end of the resistor R1 is simultaneously connected to the drain of the MOS tube M7 and the gate of the MOS tube M5, one end of the resistor R3 is simultaneously connected to the gate and drain of the MOS tube M5, the other end of the resistor R3 is connected to the drain of the MOS tube M4, the gate of the MOS tube M4 is connected to the gate of the MOS tube M7 and to the enable terminal EN, the source of the MOS tube M6, the source of the MOS tube M7 and the source of the MOS tube M5 are all connected to the power supply terminal VDD, one end of the resistor R2 is connected to the drain of the MOS tube M6 and to the input end of the inverter INV1, and the other end of the resistor R2 is connected to the source of the MOS tube M4 and to the ground terminal GND.
6. A method for detecting an oscillation amplitude of a clock oscillator chip, implemented by using the oscillation amplitude detection circuit for a clock oscillator chip as claimed in any one of claims 1 to 5, characterized in that: The VIN terminal of the oscillation amplitude detection circuit is connected to the output terminal of the oscillation circuit. When the oscillation circuit starts working and becomes stable, the amplitude of the output oscillation signal gradually increases and finally reaches a stable state.
7. The oscillation amplitude detection method for a clock oscillator chip according to claim 6, characterized in that: In the oscillation amplitude detection, EN is the enable terminal. When the enable terminal EN is connected to a low level, the circuit works normally; when the enable terminal EN is connected to a low level, the circuit is turned off and a high level signal is output to stop the subsequent circuit from working.
8. The oscillation amplitude detection method for a clock oscillator chip according to claim 6, characterized in that: When the oscillation amplitude detection circuit is working normally, the MOS tubes M4 and M5 in the amplifier circuit are turned on and provide a fixed DC voltage V to the input port A of the amplifier circuit. A , making the MOS tube M6 tube in a state of being about to be turned on.
9. The oscillation amplitude detection method for a clock oscillator chip according to claim 6, characterized in that: The oscillation signal is input into the amplifier circuit from port A, and the current I is obtained through the MOS tube M6. D6 , current I D6 It oscillates with the oscillation signal, and its magnitude is related to the amplitude of the oscillation signal, and an output voltage V is obtained. YN ; The MOS tube M1 in the oscillation amplitude detection circuit is used as a capacitor to weaken the output voltage V YN The oscillation amplitude is adjusted to obtain a voltage close to DC, so that the output voltage V YN The value of has a process of rising to stability; The feedback loop formed by the MOS tube M2 and the MOS tube M3 limits the output signal of the inverter INV1 tube so that the high and low level values thereof are the values of VDD and GND.
10. The oscillation amplitude detection method for a clock oscillator chip according to claim 6, characterized in that: The oscillation amplitude detection circuit includes two working states: State 1: When the amplitude of the oscillation signal does not reach the set value, the output voltage V YN The flip voltage of the inverter INV1 is not reached. At this time, the inverter INV1 outputs a high level, the inverter INV2 outputs a low level, the MOS tube M3 is turned on, the output signal Y is a high level, and the subsequent amplifier circuit does not work; State 2: When the amplitude of the oscillation signal is greater than the set value, the output voltage of the amplifier circuit is greater than the flip voltage of the inverter INV1. At this time, the inverter INV1 outputs a low level, the inverter INV2 outputs a high level, the MOS tube M3 is turned off, the output signal Y is a low level, and the subsequent amplifier circuit starts to work.
