EDN logo


Design Feature:July 20, 1995

ASIC oscillator cells reduce system timing costs

Marvin A Veeser,
Raltron Electronics Corp


Developing stable oscillator circuits for logic systems once was a daunting analog-design task. Now, commonly available oscillator standard cells make the job relatively simple: You add a crystal and a few passive components to sustain the oscillations that drive your clocks for disk drives, PCMCIA boards, and other new products.

Few electronic products can get by without a sense of timing. A stable frequency source is critical for a range of applications, from generating or detecting radio frequencies to internal logic clocking. Quartz crystals help generate the frequency, but you need active electronics to sustain oscillations to drive an output load.

Traditionally, quartz-crystal oscillators have been self-contained in hybrid oscillator packages or are designed in-house using inverters and stand-alone crystal units. Hybrid oscillators can be costly, and in-house designs can eat up a lot of board space, even if you use SMT (surface-mount-technology) parts.

PICTURE 1

This section of a field-programmable gate array (a) shows the on-chip electronics for a crystal-driven system-clock oscillator. Suggested external component values (b) are as follows: R1=0.5 to 1 M[uom], R2=0 to 1 k[uom], C1 and C2=10 to 40 pF, and Y1=1 to 20 MHz, AT-cut, parallel-resonant. The device shown is a Xilinx XC3020 housed in a 68-pin PLCC. (Courtesy Xilinx Inc)

But the increasing de-mand for new, smaller products, such as disk drives and PCMCIA boards, has prompted ASIC manufacturers to provide all the electronics you need on-chip in standard cells. All you do is select either an AT or a BT cut, a parallel-resonant quartz crystal, and up to four passive parts.

In the field-programmable gate-array (FPGA) example in Fig 1a, the highlighted area in the lower right corner of the die shows the location of a high-speed inverting amplifier and an auxiliary buffer. When the FPGA is configured at runtime, the oscillator connects to the external crystal unit and glue parts first (Fig 1b).

On-chip FPGA programming activates the oscillator circuit early in the configuration process, but the internal clock connection is held off until after the ASIC has completed its configuration. This move gives the oscillator time to stabilize. Stabilized accuracy for quartz crystals in ASIC logic systems is ñ50 ppm.

PICTURE 2

For this version of the commonly used Pierce oscillator, you choose phase-shifting elements C1 and C2; to adjust the output impedance, you also choose RX.

Fig 2 shows the generic form of a Pierce oscillator for quartz crystals. You choose the external phase-shifting elements, C1 and C2. You also choose RX to adjust the output impedance, ZO. Even though RX may wind up being 0ê (a short), you should always provide for it to avoid potential layout problems.

Fig 3 shows four combinations of reactances that can occur with an unloaded tank circuit. To determine if and at what frequencies these combinations oscillate, you write the circuit node equations. Oscillation will occur at the frequency for which the reactive term equals zero. For the Pierce oscillator of Case 1 in Fig 3a, oscillation occurs when

RINm/(ê2C1C2),

and the frequency is given by

ê=[sqrt]L3C1C/(C1+C2)-1.

For Case 1, connecting a crystal at Z3 satisfies the requirements for oscillation at slightly above the indicated 15-MHz fundamental and 45-MHz overtone frequency, because the crystal appears inductive at those points (Fig 3b). Note that, over most of the frequency spectrum, the crystal appears capacitive, preventing oscillation.

PICTURE 3

Four combinations of reactances can occur with an unloaded tank circuit (a). Case 1 oscillates if Z3 is inductive; cases 2 and 3 do not oscillate, and case 4 oscillates if Z3 is capacitive. Case 1 is an example of the Pierce configuration. Over most of the frequency spectrum (b), the crystal appears capacitive, and, thus, can oscillate only near the indicated fundamental and harmonic frequencies.

For correct impedance matching, be aware that oscillator circuits depend on fast rate-of-phase change to govern stability. Perturbations that result from moisture, component variations, and foreign objects in proximity to the oscillator can cause dramatic rates-of-phase change.

During a perturbation, the oscillator cannot satisfy Barkhausen's phase criteria (see box, "ASIC-cell-oscillator basics") at the old frequency, so it changes phase until oscillations can occur. For instance, if a perturbation causes the oscillator to shift 2ø, effecting a change in output frequency of 6 Hz, it would make the phase slope equal to 2/6 or 0.333ø/Hz. You want to try for a much steeper slope--perhaps 40ø/Hz--and should strive for a large impedance mismatch to maximize the phase slope.

In Fig 4, a small C2 at the output of a low ZO ASIC does nothing. But if RX is added such that RX=XC2, a +45ø phase shift occurs at the crystal; this phase shift is consistent with design goals. The crux of this exercise is selecting the C2 value with respect to the ASIC's output impedance.

If RX is a short, ROUT is directly in parallel with C2. The Q of the output-matching network is defined as

Q=(ROUT+RX)/XC2.

Textbooks call for Q=10. Consider compromising, and set Q=2. If the circuit is operating at 40 MHz and the cell has an output impedance of 200ê, C2 should be 39 pF.

Using the Thevenin equivalent of the output driver (Fig 4c), you can see that the phase shift at the output-C2 junction is a function of the value of C2. Using the Norton equivalent (Fig 4d), you can see that the output impedance is directly across C2. Therefore, if Q<2, increase RX (or C2). Strive to design the circuit for 2 less than Q less than 5.

ASIC-cell-oscillator basics
The most widely used oscillator today is the MOS-gate oscillator that uses an unbuffered inverter. Almost all µPs, as well as many other digital devices, have this circuit built in as a standard cell--or the µPs are driven from an external oscillator using this circuit. Oscillator cells have characteristics that are important to a designer.
  • RIN is very high (10 Mê min)
  • ROUT is dependent on the logic technology being used.
    ECL has low impedance, in the range of only 7ê. CMOS logic has much higher output impedance, in the range of 700ê. Advanced CMOS (ACMOS) technology is in the 50 to 150ê range, and HCMOS technology is in the 200 to 500ê range. You should obtain the output-impedance specification from the ASIC manufacturer, but, if it is unavailable, you can use the simple test circuit in Fig A to determine it.

FIGURE A

  • You can use this test circuit to measure an ASIC's output impedance. First, adjust the potentiometer to maximum resistance. Next, adjust the signal generator's frequency to the desired frequency of oscillation and set its amplitude such that a 4V p-p output sine wave appears on the scope. Then, adjust the potentiometer to reduce the output amplitude to 2V p-p. Finally, remove and measure the potentiometer's resistance, which will approximately equal the ASIC cell's output impedance.
  • Gain is derived by biasing the inverter for Class A linear operation with a resistor from the inverter's output back to its input for high gain and wide bandwidth.
  • Phase shift at the frequency of oscillation is approximately 180ø through the amplifier from input to output. An additional 180ø phase shift is derived from the ã feedback network. To ensure reliable start-up and stable operation, the circuit must have the ability to shift-phase an additional 20ø beyond the 180ø minimum.
    Phase shift is modified by the time delay from input to output of the amplifier, typically 1 or 2 nsec. Because frequency is the reciprocal of time, time delay is equated to additional phase shift of the inverter. The external network must shift 180ø, minus the delay's equivalent shift, in nanoseconds. The table shows phase shift for 1- and 2-nsec delays at selected frequencies.
  • Phase shift vs gate delay for selected frequencies
    Frequency
    (MHz)
    Period
    (nsec)
    1-nsec equivalent phase shift2-nsec equivalent phase shift
    101003.67.2
    2540918
    50201836
    75132754
    Note: Phase lag (in degrees)=(time delay)&beta;360/(period of fO).

  • Be sure to provide for sufficient dynamic range to make up for component or power-supply variations. For example, holding your finger or another load near the circuit topography disturbs the quiescent phase shift, yet the design must allow the crystal to start, lock on, and continue to oscillate properly.
    To provide sustained oscillations, harmonic oscillators must conform to Barkhausen's criteria for both phase and gain requirements: The sum of gains around a closed loop must be greater than one, and the sum of phase shifts around a closed loop must equal n&beta;360ø, where n is an integer value.
    To meet Barkhausen's phase-shift criteria, the circuit must shift 180ø externally, plus a minimum of 25 additional degrees in the feedback loop. For a stable oscillator, you should have fastest rate-of-phase change at the 180ø point.
    To get 180ø of phase shift across the ã network, you need to phase-shift 90ø on both ends of the crystal. On the ASIC input side, the crystal current flowing into C1 shifts 90ø if RIN is high. On the ASIC output side, phase shifting should be going through 90ø, less the effective phase shift from the inverter's time delay.


PICTURE 4






Copyright © 1995 EDN Magazine. EDN is a registered trademark of Reed Properties Inc, used under license.