C6 · Lesson 28 · Precision rectifiers and log amplifiers
Putting diodes and transistors inside the feedback loop
A diode rectifier throws away the first 0.7 V of every signal, so it can't measure a 100 mV sine at all. Put the diode inside an op amp's feedback loop and the op amp drives its output whatever it takes to make the diode conduct, so the rectified output follows the input down to microvolts: a precision rectifier. The same trick with a transistor's exponential in the loop turns an op amp into a log amplifier, whose output is proportional to the logarithm of its input over many decades.
- Two half-wave rectifiers fed the same 1 V sine: a plain diode into a resistor, and a superdiode, with the diode inside an op amp's feedback loop.
- The plain diode's output only begins when the input passes about 0.6 V. The superdiode's follows the positive half cycles exactly.
- Lower the input amplitude toward 0.1 V: the plain rectifier gives nothing, while the superdiode still rectifies.
Predict
A superdiode uses an op amp with an open-loop gain of 10⁵. How small an input can it still rectify?
About 7 µV: the diode still needs 0.7 V, but the op amp supplies it, needing only at its input to do so. In practice the op amp's offset voltage and speed limit it first: when the input goes negative the op amp's output swings to its rail, and recovering from there takes time.
Name it
Precision rectifiers
Superdiode. An op amp drives the diode, and feedback is taken from the diode's cathode (the output). While the input is positive, the op amp raises its own output to one diode drop above the input, and the output equals the input. When the input goes negative, the diode turns off, the output rests at 0 V through the load, and the op amp's output drops to its negative limit: slow to recover at high frequencies.
Better half-wave. An inverting amplifier with one diode in its feedback path and a second diode catching the other polarity keeps the op amp in its linear range throughout.
Full-wave (absolute value). A half-wave rectifier's output, doubled and summed with the input in an inverting summer, gives . Averaging it gives for a sine, which AC voltmeters scale by to read RMS.
Precision peak detector. A superdiode charging a capacitor holds the input's peak; its droop is set by leakage and the buffer's bias current, .
Log and antilog amplifiers
A transistor in the feedback path of an inverting amplifier, its collector at the virtual ground: the input current must flow in the collector, so the output sits at :
about −60 mV per decade of input, accurate over five or more decades. Swapping the transistor and resistor gives the antilog (exponential) amplifier, . Both drift with temperature through and , so practical log amps subtract a matched transistor's and correct for . Logs turn multiplication into addition: log, add, antilog is an analog multiplier.
Worked example
A log amplifier has R = 10 kΩ and a transistor with A. What does it output for a 1 V input, and how much does that change per decade?
Show the solution
- Output for 1 V. The input current is 1 V / 10 kΩ = 0.1 mA:
- Change per decade.
- Check. 0.1 V in gives −0.536 V, and 10 V gives −0.655 V.
Answer the output is −0.595 V, and it changes by 59.5 mV per decade.
Worked example
A precision full-wave rectifier feeds an averaging filter for an AC voltmeter. What does it read for a 1 V peak sine before scaling, and what scale factor makes it read RMS?
Show the solution
- Rectified average. The average of is
- Scale factor. The RMS is 0.707 V, so the meter multiplies by
- Other waveforms. For any other waveform this "average-responding" meter is wrong; a true-RMS meter computes the RMS instead.
Answer it reads 0.637 V before scaling, and a scale factor of 1.11 makes it read RMS.
Worked example
A precision half-wave rectifier uses an op amp with a gain of 10⁵ and a slew rate of 0.5 V/µs. How small a signal can it rectify, and how long is its output stuck at each zero crossing?
Show the solution
- Dead zone. The loop divides the diode's 0.6 V by the open-loop gain: against 0.6 V for a bare diode.
- Time stuck at each zero crossing. The op amp's output has to jump between the two diodes' drops, about 1.2 V:
- What that costs. At 10 kHz that's 2.4% of each 100 µs period, enough to show as an error; that's why fast precision rectifiers use fast op amps.
Answer it rectifies signals down to about 6 µV, and its output is stuck for 2.4 µs at each zero crossing.
Check
A log amplifier has R = 1 kΩ and a transistor with = 100 fA. What does it output for 1 V in?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Check
By how much does a log amplifier's output change per decade of input at 300 K?
Write units the way you normally would: 1.5 mV, 1500 µV and 0.0015 V are the same answer.
Check
A superdiode's op amp has open-loop gain 100000, and its diode needs 0.3 V. What input does the op amp need to turn the diode on?
Write units the way you normally would: 1.5 µV, 1500 nV and 0.0015 mV are the same answer.
Check
What is the average of a full-wave rectified sine of 1 V peak?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Check
An antilog amplifier has R = 1 kΩ in feedback and a transistor ( A) at its input. What does it output for 0.6 V in?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Check
A precision peak detector holds its value on 1 nF, and its buffer draws 1 nA of bias current. How fast does it droop?
Write units the way you normally would: 1.5 mV/s, 1500 µV/s and 0.0015 V/s are the same answer.
Check
A precision rectifier uses an op amp with gain 1000 and slew rate 20 V/µs; its diodes drop 0.5 V.
(a)
How large is its dead zone?
Write units the way you normally would: 1.5 µV, 1500 nV and 0.0015 mV are the same answer.
(b)
What fraction of each 20 kHz period is spent jumping between the diodes at the zero crossings? (One jump per period, of two drops.)
Check
A log amplifier has input resistor R and a transistor with saturation current S, at thermal voltage T, with input v.
Step 1
What's its output?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
How much does the output change per decade of input?
Step 3
What does an antilog amplifier with the same parts output for an input of −v?
Explain why
Why does putting a diode inside an op amp's feedback loop remove its 0.7 V drop?
The op amp compares the output, taken after the diode, with the input, and drives its own output to whatever voltage makes them equal. If the diode needs 0.7 V to conduct, the op amp simply puts its output 0.7 V above the input, and the diode's drop is supplied by the op amp instead of being subtracted from the signal. The error left over is the diode's drop divided by the op amp's open-loop gain, microvolts. The same idea puts any nonlinear element inside the loop: the loop forces the element's current or voltage to whatever the input demands.
Practice
Keep practicing
10 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.