This invention relates to crystal oscillator circuitry and, more particularly, to controlling an output amplitude level for oscillator output signals generated by crystal oscillator circuitry.
Many integrated circuits exist that utilize signals generated by crystal-based oscillators. Crystal oscillator output signals are used, for example, as reference signals for the generation of clock signals, timing signals and/or other desired signals. For some implementations, there is need to control the output amplitude level of oscillator output signals. In part, controlling this output amplitude level can be desirable because non-linear effects and jitter can be introduced in the crystal oscillator output signals if the amplitude is too high. Further, controlling this output amplitude level can also be desirable because overdriving the crystal can increase the rate of aging for the crystal, thereby shortening its lifetime.
In operation, the crystal oscillator circuitry 102 resonates based upon the oscillations provided by the crystal 124 and produces an oscillator output signal (OSC) 107. This oscillator output signal (OSC) 107 can be used by other circuitry, for example, to generate clock, timing and/or other desired signals. The amplitude level of the oscillator output signal (OSC) 107 is controlled by the bias current provided from the current source circuitry 105. And the bias current from the current source circuitry 105 is controlled by the analog voltage control signal (VCTRL) 106 that is applied to the gate of transistor 104. Thus, the output amplitude level of the oscillator output signal (OSC) 107 is controlled by the analog voltage control signal (VCTRL) 106.
The voltage control signal (VCTRL) 106 is determined by the analog control loop that includes amplitude detector and analog control circuitry 130. In the embodiment 150, the amplitude detector and analog control circuitry 130 includes peak detector 108 and an error amplifier 110. The peak detector operates to determine the peak amplitude level of the oscillator output signal (OSC) 107. The output of the peak detector 108 is then provided to error amplifier 110 where it is compared to a threshold voltage (Vth) 112 to determine an amplitude error value. The error amplifier 110 then outputs the analog voltage control signal (VCTRL) 106 as an amplified version of the error value. In operation, the analog control loop continually attempts to keep the output of the peak detector 108 equal to the threshold voltage (Vth) 112 by adjusting the analog voltage control signal (VCTRL) 106 applied to the transistor 104. The analog control loop thereby attempts to produce a well-defined amplitude for the oscillator output signal (OSC) 107 that is maintained during operation despite power supply, voltage and/or temperature variations of the circuitry associated with the crystal oscillator circuitry 102.
This use of an analog control loop to control the amplitude of the crystal oscillator circuitry, however, has disadvantages. For example, performance issues can arise in the analog control loop where the threshold voltage (Vth) 112 has a spur, as such a spur will tend to show up in the oscillator output signal (OSC) 107 as an undesirable modulation in the output amplitude level. In addition, noise associated with the error amplifier 110 also leads to undesirable phase noise in the oscillator output signal (OSC) 107. Due to such issues, therefore, in order to achieve a relatively low-noise and spur-free analog voltage control signal (VCTRL) 106 for the analog control loop, the threshold voltage (Vth) 112 must be generated using circuitry having a very high PSRR (power supply rejection ratio), and the error amplifier 110 must have very low noise. Both of these requirements lead to complex, high-power and large-size circuit implementations.
Methods and systems are disclosed that utilize digital control loops to control an amplitude level for output signals generated by crystal oscillator circuitry. The disclosed embodiments utilize multiple selectable current drive circuits to control the amplitude level of the output signals form the crystal oscillator circuitry. The current drive circuits are selectably used, or not used, to provide a bias current to the crystal oscillator circuitry based upon a multi-bit digital control signal. The multi-bit digital control signal can be generated, for example, by control circuitry that compares the oscillator output signal to a reference output signal level. Other features and variations can also be implemented, as desired, and related systems and methods can be utilized, as well.
In one embodiment, digital crystal oscillator amplitude control circuitry is disclosed that includes bias current circuitry, amplitude detection circuitry, control circuitry and a plurality of selectable current drive circuits. The bias current circuitry is configured to provide a variable bias current to crystal oscillator circuitry to control an amplitude level for an output signal from the crystal oscillator circuitry. The plurality of selectable current drive circuits are located within the bias current circuitry, and each of the plurality of selectable current drive circuits is controlled by at least one bit of a multi-bit digital control signal. The amplitude detection circuitry is configured to receive an output signal from the crystal oscillator circuitry and to generate an amplitude level indicator signal. And the control circuitry is coupled to the bias current circuitry and configured to provide the multi-bit digital control signal to the plurality of selectable current drive circuits based upon the amplitude level indicator signal.
In a further embodiment, each of the plurality of selectable current drive circuits includes a current drive transistor coupled to a switch circuit controlled by at least one bit of the multi-bit digital control signal. In a still further embodiment, each current drive transistor has its source and drain coupled between a supply node and a common output node; each switch circuit is configured to selectably pass a voltage control signal to a gate of a current drive transistor; and the common output node is coupled to provide the variable bias current to the crystal oscillator circuitry. In another embodiment, each current drive transistor has its source and drain coupled between a supply node and a switch circuit; a voltage control signal is coupled to a gate of each drive transistor; each switch circuit is configured to selectably couple the current drive transistor to a common output node; and the common output node is coupled to provide the variable bias current to the crystal oscillator circuitry. Still further, the amplitude control circuitry can include a peak detector and a comparator.
In another embodiment, the control circuitry includes clock generation circuitry coupled to receive the output signal from the crystal oscillator circuitry and to generate one or more clock signals. Further, the control circuitry can include logic circuitry configured to receive the amplitude level indicator signal, to receive the one or more clock signals from the clock generation circuitry, and to output the multi-bit digital control signal. Still further, the logic circuitry can be a finite state machine.
In a further embodiment, the plurality of selectable current drive circuits can have a same weight. In another further embodiment, at least two of the plurality of selectable current drive circuits have different weights. Further, the control circuitry can be configured to set the multi-bit digital control signal to provide initially a maximum amplitude level for the output signal from the crystal oscillator circuitry.
In one embodiment, a method for digitally controlling an amplitude level of an output signal from crystal oscillator circuitry is disclosed that includes determining an amplitude level for an output signal from crystal oscillator circuitry, generating a multi-bit digital control signal based upon the amplitude level, applying the multi-bit digital control signal to a plurality of selectable current drive circuits to provide a variable bias current to the crystal oscillator circuitry, and repeating the determining, generating and applying steps to control the amplitude level of the output signal from the crystal oscillator circuitry.
In an additional embodiment, each of the plurality of selectable current drive circuits can include a current drive transistor coupled to a switch circuit, and the applying step can include applying at least one bit of the multi-bit digital control signal to each switch circuit. Still further, the method can include utilizing the multi-bit digital control signal to selectably apply a voltage control signal to a gate of each current drive transistor to determine which of the plurality of selectable current drive circuits provide a current to a common output node and utilizing the common output node to provide the variable bias current to the crystal oscillator circuitry. In another embodiment, the method can include utilizing the multi-bit digital control signal to selectably couple each drive transistor to a common output node and utilizing the common output node to provide the variable bias current to the crystal oscillator circuitry.
In a further embodiment, the method can include generating one or more clock signals based upon the output signal from the crystal oscillator circuitry. Still further, the method can include using logic circuitry to generate the multi-bit digital control signal based upon the amplitude level and using the one or more clock signals to control the logic circuitry. In addition, the method can include setting the multi-bit digital control signal to provide initially a maximum amplitude level for the output signal from the crystal oscillator circuitry.
Other features and variations can also be implemented, as desired, and related systems and methods can be utilized, as well.
It is noted that the appended drawings illustrate only example embodiments of the invention and are, therefore, not to be considered limiting of its scope, for the invention may admit to other equally effective embodiments.
Methods and systems are disclosed that utilize digital control loops to control an amplitude level for oscillator output signals generated by crystal oscillator circuitry. The disclosed embodiments utilize multiple selectable current drive circuits to control the amplitude level for the output signal from the crystal oscillator circuitry. The current drive circuits are selectably used, or not used, to provide a bias current to the crystal oscillator circuitry based upon a multi-bit digital control signal. The multi-bit digital control signal can be generated, for example, by control circuitry that compares the oscillator output signal to a reference output signal level. This comparison is used to adjust the bias current for the crystal oscillator circuitry through adjustments to the multiple-bit digital control signal. Other features and variations can also be implemented, as desired, and related systems and methods can be utilized, as well.
In contrast with
For the embodiment depicted, the gate of each of the transistors 212A, 212B . . . 212C is coupled to receive one of the digital control signals 214A, 214B . . . 214C (B0, B1 . . . BN). The drain of each of the transistors 212A, 212B . . . 212C is connected to node 220. The source of each of the transistors 212A, 212B . . . 212C is connected to the drain of one of the current drive transistors 210A, 210B . . . 210C. The source for each of the current drive transistors 210A, 210B . . . 210C is connected to the supply voltage (VDD). And the gates of the current drive transistors 210A, 210B . . . 210C are connected the analog voltage control signal (VCTRL) 204. It is noted that the current drive transistors 210A, 210B . . . 210C and the switch transistors 212A, 212B . . . 212C can be PMOS transistors as shown, if desired. However, these transistors could also be implemented as NMOS transistors, if desired.
The analog voltage control signal (VCTRL) 204 is provided by the voltage generator 205. For the embodiment depicted, the voltage generator 205 includes current source circuitry 202 having an output coupled to the supply voltage (VDD) through a diode-connected transistor 206, which operates as a load circuit. Transistor 206 has its source coupled to the supply voltage (VDD), and its drain and gate nodes connected together to the output of the voltage generator 205. The voltage drop provided by transistor 206 will depend upon the current output of the current source circuitry 202. The current source circuitry 202 is configured to have an output current that is independent of the operating temperature of the circuitry. As such, the analog voltage control signal (VCTRL) 204 will not vary significantly with the operating temperature. As stated above, the analog voltage control signal (VCTRL) 204 is provided as a bias voltage to the gates of the current drive transistors 210A, 210B . . . 210C.
In operation, the amplitude level of the oscillator output signal (OSC) 207 can be detected and then digitally controlled using the digital control signals 214A, 214B . . . 214C (B0, B1 . . . BN). This digital control loop provides for advantages in controlling the amplitude level of the oscillator output signal. For example, noise and spurs on the digital control signals 214A, 214B . . . 214C (B0, B1 . . . BN) will have reduced impact on the oscillator operation as they are coupled to the gates of transistors 212A, 212B . . . 212C, which can be configured in a cascode arrangement. Further, the analog voltage control signal (VCTRL) is generated separately from the digital control loop, thereby reducing circuit requirements for the current source circuitry to be used, which can be designed to have good supply rejection, if desired. In addition and in contrast with prior solutions, noise and spurs on the threshold voltage (Vth) have reduced or negligible impact on oscillator operation with the described embodiments, as the control signals are now generated as digital signals and not as an amplified error signal based upon the threshold voltage (Vth). Still further, as described in more detail below, the control circuitry for generating the digital control signals can utilize the oscillator output signal to generate its internal clock signals, which allows the crystal oscillator circuitry and the crystal oscillator amplitude control circuitry to be self-contained.
In contrast with embodiment 250, however, embodiment 300 applies digital control signals 314A, 314B . . . 314C (B0, B1 . . . BN), which make up the multi-bit digital control signal 314, to selectively couple the analog voltage control signal (VCTRL) 204 to the gates of the current drive transistors 304A, 304B . . . 304C through switch transistors 306A, 306B . . . 306C. In particular, one of the digital control signals 314A, 314B . . . 314C (B0, B1 . . . BN) is coupled to the gate of each of the switch transistors 306A, 306B . . . 306C to selectively provide the voltage control signal (VCTRL) 204 to the gate nodes 310A, 310B . . . 310C of the current drive transistors 304A, 304B . . . 304C. Also as depicted, inverted digital control signals 317A, 317B . . . 317C (B0
It is noted that for the embodiment 300 depicted, transistors 308A, 308B . . . 308C can be PMOS transistors as shown, if desired, having their sources coupled to the supply voltage (VDD), their drains coupled to nodes 310A, 310B . . . 310C, and their gates connected to the inverted digital control signals 317A, 317B . . . 317C (B0
As further depicted in the embodiment 300 of
It is noted that the control circuitry 326 depicted in
It is also noted that the digital control signals (e.g., 214A-C, 314A-C) can be initially set to provide a maximum bias current to the crystal oscillator circuitry 102. The bias current can then be stepped down until a desired amplitude level is achieved. Other control implementations could also be used, if desired. For example, the digital control signals (e.g., 214A-C, 314A-C) can be initially set to provide a bias current within a middle point of an adjustable range. The digital control signals (e.g., 214A-C, 314A-C) can then be adjusted up or down depending upon the output signal amplitude level for the crystal oscillator circuitry.
It is further noted that the plurality of current drive circuits, such as transistors (e.g., 210A-C, 304A-C), can be weighted the same, if desired, or can be provided with different weights, if desired. The weighting of current drive transistors, for example, can be determined by the size of the transistors, as the size of the transistors will determine the size of the drive current provided by that transistor to the output node (e.g., node 220, node 320). Thus, a variety of weighting schemes could be implemented, as desired, along with a variety of control algorithms such that the output signal amplitude level of the crystal oscillator circuitry is adjusted based upon which of the plurality of selectable current drive circuits are selected to be active at any given time to provide the bias current to the crystal oscillator circuitry.
In addition, it is noted that unlike the analog control loop, the digital control loop does not have to be kept running once a desired amplitude is achieved. For example, the FSM 428 can be turned off once a desired amplitude has been achieved if variations due to operating temperature are acceptable. Further, if temperature variations are not acceptable, the bias current source generator 202 can be implemented with a compensating temperature coefficient. Further, a separate microcontroller (MCU) or other control circuitry could take over the control of the digital control signals once the integrated circuit has been powered up. One advantage of the FSM 428 is that it can be configured to operate during start-up using the oscillator output signal itself to clock the operations of the FSM 428.
Further modifications and alternative embodiments of this invention will be apparent to those skilled in the art in view of this description. It will be recognized, therefore, that the present invention is not limited by these example arrangements. Accordingly, this description is to be construed as illustrative only and is for the purpose of teaching those skilled in the art the manner of carrying out the invention. It is to be understood that the forms of the invention herein shown and described are to be taken as the presently preferred embodiments. Various changes may be made in the implementations and architectures. For example, equivalent elements may be substituted for those illustrated and described herein, and certain features of the invention may be utilized independently of the use of other features, all as would be apparent to one skilled in the art after having the benefit of this description of the invention.