19.7. Sine Wave Oscillator Circuits
19.7.1. Wien Bridge Oscillator
The Wien bridge is one of the simplest and best known oscillators and is used extensively in circuits for audio applications.
Figure 19.7 shows the basic Wien bridge circuit configuration. This circuit has only a few components and good frequency stability. The major drawback of the circuit is that the output amplitude is at the rails, saturating the op amp output transistors and causing high output distortion. Taming this distortion is more of a challenge than getting the circuit to oscillate. A couple of ways may be used to minimize this effect, which is covered later. It is now time to analyze this circuit and come up with the transfer function.
The Wien bridge circuit is of the form detailed in
Section 19.6. The transfer function for the circuit is created using the technique described in that section. It is readily apparent that
Z1 =
RG,
Z2 =
RF,
Z3 = (
R1 + 1/
sC1), and
Z4 = (
R2‖ 1/
sC2). The loop is broken between the output and
Z1,
VTEST is applied to
Z1, and
VOUT is calculated. The positive feedback voltage,
V+, is calculated first in
Equations (19.6) through
(19.8).
Equation (19.6) shows the simple voltage divider at the noninverting input. Each term is then multiplied by (
R2C2s + 1) and divided by
R2 to get
Equation (19.7).
Substitute
s =
jω
0, where ω
0 is the oscillation frequency, ω
1 = 1/
R1C2, and ω
2 = 1/
R2C1 to get
Equation (19.8):
Some interesting relationships now become apparent. The capacitor in the zero, represented by ω
1, and the capacitor in the pole, represented by ω
2, must each contribute 90° of phase shift toward the 180° required for oscillation at ω
0. This requires that
C1 =
C2 and
R1 =
R2. Setting ω
1 and ω
2 equal to ω
0 cancels the frequency terms, ideally removing any change in amplitude with frequency, since the pole and zero negate one another. An overall feedback factor of β = 1/3 is the result,
Equation (19.9):
The gain of the negative feedback portion,
A, of the circuit must then be set such that |
Aβ| = 1, requiring
A = 3.
RF must be set to twice the value of
RG to satisfy the condition. The op amp in
Figure 19.7 is single supply, so a DC reference voltage,
VREF, must be applied to bias the output for full scale swing and minimal distortion. Applying
VREF to the positive input through
R2 restricts DC current flow to the negative feedback leg of the circuit.
VREF is set at 0.833V to bias the output at the midrail of the single supply, rail to rail input, and output amplifier, or 2.5 V. See
Chapter 4 for details on DC biasing single supply op amps.
VREF is shorted to ground for split supply applications.
The final circuit is shown in
Figure 19.8, with component values selected to provide an oscillation frequency of ω
0 = 2π
f0, where
f0 = 1/(2π
RC) = 19.9 kHz. The circuit oscillated at 1.57 kHz due to slightly varying component values with 2% distortion. This high value is due to the extensive clipping of the output signal at both supply rails, producing several large odd and even harmonics. The feedback resistor was then adjusted ±1%.
Figure 19.9 shows the output voltage waveforms. The distortion grows as the saturation increases with increasing
RF, and oscillations cease when
RF is decreased by more than 0.8%.
Applying nonlinear feedback can minimize the distortion inherent in the basic Wien bridge circuit. A nonlinear component, such as an incandescent lamp, can be substituted into the circuit for
RG, as shown in
Figure 19.10. The lamp resistance,
RLAMP, is nominally selected as half the feedback resistance,
RF, at the lamp current established by
RF and
RLAMP. When the power is first applied, the lamp is cool and its resistance is small, so the gain is large (>3). The current heats the filament and the resistance increases, lowering the gain. The nonlinear relationship between the lamp current and resistance keeps output voltage changes small.
Figure 19.11 shows the output of this amplifier with a distortion of 1% for
fOSC = 1.57 kHz. The distortion for this variation is reduced over the basic circuit by avoiding hard saturation of the op amp transistors.
The impedance of the lamp is due mostly to thermal effects. The output amplitude is then very temperature sensitive and tends to drift. The gain must be set higher than 3 to compensate for any temperature variations, which increases the distortion in the circuit []. This type of circuit is useful when the temperature does not fluctuate over a wide range or when used in conjunction with an amplitude limiting circuit.
The lamp has an effective low frequency thermal time constant, tthermal []. As fOSC approaches tthermal, distortion is greatly increased. Several lamps can be placed in series to increase tthermal and reduce distortion. The drawbacks are that the time required for oscillations to stabilize is increased and the output amplitude is reduced.
An automatic gain control circuit must be used when neither of the two previous circuits yield low distortion. A typical Wien bridge oscillator with an AGC circuit is shown in
Figure 19.12, with the output waveform of the circuit shown in
Figure 19.13. The AGC is used to stabilize the magnitude of the sinusoidal output to an optimum gain level. The JFET serves as the AGC element, providing excellent control because of the wide range of the drain to source resistance (
RDS), which is controlled by the gate voltage. The JFET gate voltage is 0 V when the power is applied, and the JFET turns on with low
RDS. This places
RG2 +
RS +
RDS in parallel with
RG1, raising the gain to 3.05, and oscillations begin and gradually build up. As the output voltage gets large, the negative swing turns the diode on and the sample is stored on
C1, which provides a DC potential to the gate of
Q1. Resistor
R1 limits the current and establishes the time constant for charging
C1, which should be much greater than
fOSC. When the output voltage drifts high,
RDS increases, lowering the gain to a minimum of 2.87 (1 +
RF/
RG1). The output stabilizes when the gain reaches 3. The distortion of the AGC is 0.8%, which is due to slight clipping at the positive rail.
The circuit of
Figure 19.12 is biased with
VREF for a single supply amplifier. A zener diode can be placed in series with
D1 to limit the positive swing of the output and reduce distortion. A split supply can be easily implemented by grounding all points connected to
VREF. A wide variety of Wien bridge variations exist to more precisely control the amplitude and allow selectable or even variable oscillation frequencies. Some circuits use diode limiting in place of a nonlinear feedback component. The diodes reduce the distortion by providing a soft limit for the output voltage.
19.7.2. Phase Shift Oscillator, Single Amplifier
Phase shift oscillators have less distortion than the Wien bridge oscillator, coupled with good frequency stability. A phase shift oscillator can be built with one op amp as shown in
Figure 19.14; the resulting output waveform is in
Figure 19.15. Three RC sections are cascaded to get the steep
dφ/
dω slope, as described in
Section 19.3, to get a stable oscillation frequency. Any less and the oscillation frequency is high and interferes with the op amp BW limitations.
The normal assumption is that the phase shift sections are independent of each other. Then
Equatiotn (19.10) is written:
The loop phase shift is –180° when the phase shift of each section is –60°, and this occurs when ω = 2πf = 1.732/RC because the tangent of 60° = 1.732. The magnitude of β at this point is (1/2)3, so the gain, A, must be equal to 8 for the system gain to be equal to 1.
The oscillation frequency with the component values shown in
Figure 19.14 is 3.76 kHz rather than the calculated oscillation frequency of 2.76 kHz. Also, the gain required to start oscillation is 27 rather than the calculated gain of 8. These discrepancies are partially due to component variations, but the biggest contributing factor is the incorrect assumption that the RC sections do not load each other. This circuit configuration was very popular when active components were large and expensive. But now op amps are inexpensive, small, and come four in a package, so the single op amp phase shift oscillator is losing popularity. The output distortion is a low 0.46%, considerably less than the Wein bridge circuit without amplitude stabilization.