Abstract:
A Pierce crystal oscillator circuit for a digital integrated circuit has a capacitance element (such as a field effect capacitor) of an appropriate capacitance value disposed on-board the integrated circuit. One lead of the capacitance element is coupled to the input lead of the gain stage of the Pierce oscillator circuit whereas a second lead of the capacitance element is coupled to the output lead of the gain stage. Providing the capacitance element facilitates oscillator startup and reliability by effectively eliminating the upper gain limit for oscillation. Specific circuit embodiments are also disclosed.

Description:
FIELD OF THE INVENTION 
     This invention relates to crystal oscillator circuits for integrated circuits. 
     BACKGROUND INFORMATION 
     Low-power crystal oscillator circuits are commonly used on digital integrated circuits to generate relatively low frequency digital clock signals. Typically the gain stage of the oscillator circuit is disposed on the integrated circuit whereas the crystal of the oscillator circuit is external to the package containing the integrated circuit. 
     FIG. 1 (Prior Art) is a circuit diagram of a low-power crystal oscillator circuit called a Pierce oscillator. Pierce oscillator 1 of integrated circuit 2 includes an inverting gain stage 3, a first resistor 4, a second resistor 5, a stray capacitance 6 and two terminals 7 and 8. The dashed line 9 indicates the boundary of the integrated circuit 2. A crystal 10 and two discrete capacitors 11 and 12 external to the integrated circuit are connected to terminals 7 and 8 in a pi configuration. The ability of the oscillator circuit to startup is dependent upon the magnitude of the stray capacitance 6. Moisture, terminal placement, package type and socket type affect the magnitude of the stray capacitance and therefore tend to make the oscillator circuit unreliable. 
     SUMMARY 
     A Pierce crystal oscillator circuit for a digital integrated circuit has a capacitance element (such as a field effect capacitor) of an appropriate capacitance value disposed on-board the integrated circuit. One lead of the capacitance element is coupled to the input lead of the gain stage of the Pierce oscillator circuit whereas a second lead of the capacitance element is coupled to the output lead of the gain stage. Providing the capacitance element facilitates oscillator startup and reliable operation. The capacitance element has a value C Badded  given by the following equation: ##EQU1## Specific circuit embodiments are also disclosed. This summary does not purport to define the invention. The invention is defined by the appended claims. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 (Prior Art) is a simplified diagram of a Pierce crystal oscillator circuit. 
     FIG. 2 is a simplified diagram of an oscillator circuit in accordance with an embodiment of the present invention. 
     FIG. 3 illustrates a circuit model of a crystal. 
     FIG. 4 illustrates a circuit model for modeling operation of the circuit of FIG. 2. 
     FIG. 5 is a simplified transistor level diagram in accordance with another embodiment of the present invention. 
    
    
     DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     FIG. 2 is a simplified diagram of an oscillator circuit 100 in accordance with an embodiment of the present invention. Oscillator circuit 100 includes an inverting gain stage 101 of gain -A, a first resistance element 102 of resistance R S , a second resistance element 103 of resistance R B , a capacitance element 104 of capacitance C Badded , an external crystal 105, a first external capacitor 106 of capacitance C o1 , and a second external capacitor 107 of capacitance C 02 . Dashed line 108 indicates the boundary of the integrated circuit 109 upon which the inverting gain stage is formed. Terminals 110 and 111 are terminals of the integrated circuit 109. The stray capacitance 112 of magnitude C Bstray  inherently exists between the input lead and the output lead of the inverting gain stage. 
     Integrated circuit 109 is assumed to be packaged (in, for example, a plastic package a ceramic package). The portion of the connections between the integrated circuit 109 and the external circuit components below dashed line 108 due to packaging (for example, wire bonds) are considered to be part of the illustrated connections to terminals 110 and 111 below dashed line 108. Resistance elements 102 and 103 may be realized as any suitable structure including thin film metal resistors, thin film polysilicon resistors, and resistors made of diffusion. Inverting gain stage 101 may be either a single stage or a multi-stage amplifier. External capacitors 106 and 107 may be discrete capacitors of any suitable construction including mica, ceramic, tantalum, and mylar. Generally C o1  ≈C o2 . 
     Capacitance element 104 is provided in the oscillator circuit to provide an adequately large capacitance C B  to facilitate oscillator startup by effectively eliminating the upper gain limit for oscillation (C B  =C Bstray  +C Badded ). The value of capacitance C Badded  may be determined as explained below in connection with equations 2-20. 
     FIG. 3 illustrates a model of a quartz crystal. The admittance Y c  of the modeled crystal is given by the equation: ##EQU2## 
     FIG. 4 illustrates a circuit model for modeling operation of the circuit of FIG. 2. The circuit model is developed by substituting the model of FIG. 3 for crystal 105 of FIG. 2, by modeling the gain stage 101 of FIG. 2 as a dependent voltage source -AV i , and by providing a noise current source I s . The node voltage matrix of the circuit model of FIG. 4 is: ##EQU3## 
     The system transfer function therefore is: ##EQU4## It is understood from control system theory that the necessary and sufficient condition that a feedback system be stable is that all the poles of its transfer function have negative real parts. This condition implies that the roots of: ##EQU5## must have at least one positive real part in order for the described system to start oscillating. The polynomial represented by equation 5 can be obtained by expanding the determinant and substituting for Y c . This yields: 
     
         P.sub.4 s.sup.4 +P.sub.3 s.sup.3 +P.sub.2 s.sup.2 +P.sub.1 s.sup.1 +P.sub.0 s.sup.0 =0                                                (6A) 
    
     where: 
     
         P.sub.4 =LC.sub.s [C.sub.0.sup.2 +(1+A)(C.sub.0 +C.sub.P)C.sub.B +2C.sub.0 C.sub.P ]                                                 (6B) ##EQU6## Although there is no closed solution for the roots of this polynomial, the Routh-Hurwitz method for finding the roots can be utilized. Applying the Routh-Hurwitz method, an array of coefficients is obtained from equations 6A-6F: ##EQU7## 
    
     The Routh-Hurwitz criterion indicates that the system is stable if and only if all the elements in the first column of the array (i.e., P 4 , P 3 , Q 1 , T 1 ) all have the same algebraic sign. Because the system is to be unstable (i.e., to oscillate), relationships are developed for circuit parameters that cause a change in algebraic sign for P 4 , P 3 , Q 1 , or T 1 . From inspection of equations 6B and 6C, it is seen that P 4  and P 3  will always be positive for all positive values of circuit parameters (i.e., A, R B , C o , L . . . ). The system will therefore oscillate if Q 1  or T 1  are made negative. Because useful information is generally not obtained by attempting to make Q 1  negative, attention is focused upon T 1 . It is observed that: ##EQU8## 
     Because the objective is to minimize or eliminate the upper gain limit for oscillation, the problem is simplified by looking at Q 1  and T 1  as A→∞. Dividing each coefficient by A and letting A→∞ yields: ##EQU9## Substituting the P&#39; values for Q 1  reveals: ##EQU10## 
     
         P&#39;.sub.2 P&#39;.sub.3 -P&#39;.sub.1 P&#39;.sub.4 &lt;0 (since P&#39;.sub.3 &gt;0)(13) 
    
     Substituting circuit parameters and simplifying yields: ##EQU11## 
     The inequality of equation 14 is not, however, generally maintained when typical circuit values are employed. Q 1  is therefore assumed to be positive. Assuming that Q 1  is positive, equation 10 becomes: ##EQU12## Substituting circuit parameters and simplifying yields: ##EQU13## If, R B  &gt;&gt;R s  and C o  &gt;&gt;C B , equation 17 becomes: ##EQU14## Solving for C B  yields: ##EQU15## 
     Accordingly, making C B  meet the condition of equation 19B effectively eliminates the upper gain limit for oscillation. To ensure that C B  is adequately large in the embodiment of FIG. 2 despite the variable capacitance C Bstray , capacitance element 104 is sized so that: ##EQU16## Component values in accordance with a specific embodiment which oscillates at frequency 32,768 Hz are set forth in Table I below: 
     
                       TABLE I______________________________________Component    Approximate Value______________________________________R.sub.S      120 kΩR.sub.B      10 MΩC.sub.Badded 1 pFA            &gt;10C.sub.01     20 pFC.sub.02     20 pF______________________________________ 
    
     FIG. 5 is a simplified transistor level diagram of a specific embodiment realized on an integrated circuit. Terminal X1 200 and terminal X2 201 of FIG. 5 correspond with terminals 110 and 111 of FIG. 2. Inverting gain stage 202 of FIG. 5 corresponds with inverting gain stage 101 of FIG. 2. Resistance element 203 of FIG. 5 corresponds with resistance element 102 of FIG. 2. Capacitance element 204 of FIG. 5 corresponds with capacitance element 104 of FIG. 2. Input lead VDDLPO 205 provides a supply voltage in the range of 1.6-6.0 volts to the oscillator circuit. Input lead ENAZ 206 is an active low enable input lead. When the enable signal on input lead ENAZ is at a digital high, N-channel field effect transistor 207 is conductive and P-channel field effect transistor 208 is nonconductive. The high voltage supply to the stage made up of transistors 209 and 210 is disconnected and the output lead 211 is coupled to ground. The inverting gain stage 202 is therefore disabled. 
     Input lead 212 is coupled to a current mirror (not shown) to provide a voltage bias to P-channel field effect transistors 213 and 214. The supply current through transistors 213 and 214 is therefore controlled by the voltage on lead 212. The gate of P-channel transistor 215, on the other hand, is grounded and the supply current through this transistor is not controlled. Unless the voltage on input lead VDDLPO 205 is high, N-channel transistor 216 is nonconductive thereby preventing current flow through the stage made up of transistors 217 and 218. It is therefore seen that the inverter gain stage 202 is in turn made up of a first gain stage including transistors 219 and 220, a second gain stage including transistors 217 and 218, and a third gain stage including transistors 209 and 210. Resistor 221 is provided to limit the bandwidth of the oscillator circuit. 
     Hysteresis is provided by P-channel transistor 222 and inverter 223. When the voltage on the input lead 224 of the second stage falls to the voltage at which transistors 217 and 218 cause the voltage on output lead 225 to rise to the switching voltage of inverter 223, inverter 223 switches and forces the voltage on lead 226 low. The low voltage on lead 226 turns P-channel transistor 222 on thereby pulling the voltage on output lead 225 upward for the same voltage on input lead 224. To pull the voltage on output lead 225 down to the switching voltage of inverter 223, the voltage on input lead 224 must be adequately high that N-channel transistor 218 is adequately conductive that it overcomes the pullup effect of both transistors 217 and 222. 
     Inverters 227 and 228 buffer the oscillator clock signal and supply the clock signal onto output lead RTCCLKZ 229. In some embodiments, a resistor corresponding roughly with resistance element R B  is provided external to the integrated circuit and is coupled to terminals 200 and 201. In other embodiments, a resistance element corresponding with resistance element R B  is provided on the integrated circuit, one lead being coupled to the input lead of inverting gain stage 202, the other lead being coupled either to the output lead of inverting gain stage 202 or to terminal 201. 
     Although certain specific exemplary embodiments are described above in order to illustrate the invention, the invention is not limited to the specific embodiments. The present invention does not depend upon the specific derivation presented above. The derivation is presented only for informational purposes. Any suitable structure having a capacitance can be used to implement capacitance element C Badded . Accordingly, various modifications, adaptations and combinations of various features of the specific embodiments are within the scope of the claimed invention as set forth in the appended claims.