Crystal oscillator circuit and method for starting up a crystal oscillator
10965249 ยท 2021-03-30
Assignee
Inventors
Cpc classification
H03B5/06
ELECTRICITY
H03B5/366
ELECTRICITY
H03B5/04
ELECTRICITY
International classification
H03B5/30
ELECTRICITY
H03B5/06
ELECTRICITY
Abstract
A crystal oscillator circuit comprises: a crystal oscillator; and an injection frequency generating circuit, the injection frequency generating circuit being configured to sense a signal of the crystal oscillator and amplify the sensed signal, the injection frequency generating circuit being further configured to inject the amplified signal to the crystal oscillator; wherein the crystal oscillator circuit is configured such that the crystal oscillator receives the amplified signal during an initial start-up period of the crystal oscillator and stops receiving the amplified signal at an end of the initial start-up period.
Claims
1. A crystal oscillator circuit comprising: a crystal oscillator; an injection frequency generating circuit, wherein the injection frequency generating circuit is configured, during start-up of the crystal oscillator, to sense a signal output by the crystal oscillator to form a sensed signal separate from the signal output by the crystal oscillator and amplify the sensed signal to form an amplified signal, and wherein the injection frequency generating circuit is further configured to inject the amplified signal to the crystal oscillator; and an injection frequency control circuit for enabling the injection frequency generating circuit during an initial start-up period and disabling the injection frequency generating circuit at an end of the initial start-up period, wherein the injection frequency generating circuit comprises a two-stage operational amplifier circuit for sensing and amplifying the signal of the crystal oscillator, and the two-stage operational amplifier circuit has a gain bandwidth that is stable against external process, supply voltage, or temperature variations; wherein the crystal oscillator circuit is configured such that the crystal oscillator (i) receives the amplified signal during the initial start-up period of the crystal oscillator and (ii) stops receiving any injected signals, including the amplified signal, at the end of the initial start-up period.
2. The crystal oscillator circuit according to claim 1, wherein the injection frequency generating circuit is connected to pins on opposite sides of the crystal oscillator for sensing the signal and for injecting the amplified signal.
3. The crystal oscillator circuit according to claim 1, wherein the injection frequency generating circuit is configured to vary a frequency of the amplified signal injected to the crystal oscillator based on an injection frequency window extending signal.
4. The crystal oscillator circuit according to claim 3, wherein the injection frequency window extending signal affects a parameter for varying latency of the two-stage operational amplifier circuit of the injection frequency generating circuit.
5. The crystal oscillator circuit according to claim 4, wherein the parameter is an input bias current of the injection frequency generating circuit, a dimension of transistors of operational amplifiers, or a load capacitance at an output of the two-stage operational amplifier circuit.
6. The crystal oscillator according to claim 3, wherein the injection frequency window extending signal affects a delay generator of the injection frequency generating circuit for varying latency of the delay generator.
7. A crystal oscillator circuit comprising: a crystal oscillator; and an injection frequency generating circuit, wherein the injection frequency generating circuit is configured, during start-up of the crystal oscillator, to sense a signal output by the crystal oscillator to form a sensed signal separate from the signal output by the crystal oscillator and amplify the sensed signal to form an amplified signal, and the injection frequency generating circuit is further configured to inject the amplified signal to the crystal oscillator, the injection frequency generating circuit is configured to vary a frequency of the amplified signal injected to the crystal oscillator based on an injection frequency window extending signal, the injection frequency window extending signal affects a delay generator of the injection frequency generating circuit for varying latency of the delay generator, and the delay generator is a digital-to-time converter (DTC) or digitally-controlled delay line (DCDL), wherein the crystal oscillator circuit is configured such that the crystal oscillator (i) receives the amplified signal during an initial start-up period of the crystal oscillator and (ii) stops receiving any injected signals, including the amplified signal, at an end of the initial start-up period.
8. The crystal oscillator circuit according to claim 1, wherein a loading capacitance control circuit comprises at least one load capacitor bank, which is configured to provide a tunable capacitance, such that a small capacitance is provided during start-up of the crystal oscillator.
9. The crystal oscillator circuit according to claim 8, further comprising a clock detecting circuit, which is configured to receive a clock signal from the crystal oscillator and determine whether a quality of the clock signal is sufficient for output from the crystal oscillator circuit.
10. The crystal oscillator circuit according to claim 9, wherein the clock detecting circuit is configured to output a ready signal to the loading capacitance control circuit when it is determined that a quality of the clock signal is sufficient for output from the crystal oscillator circuit, wherein the output of the ready signal triggers increasing a capacitance of the at least one load capacitor bank of the crystal oscillator circuit.
11. The crystal oscillator circuit according to claim 10, wherein the loading capacitance control circuit and an injection frequency control circuit are combined in a single circuit for controlling both the loading capacitance and the injection frequency.
12. The crystal oscillator circuit according to claim 9, wherein the clock detecting circuit comprises an envelope detector configured to determine a signal strength of the signal from the crystal oscillator.
13. The crystal oscillator circuit according to claim 12, wherein the clock detecting circuit comprises a comparator configured to receive an envelope signal from the envelope detector, and configured to determine whether an amplitude of the signal from the crystal oscillator exceeds a threshold level.
14. A wireless sensor node comprising the crystal oscillator circuit according to claim 1, wherein the crystal oscillator circuit provides a reference clock signal or a real-time counter.
15. A method for starting up a crystal oscillator, the method comprising: triggering start of oscillations by the crystal oscillator such that a signal is output by the crystal oscillator; during start-up of the crystal oscillator, sensing and amplifying the signal output by the crystal oscillator by a two-stage operational amplifier circuit of an injection frequency generating circuit to form an amplified signal separate from the signal output by the crystal oscillator, wherein the two-stage operational amplifier circuit has a gain bandwidth that is stable against external process, supply voltage, or temperature variations; enabling, by an injection frequency control circuit and during an initial start-up period of the crystal oscillator, the injection frequency generating circuit to thereby cause the injection frequency generating circuit to inject the amplified signal to the crystal oscillator to increase internal noise in the crystal oscillator and thereby decrease start-up time of the crystal oscillator; and disabling, by the injection frequency control circuit, the injection frequency generating circuit at an end of the initial start-up period of the crystal oscillator, such that the crystal oscillator stops receiving any injected signals, including the amplified signal.
16. The method according to claim 15, further comprising increasing a loading capacitance of a crystal oscillator circuit in response to detecting that a quality of a clock signal is sufficient for output from the crystal oscillator circuit.
17. The method according to claim 15, further comprising varying a frequency of the amplified signal injected to the crystal oscillator.
Description
BRIEF DESCRIPTION OF THE FIGURES
(1) The above, as well as additional, features will be better understood through the following illustrative and non-limiting detailed description of example embodiments, with reference to the appended drawings.
(2) The above, as well as additional objects and features of the present inventive concept, will be better understood through the following illustrative and non-limiting detailed description, with reference to the appended drawings. In the drawings like reference numerals will be used for like elements unless stated otherwise.
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12) All the figures are schematic, not necessarily to scale, and generally only show parts which are necessary to elucidate example embodiments, wherein other parts may be omitted or merely suggested.
DETAILED DESCRIPTION
(13) Example embodiments will now be described more fully hereinafter with reference to the accompanying drawings. That which is encompassed by the claims may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided by way of example. Furthermore, like numbers refer to the same or similar elements or components throughout.
(14)
(15) The crystal oscillator circuit 100 may be configured for providing a short start-up time of the crystal oscillator 100. The crystal oscillator circuit 100 may comprise an injection frequency generating circuit 104, which may be configured to, during an initial start-up period of the crystal oscillator 102, sense a signal of the crystal oscillator 102 and amplify the sensed signal so as to inject the amplified signal back to the crystal oscillator 102. Thus, an internal noise in the crystal oscillator 102 is increased and the start-up time may be reduced.
(16) The crystal oscillator circuit 100 may also comprise a dynamically adjusted load circuit 106, which is configured to control a loading capacitance of the crystal oscillator circuit 100. The loading capacitance may thus be tuned such that a small loading capacitance may be provided during start-up so as to reduce the start-up time.
(17) The crystal oscillator circuit 100 may comprise a single input pin 108 for receiving an enable signal to start up the crystal oscillator. The crystal oscillator circuit 100 may be fully autonomous to provide a fast start-up of the crystal oscillator 102 based on an enable signal received on the input pin 108.
(18) It is worthwhile to note that the crystal oscillator circuit 100 described herein is compatible with implementation of digitally-controlled crystal oscillators (DCXOs).
(19) Thus, the crystal oscillator circuit 100 may internally control the injection frequency generating circuit 104 to provide an injected amplified signal to the crystal oscillator 102 during an initial start-up period of the crystal oscillator 102. The crystal oscillator circuit 100 may comprise an injection frequency control circuit 110 for enabling the injection frequency generating circuit 104 during the initial start-up period and disabling the injection frequency generating circuit 104 at an end of the initial start-up period.
(20) The injection frequency control circuit 110 may receive the signal from the crystal oscillator 102, such that the injection frequency control circuit 110 may determine progress of the start-up of the crystal oscillator 102 and decide when the amplified signal from the injection frequency generating circuit 104 is no longer needed. The injection frequency control circuit 110 may also or alternatively receive an external signal (e.g., from another circuit in the crystal oscillator circuit 100), which may indicate to the injection frequency control circuit 110 that it is time to disable the injection frequency generating circuit 104, e.g., based on detection of a quality of the crystal oscillator signal.
(21) The injection frequency control circuit 110 may alternatively use information based on simulations or tests of the crystal oscillator circuit 100, indicating a suitable length of the initial start-up period. The injection frequency control circuit 110 may then be arranged to disable the injection frequency generating circuit 104 when a time indicated by the information of the injection frequency control circuit 110 has passed.
(22) The crystal oscillator circuit 100 may further comprise a loading capacitance control circuit 112, which may be arranged to control a loading capacitance of the crystal oscillator circuit 100. The loading capacitance control circuit 112 may be arranged to trigger increase of a loading capacitance when it is determined that a clock signal of sufficient quality is output by the crystal oscillator 102.
(23) The injection frequency control circuit 110 and the loading capacitance control circuit 112 may be arranged in a common unit, which may output separate control signals for disabling/enabling the injection frequency generating circuit 104 and for tuning a loading capacitance of the crystal oscillator circuit 100. A common control circuit may e.g., use input of the progress of start-up of the crystal oscillator 102 both for controlling the injection frequency generating circuit 104 and for tuning the loading capacitance.
(24) However, as indicated in
(25) Referring now to
(26) As shown in
(27) In comparison to an injection frequency being generated by an external RC-based oscillator, the two-stage operational amplifier is more robust against environmental changes, such as process, voltage, and temperature (PVT) variations.
(28) The robustness of the operational amplifier may be explained as follows: the latency of an operational amplifier can be affected by I.sub.op/C.sub.op, where I.sub.op is a bias current of the operational amplifier and C.sub.op represents a capacitive load that the operational amplifier drives. Noting that the transconductance g.sub.m is proportional to I.sub.op, the latency of the operational amplifier can also be approximated with g.sub.m,op/C.sub.op. Noting that g.sub.m,op/C.sub.op is similar to a gain bandwidth (GBW) of the operational amplifier, the latency of the operational amplifier can be represented by the GBW of the operational amplifier. Therefore, to obtain a stable injection frequency, the latency of the operational amplifier needs to be stable, and therefore the GBW of the operational amplifier has to be stable. Noting that the capacitance C.sub.op is relatively stable against PVT variations, and that g.sub.m can usually be provided by a stable bandgap reference generator in operational amplifiers, the GBW of the operational amplifier can be relatively stable against PVT variations. Thus, the injection frequency generating circuit 104 based on a two-stage operational amplifier may be relatively robust against PVT variations.
(29) Referring now to
(30) In
(31) As further indicated in
(32) Also or alternatively, the latency of the operational amplifier may be varied by having multiple transistor elements in the injection frequency generating circuit 104 and, by switching which transistor element is active, a dimension of the transistors may be varied in order to vary the latency of the operational amplifier.
(33) It should also be realized that a window size of the injection frequency may also or alternatively be varied by providing an external component to the operational amplifier for changing the frequency output by the operational amplifier. As shown in
(34) The varying of the injection frequency for providing an increased window size of the injection frequency may be based on an injection frequency window extending signal, which may be provided to a component for varying latency of the injection frequency generating circuit 104 as discussed above. The injection frequency window extending signal may be a varying signal and may, as mentioned above, be provided as digital control bits for controlling a component of the injection frequency generating circuit 104.
(35) The injection frequency window extending signal may be provided by a control block 126. The control block 126 may be integrated in the injection frequency control circuit 110, but may alternatively be a separate control block.
(36) The injection frequency window extending signal may be arranged to toggle or switch between at least two levels. However, the injection frequency window extending signal may be a varying code between multiple levels with a fixed pattern (e.g., ramp) or a random pattern. The control block 126 may suitably be a digital control block for digitally providing different codes as input for varying latency of the injection frequency generating circuit 104.
(37) In addition to the injection frequency provided by the injection frequency generating circuit 104, the start-up time of the crystal oscillator 102 may also be reduced using a dynamically adjusted load circuit 106.
(38) To illustrate the principle of the dynamically adjusted load circuit 106, a part of a crystal oscillator circuit 100 is shown in
Re(Z.sub.c)>=R.sub.s,
i.e., the real part of a negative resistance of the impedance Z.sub.c of the crystal oscillator circuit must be equal to or larger than a resistance R.sub.s of the resistor 136 of the crystal oscillator 102 in order to start-up and maintain oscillation.
(39) The real part of Z.sub.c may be expressed as:
(40)
where g.sub.m is a transconductance of the crystal oscillator circuit, C.sub.1 and C.sub.2 are the capacitances of the loading capacitors 130, 132, respectively, C.sub.3 is the parasitic capacitance of the capacitor 142 and is an oscillation angular frequency.
(41) In order to reduce a start-up time of the crystal oscillator 102 while still maintaining minimum power overhead, reducing the loading capacitance C.sub.L is more attractive in comparison to increasing g.sub.m from two aspects. First, the negative resistance R.sub.N of the impedance Z.sub.c can be approximated to g.sub.m/(2C.sub.L).sup.2. It can be seen that R.sub.N is linearly proportional to g.sub.m but quadratic to 1/C.sub.L, so reducing C.sub.L is more effective to obtain higher |R.sub.N| at start-up. Second, the required minimum g.sub.m is proportional to R.sub.m(2C.sub.L).sup.2, indicating that smaller C.sub.L gives a lower power requirement for start-up. Therefore, at start-up, smaller C.sub.L is desired for both fast start-up and low power consumption. However, at steady state, small C.sub.L results in a worse frequency pulling factor, proportional to C.sub.m/(C.sub.3+2C.sub.L) and makes a crystal oscillator frequency unstable and unpredictable against environmental variations.
(42) As illustrated in
(43) Referring to
(44) The dynamically adjusted load circuit 106 comprises a clock detector 150, which is configured to decide if the crystal oscillator 102 has a sufficient output swing to provide an output clock signal to control a digital circuit. If so, a loading capacitance control circuit 112 will automatically increase the loading capacitance of the loading capacitors 130, 132 to the targeted value.
(45) The clock detector 150 may comprise an envelope detector 154 and a comparator 156. The envelope detector 154 together with the comparator 156 senses the amplitude of the signal output by the crystal oscillator 102. Additionally, the clock detector may comprise a digital clock detecting circuit 158, which receives an input from the comparator 156 and checks whether clock quality is sufficient for digital controlling. If the digital clock detecting circuit 158 finds that the clock quality is sufficient, the digital clock detecting circuit 158 outputs a ready signal to the loading capacitance control circuit 112.
(46) The loading capacitance control circuit 112 may include a finite state machine (FSM) 152, which receives a clock signal from the digital clock detecting circuit 158 based on the clock signal output by the crystal oscillator 102. The clock signal may be received at a divided frequency based on the output by the crystal oscillator 102, which may imply a lower operation frequency and a better operation of the dynamically adjusted load feedback loop. The FSM 152 generates a tuning code for tuning a capacitance of the loading capacitors 130, 132. The tuning code may be provided to a block 160 for converting a binary code to a thermometer code. The thermometer code may then control the capacitance of the loading capacitors 130, 132.
(47) The loading capacitors 130, 132 may be formed as loading capacitor banks. By further providing thermometer-encoded tuning input, any possible clock glitches due to a binary code may be avoided.
(48) The crystal oscillator frequency deviates a few ppm away at the start-up due to frequency pulling and settles to the target frequency once the capacitances of the loading capacitors 130, 132 are set automatically to the target value. The whole start-up process is fully autonomous with only an enable signal.
(49) The clock detector 150, which analyzes a quality of the output signal from the crystal oscillator 102 may also be used for providing input to the injection frequency control circuit 104. The clock detector 150 may thus output a trigger signal to the injection frequency control circuit 110 for triggering disabling of the injection frequency generating circuit 104. The trigger signal may be output in relation to another (lower) level of the signal output by the crystal oscillator than the level used for outputting the ready signal to the loading capacitance control circuit 112.
(50)
(51) Referring now to
(52) In
(53) The lower signal shows the crystal oscillator signal when using the injection frequency generating circuit 104. It is clear that the signal strength at the pin 114 is higher when the injection frequency generating circuit 104 is enabled, and when it is disabled, the crystal oscillator signal may have received a boost in start-up time and may quickly achieve full swing.
(54) The start-up period during which the injection frequency generating circuit 104 is enabled may typically last a few s, such as 3-5 s. An effect of using the injection frequency generating circuit 104 may be simulated in order to determine a suitable length of the start-up period. Additionally or alternatively, a suitable length of the start-up period may be determined by tests in manufacturing of the crystal oscillator circuit 100. The injection frequency control circuit 110 may be provided with information of the length of the start-up period in order to provide an enable signal EN_INJ which is high for a length of time corresponding to a stored length of the start-up period.
(55) It should be noted that the sequence control for DAL and injection theoretically can be fully autonomous without requiring any external control sequence, thus hardware. This reduces overhead in power, area, and system complexity significantly compared to conventional approaches for crystal oscillator start-up.
(56) Thus, the crystal oscillator circuit 100 may use dynamically adjustable load to increase R.sub.N at start-up, and internal harmonic harvesting and injection to further reduce the start-up time. A simulated performance shows that the start-up time of the crystal oscillator 102 can be reduced with a factor of more than 10. In addition, the injection frequency is stable against variations in supply voltage and temperature.
(57) Referring now to
(58) The wireless sensor node 200 may comprise a transceiver 202 for communicating on a wireless sensor network. The wireless sensor node 200 may be configured to be active for brief periods of time and be inactive between these periods. When active, the wireless sensor node 200 may transmit a data packet providing information on the wireless sensor network and, once the data packet has been transmitted, the wireless sensor node 200 may resume a sleep mode.
(59) The crystal oscillator circuit 100 may be configured to provide a clock signal to the transceiver 202 for enabling the transceiver 202 to transmit a data packet.
(60) Thus, power consumption of the wireless sensor node 200 may be highly dependent on the start-up time of the crystal oscillator 102, as the start-up time affects the length of the active periods of the wireless sensor node 200. Using the crystal oscillator circuit 100 as described above provides a very short start-up time of the crystal oscillator 102 and, hence, enables a low power consumption of the wireless sensor node 200.
(61) Referring now to
(62) The method comprises triggering 302 a start of oscillations by the crystal oscillator. A trigger signal may be the only external input necessary for the crystal oscillator 102 to be started.
(63) The method further comprises sensing and amplifying 304 the signal output by the crystal oscillator 102 by an injection frequency generating circuit 104. By means of using the signal from the crystal oscillator 102, the amplified signal may have the same frequency as the frequency of the crystal oscillator 102.
(64) The method further comprises injecting 306 the amplified signal to the crystal oscillator 102. The injected signal increases internal noise of the crystal oscillator 102 and hence boosts start-up of the crystal oscillator 102.
(65) The method may further comprise disabling 308 the injection frequency generating circuit 104 at an end of a start-up period. Thus, the injection frequency generating circuit 104 is only used initially to boost start-up of the crystal oscillator 102 and may then be disabled in order to save power.
(66) The method for starting up the crystal oscillator 102 may also make use of a tunable loading capacitance of the crystal oscillator circuit 100 such that a small loading capacitance may be provided during start-up and the loading capacitance may be increased when the signal from the crystal oscillator 102 is of sufficient quality.
(67) In the above the inventive concept has mainly been described with reference to a limited number of examples. However, as is readily appreciated by a person skilled in the art, other examples than the ones disclosed above are equally possible within the scope of the inventive concept, as defined by the appended claims.
(68) While some embodiments have been illustrated and described in detail in the appended drawings and the foregoing description, such illustration and description are to be considered illustrative and not restrictive. Other variations to the disclosed embodiments can be understood and effected in practicing the claims, from a study of the drawings, the disclosure, and the appended claims. The mere fact that certain measures or features are recited in mutually different dependent claims does not indicate that a combination of these measures or features cannot be used. Any reference signs in the claims should not be construed as limiting the scope.