C6 · Lesson 20 · Single-supply op-amp circuits
Biasing signals at mid-supply when there's no negative rail
Textbook op-amp circuits run from ±15 V, so a signal can swing either side of ground. A battery, a USB port or a microcontroller board gives one supply and ground. With nothing below ground, an AC signal has to ride on a bias, usually half the supply, and every node in the circuit has to stay inside the op amp's input and output ranges. This lesson is the handful of habits that make single-supply circuits work.
Play
- The curve is an amplifier's output on a single 5 V supply that can swing from 0.1 V to 4.9 V. The input is a sine riding on a bias.
- With the bias at 2.5 V the output swings cleanly. Move the bias toward ground: one half of the wave flattens against the rail.
- Raise the gain or the amplitude. Where does the output clip on both sides at once?
Predict
A single 5 V op amp amplifies a ±50 mV signal by 20, with the signal applied directly to its non-inverting input and the gain resistor to ground. What comes out?
The output can't go below the lower rail, about 0 V, so the negative half-cycles, which would need −1 V, are clipped flat: the amplifier acts as a half-wave rectifier. The signal has to be lifted onto a bias near mid-supply first, so the output can swing both ways around it.
Name it
Mid-supply bias
Make with a resistor divider and a bypass capacitor (or a buffered reference), couple the AC signal in through a capacitor, and return the input to through a resistor . The input coupling forms a high-pass corner at .
The non-inverting AC amplifier
Return the gain resistor to ground through a capacitor . At DC the capacitor is open, so the gain is 1 and the output sits at ; at signal frequencies the gain is , above a corner at . Returning straight to ground would multiply the bias by the gain and slam the output into the rail.
The inverting amplifier
Put the non-inverting input at the bias and couple the signal in through a capacitor: the output rests at the bias and swings around it. Or, to level-shift a ground-referenced signal, set the non-inverting input to ; the output is then , and can be chosen to center the output.
Ranges and ripple
- The output can swing only from to , within tens of millivolts of the rails for rail-to-rail parts, a volt or more for older ones. The inputs must stay within the input common-mode range.
- Any ripple on is a signal at the non-inverting input and is amplified by the AC gain. The divider's bypass capacitor filters it with a corner at .
Worked example
Design a gain-20 microphone preamp on 5 V: input coupling to a 100 kΩ, 100 kΩ bias divider through 1 µF, and = 1 kΩ. What are the input corner, the capacitor in series with , and the largest input it can take with a rail-to-rail output (0.1 V margin)?
Show the solution
- Input corner. The input sees the divider's 50 kΩ:
- Feedback resistor. For gain 20, = 19 kΩ.
- Capacitor on the gain leg. For a 20 Hz corner, Use 10 µF, giving 16 Hz.
- Largest input. The output rests at 2.5 V and can swing ±2.4 V, so before clipping the input can reach
Answer the input corner is 3.2 Hz, the gain leg takes 10 µF (8.0 µF for exactly 20 Hz), and the largest input is 120 mV peak.
Worked example
The 5 V supply in that preamp carries 50 mV of 100 Hz ripple. How much reaches the output, with and without a 10 µF bypass on the divider?
Show the solution
- Without the bypass. carries half the ripple, 25 mV, straight to the non-inverting input, and the AC gain of 20 makes it at the output: louder than most of the signal.
- The bypass corner. With 10 µF across the lower resistor, the divider's 50 kΩ Thévenin resistance makes a corner at
- With the bypass. That cuts 100 Hz by about 314: 0.080 mV at and 1.6 mV at the output.
- What this shows. The bias divider is part of the signal path.
Answer 500 mV of ripple reaches the output without the bypass, and 1.6 mV with it.
Worked example
A ground-referenced sensor gives ±1 V. Fit it into a 0 to 3.3 V converter centered at 1.65 V with an inverting amplifier of gain −1.5 on 3.3 V. What voltage goes on the non-inverting input?
Show the solution
- Output in terms of .
- Center it. For = 0 to give 1.65 V,
- Check the range. The output runs from 1.65 − 1.5 = 0.15 V to 3.15 V as the sensor goes from +1 to −1 V: inverted, but inside the converter's range with 0.15 V to spare at each end. Firmware flips the sign.
Answer 0.66 V goes on the non-inverting input.
Check
An AC-coupled single-supply input is biased by two 100 kΩ resistors through a 0.1 µF capacitor. Where's its corner?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
Check
A single-supply non-inverting amplifier has = 1 kΩ returned to ground through a capacitor, and an AC gain of 101.
(a)
What capacitor puts the gain leg's corner at 10 Hz?
Write units the way you normally would: 1.5 µF, 1500 nF and 0.0015 mF are the same answer.
(b)
What feedback resistor?
Check
A single 5 V amplifier biased at mid-supply has gain 50 and an output that reaches within 0.05 V of each rail. What's the largest input peak?
Write units the way you normally would: 1.5 mV, 1500 µV and 0.0015 V are the same answer.
Check
A supply with 50 mV of 120 Hz ripple feeds a bias divider of two 47 kΩ resistors with 10 µF across the lower one; the stage's AC gain is 10.
(a)
How much ripple reaches the bias node?
Write units the way you normally would: 1.5 µV, 1500 nV and 0.0015 mV are the same answer.
(b)
How much reaches the output?
Check
An inverting amplifier with gain −1.5 must center a ground-referenced input at 1.25 V.
(a)
What voltage goes on its non-inverting input?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
(b)
Where's the output for +0.5 V in?
Check
Why does a single-supply non-inverting amplifier return its gain resistor to ground through a capacitor?
Check
A single-supply stage on V biases at mid-supply with two R resistors and a bypass C; ripple at f on the supply; AC gain G.
Step 1
What's the bias?
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
What's the bypass filter's corner?
Step 3
What fraction of the supply ripple reaches the output?
Explain why
Why must the signal in a single-supply op-amp circuit be biased at mid-supply?
With one supply, the op amp's output can only move between ground and the supply. An AC signal swings both above and below its resting value, so if it rested at ground, every negative half-cycle would try to go below ground and be clipped flat. Biasing the signal at half the supply puts its resting point in the middle of the available range, so it has equal room to swing up and down. The bias has to be applied without the gain multiplying it, which is why the gain resistor returns through a capacitor, and it has to be clean, because any ripple on the bias is amplified along with the signal.
Practice
Keep practicing
7 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.