# Oscillator Amplitude Control, Part 2: Control Loop Dynamics

Oscillator Amplitude Transfer Function

Oscillator amplitude control loop (ALC) design is complicated by the inherent nonlinearity of the loop. A systematic analysis of the problem begins with the dependencies of the amplitude, which ideally is Vg . When the oscillator pole-pair is not exactly on the -axis, the amplitude is where α = ζ xωn is the real component of the complex pole-pair, ζ is the damping (= 1/2xQ ) and ωn is the resonant or undamped frequency of oscillation. On the -axis, ζ = 0 and the oscillator circuit response is undamped. When the pole-pair wanders off the imaginary axis to the right, ζ > 0, and the amplitude increases exponentially in time. To the left, it decreases exponentially and ζ < 0. The goal of ACL design is to keep the pole-pair on the axis.

What the ACL controls is ζ , and because we are interested in how this control behaves in time, ζ is not a constant as it usually is in circuits but is ζ (t ). This makes the amplitude function nonlinear in that is now a function of time for both constant ζ and for ζ (t): . How ζ (t ) varies over time depends on the ACL dynamics. The problem can be approached generally, without regard to oscillator type, by taking the derivative of the amplitude; (An alternative is to consider the amplitude a function of time only and differentiate. This results in the same expression, though our interest in ζ as the control parameter is emphasized in taking partial derivatives.) This derivative is a total-variable quantity and requires an operating-point at t = t 0 and ζ = ζ 0 at which the expression is evaluated. It assumes that ωn is constant, and though ωn varies slightly with ζ in some oscillators, it is not the parameter controlled by the ACL and is not a consideration in ACL design.

The derivative is evaluated by expressing total-variable quantities as the sum of the constant (static) op-pt values and a small variation from it, expressed as a differential. Thus the total variable is the op-pt value plus a differential value; The resulting differential quantities are the incremental quantities of the linearized circuit. Introducing the expanded total-variable expressions into the derivative, Because the ACL is intended to keep it is desired that any deviation from Vg be immediately corrected. Consequently, little time will have elapsed before the correction is made and the operating-point in time is near t = 0 s from the instant of the deviation; t 0 = 0 s. At t 0 , the pole-pair is on the -axis and ζ 0 = 0. Both and dt are small changes from their static values and their product can be set to zero. Then substituting for ζ 0 and t 0 , the exponential reduces to The op-pt values are constants and the derivative reduces to Now all of the quantities are differentials and thus are incremental. Consequently, the system has been linearized and the Laplace transform can be taken so that the ACL can be analyzed in the complex-frequency domain: where it is understood that ζ (s ) refers to the incremental ζ . Then the desired transfer function is The incremental amplitude is related to ζ by a quasistatic value of –Vg and a pole at the origin that crosses a gain of one at the oscillator frequency.

Forward-Path Transfer Function

Now that the oscillator block of the ACL is found, ζ must still be related to a controlled circuit variable. The circuitry in the ACL between the error summing function – the input circuit of an op-amp – and the oscillator is the ACL forward path , G , of the loop. Then the oscillator and amplitude extractor are in the feedback path, H .

In the state-variable oscillator, a single resistor between the summing stage and first integrator following it sets ζ . This resistor can be replaced by a multiplier to adjust ζ with a controlling voltage. In the Wien-bridge oscillator, the pole polynomial is the feedback factor, For oscillation, 1 + G xH = 0 and the numerator of D (s ) = 0. It is the quadratic form of the pole-pair which in general form is where ζ is damping and the resonant time constant, τn = 1/ωn . The goal is to vary G 0 , the gain of the noninverting side of the Wien-bridge op-amp, to be exactly 3 so that ζ = 0. The noninverting gain, from the familiar op-amp formula, is Thus G 0 can be varied by varying Ri , and the JFET rDS (or including the shunting Rp , rout ) is placed in series with an external resistor, Ri ’ so that Ri = Ri’ + rout

The fractional range of rout , rout /Ri , is chosen according to the required range on Ri and this is intended to be small. Taking into account resistor tolerances and small transient disturbances of the oscillator, typically a 10 % range should be adequate. Then the maximum rout ≈ 0.1xRi .

The previous coverage of the JFET circuit produced the transmittance from the output of the forward-path error amplifier, vi , to rout . The incremental g 0 , or G 0 , is the change in G 0 with rout , or This transmittance can be linked to the previous block of the oscillator transfer function through the simple relationship of the total-variable ζ to G 0 for the Wien-bridge oscillator; Then with all transfer function variables incremental, the connected cascade blocks of the ACL have transfer function For oscillators other than the Wien-bridge, such as the quadrature, no G 0 appears in the expression for 1 + G xH . In this case, one of the timing resistances of an RC time constant is varied. This causes a pole at the origin to shift its unity-gain frequency. Such a pole is of the form where ωT is the frequency at a gain of one. By varying R , the frequency-response magnitude plot of the pole (of –1 slope) slides up and down; increasing R decreases gain by reducing ωT so that for a given frequency, the gain is lower than before R was reduced. Similar reasoning applies to state-variable and other types of oscillators.

Amplitude Extractor and Error Amplifier

What remains in the ACL is the error amplifier (input block of G ) and amplitude extractor (output block of H ). The error amplifier is typically a one-op-amp differential-input amplifier with a fixed gain, driven by a voltage reference that sets .

Its quasistatic gain is set to provide adequate amplitude accuracy, and additional poles and zeros for loop compensation can be added to it.

The amplitude extractor inputs the oscillator sine-wave and outputs ideally a constant voltage equal to its amplitude. Various circuits can be applied for this function. All of them are in the category of sampling circuits because the amplitude information occurs only once per oscillator half-cycle. Whether the amplitude is extracted by a half-wave or full-wave peak detector followed by an RC integrator or by a synchronous rectifier that integrates over one or both half-cycles and scales the resultant average for the peak value, all have transfer functions similar to zero-order hold (ZOH) circuits.

A simple half-wave op-amp peak detector with an RC filter illustrates. The diode conducts around the input peaks, from – θ c to + θ c degrees of the cycle. The average voltage during this conduction time is The ZOH sinθ /θ = sincθ function appears. If the conduction angle is expressed as a duty ratio instead, where then Some values are tabulated below. A peak detector that conducts over the full half-cycle (D = 0.5) is equivalent to a synchronous detector. For smaller D , the sampling time is less and the ZOH gain closer to one. Even for sloppy peak detection, the loss in gain is not severe – less than 2 % for a 10 % conduction time over the cycle. Consequently, the amplitude extractor does not significantly impact loop gain though its varying output voltage can modulate the oscillator sine-wave and increase distortion. To minimize output ripple, the RC integrator time constant can be made large, but if its pole is too close to that of the oscillator transfer function, ACL instability might occur. The dynamic effect of the amplitude extractor on the ACL is that of a slight gain reduction which can be ignored, and the addition of a finite real pole from the RC integrator, at τ A = RA xCA .

Finally, the error amplifier, in its simplest (and often adequate form) contributes nothing more than quasistatic gain, K 0 . Then the total ACL gain is and is negative (inverting) because VP < 0 V. The loop gain can be subjected to Bode-plot stability analysis. The quasistatic gain constitutes most of the expression, with a pole at the origin and another at –1/ τ A .

This kind of loop is not difficult to stabilize by adjusting the quasistatic gain. If the RC integrator pole is well below the oscillator frequency, then ωA = 1/ τ A << ωn and at ωA , the G·H magnitude plot steepens from –1 to –2 in slope, to cross unity gain at ωT = √(G xH )0 xωA xωn . The phase at this frequency determines the phase margin and the dynamic response of the ACL.

## 1 comment on “Oscillator Amplitude Control, Part 2: Control Loop Dynamics”

1. davebirdieee
May 15, 2015

Really enjoyed this article. This topic is very difficult to find meaningful references on. It would also be interesting to take it farther and carry through a design, along with testing the disturbance and startup response.

Thanks for the writeup.

Dave

This site uses Akismet to reduce spam. Learn how your comment data is processed.