Module 2 · 15 min read · Free chapter
Op-amp circuits, active filters, timers and regulators
With negative feedback an ideal op-amp keeps its two inputs equal, the virtual short. That gives inverting gain −R_f/R₁, non-inverting gain 1 + R_f/R₁, summers, integrators and filters. Schmitt triggers use positive feedback for hysteresis. The 555 timer gives pulses of 1.1RC or square waves of 1.44/((R_A + 2R_B)C), and regulators hold supply voltage steady.
Start from zero: the amplifier you program with resistors
An operational amplifier is a differential amplifier with enormous gain, often a hundred thousand or more. Used alone, it is almost useless, because the tiniest input drives its output to the supply rail.
Wrap negative feedback round it, though, and the previous chapter's result takes over. The closed-loop behaviour depends almost only on the feedback network. Choose two resistors and you have an amplifier of any gain; add a capacitor and you have an integrator or a filter.
That is why the op-amp, a few transistors in an eight-pin package, became the most used analog building block. The same idea appears in timers and voltage regulators, which are comparators and error amplifiers built around a reference.
This chapter covers the standard op-amp circuits, active filters, the 555 timer and regulated power supplies.
Why it matters. GATE EC asks at least one op-amp circuit question every year, and the 555 and regulators are standard in JE and ESE papers.
The ideal op-amp and the basic amplifiers
An ideal op-amp has infinite open-loop gain, infinite input resistance, zero output resistance and infinite bandwidth. Two working rules follow when negative feedback is present.
First, the output takes whatever value makes the two inputs equal, . This is the virtual short: the inputs are at the same voltage, though no current flows between them. Second, no current flows into either input.
Inverting amplifier. The input goes through to the inverting input, and connects output to that input, with the non-inverting input grounded. The inverting input sits at 0 V, a virtual ground, so the input current is . That same current must flow through , giving:
The input resistance is just .
Non-inverting amplifier. The signal goes to the non-inverting input, and and form a divider from the output to the inverting input. The divider must deliver to that input, so:
The input resistance is very high, since the source drives an op-amp input. With the gain is 1, giving the voltage follower, the ideal buffer.
Summing amplifier. Several inputs, each through its own resistor, meet at the virtual ground of an inverting amplifier. Their currents add in :
This is an analog adder and the basis of audio mixers and simple DACs.
Difference amplifier. With to each input and as feedback and as the grounding resistor, the output is . Its CMRR depends on how well the resistor ratios match. The instrumentation amplifier adds two follower-type input stages for very high input resistance and gain set by one resistor.
Worked example. An inverting amplifier with kΩ and kΩ has gain −10. Swapping to the non-inverting connection with the same resistors gives gain 11.
Why it matters. These five circuits and the two rules answer most op-amp questions. Exams often hide one inside a larger circuit.
Integrator and differentiator
Replace of the inverting amplifier by a capacitor . The input current charges the capacitor, and since the inverting input is at virtual ground, the output is the negative of the capacitor voltage:
A constant input gives a ramp, and a square wave gives a triangle wave. In the frequency domain the gain is , falling at 20 dB per decade.
The ideal integrator has infinite gain at DC, so any input offset slowly drives the output to saturation. A large resistor across the capacitor limits the DC gain. The circuit then integrates only above a corner frequency.
Swap the resistor and capacitor and you get a differentiator:
A triangle wave in gives a square wave out. Its gain rises with frequency, so it amplifies high-frequency noise and can become unstable. A small resistor in series with the input capacitor limits the high-frequency gain.
Integrators are far more common in practice. They are used in analog computers, in active filters, in waveform generators and in the dual-slope ADC.
Worked example. An integrator with kΩ and µF receives a constant 1 V input. The output falls at V/s, so it reaches −5 V after 5 ms.
Why it matters. Output-waveform questions, such as what comes out when a square wave goes in, are a GATE favourite.
Comparators and the Schmitt trigger
Without feedback the op-amp is a comparator. If the output goes to , and if it goes to . Comparing a signal with a reference this way detects levels, as in a battery-low indicator or a zero-crossing detector.
A plain comparator has a problem with noisy, slowly changing inputs. Near the threshold, noise makes the input cross back and forth, so the output chatters between the two states.
The Schmitt trigger fixes this with positive feedback. In the inverting form, a divider of and feeds a fraction of the output back to the non-inverting input. That input therefore sits at when the output is high and at when it is low.
The input must rise above to switch the output low, and fall below to switch it back. The two thresholds differ, and the gap between them is the hysteresis:
Noise smaller than the hysteresis cannot cause false switching. Schmitt triggers clean up slow or noisy signals into sharp square waves, and with an RC network added they form a relaxation oscillator, the simplest square-wave generator.
Worked example. An inverting Schmitt trigger has V, kΩ and kΩ. Then , the thresholds are ±4 V and the hysteresis is 8 V.
Why it matters. Threshold and hysteresis numericals appear regularly in GATE, and the Schmitt trigger is the standard answer to "how do you clean a noisy digital signal".
Active filters
A filter passes some frequencies and blocks others. Low-pass filters pass below a cut-off, high-pass above it, band-pass within a band and band-stop (notch) everything except a band.
Passive RC filters lose signal and are disturbed by the load. LC filters work at low frequency only with large, heavy inductors. Active filters combine RC networks with op-amps, which give gain, isolate the load and allow steep responses without inductors.
The simplest is a first-order low-pass: an RC section followed by a follower, or an inverting amplifier with a capacitor across . Its cut-off and roll-off are:
Swapping R and C gives a first-order high-pass.
Steeper filters cascade second-order sections, each rolling off at 40 dB per decade. The most common is the Sallen-Key section, which uses one op-amp, two resistors and two capacitors. For equal components its cut-off is still , and the gain of the op-amp sets the shape, or quality factor .
Different values of Q give named responses. Butterworth gives the flattest pass band, with for a second-order section. Chebyshev allows ripple in the pass band in return for a sharper fall. Bessel gives the best-shaped pulses, with a gentler fall.
A band-pass filter can be made by cascading high-pass and low-pass sections, or with a single multiple-feedback section; its centre frequency is and its bandwidth is .
Worked example. A first-order low-pass filter needs kHz with nF. Then kΩ.
Why it matters. Filter type identification, cut-off and roll-off are asked in GATE and ESE. Order and slope link to the Bode plots of the signals chapters.
Real op-amp limits
Real op-amps fall short of the ideal in ways that matter.
Finite gain-bandwidth. A compensated op-amp has a single dominant pole, so its gain-bandwidth product (GBW) is constant. The closed-loop bandwidth is about . An op-amp with GBW of 1 MHz set for a gain of 100 gives only about 10 kHz of bandwidth.
Slew rate. The output can change only so fast, a limit called the slew rate (SR), typically 0.5 V/µs for older types. A sine of peak at frequency needs a slope of , so the largest undistorted frequency at full swing is:
Above it the sine turns into a triangle.
Offsets. A small input offset voltage, a few millivolts, appears at the output multiplied by the noise gain. Input bias currents flowing through unequal resistances add another error; a resistor equal to in the non-inverting input reduces it.
Other limits. CMRR, power-supply rejection, output current and output swing are all finite. Modern rail-to-rail and FET-input op-amps reduce some of these.
Worked example. An op-amp with SR = 0.5 V/µs must give a 10 V peak sine. Then kHz.
Why it matters. Slew rate and GBW numericals appear in GATE and ESE. They explain why fast, high-gain stages need better op-amps.
The 555 timer
The 555 is a cheap IC that makes accurate time delays and square waves. Inside, three equal resistors divide into and . Two comparators watch an external capacitor's voltage against these levels and set or reset a flip-flop, which drives the output and a discharge transistor.
Monostable mode. A trigger pulse below sets the output high and lets the capacitor charge through . When the capacitor reaches , the output goes low and the capacitor is discharged. The output pulse has width:
This gives a clean pulse of fixed length from a short or noisy trigger, as in debouncing or a timed relay.
Astable mode. The capacitor charges through and discharges through alone, swinging between and . The high and low times are:
So the frequency and duty cycle are:
Because charging uses both resistors, the duty cycle is always above 50%. A diode across lets the capacitor charge through alone, which allows 50% or less.
The numbers 1.1 and 0.693 come from the capacitor charging between the fixed fractions: and . Because they depend only on ratios, the timing hardly changes with supply voltage.
Worked example. An astable 555 has kΩ, kΩ and nF. Then kHz and .
Why it matters. 555 numericals are standard in JE and ESE papers, and the monostable and astable formulas are easy marks.
Regulated power supplies
The rectifier and filter from the diode chapter give a DC voltage with ripple, and it changes as the mains voltage or the load changes. A voltage regulator holds the output steady. Two figures measure it: line regulation, the output change per unit input change, and load regulation, the output change from no load to full load.
The simplest is the Zener shunt regulator, a series resistor and a Zener diode across the load. The Zener absorbs whatever current the load does not take, holding its voltage nearly fixed. It is cheap but wastes power, since full current flows all the time.
A series-pass linear regulator puts a transistor between the input and the load. An error amplifier compares a fraction of the output with a stable reference and adjusts the transistor so the output stays put. This is negative feedback, and it gives excellent regulation and low noise. The fixed 78xx (positive) and 79xx (negative) ICs, and adjustable ones such as the LM317, work this way.
The pass transistor drops the difference between input and output and turns it into heat. The efficiency is therefore about:
A 5 V regulator fed from 12 V is only about 42% efficient. A low-dropout (LDO) regulator needs a smaller input-output difference, which helps battery equipment.
A switching regulator avoids this loss. A transistor switches fully on and off at tens or hundreds of kilohertz, and an inductor, a diode and a capacitor smooth the pulses.
A buck converter steps down, with for duty cycle . A boost converter steps up, with . Efficiencies above 85% are common, which is why phone chargers and laptop supplies are switching types, at the cost of some switching noise.
Worked example. A buck converter from 12 V with duty cycle 0.42 gives about 5 V. A linear regulator for the same job at 1 A would waste W as heat.
Why it matters. Regulators connect devices, feedback and power electronics. Exams ask efficiency, Zener design and the buck and boost relations.
Descriptive lens: how this topic is asked in written papers
Written papers ask op-amp applications in four ways:
- Derive the gain of an inverting, non-inverting, summing or difference amplifier, or the output of an integrator.
- Explain the virtual short, hysteresis in a Schmitt trigger, slew rate, or why switching regulators are more efficient.
- Design a filter, a Schmitt trigger, a 555 astable or a Zener regulator for stated values.
- Draw output waveforms for a stated input, such as a square wave into an integrator.
Practice questions (our own, not previous-year questions).
- Using the virtual short concept, derive the output of a three-input summing amplifier and of a difference amplifier. How is an instrumentation amplifier better? (15 marks)
- Design a 555 astable multivibrator for 1 kHz with 60% duty cycle using µF. (10 marks)
- Compare linear and switching voltage regulators in terms of efficiency, noise, size and cost. (10 marks)
Answer plan for question 2.
- Write ms and ms from ms and .
- From , find kΩ.
- From , find kΩ, so kΩ.
- Choose standard values, such as 2.7 kΩ and 5.6 kΩ, and check the resulting frequency.
- Draw the circuit with the control-pin capacitor and output connections.
Quick revision
- With negative feedback the ideal op-amp gives a virtual short, , and zero input current.
- The inverting gain is , the non-inverting gain is , and the follower gain is 1.
- The summer gives , and the difference amplifier gives .
- The integrator gives , and the differentiator gives .
- A Schmitt trigger uses positive feedback, with thresholds and hysteresis .
- A first-order filter has and falls 20 dB/decade, and Butterworth second order has .
- Slew rate sets , and closed-loop bandwidth is about GBW divided by the noise gain.
- The 555 monostable gives , and the astable gives with duty cycle above 50%.
- A linear regulator has , a buck gives and a boost gives .