Harmonic Oscillator Project
Harmonic Oscillator Project
Harmonic Oscillator Project
M H Miller
Quadrature Oscillator
The analysis in the preceding illustration is done in the frequency domain, i.e. in terms of transfer
function poles and zeros. Another rather straightforward method of obtaining a sinusoidal oscillation is
by assembling a circuit whose operation in the time domain emulates a second-order differential
equation with constant coefficients; the natural solution of such an equation is sinusoidal. Actually it is
more practical to imagine the secondorder differential equation integrated
twice to obtain a technically more
convenient second-order integral
equation; assembling electronic
integrators generally is easier than
assembling differentiators. The
circuit diagram to the right illustrates
one such an oscillator configuration.
M H Miller
The first stage to the left is an inverting Miller integrator. The other stage is a non-inverting integrator.
The opamp (assumed operating normally) maintains the non-inverting input voltage at vo/2 (where vo is
the second stage output voltage) A node equation at the capacitor node determines the current through
the capacitor is as shown. The integrating property of the second stage follows directly from this.
The output of the second stage is fed back to provide the input of the first, leading to a circuit with the
integral equation operating description desired. Note that because the output of one stage is the integral
of the output of the other stage both sine and cosine signals are available; hence the name 'quadrature'
oscillator. Design and analysis of an illustrative quadrature oscillator is left as an exercise.
Feedback Oscillators
A particularly productive method of studying harmonic oscillators is to view them as feedback
amplifiers for which the signal fed back from the output provides the entire input signal necessary to
produce the output. (This raises a question of how an oscillation that drives itself starts in the first place.
Although the question is fundamental the answer is rather straightforward; inevitable thermal motion of
atomic charge, i.e. electrical noise, provides an inherent startup signal. The more pertinent question to
consider is how the circuit must nurture this signal appropriately to sustain oscillation. The block
diagram below illustrates a basic feedback system. Si is an input signal applied to summing node
connected to an amplifier of gain GS; the amplifier output is So. An output sample fraction fSo is fed
back and subtracted from the input to produce the net amplifier input signal Si - fSo. The relationship
between Si and So is as shown.
For previous amplification
applications, we assumed that the
circuit designer made fGS >>1, i.e
designed for negative (degenerative)
feedback. For this case So/Si >1/f.
Suppose instead that a design makes
S
1+fG -> 0, implying the singular gain So/Si -> . Whereas for degenerative feedback the signal
sample is subtracted from the input the physical basis for this regenerative (positive) feedback is the
addition of the output signal sample to the input, i.e. to reinforce the input signal. An increase in input
signal strength further increases the output signal, and so causes still a larger reinforcing feedback
signal. The condition 1+fGS -> 0 corresponds to a theoretical feedback signal strength sufficient by
itself to produce the output level necessary to support the feedback signal; the operation becomes selfsustaining. However continuing growth is not a sustainable process; the amplifier ultimately is driven
into a saturated state for which the gain becomes essentially zero, and further signal growth stops.
The Barkhausen Condition 1+fGS -> 0 is interpreted as the condition for the onset of oscillation. This is
not really a 'bootstrap' affair; as a practical matter the oscillation starts because of signals generated by
random electron movement (i.e. currents) associated with thermal excitation. The circuit feedback,
appropriately designed, continuously reinforces a particular frequency component to form a selfsustaining output. The oscillation energy is obtained by conversion from an energy source that is an
integral part of the amplifier.
As noted before circuit non-linearity, whether inherent or specifically introduced, eventually must limit
the signal amplitude. Nevertheless a linear analysis is meaningfully applicable until the signal
amplitude is large enough for non-linearity to be significant, and so as stated may be applied usefully to
determining the conditions for the onset of oscillation. And, provided the nonlinear limiting is not too
Harmonic Oscillator Project
M H Miller
severe, a general continuity in nature suggests the results of the linear analysis can be 'close' in some
useful sense to the actual circuit performance.
Barkhausen Conditions
The unity loop-gain condition for the onset of oscillations (i.e. output = input) actually involves two
distinct requirements: (1) the magnitude of the net loop gain must be 1, and (2) the phase of the loop
gain must be 0 (or a multiple of 360). These two independent requirements together form the
Barkhausen conditions for the onset of oscillations.
In general for a particular linear circuit to support an oscillation the roots of the circuit determinant must
by definition have conjugate complex poles on the imaginary axis. Hence to make an oscillator we must
start with a circuit whose determinant involves at least two poles, and specify circuit parameters so that
these poles are placed properly on the imaginary axis. Unfortunately a circuit with just two poles is not
sufficient. The root locus for a two-pole system including loss simply does not cross the imaginary axis
whatever circuit element values used. At least one more singularity, either a pole or a zero, must be
present as a minimal requirement. Several oscillators meeting the minimal condition are studied here.
It can be noted that linear system may be scaled in frequency without changing the relative amplitudes
of circuit voltages or currents. Frequency is involved only as a factor in a product with either a circuit
inductance or capacitance, and only the product affects the voltage and current amplitudes. Hence the
condition of unity loop gain magnitude can be maintained while frequency is scaled arbitrarily; simply
scale inductance and capacitance by the inverse of the factor the frequency is scaled. It follows then that
it is the phase of the loop gain, and only the phase, which can determine the frequency of oscillation; the
oscillation frequency must be such that there is no net phase shift around the loop. Unity (or greater)
loop gain magnitude is necessary to initiate the oscillation and to replace energy losses, but this
requirement is quite separate from the determination of the oscillation frequency.
M H Miller
Note that Y contributes two poles and a zero to the expression, a minimal singularity requirement for
oscillation to be achievable. The Barkhausen oscillation initiation condition is that Vb = Va. Note also
that the expression is complex, i.e. s = j . The real and imaginary parts of the two sides of the
expression each separately must be equal, and so provide two requirements for oscillation. The
amplifier gain requirement is determined from the real part, and the frequency of oscillation from the
imaginary part.
Project: Design a tuned circuit oscillator for a nominal oscillation frequency of 10 kHz and nominal
peak amplitude of 6 volts or more. Use a inductor represented by a 10K resistance in parallel with 10
mH. Show explicitly how the individual Barkhausen conditions are met for your design and verify
performance expectations using PSpice. Plot the amplifier voltage output, and compare it to the voltage
across the tuned circuit. How does the improvement in waveform come about?
Note that the computer does not ordinarily provide thermal noise to initiate oscillation. Instead specify
an initial voltage across the capacitor to provide the start-up energy.
M H Miller
M H Miller
(To derive the transfer expression note that the voltage across C2 is -va/G., and work backwards to
calculate vb.)
The last term in the parentheses on the right in the denominator (coefficient of sCR) ordinarily can be
neglected (with capacitance values in microfarads, resistances in kilohms, and inductance in
millehenries the order of magnitude of the term generally can easily be made much smaller than 2). It is
not difficult to assure this design simplification over a wide range of oscillation frequencies, and in any
event it is at least useful as a way of estimating the oscillation frequency. Within this approximation
verify (explicitly) that oscillation occurs for 2LC = 2, for an amplifier gain magnitude G 1+ (R/r).
Project: Design a Colpitts oscillator for a nominal oscillation frequency of 10 kHz and nominal peak
amplitude of 6 volts or more. Use L = 10 mH. Show explicitly how the individual Barkhausen
conditions are met for your design and verify circuit performance using PSpice. Observe the amplifier
voltage output, and compare it to the voltage across C2. How does the improvement in waveform come
about?
Note that the computer does not ordinarily provide thermal noise to initiate oscillation. Instead specify
an initial voltage across the capacitor to provide the start-up energy.
M H Miller
M H Miller
Equating real and imaginary parts of the two sides of the equation obtains the two Barkhausen
conditions G = 3 and RC = 1.
Design an oscillator using this circuit for a nominal oscillation frequency of 10 kHz and nominal peak
amplitude of 6 volts or more. Show explicitly how the individual Barkhausen conditions are met for
your design and verify circuit operation using PSpice.
Note that the computer does not ordinarily provide thermal noise to initiate oscillation. Instead specify
an initial voltage across the capacitor to provide the start-up energy.
M H Miller