Chapter 8
Analog Electronics and Operational Amplifiers
Bachelors Program in Electrical Engineering
Electrical & Electronics Engineering Laboratory
•
Bachelor
Analog Electronics and Operational Amplifiers
Introduction
Analog electronic circuits process continuously varying voltages and currents. Although digital systems dominate computation, their interfaces with sensors, actuators, communication channels and power supplies remain fundamentally analog. Operational amplifiers, or op-amps, are therefore central to instrumentation, control, audio, biomedical electronics and industrial automation.
This chapter develops the theory and laboratory practice required to design and test amplifiers, active filters, oscillators, comparators, waveform generators, voltage regulators and feedback circuits. Particular attention is given to practical limitations: finite bandwidth, instability, distortion, noise, input and output range, slew rate, loading and saturation.
Learning Objectives
After completing this chapter, students should be able to:
Analyze ideal and non-ideal op-amp circuits.
Design inverting, non-inverting, summing and differential amplifiers.
Design and test first- and second-order active filters.
Implement comparators, Schmitt triggers, oscillators and waveform generators.
Design a correctly connected adjustable linear regulator.
Measure gain, bandwidth, phase response, distortion, noise and saturation.
Assess feedback stability using loop gain and phase margin.
Select practical components while considering tolerances, supply rails and thermal limits.
1. Operational-Amplifier Foundations
An op-amp is a high-gain differential voltage amplifier. Its open-loop relation is
Vo = AOL(V_+ - V_-)
where Vo is output voltage, AOL is open-loop voltage gain, and V_+ and V_- are the non-inverting and inverting input voltages. The equation applies only while the output remains within its available output swing. Otherwise, the amplifier saturates near a supply rail.
1.1 Ideal model
The ideal op-amp has:
infinite open-loop gain;
infinite input resistance and zero input current;
zero output resistance;
infinite bandwidth and slew rate;
zero offset voltage and noise;
unlimited common-mode and output ranges.
With stable negative feedback and unsaturated operation, two useful approximations follow:
V_+ \approx V_-
I_+ \approx I_- \approx 0
The first is a virtual-short condition, not a physical short circuit. It must not be applied to an open-loop comparator or a positively fed-back circuit.
1.2 Important non-ideal parameters
Parameter
Meaning
Practical consequence
Input offset voltage
Differential voltage required for zero output
Produces DC output error
Input bias current
Current entering or leaving each input
Develops errors across source resistance
Gain-bandwidth product
Approximate product of closed-loop gain and bandwidth
Limits high-frequency gain
Slew rate
Maximum output rate of change, in V/μs
Distorts large, fast signals
Common-mode range
Allowed input-voltage range
Inputs may malfunction outside it
Output swing
Reachable output range
Causes clipping near supply rails
CMRR
Rejection of common-mode input
Important in sensor interfaces
PSRR
Rejection of supply variation
Supply ripple can appear at the output
“Rail-to-rail” must be interpreted carefully. Rail-to-rail input and rail-to-rail output are separate specifications, and neither normally means exact operation at both rails under every load.
2. Negative Feedback and Closed-Loop Behavior
For an amplifier with forward gain A(s) and negative-feedback factor \beta(s), the closed-loop transfer function is
ACL(s) = \frac{A(s)}{1 + A(s)\beta(s)}
The loop gain is L(s)=A(s)\beta(s). If |L| \gg 1, then ACL \approx 1/\beta, so the external network determines gain more accurately than the op-amp itself.
Feedback reduces gain sensitivity, distortion and output impedance while usually increasing bandwidth. It can, however, cause oscillation when phase shift changes intended negative feedback into effective positive feedback.
2.1 Gain-bandwidth approximation
For a dominant-pole, voltage-feedback op-amp, the approximate closed-loop bandwidth is
fBW \approx \frac{fT}{|AN|}
where fT is the unity-gain frequency and AN is noise gain. For a non-inverting amplifier, noise gain equals signal gain. For an inverting amplifier, AN=1+Rf/Rin, whereas signal gain is -Rf/Rin. This approximation requires a dominant-pole response and a stable feedback network.
2.2 Stability measures
Phase margin is measured at the frequency where loop-gain magnitude is unity. It is the additional phase lag required to reach −180°. A phase margin near 45°–60° commonly provides an acceptable compromise between speed and ringing, although the required value depends on the application.
Capacitive loads, breadboard parasitics and poorly decoupled supplies can reduce stability. Recommended practices include short feedback paths, local supply bypass capacitors and, where appropriate, a small output isolation resistor.
3. Fundamental Amplifier Circuits
3.1 Inverting amplifier
For the correctly connected inverting amplifier, both Rin and Rf meet at the same inverting-input summing node.
Figure: Inverting amplifier with the input and feedback resistors joined at the same summing node, TP2.
Because the non-inverting input is grounded, negative feedback holds the summing node near 0 V. Kirchhoff’s current law gives
\frac{Vin}{Rin} = \frac{-Vo}{Rf}
and hence
\frac{Vo}{Vin} = -\frac{Rf}{Rin}
This result assumes negligible input current, sufficiently large loop gain and unsaturated output.
Worked example. If Rin=10\ k\Omega, Rf=47\ k\Omega and Vin=0.40\ V, then
Av=-4.7, \qquad Vo=-1.88\ V
A ±12 V supply can ordinarily accommodate this result, subject to the selected op-amp’s output-swing specification.
3.2 Non-inverting amplifier
For a resistor Rf from output to inverting input and Rg from the inverting input to ground,
Av = \frac{Vo}{Vin} = 1 + \frac{Rf}{Rg}
The input resistance is high because the source drives the non-inverting terminal. Setting Rf=0 and removing Rg produces a voltage follower with unity gain.
The differential amplifier, with matched resistor ratios R2/R1=R4/R3, has
Vo=\frac{R2}{R1}(V2-V1)
Common-mode rejection depends strongly on resistor-ratio matching. Precision instrumentation amplifiers provide higher input impedance and better CMRR than a basic four-resistor implementation.
4. Saturation, Slew Rate and Distortion
4.1 Output saturation
An op-amp cannot produce a voltage beyond its supply-dependent output swing. If an ideal calculation demands ±14 V but the device can deliver only ±10 V under the stated load, clipping occurs at approximately those limits.
The output-current limit must also be checked:
Io=\frac{Vo}{RL}
where RL is load resistance. A voltage within the nominal swing may still be unattainable if it requires excessive current.
4.2 Slew-rate limitation
For a sine wave vo=Vp\sin(2\pi ft), the maximum slope is 2\pi fVp. Distortion is avoided only if
SR \ge 2\pi fVp
Thus the full-power bandwidth is
fFP=\frac{SR}{2\pi Vp}
If SR=0.5\ V/\mu s and Vp=5\ V, then fFP=15.9\ kHz. Small-signal bandwidth and full-power bandwidth are distinct limits.
4.3 Distortion measurement
Total harmonic distortion is commonly expressed as
THD=\frac{\sqrt{V22+V32+\cdots}}{V1}\times100\%
where V1 is the RMS fundamental component and V2,V3,\ldots are RMS harmonic components. The measurement bandwidth must be reported because noise and high-order harmonics affect the result.
5. Active Filters
Active filters combine resistors, capacitors and amplifiers to provide frequency selectivity without inductors.
5.1 First-order inverting low-pass filter
Placing Cf in parallel with Rf gives
H(s)=-\frac{Rf/Rin}{1+sRfCf}
with cutoff frequency
fc=\frac{1}{2\pi RfCf}
Below fc, the gain approaches -Rf/Rin. Above cutoff, magnitude decreases at approximately 20 dB per decade.
Example. With Rf=15.9\ k\Omega and Cf=10\ nF, fc\approx1.00\ kHz.
5.2 High-pass and band-pass behavior
A series input capacitor followed by a resistance forms a first-order high-pass section with fc=1/(2\pi RC). Cascading high-pass and low-pass sections can form a band-pass response, provided loading between stages is negligible or buffered.
5.3 Second-order response
A second-order low-pass transfer function can be written
H(s)=\frac{K\omega02}{s2+(\omega0/Q)s+\omega02}
where K is passband gain, \omega0 is natural angular frequency in rad/s, and Q is quality factor. For an equal-component Sallen–Key low-pass circuit,
f0=\frac{1}{2\pi RC}, \qquad Q=\frac{1}{3-K}
These equations apply specifically to the equal-resistor, equal-capacitor Sallen–Key topology. A Butterworth response requires Q=1/\sqrt{2}, giving K\approx1.586. Component tolerances become increasingly important at high Q.
6. Comparators and Hysteresis
A comparator indicates which input voltage is larger. Unlike a linear amplifier, it normally operates open-loop and drives its output toward one of two limiting levels.
General-purpose op-amps are not always suitable comparators. They may recover slowly from saturation, exhibit input-stage phase reversal or lack logic-compatible outputs. Dedicated comparators may use open-collector or open-drain outputs requiring a pull-up resistor.
6.1 Schmitt trigger
Positive feedback creates hysteresis and prevents noise near a threshold from causing repeated transitions. For a symmetrical inverting Schmitt trigger with the non-inverting input connected to a fraction \beta of the output,
\beta=\frac{R2}{R1+R2}
where R1 connects output to the threshold node and R2 connects that node to 0 V. If output limits are \pm Vsat, the thresholds are
VTH+=+\beta Vsat, \qquad VTH-=-\beta Vsat
The hysteresis width is 2\beta Vsat. For asymmetric output limits or a nonzero reference, each threshold must be calculated from the actual resistor network and output level.
7. Oscillators and Waveform Generators
Oscillators use positive feedback to generate periodic signals without an external periodic input. The Barkhausen conditions at the oscillation frequency are approximately
These are steady-state conditions, not a complete guarantee of startup. Startup generally requires loop gain slightly greater than unity; nonlinear amplitude control then reduces it toward unity.
7.1 Wien-bridge oscillator
For equal resistors R and equal capacitors C in the Wien network,
f0=\frac{1}{2\pi RC}
At f0, the network attenuation is 1/3, so the amplifier must provide a gain of approximately 3. With R=15.9\ k\Omega and C=10\ nF, f0\approx1.00\ kHz. Lamps, diodes or automatic-gain-control circuits may stabilize amplitude; hard clipping produces substantial harmonics.
7.2 Square- and triangle-wave generator
A Schmitt trigger followed by an integrator creates square and triangular outputs. For symmetrical comparator limits \pm Vsat, integrator resistance R, capacitance C and thresholds \pm\beta Vsat, the ideal oscillation frequency is
f=\frac{1}{4\beta RC}
This expression assumes equal positive and negative saturation magnitudes, negligible switching delay and a constant integrator input of \pm Vsat. Real component tolerances and unequal output limits alter frequency and symmetry.
8. Voltage Regulation and Power Integrity
A voltage regulator maintains a nearly constant output despite changes in input voltage and load current. Key specifications include line regulation, load regulation, dropout voltage, ripple rejection, quiescent current, current limit and thermal resistance.
8.1 Adjustable LM317 regulator
The LM317 maintains approximately 1.25 V between OUT and ADJ. The programming resistor R1 must be connected from OUT to ADJ; R2 connects ADJ to ground.
Correct LM317 adjustable voltage regulator circuit
Figure: Correct LM317 adjustable voltage regulator circuit
Figure: LM317 regulator with R₁ correctly connected between OUT and ADJ, R₂ from ADJ to ground, and no short circuit between the input rail and ground.
The output is
Vo=VREF\left(1+\frac{R2}{R1}\right)+IADJR2
where VREF\approx1.25\ V and IADJ is typically tens of microamperes but must be checked from the data sheet.
Worked example. For R1=240\ \Omega, R2=720\ \Omega and IADJ=50\ \mu A,
Vo=1.25(1+720/240)+(50\ \mu A)(720\ \Omega)=5.036\ V
The regulator requires sufficient input headroom: Vin must exceed Vo by at least the worst-case dropout voltage. Power dissipation is approximately
PD=(Vin-Vo)Io+VinIQ
where IQ represents regulator operating current. The junction temperature estimate is TJ\approx TA+PD\thetaJA when the stated thermal-resistance conditions apply. Heat sinking may be essential.
Switching regulators provide higher efficiency for large voltage reductions, while linear regulators generally offer lower ripple and simpler electromagnetic-compatibility control.
9. Noise and Measurement Integrity
The RMS thermal-noise voltage of a resistor over bandwidth B is
vn,R=\sqrt{4kTRB}
where k=1.380649\times10-23\ J/K, T is absolute temperature in kelvin, R is resistance in ohms and B is noise bandwidth in hertz.
Uncorrelated RMS noise sources combine by root-sum-square addition:
vn,total=\sqrt{vn12+vn22+\cdots}
Op-amp voltage-noise density, current-noise density, resistor noise and source resistance should all be considered. Oscilloscope probe grounding, electromagnetic pickup and instrument noise can dominate low-level measurements.
Best laboratory practices include:
using ×10 probes where loading permits;
keeping ground leads short;
decoupling each supply rail close to the device;
measuring input and output simultaneously;
recording load, supply and temperature conditions;
avoiding solderless breadboards for very high-frequency or very low-noise work.
10. Laboratory Design and Test Procedure
A disciplined procedure prevents false conclusions.
Pre-design: calculate nominal gain, cutoff frequency, output swing, current and dissipation.
A fictional industrial pressure transmitter uses a sensor producing 0.5–4.5 V over its measurement range. The installation provides an unregulated 9–12 V DC source. A microcontroller ADC accepts only 0–5 V.
Problem
The designer wants to use most of the ADC range while rejecting high-frequency interference. Because only a positive source and ground are available, a claimed bipolar output such as ±2.4 V would be physically inappropriate unless a negative rail, isolated converter or midpoint-referenced differential interface were added.
Analysis and approach
A 5 V regulator powers a rail-to-rail input/output op-amp and the ADC. The desired mapping is 0.5 V → 0.1 V and 4.5 V → 4.9 V. The required linear relation is
Vo=1.2Vin-0.5\ V
A non-inverting level-shifting stage can implement
where Rg connects the inverting node to a reference rather than ground. Choosing Rf=20\ k\Omega, Rg=100\ k\Omega and VREF=2.5\ V gives
Vo=1.2Vin-0.2(2.5)=1.2Vin-0.5\ V
At the endpoints, the output is 0.1 V and 4.9 V. A buffered precision 2.5 V reference is preferable to an unloaded resistor divider because reference impedance and ADC switching currents can create errors. A low-pass stage with R=15.9\ k\Omega and C=100\ nF provides approximately 100 Hz cutoff when loading is negligible.
Outcome
The circuit operates entirely from regulated 5 V and ground; it does not require a negative rail. The chosen op-amp must support input voltages from 0.5 to 4.5 V and output voltages from 0.1 to 4.9 V at the required load. If its guaranteed output swing cannot reach these values, the mapping must be narrowed or a more suitable device selected.
Learning points
Supply architecture must be consistent with the required signal polarity.
“Rail-to-rail” claims require data-sheet verification under actual load.
Reference quality affects gain and offset accuracy.
Input protection, filtering and regulator headroom must be checked together.
Endpoint, temperature and noise tests are necessary before deployment.
12. Contemporary Practice, Safety and Governance
Modern analog design increasingly uses SPICE simulation, digitally programmable gain, auto-zero amplifiers and digitally assisted calibration. Simulation accelerates design but does not fully model layout parasitics, thermal gradients, electromagnetic coupling or every overload condition. Physical validation remains mandatory.
AI-assisted component selection can compare specifications, but engineers remain responsible for checking data-sheet revisions, lifecycle status, counterfeit risk and worst-case ratings. Measurement data must not be selectively omitted. Traceable calibration and honest uncertainty reporting are professional and ethical requirements.
Industrial products may also need compliance with electrical safety, electromagnetic compatibility, hazardous-substance and sector-specific medical or automotive standards. Protection against reverse polarity, electrostatic discharge, overvoltage and thermal overload should be designed rather than assumed.
Chapter Summary
Operational amplifiers use high open-loop differential gain together with external feedback to implement accurate analog functions. Inverting and non-inverting gains follow from the virtual-short approximation only when negative feedback is stable and the amplifier remains within its operating limits. Real designs must account for gain-bandwidth product, noise gain, slew rate, common-mode range, output swing, loading, noise and thermal behavior.
Active filters shape frequency response; comparators and Schmitt triggers provide threshold detection; oscillators use frequency-selective positive feedback; and integrator–comparator combinations generate square and triangular waveforms. Adjustable regulators require correct programming-resistor connections, adequate dropout margin and thermal analysis. Reliable laboratory work combines calculation, data-sheet verification, current-limited startup, calibrated measurement and explicit uncertainty reporting.
Key Terms
Open-loop gain: Differential voltage gain without external feedback.
Negative feedback: Return of an output fraction that opposes the input error.
Virtual short: Approximate equality of op-amp input voltages under stable negative feedback.
Summing node: Circuit node at which multiple branch currents combine.
Noise gain: Closed-loop gain experienced by input-referred op-amp error sources.
Gain-bandwidth product: Approximate product of closed-loop gain and bandwidth for a dominant-pole op-amp.
Slew rate: Maximum rate at which output voltage can change.
Saturation: Operation at an output limit imposed by supply voltage or device constraints.
Common-mode range: Permitted voltage range common to both amplifier inputs.
Phase margin: Additional loop phase lag required to reach the oscillation condition at unity loop gain.
Cutoff frequency: Frequency at which a first-order response is 3 dB below its passband value.
Quality factor: Parameter describing damping and selectivity of a second-order response.
Hysteresis: Difference between rising and falling switching thresholds.
Comparator: Circuit that indicates which of two input voltages is larger.
Oscillator: Circuit that produces a periodic signal without a periodic external input.
Dropout voltage: Minimum regulator input-to-output voltage difference required for regulation.
Thermal noise: Random voltage or current caused by thermal carrier motion.
Total harmonic distortion: RMS harmonic content relative to the fundamental component.
Review Questions
Short Answer Questions
State the two ideal op-amp approximations used in stable negative-feedback analysis.
Distinguish signal gain from noise gain in an inverting amplifier.
Define slew rate and explain its unit.
Why is hysteresis useful in a noisy comparator circuit?
What is regulator dropout voltage?
Long Answer Questions
Derive the closed-loop gain of an inverting amplifier using Kirchhoff’s current law.
Explain how negative feedback affects gain accuracy, bandwidth, distortion and stability.
Compare first-order and second-order active low-pass filters, including roll-off and quality factor.
Explain the operation and amplitude-control requirements of a Wien-bridge oscillator.
Describe a complete laboratory procedure for measuring amplifier gain, bandwidth, clipping and transient stability.
Analytical / Application Questions
Design a non-inverting amplifier with gain 8 and verify its expected bandwidth using an op-amp with a 4 MHz gain-bandwidth product.
An amplifier must generate a 12 V peak, 30 kHz sine wave. Calculate the minimum slew rate and assess a device rated at 1.5 V/μs.
Design an LM317 circuit for approximately 9 V using R1=240\ \Omega, including the adjustment-current term, dropout check and power-dissipation estimate for a specified load.
Multiple Choice Questions with Answers
Question 1
In a correctly connected inverting amplifier, where must the feedback resistor and input resistor meet?
A. At the non-inverting input
B. At the inverting-input summing node
C. At the positive supply terminal
D. At the load ground only
Correct Answer: B. At the inverting-input summing node
Question 2
An ideal inverting amplifier has Rin=10\ k\Omega and Rf=50\ k\Omega. What is its closed-loop voltage gain?
A. +5
B. −0.2
C. −5
D. +6
Correct Answer: C. −5
Question 3
A non-inverting amplifier uses Rf=18\ k\Omega and Rg=2\ k\Omega. What is its ideal gain?
A. 9
B. 10
C. 11
D. 20
Correct Answer: B. 10
Question 4
For a dominant-pole op-amp with a 2 MHz unity-gain frequency and noise gain of 20, what is the approximate closed-loop bandwidth?
A. 40 MHz
B. 2 MHz
C. 200 kHz
D. 100 kHz
Correct Answer: D. 100 kHz
Question 5
Which condition indicates that a sinusoidal output is not slew-rate limited?
A. SR \ge 2\pi fVp
B. SR \le Vp/(2\pi f)
C. SR=f/Vp
D. SR \ge VpRL
Correct Answer: A. SR \ge 2\pi fVp
Question 6
A first-order low-pass filter is well above its cutoff frequency. What is its approximate magnitude slope?
A. +20 dB per decade
B. −10 dB per decade
C. −20 dB per decade
D. −40 dB per decade
Correct Answer: C. −20 dB per decade
Question 7
For an equal-component Sallen–Key low-pass filter, which amplifier gain gives approximately a Butterworth response?
A. 0.500
B. 1.000
C. 1.586
D. 3.000
Correct Answer: C. 1.586
Question 8
What is the principal purpose of hysteresis in a comparator?
A. To increase power-supply voltage
B. To prevent repeated switching caused by noise near the threshold
C. To eliminate the need for feedback
D. To make output voltage continuously proportional to input voltage
Correct Answer: B. To prevent repeated switching caused by noise near the threshold
Question 9
In a correctly wired LM317 adjustable regulator, where is R1 connected?
A. Between IN and ground
B. Between IN and OUT
C. Between OUT and ADJ
D. Between ADJ and the load only
Correct Answer: C. Between OUT and ADJ
Question 10
Using R1=240\ \Omega, R2=720\ \Omega, VREF=1.25\ V and neglecting adjustment current, what is the LM317 output voltage?
A. 3.75 V
B. 4.00 V
C. 5.00 V
D. 6.25 V
Correct Answer: C. 5.00 V
Electrical & Electronics Engineering Laboratory
Chapter 8
of 15