Electronics and Communication Engineering‹›⌂ 0:00 studied

Module 2 · 15 min read · Free chapter

Op-amp circuits, active filters, timers and regulators

In short

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.

What are you preparing for? We show the practice and previous year questions of your exam.

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, v+=v−v_+ = v_-. 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 R1R_1 to the inverting input, and RfR_f 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 viR1\dfrac{v_i}{R_1}. That same current must flow through RfR_f, giving:

Av=−RfR1A_v = -\frac{R_f}{R_1}

The input resistance is just R1R_1.

Non-inverting amplifier. The signal goes to the non-inverting input, and R1R_1 and RfR_f form a divider from the output to the inverting input. The divider must deliver viv_i to that input, so:

Av=1+RfR1A_v = 1 + \frac{R_f}{R_1}

The input resistance is very high, since the source drives an op-amp input. With Rf=0R_f = 0 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 RfR_f:

vo=−Rf(v1R1+v2R2+v3R3)v_o = -R_f\left(\frac{v_1}{R_1} + \frac{v_2}{R_2} + \frac{v_3}{R_3}\right)

This is an analog adder and the basis of audio mixers and simple DACs.

Difference amplifier. With R1R_1 to each input and R2R_2 as feedback and as the grounding resistor, the output is vo=R2R1(v2−v1)v_o = \dfrac{R_2}{R_1}(v_2 - v_1). 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 R1=10R_1 = 10 kΩ and Rf=100R_f = 100 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 RfR_f of the inverting amplifier by a capacitor CC. The input current viR\dfrac{v_i}{R} charges the capacitor, and since the inverting input is at virtual ground, the output is the negative of the capacitor voltage:

vo(t)=−1RC∫vi dtv_o(t) = -\frac{1}{RC}\int v_i\,dt

A constant input gives a ramp, and a square wave gives a triangle wave. In the frequency domain the gain is −1jωRC-\dfrac{1}{j\omega RC}, 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:

vo(t)=−RC dvidtv_o(t) = -RC\,\frac{dv_i}{dt}

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 R=10R = 10 kΩ and C=0.1C = 0.1 µF receives a constant 1 V input. The output falls at 1RC=1000\dfrac{1}{RC} = 1000 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 v+>v−v_+ > v_- the output goes to +Vsat+V_{sat}, and if v+<v−v_+ < v_- it goes to −Vsat-V_{sat}. 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 R1R_1 and R2R_2 feeds a fraction β=R2R1+R2\beta = \dfrac{R_2}{R_1 + R_2} of the output back to the non-inverting input. That input therefore sits at +βVsat+\beta V_{sat} when the output is high and at −βVsat-\beta V_{sat} when it is low.

The input must rise above +βVsat+\beta V_{sat} to switch the output low, and fall below −βVsat-\beta V_{sat} to switch it back. The two thresholds differ, and the gap between them is the hysteresis:

VH=2βVsatV_H = 2\beta V_{sat}

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 Vsat=±12V_{sat} = \pm 12 V, R1=20R_1 = 20 kΩ and R2=10R_2 = 10 kΩ. Then β=13\beta = \dfrac{1}{3}, 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 RfR_f. Its cut-off and roll-off are:

fc=12πRC,roll-off 20 dB/decadef_c = \frac{1}{2\pi RC}, \qquad \text{roll-off } 20 \text{ dB/decade}

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 12πRC\dfrac{1}{2\pi RC}, and the gain of the op-amp sets the shape, or quality factor QQ.

Different values of Q give named responses. Butterworth gives the flattest pass band, with Q=0.707Q = 0.707 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 f0f_0 and its bandwidth is f0Q\dfrac{f_0}{Q}.

Worked example. A first-order low-pass filter needs fc=1f_c = 1 kHz with C=10C = 10 nF. Then R=12π×1000×10−8≈15.9R = \dfrac{1}{2\pi \times 1000 \times 10^{-8}} \approx 15.9 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 GBW1+Rf/R1\dfrac{\mathit{GBW}}{1 + R_f/R_1}. 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 VpV_p at frequency ff needs a slope of 2πfVp2\pi f V_p, so the largest undistorted frequency at full swing is:

fmax=SR2πVpf_{max} = \frac{\mathit{SR}}{2\pi V_p}

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 R1∥RfR_1 \parallel R_f 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 fmax=0.5×1062π×10≈8f_{max} = \dfrac{0.5 \times 10^6}{2\pi \times 10} \approx 8 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 VCCV_{CC} into 13VCC\dfrac{1}{3}V_{CC} and 23VCC\dfrac{2}{3}V_{CC}. 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 13VCC\dfrac{1}{3}V_{CC} sets the output high and lets the capacitor charge through RR. When the capacitor reaches 23VCC\dfrac{2}{3}V_{CC}, the output goes low and the capacitor is discharged. The output pulse has width:

T=1.1 RCT = 1.1\,RC

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 RA+RBR_A + R_B and discharges through RBR_B alone, swinging between 13VCC\dfrac{1}{3}V_{CC} and 23VCC\dfrac{2}{3}V_{CC}. The high and low times are:

tH=0.693(RA+RB)C,tL=0.693 RBCt_H = 0.693(R_A + R_B)C, \qquad t_L = 0.693\,R_B C

So the frequency and duty cycle are:

f=1.44(RA+2RB)C,D=RA+RBRA+2RBf = \frac{1.44}{(R_A + 2R_B)C}, \qquad D = \frac{R_A + R_B}{R_A + 2R_B}

Because charging uses both resistors, the duty cycle is always above 50%. A diode across RBR_B lets the capacitor charge through RAR_A alone, which allows 50% or less.

The numbers 1.1 and 0.693 come from the capacitor charging between the fixed fractions: ln⁡3≈1.1\ln 3 \approx 1.1 and ln⁡2≈0.693\ln 2 \approx 0.693. Because they depend only on ratios, the timing hardly changes with supply voltage.

Worked example. An astable 555 has RA=1R_A = 1 kΩ, RB=10R_B = 10 kΩ and C=10C = 10 nF. Then f=1.4421000×10−8≈6.9f = \dfrac{1.44}{21000 \times 10^{-8}} \approx 6.9 kHz and D=1121≈52%D = \dfrac{11}{21} \approx 52\%.

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:

η≈VoutVin\eta \approx \frac{V_{out}}{V_{in}}

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 Vout=DVinV_{out} = D V_{in} for duty cycle DD. A boost converter steps up, with Vout=Vin1−DV_{out} = \dfrac{V_{in}}{1 - D}. 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 (12−5)×1=7(12 - 5) \times 1 = 7 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:

  1. Derive the gain of an inverting, non-inverting, summing or difference amplifier, or the output of an integrator.
  2. Explain the virtual short, hysteresis in a Schmitt trigger, slew rate, or why switching regulators are more efficient.
  3. Design a filter, a Schmitt trigger, a 555 astable or a Zener regulator for stated values.
  4. Draw output waveforms for a stated input, such as a square wave into an integrator.

Practice questions (our own, not previous-year questions).

  1. 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)
  2. Design a 555 astable multivibrator for 1 kHz with 60% duty cycle using C=0.1C = 0.1 µF. (10 marks)
  3. Compare linear and switching voltage regulators in terms of efficiency, noise, size and cost. (10 marks)

Answer plan for question 2.

  • Write tH=0.6t_H = 0.6 ms and tL=0.4t_L = 0.4 ms from T=1T = 1 ms and D=0.6D = 0.6.
  • From tL=0.693RBCt_L = 0.693R_BC, find RB=0.4×10−30.693×10−7≈5.8R_B = \dfrac{0.4 \times 10^{-3}}{0.693 \times 10^{-7}} \approx 5.8 kΩ.
  • From tH=0.693(RA+RB)Ct_H = 0.693(R_A + R_B)C, find RA+RB≈8.7R_A + R_B \approx 8.7 kΩ, so RA≈2.9R_A \approx 2.9 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, v+=v−v_+ = v_-, and zero input current.
  • The inverting gain is −RfR1-\dfrac{R_f}{R_1}, the non-inverting gain is 1+RfR11 + \dfrac{R_f}{R_1}, and the follower gain is 1.
  • The summer gives vo=−Rf∑vkRkv_o = -R_f\sum\dfrac{v_k}{R_k}, and the difference amplifier gives R2R1(v2−v1)\dfrac{R_2}{R_1}(v_2 - v_1).
  • The integrator gives vo=−1RC∫vi dtv_o = -\dfrac{1}{RC}\int v_i\,dt, and the differentiator gives −RCdvidt-RC\dfrac{dv_i}{dt}.
  • A Schmitt trigger uses positive feedback, with thresholds ±βVsat\pm\beta V_{sat} and hysteresis 2βVsat2\beta V_{sat}.
  • A first-order filter has fc=12πRCf_c = \dfrac{1}{2\pi RC} and falls 20 dB/decade, and Butterworth second order has Q=0.707Q = 0.707.
  • Slew rate sets fmax=SR2πVpf_{max} = \dfrac{\mathit{SR}}{2\pi V_p}, and closed-loop bandwidth is about GBW divided by the noise gain.
  • The 555 monostable gives T=1.1RCT = 1.1RC, and the astable gives f=1.44(RA+2RB)Cf = \dfrac{1.44}{(R_A + 2R_B)C} with duty cycle above 50%.
  • A linear regulator has η≈VoutVin\eta \approx \dfrac{V_{out}}{V_{in}}, a buck gives Vout=DVinV_{out} = DV_{in} and a boost gives Vin1−D\dfrac{V_{in}}{1 - D}.

Check yourself

Exam-style questions on this chapter. Pick an answer to see the explanation. 0 of 12 answered

  1. With negative feedback, why can the two inputs of an ideal op-amp be taken as being at the same voltage?

  2. An inverting amplifier has R1=4.7R_1 = 4.7 kΩ and Rf=47R_f = 47 kΩ. Its voltage gain is:

  3. A summing amplifier has Rf=10R_f = 10 kΩ, inputs v1=1v_1 = 1 V through 10 kΩ and v2=0.5v_2 = 0.5 V through 5 kΩ. The output is:

  4. A symmetric square wave is applied to an op-amp integrator. The output waveform is:

  5. An integrator with R=100R = 100 kΩ and C=1C = 1 µF has 2 V DC applied at t=0t = 0 with output initially 0. The output after 50 ms is:

  6. An inverting Schmitt trigger has Vsat=±10V_{sat} = \pm 10 V and feedback divider R1=9R_1 = 9 kΩ (output side), R2=1R_2 = 1 kΩ (to ground). The hysteresis width is:

  7. A first-order active low-pass filter and a second-order Butterworth low-pass filter differ in roll-off above cut-off by:

  8. A first-order RC low-pass filter uses R=1.59R = 1.59 kΩ and C=0.1C = 0.1 µF. Its cut-off frequency is about:

  9. An op-amp has a slew rate of 1 V/µs. The highest frequency at which it can deliver a 5 V peak sine without slew distortion is about:

  10. The pulse width of a 555 monostable with R = 100 kΩ and C = 10 µF is about:

  11. A 555 astable has RA=RB=10R_A = R_B = 10 kΩ. Its duty cycle (high time over period) is about:

  12. A linear regulator delivers 5 V at 2 A from a 15 V input. Its efficiency and the heat in the pass element are about:

Previous year questions

Previous year questions for UPSC CSE will appear here once each one is checked word for word against the official question paper.

Learn with AI

A tutor that asks instead of telling, a partner that argues the other side, and this chapter told through your own district.

Tell the tutor what you are stuck on. It will guide you with questions and give the answer after a few tries.

🙋 Raise a doubt or feedback

Stuck somewhere, or spotted a mistake? Write to the ExamHike team. We usually reply within a day, and you will see the reply on My progress.

Log in to ask a doubt or send feedback →

Frequently asked questions

What is a virtual short in an op-amp?

With negative feedback and very high gain, the output adjusts until both inputs are at the same voltage, while no current flows into them.

What is slew rate?

The fastest rate at which the output can change, in V/µs; a sine of peak V_p is undistorted only up to SR/(2πV_p).

Why is a 555 astable duty cycle above 50%?

The capacitor charges through R_A + R_B but discharges through R_B alone, so the high time is always longer unless a diode bypasses R_B.

Why are switching regulators more efficient than linear ones?

A linear regulator burns the input-output difference as heat, giving efficiency near V_out/V_in; a switching regulator turns fully on and off and stores energy in an inductor, reaching 85% or more.

More in this module: Analog circuits

Official sources

Facts in this chapter were checked against these official sources.

  1. GATE 2026 Electronics and Communication Engineering (EC) syllabus, IIT Guwahati
  2. NPTEL Analog Electronic Circuits (IIT Delhi, 108102112): op-amp, filters, comparators and Schmitt trigger, regulators