[go: up one dir, main page]

CN113037219B - A crystal oscillator control circuit, a crystal oscillator start-up control method and an electronic device - Google Patents

A crystal oscillator control circuit, a crystal oscillator start-up control method and an electronic device Download PDF

Info

Publication number
CN113037219B
CN113037219B CN201911349246.9A CN201911349246A CN113037219B CN 113037219 B CN113037219 B CN 113037219B CN 201911349246 A CN201911349246 A CN 201911349246A CN 113037219 B CN113037219 B CN 113037219B
Authority
CN
China
Prior art keywords
crystal oscillator
module
control
capacitance value
capacitor array
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911349246.9A
Other languages
Chinese (zh)
Other versions
CN113037219A (en
Inventor
熊江
胡家杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Actions Technology Co Ltd
Original Assignee
Actions Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Actions Technology Co Ltd filed Critical Actions Technology Co Ltd
Priority to CN201911349246.9A priority Critical patent/CN113037219B/en
Publication of CN113037219A publication Critical patent/CN113037219A/en
Application granted granted Critical
Publication of CN113037219B publication Critical patent/CN113037219B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03BGENERATION OF OSCILLATIONS, DIRECTLY OR BY FREQUENCY-CHANGING, BY CIRCUITS EMPLOYING ACTIVE ELEMENTS WHICH OPERATE IN A NON-SWITCHING MANNER; GENERATION OF NOISE BY SUCH CIRCUITS
    • H03B19/00Generation of oscillations by non-regenerative frequency multiplication or division of a signal from a separate source
    • H03B19/05Generation of oscillations by non-regenerative frequency multiplication or division of a signal from a separate source using non-linear capacitance, e.g. varactor diodes
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L7/00Automatic control of frequency or phase; Synchronisation
    • H03L7/06Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
    • H03L7/16Indirect frequency synthesis, i.e. generating a desired one of a number of predetermined frequencies using a frequency- or phase-locked loop
    • H03L7/18Indirect frequency synthesis, i.e. generating a desired one of a number of predetermined frequencies using a frequency- or phase-locked loop using a frequency divider or counter in the loop

Landscapes

  • Physics & Mathematics (AREA)
  • Nonlinear Science (AREA)
  • Oscillators With Electromechanical Resonators (AREA)

Abstract

本发明实施例提供一种晶振控制电路、晶振的起振控制方法及电子设备,用以实现晶振的快速起振和起振过程低功耗。所述电路包括依次连接的晶振驱动模块、信号处理模块、电容阵列控制模块、电容阵列模块和晶振,晶振驱动模块还连接晶振,晶振驱动模块用于为晶振提供驱动能量;信号处理模块用于对接收到的第一时钟信号进行预设处理得到第二时钟信号,并将第二时钟信号输出至电容阵列控制模块;电容阵列控制模块用于在第二时钟信号控制下生成第一控制信号,并将第一控制信号输出至电容阵列模块;电容阵列模块,用于在第一控制信号的控制下,设定晶振起振的初始电容值,并通过改变晶振的负载电容值,调节晶振的起振波形和振荡频率。

The embodiment of the present invention provides a crystal oscillator control circuit, a crystal oscillator oscillation control method and an electronic device, which are used to realize fast oscillation of the crystal oscillator and low power consumption during the oscillation process. The circuit includes a crystal oscillator driving module, a signal processing module, a capacitor array control module, a capacitor array module and a crystal oscillator connected in sequence, the crystal oscillator driving module is also connected to the crystal oscillator, and the crystal oscillator driving module is used to provide driving energy for the crystal oscillator; the signal processing module is used to perform preset processing on the received first clock signal to obtain a second clock signal, and output the second clock signal to the capacitor array control module; the capacitor array control module is used to generate a first control signal under the control of the second clock signal, and output the first control signal to the capacitor array module; the capacitor array module is used to set the initial capacitance value of the crystal oscillator oscillation under the control of the first control signal, and adjust the oscillation waveform and oscillation frequency of the crystal oscillator by changing the load capacitance value of the crystal oscillator.

Description

Crystal oscillator control circuit, crystal oscillator starting control method and electronic equipment
Technical Field
The present invention relates to the field of integrated circuit design, and in particular, to a crystal oscillator control circuit, a crystal oscillator starting control method, and an electronic device.
Background
With the development of electronic technology, more and more electronic devices become personal belongings of people, such as smart bracelets, watches, bluetooth headsets, and the like. These devices typically have low battery capacity due to volume limitations and stringent chip power consumption requirements. To save power consumption, the device is typically in a standby state and is activated when it is required to connect to the handset. The start-up time and power consumption of a crystal oscillator are particularly important as a crystal oscillator for providing a clock to a system. The longer the starting time of the crystal oscillator is, the more energy is consumed, and the higher the power consumption ratio in the whole machine is. For example, in the bluetooth low energy (Bluetooth Low Energy, BLE) protocol, the transmission time of a data packet may be only hundreds of microseconds, and the start-up time of a crystal oscillator can reach the millisecond level, which is longer than the data transmission time. The crystal oscillator vibration starting time is too long, so that precious time resources are occupied, the transmission efficiency is affected, and the power consumption of the whole transmission process is increased.
In order to shorten the starting time of the crystal oscillator, the transconductance of a starting circuit is improved by increasing the starting current in the prior art, so that the starting time of the crystal oscillator is shortened. As shown in fig. 1, the dual driving current is adopted for starting the crystal oscillator, and the power consumption is saved by turning off one driving current after the crystal oscillator starts to vibrate, so that the rapid vibration starting is realized. Although the mode realizes quick starting and low power consumption of the crystal oscillator during working, the mode is realized at the cost of sacrificing the power consumption during starting, and because of the sudden change of the driving current, the oscillation waveform is greatly disturbed, the crystal oscillator needs to be re-stabilized, and the mode is not applicable to systems with strict requirements.
In summary, the crystal oscillator oscillation starting method in the prior art has the problem that both rapid oscillation starting and low power consumption cannot be achieved.
Disclosure of Invention
The embodiment of the invention provides a crystal oscillator control circuit, a crystal oscillator starting control method and electronic equipment, which are used for realizing rapid crystal oscillator starting and low power consumption in the crystal oscillator starting process.
In a first aspect, an embodiment of the present invention provides a crystal oscillator control circuit, including a crystal oscillator driving module, a signal processing module, a capacitor array control module, a capacitor array module, and a crystal oscillator that are sequentially connected,
The crystal oscillator driving module is used for providing driving energy for the crystal oscillator and outputting a first clock signal generated by the crystal oscillator to the signal processing module;
the signal processing module is used for carrying out preset processing on the received first clock signal to obtain a second clock signal, and outputting the second clock signal to the capacitor array control module;
The capacitor array control module is used for generating a first control signal under the control of the second clock signal and outputting the first control signal to the capacitor array module;
the capacitor array module is used for setting an initial capacitance value of the crystal oscillator under the control of the first control signal, and adjusting the oscillation starting waveform and the oscillation frequency of the crystal oscillator by changing the load capacitance value of the crystal oscillator.
The crystal oscillator control circuit provided by the embodiment of the invention consists of five parts, namely a crystal oscillator driving module, a crystal oscillator, a capacitor array module, a capacitor array control module and a signal processing module. The system comprises a crystal oscillator driving module, a signal processing module, a capacitance array control module and a capacitance array module, wherein the crystal oscillator driving module is connected with the crystal oscillator and is used for providing driving energy for the crystal oscillator and converting a sine wave of crystal oscillation into a square wave to enable the crystal oscillator to maintain reliable piezoelectric oscillation characteristics and output corresponding oscillation waveforms, the signal processing module is used for carrying out preset processing on a received first clock signal to obtain a second clock signal and outputting the second clock signal to the capacitance array control module, the capacitance array control module is used for generating a first control signal under the control of the second clock signal and outputting the first control signal to the capacitance array module so as to realize quick oscillation starting and smooth control of the oscillation starting waveform of the crystal oscillator, and the capacitance array module is connected with the crystal oscillator and is used for setting the initial capacitance value of the oscillation starting of the crystal oscillator under the control of the first control signal sent by the capacitance array control module and adjusting the oscillation starting waveform and oscillation frequency of the crystal oscillator by changing the load capacitance value of the crystal oscillator. Compared with the prior art, the crystal oscillator can rapidly start oscillation through the capacitance value change of the capacitor array module, and meanwhile, the power consumption in the oscillation starting process is reduced.
In one possible implementation, the capacitor array module adjusts the oscillation starting waveform and the oscillation frequency of the crystal oscillator by changing the load capacitance value of the crystal oscillator, and is specifically used for:
when the waveform of the crystal oscillator reaches a preset amplitude, the load capacitance of the crystal oscillator is controlled to reach a target capacitance value by increasing the set capacitance value each time, and the oscillation starting waveform and the oscillation frequency of the crystal oscillator are regulated.
According to the crystal oscillator control circuit provided by the embodiment of the invention, when the waveform of the crystal oscillator reaches the preset amplitude, the load capacitance of the crystal oscillator is controlled to obtain the target capacitance value by increasing the set capacitance value each time, so that the influence on the oscillation waveform of the crystal oscillator can be reduced, and the oscillation waveform of the crystal oscillator is smoother and more stable when the capacitance is regulated.
In one possible implementation, the crystal oscillator is a single external high-frequency crystal oscillator or a single external low-frequency crystal oscillator, and the crystal oscillator driving module, the capacitor array control module and the signal processing module are all arranged inside the chip.
In one possible implementation, the capacitor array module comprises a plurality of capacitor assemblies and switch assemblies connected between each capacitor assembly and a ground wire, wherein each switch assembly is used for performing a switching action according to a first control signal sent by the capacitor array control module so as to control whether the capacitor assembly connected with each switch assembly is connected with the capacitor array module or not.
In one possible implementation, the capacitor array module is further used for adjusting the oscillation starting waveform and the oscillation frequency of the crystal oscillator by changing the load capacitance value of the crystal oscillator, wherein the way of changing the load capacitance value of the crystal oscillator comprises one or more of thermometer coding and binary coding.
In one possible implementation, the capacitive array module is specifically configured to:
The capacitance component with the change of the capacitance value of the load capacitance of the crystal oscillator larger than a preset threshold value adopts a thermometer coding mode;
And a binary coding mode is adopted for the capacitor component of which the capacitance value of the load capacitor of the crystal oscillator is changed by less than or equal to a preset threshold value.
In one possible implementation, the capacitive array control module includes a digital comparator and a up-down counter connected in sequence, wherein,
The digital comparator is used for comparing the first control signal output by the capacitor array control module with the second control signal corresponding to the target capacitance value and outputting an adjusting signal for adjusting the first control signal;
and the bidirectional counter is used for counting the regulating signal output by the digital comparator under the control of the second clock signal and regulating the first control signal according to the counting result.
In one possible implementation, the preset processing of the signal processing module includes one or more of frequency division processing and time delay processing.
In a second aspect, an embodiment of the present invention provides an electronic device, including a crystal oscillator control circuit according to any one of the first aspect of the embodiment of the present invention.
In a third aspect, an embodiment of the present invention provides a method for controlling a crystal oscillator, which is used in the crystal oscillator control circuit in any one of the first aspect of the embodiment of the present invention, where the method includes:
The crystal oscillator driving module drives the crystal oscillator to generate a first clock signal and outputs the first clock signal to the signal processing module;
The signal processing module presets a processing clock signal to obtain a second clock signal, and outputs the second clock signal to the capacitor array control module;
the capacitor array control module generates a first control signal based on the second clock signal and transmits the first control signal to the capacitor array module;
The capacitor array module sets an initial capacitance value of the crystal oscillator based on the control of the first control signal, and adjusts the oscillation starting waveform and oscillation frequency of the crystal oscillator by changing the load capacitance value of the crystal oscillator.
In one possible implementation, the capacitor array module adjusts a start-up waveform and an oscillation frequency of the crystal oscillator by changing a load capacitance value of the crystal oscillator, including:
When the waveform of the crystal oscillator reaches a preset amplitude, the load capacitance is controlled to reach a target capacitance value by increasing the set capacitance value each time, and the oscillation starting waveform and the oscillation frequency of the crystal oscillator are regulated.
Drawings
The above, as well as additional purposes, features, and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description when read in conjunction with the accompanying drawings. Several embodiments of the present invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
FIG. 1 is a schematic waveform diagram of a crystal oscillator according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a crystal oscillator control circuit according to an embodiment of the present invention;
Fig. 3 is a schematic structural diagram of a crystal oscillating circuit according to an embodiment of the present invention;
FIG. 4 is a schematic circuit diagram of a crystal oscillator equivalent model according to an embodiment of the present invention;
FIG. 5 is a schematic diagram showing a relationship between a start-up time and a load capacitance of a crystal oscillator according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a capacitor array module according to an embodiment of the present invention;
Fig. 7 is a schematic structural diagram of another capacitor array module according to an embodiment of the present invention;
Fig. 8 is a schematic structural diagram of a capacitive array control module according to an embodiment of the present invention;
Fig. 9 is a schematic structural diagram of a signal processing module according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of a delay unit according to an embodiment of the present invention;
fig. 11 is a schematic diagram of signal conditioning of a signal processing module according to an embodiment of the present invention;
FIG. 12 is a schematic waveform diagram of a high-frequency crystal oscillator according to an embodiment of the present invention;
FIG. 13 is a schematic diagram of waveforms during a high frequency crystal oscillation starting process according to another embodiment of the present invention;
FIG. 14 is a schematic waveform diagram of a low frequency crystal oscillator according to an embodiment of the present invention;
fig. 15 is a schematic flow chart of a method for controlling the start-up of a crystal oscillator according to an embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described below with reference to the accompanying drawings, and it should be understood that the embodiments described herein are for illustration and explanation of the present invention only, and are not intended to limit the present invention.
In view of the fact that a stable and rapid crystal oscillation starting mode cannot be provided in the prior art, the embodiment of the invention provides a crystal oscillation control circuit which is used for providing the stable and rapid crystal oscillation starting mode, and achieves rapid crystal oscillation starting and low power consumption.
The following describes the scheme provided by the embodiment of the invention in detail with reference to the accompanying drawings.
As shown in fig. 2, the embodiment of the invention provides a crystal oscillator control circuit, which comprises a crystal oscillator driving module 21, a signal processing module 22, a capacitor array control module 23, a capacitor array module 24 and a crystal oscillator 25 which are sequentially connected, wherein the crystal oscillator driving module 21 is also connected with the crystal oscillator 25,
The crystal oscillator driving module 21 is configured to provide driving energy for the crystal oscillator 25, and output a first clock signal (clk_osc) generated by the crystal oscillator 25 to the signal processing module 22;
The signal processing module 22 is configured to perform a preset process on the received first clock signal (clk_osc) to obtain a second clock signal (ck_r), and output the second clock signal (ck_r) to the capacitor array control module 23;
The capacitor array control module 23 is configured to generate a first control signal (cap_ctl) under the control of the second clock signal (ck_r) output from the signal processing module 22, and output the first control signal (cap_ctl) to the capacitor array module 24.
The capacitor array module 24 is configured to set an initial capacitance for the crystal oscillator 25 to start vibrating under the control of the first control signal (cap_ctl) sent by the capacitor array control module 23, and adjust a start-up waveform and an oscillation frequency of the crystal oscillator 25 by changing a load capacitance value of the crystal oscillator 25.
In the implementation, when the load capacitance value of the crystal oscillator is changed and the oscillation starting waveform and the oscillation frequency of the crystal oscillator are adjusted, the capacitor array module can control the load capacitance of the crystal oscillator to reach the target capacitance value by increasing the set capacitance value each time when the crystal oscillator waveform reaches the preset amplitude so as to adjust the oscillation starting waveform and the oscillation frequency of the crystal oscillator. The preset amplitude may be set according to an empirical value, which is not limited in the embodiment of the present invention.
The initial capacitance may be flexibly set according to an actual scene, for example, the initial capacitance may be 0, or may be a minimum capacitance value or a multiple of the minimum capacitance value of the capacitance array module, where the set capacitance value may be a minimum capacitance adjustment amount of the capacitance array module, or may be a multiple of the minimum capacitance adjustment amount of the capacitance array module.
Of course, it should be noted that, in the process of increasing the set capacitance value to control the load capacitance of the crystal oscillator to reach the target capacitance value each time, the set capacitance value may be fixed, that is, the first control signal is specifically used to adjust the capacitance value of the capacitor array module to start with the initial capacitance and uniformly increase with the set capacitance value as intervals to reach the target capacitance value, the set capacitance value may also be continuously changed, for example, the set capacitance value is smaller when the adjustment starts, and the set capacitance value is continuously increased with the increase of the adjustment time, and of course, the set capacitance value may also be changed with other rules or randomly, which is not limited in the embodiment of the present invention.
In one example, the first control signal (cap_ctl) generated by the capacitive array control module may adjust the capacitance value of the capacitive array module starting from 0 and increasing uniformly at intervals of a minimum capacitance adjustment value of the capacitive array module to reach a target capacitance value.
In particular, after the circuit is enabled, the initial value of the capacitor array is set to 0 by the capacitor array control module 23, that is, cap_ctl=0, the circuit is rapidly started in the minimum load capacitor mode, when the oscillation amplitude of the crystal oscillator 25 increases to a preset value, the crystal oscillator driving module outputs a first clock signal (clk_osc), and after delay and frequency division processing by the signal processing module 22, outputs a second clock signal (ck_r), the capacitor array control module 23 compares the first control signal (cap_ctl) with a second control signal (cap_code) corresponding to the target capacitance value, and since the first control signal (cap_ctl) is smaller than the second control signal (cap_code) at the beginning, the first control signal (cap_ctl) is added with 1 when the rising edge of the second clock signal (ck_r) arrives, and each clock period of the second clock signal (ck_r) is performed once during the comparison until the first control signal (cap_ctl) is equal to the second control signal (cap_code), that is, the capacitor array is adjusted from 0 to the target capacitance value. And the capacitance added each time is the smallest capacitance unit in the capacitance array, so that the influence on the vibration starting waveform is small, and the waveform change is gentle.
Through the scheme, the capacitance value of the capacitor array module is adjusted in the crystal oscillator oscillation starting process, the minimum load capacitance is used for starting oscillation in the crystal oscillator oscillation starting stage, rapid oscillation starting is achieved, the load capacitance of the crystal oscillator is controlled by increasing the set capacitance value each time in the oscillation starting process, the capacitance is gradually adjusted to the target capacitance, the oscillation amplitude of the crystal oscillator is enabled to be small in change, rapid smooth oscillation starting is finally completed, and after the capacitor array is adjusted, the oscillation amplitude is rapidly increased, and finally stability is achieved. Compared with the prior art, the method reduces the power consumption in the vibration starting process while realizing quick vibration starting.
Further, in one possible implementation, the crystal oscillator is a single external high-frequency crystal oscillator or a single external low-frequency crystal oscillator, and the crystal oscillator driving module, the capacitor array control module and the signal processing module are all arranged inside the chip.
The following describes each module in the crystal oscillator control circuit in detail with reference to the accompanying drawings.
As shown in fig. 3, a is a common implementation structure of a crystal oscillating circuit, where a is an inverter structure, and power consumption of a crystal oscillator has a positive correlation with a supply voltage and a positive correlation with a load capacitance. b and c are single ended structures, and since they take the form of a constant tail current, the power consumption is independent of the supply voltage, and is related to the oscillation amplitude and the load capacitance. d is a single-ended structure with an amplitude control module, and the amplitude control module can detect the amplitude of oscillation voltage of the crystal oscillator and give real-time control, so that the power consumption of the circuit is controlled. The power consumption of the circuit is independent of the supply voltage, but dependent on the oscillation amplitude and the load capacitance.
As shown in fig. 4, an equivalent model of the crystal oscillator is shown, where Co, rm, cm, and Lm are intrinsic parameters. C1 and C2 are external load capacitors of the crystal oscillator, can be made on a PCB or in a chip, and can adjust the starting time of the crystal oscillator by changing the size of the load capacitors. The oscillation start time τ of the crystal oscillator can be represented by formula 1, where Re (Z C) is the negative resistance of the oscillation start circuit and can be represented by formula 2:
as shown in fig. 5, for a 24MHz crystal oscillator, the load capacitance has a large effect on the start-up time.
In one possible implementation, the capacitor array module comprises a plurality of capacitor assemblies and switch assemblies connected between each capacitor assembly and a ground line, wherein each switch assembly is used for performing a switching action according to a first control signal (CAP_CTL) sent by the capacitor array control module so as to control whether the capacitor assembly connected with each switch assembly is connected with the capacitor array module or not.
In one possible implementation, the capacitor array module is further used for adjusting the oscillation starting waveform and the oscillation frequency of the crystal oscillator by changing the load capacitance value of the crystal oscillator, wherein the way of changing the load capacitance value of the crystal oscillator comprises one or more of thermometer coding and binary coding.
Specifically, a capacitance component in the capacitance array module, which changes the capacitance value of the load capacitance of the crystal oscillator by more than a preset threshold value, adopts a capacitance thermometer coding mode. And a capacitor component in the capacitor array module, which changes the capacitance value of the load capacitor of the crystal oscillator by less than or equal to a preset threshold value, adopts a binary coding mode. The preset threshold value can be flexibly set according to an empirical value or an actual scene, which is not limited by the embodiment of the invention.
As shown in FIG. 6, the thermometer coded capacitor array has the advantages of small influence on the oscillation waveform and good performance because only one unit capacitor is turned on or off during each adjustment, and the disadvantage of more switches needed and the need of decoding by the controller. As shown in FIG. 7, the binary coded capacitor array has the advantages of small number of required switches, only N switches for N Bit arrays, large disturbance to waveforms during capacitor adjustment and poor performance.
In one possible implementation, for a 10 Bit (Bit) capacitive array, 2 10 or 1024 switches are required if a thermometer coded capacitive array is used, but only 10 switches are required if a binary coded capacitive array is used.
In order to achieve both performance and area, the thermometer coded capacitor array and the binary coded capacitor array can be used in a fused mode, wherein the thermometer coded array is used for high-order bits, and the binary coded array is used for low-order bits. This reduces the number of switches and reduces the disturbance to the waveform during capacitance adjustment.
As shown in fig. 8, the capacitive array control module includes a digital comparator 81 and a UP-DOWN counter 82 connected in sequence, wherein the digital comparator 81 is used for comparing a first control signal (cap_ctl) output by the capacitive array control module with a second control signal (cap_code) corresponding to a target capacitance value, outputting an adjustment signal (UP/DOWN) for adjusting the first control signal (cap_ctl), and the UP-DOWN counter 82 is used for counting the adjustment signal (UP/DOWN) output by the digital comparator 81 under the control of the second clock signal (ck_r) and adjusting the first control signal (cap_ctl) according to the counting result.
The capacitor array control module operates according to the principle that a digital comparator compares a first control signal (CAP_CTL) and a second control signal (CAP_CODE), if the first control signal (CAP_CTL) is larger than the second control signal (CAP_CODE), up=0, down=1, when a clock edge arrives, a down-counter performs a down-1 operation, i.e. the first control signal (CAP_CTL) is decremented by 1, and then performs the next comparison, if the first control signal (CAP_CTL) is smaller than the second control signal (CAP_CODE), up=1, down=0, when the clock edge arrives, the down-counter performs a 1-Up operation, i.e. the first control signal (CAP_CTL) is incremented by 1, and then performs the next comparison, if the first control signal (CAP_CTL) is equal to the second control signal (CAP_CODE), and when the clock edge arrives, the down=0 maintains the original value, and finally the first control signal (CAP_CTL) is equal to the second control signal (CAP_CODE) through a plurality of comparison/counting cycles.
As shown in fig. 9, the signal processing unit is composed of a delay unit 91 and a frequency divider 92. According to the principle of phase noise injection, the signal amplitude is adjusted at the highest point or the lowest point, so that the interference to the signal is minimum, and therefore, the control clock of the counter can be delayed by the delay unit 91 to make the phase shift (for example, 90 degrees) to achieve the best effect. The delay unit 91 has various structures, as shown in fig. 10, a uses an RC low-pass filter to delay the first clock signal (clk_osc), and in fig. 10, b uses a plurality of delay elements connected in series to achieve the purpose of delay. After delay, each time the oscillating signal reaches the peak, the capacitor array is adjusted, so that interference to the signal is reduced, and the specific adjustment process is shown in fig. 11. It should be noted that, the clock of the up-down counter is derived from the crystal oscillator itself, the capacitance is gradually increased in the oscillation starting stage, if the capacitance increases too fast, the oscillation starting amplitude becomes smaller, and the clock is interrupted, so that in order to smoothly switch the load capacitance, the continuous too fast change of the load is avoided, and the clock of the crystal oscillator is divided by the frequency divider 92, thereby controlling the speed of capacitance adjustment.
Fig. 12 and 13 show a comparison between a vibration waveform of a solution provided by the embodiment of the present invention and a vibration waveform of a conventional solution in the prior art during a vibration starting process of a high-frequency crystal oscillator. The sinusoidal waveform at the output of the crystal oscillator is shown in fig. 12, and the first clock signal (clk_osc) waveform converted to a square wave is shown in fig. 13. The first waveform is a conventional oscillation starting waveform for starting oscillation of a target capacitor, compared with the conventional oscillation starting waveform provided by the scheme, the conventional oscillation starting waveform is much slower, the conventional oscillation starting time is about 600 microseconds (mu S), the conventional oscillation starting waveform only needs 200 mu S and the phase difference is 400 mu S, the third waveform represents that the oscillation starts with the minimum load capacitor, after the oscillation starting is completed, the capacitor is adjusted to the target capacitor at one time, and the mode is quick in oscillation starting, but the waveform generates larger disturbance when the capacitor is adjusted, and a period of time is needed after the capacitor is adjusted to re-stabilize the oscillation amplitude of the waveform.
As shown in fig. 14, in the process of starting the low-frequency crystal oscillator, the scheme provided by the embodiment of the invention is compared with the starting waveform of the conventional scheme in the prior art. The first waveform is a crystal oscillator oscillation starting waveform provided by the embodiment of the invention, the crystal oscillator oscillates by the minimum load capacitance, the capacitance is gradually adjusted to the target capacitance in the oscillation starting process, and finally the rapid smooth oscillation starting is finished, and the second waveform is a conventional oscillation starting waveform which oscillates by the target capacitance, and compared with the crystal oscillator oscillation starting speed provided by the scheme, the crystal oscillator oscillation starting waveform is much slower. As can be seen, the conventional start-up time is about 700 milliseconds (mS), whereas the present solution is only 40mS, which is faster by 660mS.
Based on the same inventive thought, the embodiment of the invention also provides electronic equipment, which comprises the crystal oscillator control circuit provided by the embodiment of the invention.
Based on the same inventive concept, as shown in fig. 15, the embodiment of the invention further provides a method for controlling the starting of a crystal oscillator, which is used for the crystal oscillator control circuit provided by the embodiment of the invention, and the method may include the following steps:
Step 1501, a crystal oscillator driving module drives a crystal oscillator to generate a first clock signal and outputs the first clock signal to a signal processing module;
step 1502, a signal processing module presets a processing clock signal to obtain a second clock signal, and outputs the second clock signal to a capacitor array control module;
Step 1503, the capacitor array control module generates a first control signal based on the second clock signal, and transmits the first control signal to the capacitor array module;
In step 1504, the capacitor array module sets an initial capacitance value of the crystal oscillator based on the control of the first control signal, and adjusts the oscillation starting waveform and the oscillation frequency of the crystal oscillator by changing the load capacitance value of the crystal oscillator.
In one possible implementation, the capacitor array module adjusts a start-up waveform and an oscillation frequency of the crystal oscillator by changing a load capacitance value of the crystal oscillator, including:
When the waveform of the crystal oscillator reaches a preset amplitude, the load capacitance is controlled to reach a target capacitance value by increasing the set capacitance value each time, and the oscillation starting waveform and the oscillation frequency of the crystal oscillator are regulated.
The initial capacitance may be flexibly set according to an actual scene, for example, the initial capacitance may be 0, or may be a minimum capacitance value or a multiple of the minimum capacitance value of the capacitance array module, where the set capacitance value may be a minimum capacitance adjustment amount of the capacitance array module, or may be a multiple of the minimum capacitance adjustment amount of the capacitance array module.
In the process of increasing the set capacitance value each time to control the load capacitance of the crystal oscillator to reach the target capacitance value, the set capacitance value can be fixed, namely, the first control signal is specifically used for adjusting the capacitance value of the capacitance array module to start with the initial capacitance and uniformly increase to reach the target capacitance value with the set capacitance value as intervals, the set capacitance value can also be changed continuously, for example, the set capacitance value is smaller when the adjustment is started, and the set capacitance value is increased continuously along with the increase of the adjustment time, and of course, the set capacitance value can also be changed in other rules or randomly.
In one example, the first control signal (cap_ctl) generated by the capacitive array control module may adjust the capacitance value of the capacitive array module starting from 0 and increasing uniformly at intervals of a minimum capacitance adjustment value of the capacitive array module to reach a target capacitance value.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (11)

1. A crystal oscillator control circuit is characterized by comprising a crystal oscillator driving module, a signal processing module, a capacitor array control module, a capacitor array module and a crystal oscillator which are connected in sequence, wherein the crystal oscillator driving module is also connected with the crystal oscillator,
The crystal oscillator driving module is used for providing driving energy for the crystal oscillator and outputting a first clock signal generated by the crystal oscillator to the signal processing module;
the signal processing module is used for carrying out preset processing on the received first clock signal to obtain a second clock signal, and outputting the second clock signal to the capacitor array control module;
The capacitor array control module is used for generating a first control signal under the control of the second clock signal and outputting the first control signal to the capacitor array module;
The capacitor array module is used for setting an initial capacitance value of the crystal oscillator under the control of the first control signal, and changing a load capacitance value of the crystal oscillator by taking the initial capacitance value as a starting value so as to adjust the oscillation starting waveform and oscillation frequency of the crystal oscillator.
2. The circuit according to claim 1, wherein the capacitor array module adjusts the oscillation starting waveform and the oscillation frequency of the crystal oscillator by changing the load capacitance value of the crystal oscillator, in particular for:
When the waveform of the crystal oscillator reaches a preset amplitude, the load capacitance of the crystal oscillator is controlled to reach a target capacitance value by increasing a set capacitance value each time, and the oscillation starting waveform and the oscillation frequency of the crystal oscillator are regulated.
3. The circuit of claim 1, wherein the crystal oscillator is a single external high frequency crystal oscillator or a single external low frequency crystal oscillator, and the crystal oscillator drive module, the capacitor array control module, and the signal processing module are all disposed inside a chip.
4. The circuit of claim 1, wherein the capacitor array module comprises a plurality of capacitor assemblies and a switch assembly connected between each capacitor assembly and a ground line, wherein each switch assembly is configured to perform a switching operation according to a first control signal sent by the capacitor array control module, so as to control whether the capacitor assembly connected with each switch assembly is connected to the capacitor array module.
5. The circuit of claim 4, wherein the capacitor array module is further configured to adjust a start-up waveform and an oscillation frequency of the crystal oscillator by changing a load capacitance value of the crystal oscillator, wherein the manner of changing the load capacitance value of the crystal oscillator includes one or more of thermometer coding and binary coding.
6. The circuit of claim 5, wherein the capacitive array module is specifically configured to:
A thermometer coding mode is adopted for a capacitor component of which the change of the capacitance value of the load capacitor of the crystal oscillator is larger than a preset threshold value;
And adopting a binary coding mode for a capacitor component of which the change of the capacitance value of the load capacitor of the crystal oscillator is smaller than or equal to the preset threshold value.
7. The circuit of claim 2, wherein the capacitive array control module comprises a digital comparator and a up-down counter connected in sequence, wherein,
The digital comparator is used for comparing a first control signal output by the capacitor array control module with a second control signal corresponding to the target capacitance value and outputting an adjusting signal for adjusting the first control signal;
the bidirectional counter is used for counting the adjusting signals output by the digital comparator under the control of the second clock signal and adjusting the first control signal according to the counting result.
8. The circuit according to claim 1, wherein the preset process includes one or more of a frequency division process and a delay process.
9. An electronic device comprising a crystal oscillator control circuit according to any one of claims 1-8.
10. A method of controlling the start-up of a crystal oscillator for a crystal oscillator control circuit according to any one of claims 1 to 8, the method comprising:
the crystal oscillator driving module drives the crystal oscillator to generate a first clock signal and outputs the first clock signal to the signal processing module;
The signal processing module presets and processes the first clock signal to obtain a second clock signal, and outputs the second clock signal to the capacitor array control module;
the capacitor array control module generates a first control signal based on the second clock signal and transmits the first control signal to the capacitor array module;
The capacitor array module sets an initial capacitance value of the crystal oscillator based on the control of the first control signal, and changes a load capacitance value of the crystal oscillator by taking the initial capacitance value as a starting value so as to adjust the oscillation starting waveform and oscillation frequency of the crystal oscillator.
11. The method of claim 10, wherein the capacitance array module adjusts a start-up waveform and an oscillation frequency of the crystal by changing a load capacitance value of the crystal, comprising:
When the waveform of the crystal oscillator reaches a preset amplitude, the load capacitance is controlled to reach a target capacitance value by increasing the set capacitance value each time, and the oscillation starting waveform and the oscillation frequency of the crystal oscillator are regulated.
CN201911349246.9A 2019-12-24 2019-12-24 A crystal oscillator control circuit, a crystal oscillator start-up control method and an electronic device Active CN113037219B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911349246.9A CN113037219B (en) 2019-12-24 2019-12-24 A crystal oscillator control circuit, a crystal oscillator start-up control method and an electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911349246.9A CN113037219B (en) 2019-12-24 2019-12-24 A crystal oscillator control circuit, a crystal oscillator start-up control method and an electronic device

Publications (2)

Publication Number Publication Date
CN113037219A CN113037219A (en) 2021-06-25
CN113037219B true CN113037219B (en) 2025-02-11

Family

ID=76451846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911349246.9A Active CN113037219B (en) 2019-12-24 2019-12-24 A crystal oscillator control circuit, a crystal oscillator start-up control method and an electronic device

Country Status (1)

Country Link
CN (1) CN113037219B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113746453A (en) * 2021-11-05 2021-12-03 北京思凌科半导体技术有限公司 Frequency adjustment circuit, method and communication equipment
CN114578153B (en) * 2022-01-26 2023-05-16 奉加科技(上海)股份有限公司 Crystal oscillator oscillation detection circuit
CN118399892B (en) * 2024-04-15 2025-02-18 珠海市杰理科技股份有限公司 A crystal oscillator oscillating circuit, bare die, chip and electronic device
CN118249805B (en) * 2024-05-27 2024-09-03 杭州胜金微电子有限公司 Crystal oscillator starting control circuit, crystal oscillator starting control method, electronic equipment and medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107483047A (en) * 2017-09-19 2017-12-15 珠海泰芯半导体有限公司 A kind of crystal oscillator system, crystal oscillator frequency calibration device and method

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7525392B2 (en) * 2006-08-05 2009-04-28 Tang System XtalClkChip: trimming-free crystal-free precision reference clock oscillator IC chip
US6304623B1 (en) * 1998-09-03 2001-10-16 Time Domain Corporation Precision timing generator system and method
DE10308643A1 (en) * 2003-02-27 2004-09-16 Infineon Technologies Ag Phase regulating arrangement
US7221233B2 (en) * 2004-09-24 2007-05-22 Cypress Semiconductor Corp. Nonvolatile programmable crystal oscillator circuit
CN101577542B (en) * 2008-05-05 2011-07-27 北京中电华大电子设计有限责任公司 Circuit and clock recovery method based on switching capacity comparison circuit
CN102394604B (en) * 2011-09-23 2015-02-11 惠州Tcl移动通信有限公司 System and method for providing required clock signal for near-field wireless communication chip
US9236872B2 (en) * 2012-03-12 2016-01-12 Seiko Epson Corporation Voltage-controlled oscillator, signal generation apparatus, and electronic device
JP2015056730A (en) * 2013-09-11 2015-03-23 株式会社東芝 Semiconductor integrated circuit and oscillation system
CN106059538B (en) * 2016-05-19 2019-01-01 深圳大学 A kind of relaxor of included process deviation calibration function
JP2019114837A (en) * 2017-12-21 2019-07-11 セイコーエプソン株式会社 Circuit device, oscillator, electronic device, and moving body

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107483047A (en) * 2017-09-19 2017-12-15 珠海泰芯半导体有限公司 A kind of crystal oscillator system, crystal oscillator frequency calibration device and method

Also Published As

Publication number Publication date
CN113037219A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
CN113037219B (en) A crystal oscillator control circuit, a crystal oscillator start-up control method and an electronic device
JP5230767B2 (en) Variable frequency multiphase oscillator
US6548991B1 (en) Adaptive voltage scaling power supply for use in a digital processing component and method of operating the same
CN106059288B (en) charge pump voltage regulator and related control method
JPH04222455A (en) Interface circuit
CN106067787B (en) Clock generation circuit applied to charge pump system
JP2007235188A (en) Triangular wave oscillation circuit
US20100289548A1 (en) Frequency Generator for Generating Signals with Variable Frequencies
CN113037215B (en) Crystal oscillator control circuit and electronic equipment
CN110995207A (en) A Gaussian pulse signal generator and signal generation method
EP2329597B1 (en) Oscillating circuit, dc-dc converter, and semiconductor device
EP2777156B1 (en) Oscillator based frequency locked loop
JP4628434B2 (en) Oscillation frequency control circuit, DC-DC converter having the oscillation frequency control circuit, and semiconductor device
CN111565041B (en) Rapid oscillation starting circuit and rapid oscillation starting method
JP2009010623A (en) Oscillator circuit and method of generating pulse signal
US10152077B2 (en) Voltage generating circuit and pre-driving signal generating module
KR20210068905A (en) Relaxation oscillator and method for controlling the same
CN1625034B (en) Synchronous rectifying type switching regulator control circuit
JP5941244B2 (en) Clock generation circuit, power supply system, and clock signal frequency changing method
US9680453B1 (en) Oscillator circuit
CN109842374B (en) Amplitude-limiting high-frequency oscillation circuit and oscillation signal generating method
US20240223165A1 (en) Oscillation device and method for oscillation thereof
US20250036150A1 (en) Digital low dropout regulator and electronic device using the same
JP6641815B2 (en) Circuit devices and electronic equipment
CN116760261A (en) Power supply circuit with adjustable frequency and power supply device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant