Analog Circuit Design
Op-amp gain, closed-loop bandwidth, slew rate, comparator hysteresis and difference/instrumentation amplifiers, plus reference tables for common parts and configurations.
Op-Amp Gain (Inverting / Non-Inverting)
Closed-Loop Bandwidth (Gain–Bandwidth Product)
Slew Rate & Full-Power Bandwidth
Comparator Hysteresis (Non-Inverting)
Instrumentation Amplifier Gain (3-Op-Amp)
Difference Amplifier (Subtractor)
Op-Amp Noise Analysis (Non-Inverting)
Op-Amp DC Offset & Error Budget
📊 Schematic Diagrams
Simplified standard configurations showing input, feedback network and output path.
Inverting amplifier — Vin drives Rin into the summing node; Rf from output back to the node holds it near the + input (virtual ground), producing Vout = −(Rf/Rin)·Vin with inverted polarity.
Non-inverting amplifier — Vin feeds the + input directly (very high input impedance); the Rf/Rin divider sets the gain 1 + Rf/Rin with the same polarity as the input.
Comparator with hysteresis — R1 feeds a little of the output back into the + node, while R2 pulls it to Vref. That feedback splits the trip point into VT+ and VT− and rejects noise at the threshold.
3-op-amp instrumentation amplifier — Two input amplifiers each add R1 with a common Rg between them giving gain 1 + 2R1/Rg, while a difference stage cancels the common-mode levels of the two inputs.
Difference amplifier (subtractor) — V1 drives the − input through Rin while V2 reaches the + input scaled by R2; with R1=Rf and R2=Rin the output becomes (Rf/Rin)(V2 − V1), subtracting common-mode voltages.
Unity-gain buffer — The output is wired straight back to the − input, forcing Vout to track Vin exactly (A = 1) with near-infinite input impedance to isolate the source from the load.
Open-loop vs closed-loop response — Open-loop gain rolls off at −20 dB/decade and reaches unity at the gain–bandwidth product GBW. A closed-loop gain Acl holds its flat value only until f = GBW / Acl, where the response starts rolling off.
Slew-rate limiting waveform — If the required slope 2πf·Vp exceeds the op-amp slew rate, the output cannot follow the sine and its edges flatten into straight, limited slopes — a triangular limit that distorts before the −3 dB bandwidth is reached.
Op-amp noise sources — The amplifier has a series voltage-noise source En at the + input and current-noise sources In at each input. Source and feedback resistors add thermal noise 4kTR. Each density is multiplied by √BW and the noise gain to get output RMS noise.
Offset & bias sources — An input-referred offset voltage Vos and bias currents Ib leaving each input are the DC error sources. The output offset equals the input errors times the noise/DC gain; matching the two input impedances cancels the bias-current term.
Driving a capacitive load — A large capacitance at the op-amp output introduces a pole inside the feedback loop that erodes phase margin and can cause ringing or oscillation. Inserting a small series resistor Ri isolates the capacitor from the loop.
📚 Analog Reference Tables
Condensed specs for common configurations, op-amps, voltage references and comparators. Values are typical — check the datasheet for your exact part.
Op-Amp Configurations at a Glance
| Configuration | Transfer | Notes |
|---|---|---|
| Inverting | A = −Rf/Rin | Input to virtual ground; negative polarity |
| Non-inverting | A = 1 + Rf/Rin | Very high input impedance |
| Unity follower | A = 1 | Buffer: max Zin, low Zout |
| Difference (subtractor) | Vout = (Rf/Rin)(V2−V1) | Rejects common-mode |
| Integrator | Vout = −(1/RC)∫Vin·dt | Active LP / ramp; needs reset bleed |
| Transimpedance (I→V) | Vout = −Rf·Iin | Photodiode / sensor front end |
Common Op-Amp Families
| Part | Type | Supply | GBW | SR | Notes |
|---|---|---|---|---|---|
| LM358 / LM324 | dual / quad | 3–32 V | 1 MHz | 0.3 V/µs | Cheap single-supply, rail inputs |
| LM741 | single | ±5–±18 V | 1.5 MHz | 0.5 V/µs | Classic BJT; no rail-to-rail |
| TL071 / 72 / 74 | JFET | ±5–±18 V | 3 MHz | 13 V/µs | Low input bias current |
| NE5532 | dual | ±3–±18 V | 10 MHz | 9 V/µs | Low noise; low-Z sources |
| OPA2333 | zero-drift | 1.8–5.5 V | 350 kHz | 0.16 V/µs | Very low offset / drift |
| MCP6001 | CMOS | 1.8–6 V | 1 MHz | 0.6 V/µs | Single-supply rail-to-rail |
| OPA347 | micro | 2.3–5.5 V | 350 kHz | 0.17 V/µs | Low power, battery apps |
Voltage Reference Options
| Option | Typical accuracy | Tempco / drift | Notes |
|---|---|---|---|
| LM4040 | ±0.1–2 % | 20–100 ppm/°C | Low-cost 2.5 / 4.096 V shunt |
| TL431 | ±0.5–1 % | 30–50 ppm/°C | Programmable 2.5–36 V, very cheap |
| REF5025 | ±0.05 % | 3 ppm/°C | Low-noise 2.5 V precision series |
| REF03 | ±0.6 % | 50 ppm/°C | 2.5 V buffered |
| REF34xx | ±0.05 % | 6 ppm/°C | Nanopower rail-to-rail |
| MCU internal | poor–fair | large | Coarse rails / trimming only |
| Zener | ±5 % | high | Avoid for precision |
Common Comparators
| Part | Propagation | Output | Notes |
|---|---|---|---|
| LM393 / LM339 | ~1.3 µs | open–collector | Needs pull-up; add hysteresis |
| LM311 | 200 ns | open–collector | Fast, TTL output, optional strobe |
| TLV3501 | 4.5 ns | push–pull | High-speed single-supply |
| ADCMP600 | 8 ns | LVTTL | Fast CMOS, quiescent friendly |
| MAX9028 | — | push–pull | Nanopower, low hysteresis |
| Op-amp as comp | slow | — | Beware phase-inversion; output saturates |