Low-power-consumption clock crystal rapid oscillation starting device

By introducing a capacitor tuning state machine and frequency calibration circuit into the crystal oscillator, the crystal load capacitance tuning is used to achieve RC oscillator frequency calibration, which solves the problems of crystal start-up stability and high power consumption, and achieves fast start-up and reduced testing Cost effective, suitable for large-scale mass production.

CN221669862UActive Publication Date: 2024-09-06YUZHAO MICROELECTRONICS TECH (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202323603169.X
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2023-12-27
Publication Date
2024-09-06
Estimated Expiration
2033-12-27

AI Technical Summary

Technical Problem

The existing technology has high power consumption and complex design during the start-up and stabilization process of the crystal oscillator, making it difficult to adapt to large-scale mass production. Especially in the rapid wake-up scenario of IoT devices, the test efficiency is low and the cost is high.

Method used

Using a device including a controller, crystal, crystal oscillation circuit, capacitor tuning state machine and RC clock injection circuit, through the combination of RC oscillator and injection drive circuit and frequency calibration circuit, the tuning effect of the crystal load capacitance is used to achieve crystal fast speed Start oscillation, reducing the requirements for RC oscillator clock accuracy and PVT stability.

Benefits of technology

It achieves rapid start-up without external intervention during mass production testing, improves testing efficiency, reduces testing costs, and is suitable for large-scale mass production. The system has high reliability and is suitable for large-scale mass production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221669862U
    Figure CN221669862U
Patent Text Reader

Abstract

The utility model discloses a low-power-consumption clock crystal rapid oscillation starting device, and relates to the technical field of crystal oscillators. The device comprises a controller, a crystal, a crystal oscillation starting circuit, a capacitance tuning state machine, an RC oscillator and injection driving circuit and a frequency calibration circuit, the RC oscillator and injection driving circuit is connected with the frequency calibration circuit, the crystal is connected with the crystal oscillation starting circuit, the controller is connected with the capacitance tuning state machine, and the RC oscillator and injection driving circuit is connected with the frequency calibration circuit. The control end of the capacitance tuning state machine is connected with a load capacitor CI of the crystal oscillation starting circuit, the control end of the capacitance tuning state machine is connected with the control ends of the RC oscillator and the injection driving circuit, the driving clock ends of the RC oscillator and the injection driving circuit are connected with the capacitance tuning state machine, and the output end of the crystal oscillation starting circuit is connected with the frequency calibration circuit; through the controller, the capacitance tuning state machine, the RC oscillator, the injection driving circuit and the frequency calibration circuit, external intervention of workers is not needed during mass production testing, and the testing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of crystal oscillators, in particular to a device for quickly starting oscillation of a low-power clock crystal. Background Art

[0002] With the popularization of the Internet of Things (IoT), the demand for terminal devices is increasing. Most IoT devices are awakened at equal intervals or by event interrupts, and work in sleep mode most of the time. In this mode, except for the system state machine and the registers or SRAM that must retain the status, most modules are in the off state. At this time, the power consumption is very low, usually only a few microamperes. When waking up, the system will go through a power-on process, which includes the establishment of various power supplies and the oscillation stabilization process of the system crystal reference clock. The shorter the power-on stabilization process, the more conducive it is to saving system power consumption.

[0003] For crystals in the range of tens of MHz, if there is no special treatment, such as injection of external energy, its oscillation stabilization process usually takes hundreds of microseconds. Considering the uniform distribution of the crystal, the worst case may even be several milliseconds. During this process, the IoT device cannot complete normal communication interaction with other devices, which will result in a waste of power consumption.

[0004] A common solution is to inject a signal that is equal to or close to the crystal frequency during the oscillation phase. Since the quality factor Q value of the crystal equivalent circuit is very high, in other words, the crystal has very good frequency selection characteristics, which is also the basis for ensuring the quality of the crystal clock. It can only absorb the signal energy that is very close to the crystal frequency and resonate with it to amplify it, so as to achieve the purpose of rapid oscillation.

[0005] In order to inject a signal to achieve the purpose of rapid oscillation, it is necessary to generate a clock signal that is equal to or very close to the crystal frequency, which is usually achieved using an RC oscillator. This requires high-precision calibration of the RC oscillator, otherwise the injection effect will not be as expected. In order to obtain a stable RC oscillation clock under different process voltages and temperatures (PVT), on the one hand, it is necessary to ensure the stability and consistency of PVT in the design, which will increase the difficulty and complexity of the oscillator design; on the other hand, it is necessary to use special instruments to calibrate it during mass production testing, which will increase additional testing costs; based on this, this method is limited in actual use and is not suitable for large-scale mass production. Utility Model Content

[0006] The utility model provides a low-power clock crystal fast oscillation device, which can reduce the difficulty and complexity of RC clock oscillator circuit design and solve the technical problems of low test efficiency and high test cost during mass production testing.

[0007] In order to solve the above technical problems, the technical solutions adopted by the utility model are as follows:

[0008] A low-power clock crystal fast oscillation device comprises a controller, a crystal, a crystal oscillation circuit, a capacitor tuning state machine and an RC clock injection circuit, wherein the RC clock injection circuit comprises an RC oscillator, an injection drive circuit and a frequency calibration circuit, wherein the RC oscillator and the injection drive circuit are connected to the frequency calibration circuit, the crystal is connected to the crystal oscillation circuit, the controller is electrically connected to the capacitor tuning state machine, and the control end of the capacitor tuning state machine is connected to the load capacitor C of the crystal oscillation circuit. L The control end of the capacitor tuning state machine is connected to the control end of the RC oscillator and the injection drive circuit, the first control switch S1 of the RC oscillator and the injection drive circuit is electrically connected to one end of the crystal, the second control switch S2 of the RC oscillator and the injection drive circuit is electrically connected to the other end of the crystal, the driving clock end of the RC oscillator and the injection drive circuit is electrically connected to the capacitor tuning state machine, and the output end of the crystal oscillation circuit is electrically connected to the frequency calibration circuit.

[0009] A further technical solution is that: the crystal oscillator circuit is a Pierce oscillator circuit.

[0010] A further technical solution is that the crystal oscillator circuit may also be an oscillator circuit of other structures such as a Santos structure.

[0011] The beneficial effects of adopting the above technical solution are:

[0012] A low-power clock crystal fast oscillation device comprises a controller, a crystal, a crystal oscillation circuit, a capacitor tuning state machine and an RC clock injection circuit, wherein the RC clock injection circuit comprises an RC oscillator, an injection drive circuit and a frequency calibration circuit, wherein the RC oscillator and the injection drive circuit are connected to the frequency calibration circuit, the crystal is connected to the crystal oscillation circuit, the controller is electrically connected to the capacitor tuning state machine, and the control end of the capacitor tuning state machine is connected to the load capacitor C of the crystal oscillation circuit. L The control end of the capacitor tuning state machine is connected to the control end of the RC oscillator and the injection drive circuit, the first control switch S1 of the RC oscillator and the injection drive circuit is electrically connected to one end of the crystal, the second control switch S2 of the RC oscillator and the injection drive circuit is electrically connected to the other end of the crystal, the driving clock end of the RC oscillator and the injection drive circuit is electrically connected to the capacitor tuning state machine, and the output end of the crystal oscillation circuit is electrically connected to the frequency calibration circuit. Through the controller, crystal, crystal oscillation circuit, capacitor tuning state machine, RC oscillator, injection drive circuit and frequency calibration circuit, etc., it can quickly start oscillation during mass production testing without external intervention by staff, thereby improving test efficiency and reducing test costs.

[0013] Please refer to the detailed description of the specific implementation method. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 It is a principle block diagram of the utility model;

[0015] Figure 2 It is the crystal equivalent RCL model;

[0016] Figure 3 It is the relationship between crystal resonant frequency and reactance;

[0017] Figure 4 It is a flow chart of the working of the utility model;

[0018] Figure 5 It is the principle block diagram of RC oscillator and injection drive circuit. DETAILED DESCRIPTION

[0019] The present application provides a device for rapid crystal oscillation start-up for the sleep wake-up process. Through self-calibration after the initial power-on and step control of the crystal load capacitance, it can reduce the requirements for the clock accuracy and PVT stability of the RC oscillator, thereby achieving the effect of rapid crystal oscillation start-up.

[0020] Overall idea:

[0021] The device provided in the present application is based on signal injection, utilizes the tuning effect of the crystal load capacitance, and additionally introduces a digital state machine to tune the oscillation frequency of the crystal, thereby ensuring that the crystal frequency selection network can select the excitation clock frequency of the RC oscillator, and after completing efficient energy injection, finally adjusts to the rated required oscillation frequency.

[0022] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present application and its application or use. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0023] In the following description, many specific details are set forth to facilitate a full understanding of the present application, but the present application may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present application. Therefore, the present application is not limited to the specific embodiments disclosed below.

[0024] like Figure 1As shown, the utility model discloses a low-power clock crystal fast oscillation device, including a controller, a crystal, a crystal oscillation circuit, a capacitor tuning state machine and an RC clock injection circuit, wherein the RC clock injection circuit includes an RC oscillator, an injection drive circuit and a frequency calibration circuit, wherein the RC oscillator and the injection drive circuit are connected to the frequency calibration circuit, the crystal is connected to the crystal oscillation circuit, the controller is electrically connected to the capacitor tuning state machine, and the control end of the capacitor tuning state machine is connected to the load capacitor C of the crystal oscillation circuit. L The control end of the capacitor tuning state machine is connected to the control end of the RC oscillator and the injection drive circuit, the first control switch S1 of the RC oscillator and the injection drive circuit is electrically connected to one end of the crystal, the second control switch S2 of the RC oscillator and the injection drive circuit is electrically connected to the other end of the crystal, the driving clock end of the RC oscillator and the injection drive circuit is electrically connected to the capacitor tuning state machine, and the output end of the crystal oscillation circuit is electrically connected to the frequency calibration circuit.

[0025] The present application is a combined innovation, in which the controller is a single-chip microcomputer, and the crystal oscillation circuit, capacitor tuning state machine, RC oscillator and injection drive circuit and frequency calibration circuit itself as well as the corresponding communication connection technology are existing technologies and will not be described in detail here.

[0026] The instructions are as follows:

[0027] I0: Crystal oscillator circuit. Here is a classic Pierce oscillator circuit diagram, which provides the necessary negative resistance drive for crystal oscillation. Its core part consists of a bias current source I b and M N0 Composition, V G and V D Connect the two ends of the crystal XTAL respectively, V G The terminal signal passes through the buffer module BUF and is output as a clock source.

[0028] Of course, the oscillator circuit can also be an oscillator circuit of other structures, such as the oscillator circuit of the Santos structure. This part of the circuit includes the load capacitor C required for crystal oscillation. L .

[0029] I1: Capacitor tuning state machine, which writes the target load capacitance value according to the crystal specification. Its driving clock comes from the RC oscillator in the RC clock injection circuit. By gradually adjusting the load capacitance C L The size of the crystal frequency selection network is changed to change the characteristics of the crystal. After the load capacitance is adjusted to the target value, a tuning completion signal is generated to close the RC clock injection circuit I2.

[0030] I2: RC clock injection circuit, which includes two sub-circuits: RC oscillator + injection drive circuit and frequency calibration circuit. After the system is powered on for the first time, the frequency calibration circuit uses the stable clock of the crystal to calibrate the oscillation frequency of the RC oscillator, and stores the calibration result of the frequency control bit in a storage unit that does not lose power or a storage unit that does not lose power, such as e-fuse, OTP, OneTime Programmed, etc.; when the system is awakened from sleep mode, the RC oscillator + injection drive circuit starts working, and the oscillation frequency is the calibrated frequency f osc , the RC clock injection circuit controls switches S1 and S2 to inject the calibrated frequency f into the crystal osc The energy is used to start the crystal oscillation. When the crystal completes the oscillation injection, that is, the capacitor tuning state machine tunes the load capacitance to the target capacitance value, the RC clock injection circuit receives the tuning completion signal from the capacitor tuning state machine I1, controls switches S1 and S2 to disconnect, and turns off the RC oscillator + injection drive circuit.

[0031] like Figure 2 The equivalent RLC model of the crystal XTAL is shown below. M is the driving capacitor; R M is the driving resistance; L M is the driving inductor; C0 is the package parasitic capacitance.

[0032] C M , R M , L M The series resonant network is the electronic equivalent model of crystal resonance.

[0033] like Figure 3 As shown, the frequency characteristics of crystal resonance have two characteristic frequencies.

[0034] Series resonant frequency F S :

[0035]

[0036] Parallel resonant frequency F A :

[0037]

[0038] Actually consider the load capacitance C L Post-F AP :

[0039]

[0040] The equivalent series resistance ESR of the crystal is as follows:

[0041]

[0042] Take 32M crystal as an example S , it can be seen from formula (3) that when the load capacitance is large enough, F AP It will be infinitely close to F S , in F AP There is a frequency range of several kHz between FA and load capacitance C. L To step through this frequency range. During the start-up process, inject a frequency between F AP f between FA osc , by adjusting the load capacitance C from small to large L To traverse the frequency selection network, when the resonant frequency of the frequency selection network is close to f osc When the load capacitance is adjusted to the target value, the crystal will receive enough energy to reach a stable oscillation state. Finally, the oscillation frequency will be adjusted to the target frequency.

[0043] This is to do f osc The accuracy requirement is greatly reduced, and the PVT stability requirement of the RC oscillator is also reduced. By designing a suitable load capacitance adjustment step size, the f osc Sufficient energy injection can be obtained near the frequency.

[0044] Load capacitance tuning technology also has a potential advantage, because the negative resistance energy provided by the crystal oscillation circuit is usually inversely proportional to the load capacitance. That is, under the same power consumption, the smaller the load capacitance, the greater the negative resistance energy, and the more conducive to crystal oscillation.

[0045] like Figure 4 The working process is described as follows:

[0046] 1. System power-on, or system reset power-on, generally includes power-on initialization of various power supplies.

[0047] 2. Start the I0 crystal oscillator and wait for the crystal to oscillate stably. Generally, a counter can be used to count the output of the crystal oscillator. When the count reaches a certain value, such as 64, 128, etc., the crystal can be considered to have oscillated stably.

[0048] 3. Start the I2RC clock injection circuit, start the frequency calibration circuit, and use the stable crystal oscillator I0 output clock to calibrate the RC oscillator's oscillation frequency to f osc , which is between FA and F determined by formula (2) and formula (3) AP and store the calibration value of the RC oscillator frequency control bit in a non-power-down register or other non-power-down storage unit, such as E-fuse or OTP.

[0049] 4. The system completes other initialization actions.

[0050] 5. The system enters sleep state. At this time, most modules of the system are powered off. The system only needs very low power consumption to maintain. At the same time, sleep wake-up interrupt detection is performed and waits for wake-up interrupt.

[0051] 6. The wake-up interrupt is detected, the system is powered on, and the crystal oscillation circuit I0 is turned on.

[0052] 7. Turn on the RC clock injection circuit I2, read the value of the RC oscillator frequency calibration control bit from the non-power-down memory or other non-power-down storage unit, start the RC oscillator, control the injection switches S1 and S2 to close, and inject the calibrated RC clock f into the crystal. osc .

[0053] 8. Start capacitor tuning state machine module I1, for load capacitor C L Start from 0 and adjust step by step. Wait for 2~4us after each step. During the waiting period, the RC clock injection circuit injects a frequency of f into the crystal. osc The injection time can be adjusted according to the crystal type. Too long time will cause over-driving. Repeat the step adjustment action until the load capacitance is adjusted to the target load capacitance value written into the state machine according to the crystal specifications in advance. Then generate a tuning completion signal to the RC clock injection circuit, control the disconnection of injection switches S1 and S2, and turn off the RC oscillator + injection drive circuit.

[0054] 9. The system continues to complete the tasks that need to be performed after waking up. Before executing the tasks, you can still use the method described in step 2 to detect whether the crystal has completed oscillation. After the system completes the tasks that need to be performed after waking up, it enters the sleep state and waits for the next interrupt wake-up.

[0055] Key modules and technologies:

[0056] 1. The I0 crystal oscillator circuit adopts the Pierce oscillator architecture, which provides the necessary negative resistance drive for crystal oscillation. Its core part consists of the bias current source I b and M N0 Composition, V G and V D Connect the two ends of the crystal respectively, V G The terminal signal is output as a clock source after passing through the buffer module BUF. Of course, the oscillator circuit can also be an oscillator circuit of other structures, such as an oscillator circuit of Santos structure. In order to implement the control method of the present invention, this part of the circuit includes the load capacitor C required for crystal oscillation. L .

[0057] 2. I2RC clock injection circuit, including RC oscillator + injection drive circuit and frequency calibration circuit. The drive circuit only needs a few simple inverter cascades to realize.

[0058] like Figure 5 As shown in the figure, after the system is powered on for the first time, the frequency calibration circuit uses the stable clock of the crystal to calibrate the oscillation frequency of the RC oscillator to the F determined by formula (2) and formula (3). A and F AP The calibration result of the frequency control bit is stored in a storage unit that does not lose power or a storage unit that does not lose power, such as e-fuse, OTP, etc. The control bit is directly read and called during the subsequent system sleep and wake-up process.

[0059] 3. I1 capacitor tuning state machine, this can be implemented digitally, the drive clock uses the RC output f osc The key is to determine the capacitance adjustment step size, frequency step Δf and load capacitance change ΔC. L The approximate relationship between them is as follows.

[0060]

[0061] Taking 32M crystal as an example, when the resonant frequency and f osc When the deviation is less than 500Hz, a satisfactory injection effect can be obtained. Based on this, the step of Δf can be roughly planned to be 1KHz, and ΔC can be roughly obtained. L The value of .

[0062] Technical effects:

[0063] 1. The RC oscillator can be self-calibrated by the system's built-in high-speed crystal oscillator, without the need for production line calibration, saving testing costs.

[0064] 2. The system changes the frequency selection network characteristics of the crystal, or the resonant frequency of the crystal, by adjusting the crystal load capacitance, so as to align the frequency of the RC oscillator and complete efficient frequency injection, thereby reducing the requirements for the frequency accuracy and PVT stability of the RC oscillator, and the design of the RC oscillator is easy to implement.

[0065] 3. Fast wake-up control can be achieved through the cooperation of the digital state machine. The entire system has no stability problems, high reliability, good consistency, and is suitable for large-scale mass production.

[0066] In summary, the single clock injection fast oscillation has high requirements on the accuracy and PVT stability of the injected clock. The difficulty and complexity in the design of the RC oscillator are high. In actual mass production, additional instruments are required to calibrate the RC oscillator, which is not conducive to large-scale mass production. Based on the traditional RC oscillator frequency injection, this application introduces an additional capacitor tuning state machine and a frequency calibration circuit. After the initial power-on is completed, the frequency calibration circuit is used to calibrate the RC oscillator frequency and save the calibration control word. After that, during the sleep wake-up process, the capacitor tuning state machine is started to adjust the crystal load capacitance C by stepping. L The frequency selection network characteristics of the crystal, or the resonant frequency of the crystal, are changed by a method to align the frequency of the RC oscillator and complete efficient frequency injection. This control method can significantly reduce the requirements for the clock accuracy and PVT stability of the RC oscillator injected into the crystal, and reduce the design difficulty and complexity of the RC oscillator. During use, the RC oscillator clock only needs to be calibrated once by hardware after the chip is powered on for the first time, which is easy to implement in large-scale mass production.

Claims

1. A device for quickly starting a low-power clock crystal, characterized in that: The invention comprises a controller, a crystal, a crystal oscillating circuit, a capacitor tuning state machine and an RC clock injection circuit. The RC clock injection circuit comprises an RC oscillator, an injection driving circuit and a frequency calibration circuit. The RC oscillator and the injection driving circuit are connected to the frequency calibration circuit. The crystal is connected to the crystal oscillating circuit. The controller is electrically connected to the capacitor tuning state machine. The control end of the capacitor tuning state machine is connected to the load capacitor C of the crystal oscillating circuit. I . connection, the control end of the capacitor tuning state machine is connected to the control end of the RC oscillator and the injection drive circuit, the first control switch S1 of the RC oscillator and the injection drive circuit is electrically connected to one end of the crystal, the second control switch S2 of the RC oscillator and the injection drive circuit is electrically connected to the other end of the crystal, the driving clock end of the RC oscillator and the injection drive circuit is electrically connected to the capacitor tuning state machine, and the output end of the crystal oscillation circuit is electrically connected to the frequency calibration circuit.

2. The device for rapidly starting a low-power clock crystal according to claim 1, characterized in that: The crystal oscillator circuit is a Pierce oscillator circuit.

3. The device for rapidly starting a low-power clock crystal according to claim 1, characterized in that: The crystal oscillator circuit is a Santos structure oscillator circuit.