PGA / Digitally-Programmable Gain Design Guide
← Back to:Active Filters & Signal Conditioning
A programmable-gain front end turns one DAQ input into multiple reliable ranges—only if gain steps are treated as a timed event and validated with tSETTLE@ε. This page shows how to pick architectures and gain tables, then control glitch/settling/noise/drive and production calibration so every range behaves repeatably in the real chain.
What is a PGA / Digitally-Programmable Gain Block?
Intent
Clarify what a programmable-gain amplifier (PGA) solves in real signal chains, and how it differs from a VGA, an INA, or an op-amp with manual gain resistors.
Definition (Engineering View)
- Multi-range matching: keep the downstream ADC/DAQ near its optimal input range across signal amplitude changes.
- Repeatability: gain ratios are set by internal networks (switchable resistors, switched-cap, transconductance cells), improving cross-board consistency.
- Controllable switching behavior: gain updates have defined timing and recovery, enabling blanking, sync updates, and production scripts.
- Input types: single-ended and differential; common-mode/headroom constraints as they relate to gain states.
- Gain mechanisms: resistor ladders, INA-like PGAs, fully-differential PGAs, switched-cap/charge-redistribution gain.
- Control: SPI/I²C, latch/sync pins, update timing, default state, and readback integrity.
- System position: Sensor/MUX → PGA → (optional AAF) → ADC/DAQ, focusing on settling, noise, and range utilization.
- Filter topology deep dives (Sallen-Key/MFB/SVF/biquads): only interface constraints are mentioned.
- Full FDA/ADC-driver theory: only the “must-not-break” load/stability checks are referenced.
- ADC architecture education: the ADC is treated as a load and timing constraint (settling window, sampling kickback).
Minimal Comparison (Decision-Oriented)
Quick Checks (Before Committing to a PGA)
- Range utilization: do measured peaks frequently sit below 20% or hit clipping at the ADC/DAQ input? A PGA typically pays off.
- Switching ownership: is gain updated during measurement? Budget a blanking/settling window per step.
- MUX reality: do different channels have different source impedances? Expect per-channel settling differences unless the front-end is standardized.
- Production intent: is the same gain table required across units/lots? PGA repeatability helps only if update timing and test criteria are defined.
Where PGA Sits in a DAQ Chain: Multi-Range Matching
Intent
Place the PGA in the signal chain to maximize usable dynamic range without breaking settling time, distortion limits, or multiplexed channel consistency.
Three Practical DAQ Templates (Signal-Chain Only)
- Primary target: lowest referred-to-input noise and drift in the passband.
- Main risk: leakage/contamination and bias current masquerading as “drift” at high gain.
- Must-own check: shorted-input RTI noise and warm-up stability at the intended gain state.
- Primary target: keep peaks inside the ADC window with guardband (avoid clipping and “empty codes”).
- Main risk: range chatter and wrong decisions if the chain is sampled before settling completes.
- Must-own check: tSETTLE at the required error after each gain step (not just “looks flat”).
- Primary target: identical settling and gain accuracy across channels.
- Main risk: different source impedances create different effective RC time constants → inconsistent settling per channel.
- Must-own check: per-channel settling test at the same gain state (scripted), including the real sampling window.
Goals → Actions (How Multi-Range Matching Becomes Implementable)
Quick Checks (Bring-Up & Production Friendly)
- Settling window test: step the gain, then sample at the actual decision time; pass only if the output is inside the target error band.
- MUX consistency: sweep channels at a fixed gain and record “time-to-within-band” per channel; large spread indicates source-Z/RC mismatch.
- Distortion guardband: verify THD/SFDR at the worst swing expected in each gain state (high gain near headroom is a common failure zone).
PGA Architectures & Gain-Setting Mechanisms
Intent
Select a PGA architecture by engineering constraints (source impedance, common-mode/headroom, load, switching frequency), not by labels.
Architecture Families (Benefits → Primary Risks)
- Best at: repeatable gain ratios and production consistency.
- Primary risk: charge injection and node re-distribution → glitch + settling ownership after gain steps.
- Practical cue: large source impedance or capacitive load amplifies step transients and settling spread.
- Best at: differential sensors and long cables where CMRR dominates.
- Primary risk: input common-mode/headroom and protection behavior → slow overload recovery can mimic drift.
- Practical cue: a “perfect” DC spec can collapse when common-mode moves or clamps conduct.
- Best at: controlling output common-mode and driving differential chains.
- Primary risk: VOCM and output headroom; capacitive load (AAF/ADC input) can trigger ringing or stability loss.
- Practical cue: THD often spikes when swing approaches rails or VOCM is injected with noise.
- Best at: precise ratios via capacitor matching; stable gain across process.
- Primary risk: clock-related spur and folded noise; switching artifacts depend on clock integrity and layout.
- Practical cue: spurs at fCLK or harmonics indicate coupling into the analog path.
Continuous gain is useful for AGC and smooth control loops, but control-path noise and linearity calibration become primary owners. This page focuses on discrete programmable gain states.
Pick-this-if Rules (Fast Selection)
- Multi-range DAQ and production scripts: start with resistor-ladder PGAs; require a defined glitch/settling window per step.
- Long cables or differential sensors: favor a PGA with INA-like front-end and explicit overload recovery behavior.
- Differential ADC input with VOCM requirements: favor fully-differential PGAs; validate VOCM noise and capacitive-load stability.
- Clocked integrated front-ends: consider switched-cap PGAs; verify clock spur placement and anti-alias strategy.
- MUXed channels with diverse source impedances: prioritize predictable settling (often fewer ranges) and per-channel validation.
Gain Programming: Step Tables, dB Scaling, and Control Interfaces
Intent
Turn gain states into a measurable update contract: gain table → update semantics → glitch + settling window → valid sampling window.
Gain Table Patterns (Binary vs Ratio vs dB Steps)
- Best for: broad multi-range capture with simple firmware mapping.
- Risk: large step sizes can cause frequent re-ranging and larger switching transients.
- Rule: enforce hysteresis and minimum dwell time; keep a per-step settling budget.
- Best for: measurement systems where error budgets and calibration are tied to a small set of predictable ranges.
- Risk: too many states increase validation burden (settling + THD per state).
- Rule: keep states few and testable; validate worst-case settling in each state.
- Best for: thresholding and protection-style decisions where amplitude margins are tracked in dB.
- Risk: repeated step decisions can chatter without a clean metric and timing discipline.
- Rule: align decision thresholds with the valid sampling window; require lockout after each update.
Control Interfaces & Update Semantics (Immediate vs Latched vs Sync)
SPI, I²C, parallel pins, or strap pins. The interface choice matters less than when the new gain becomes active and how the chain is gated until settling completes.
- Immediate update: gain changes right after write → always requires blanking.
- Latched update: write to shadow registers, then latch → enables predictable sync.
- Sync/LDAC-style: external edge triggers simultaneous activation → best for multi-channel coherence.
- Mute/hold behavior: define whether the output is disconnected, held, or continuous during updates.
- Readback integrity: readback, CRC/locking, and a deterministic power-up default state.
- Multi-channel sync: deterministic group update for multi-PGA or multi-channel PGAs.
Timing Contract (What Firmware and Production Must Enforce)
- tWRITE: bus write completes (worst-case bus timing and retries included).
- tLATCH: latch/sync propagation until the analog path changes state.
- tSETTLE: time until the output enters the required error band (defined by the application tolerance).
- Valid sampling window: start sampling only after tWRITE + tLATCH + tSETTLE + margin.
Key Specs That Actually Matter (and How They Trade Off)
Intent
Convert datasheet numbers into system risks: noise floor, clipping, spurs, slow settling, distortion, and channel mismatch.
The Short List (Specs that decide success)
- en / 1/f corner → noise floor, low-frequency stability
- in / bias / leakage → high-source-Z error, drift-like behavior
- Input range / common-mode → unexpected clipping, gain-state collapse
- Overload recovery → slow return after transients, “memory” errors
- Gain error / drift → calibration burden, temp stability
- Step accuracy / monotonicity → auto-range chatter, range boundary errors
- Gain flatness vs frequency → in-band amplitude error, channel mismatch
- Output swing / headroom → clipping margin per gain state
- THD/SFDR vs swing → distortion “knee” near limits
- Capacitive-load stability → ringing, slow settle, intermittent oscillation
- VOCM (diff) → distortion, headroom, common-mode noise coupling
- Glitch magnitude → false thresholds, invalid samples
- Settling time (to error band) → usable sampling window
- Slew / large-signal BW → step response, peak handling
Spec → Failure Signature → Quick Check → Mitigation
- Signature: noise floor rises at low frequency; averaging stops improving after a point.
- Quick check: short input and measure RTI noise vs gain states; compare low-band vs wide-band.
- Mitigation: limit bandwidth, choose lower-noise PGA, avoid unnecessary gain where ADC no longer dominates.
- Signature: “drift” depends on humidity, cable touch, or channel selection; channel offsets diverge.
- Quick check: compare open/short input, swap source resistance, and repeat after warm-up.
- Mitigation: reduce source impedance, guard/clean PCB, define input bias return paths, limit leakage paths.
- Signature: distortion or clipping appears only at certain common-mode or gain states.
- Quick check: sweep common-mode while holding differential amplitude constant; record THD/clip flags.
- Mitigation: adjust VOCM/biasing, reduce swing in sensitive states, select wider-CM architecture.
- Signature: false thresholds, range chatter, or “bad samples” right after gain updates.
- Quick check: step gain and sample at the actual decision time; verify inside the target error band.
- Mitigation: enforce blanking + tSETTLE per step; prefer sync updates for multi-channel systems.
Noise & Dynamic-Range Budgeting (Referred-to-Input Thinking)
Intent
Choose gain by a single noise language: convert source, PGA, bandwidth, and ADC into Total RTI noise, then stop increasing gain once ADC noise is no longer dominant.
RTI vs RTO (Use the right reference)
Best for selecting gain and comparing architectures. Everything is translated back to the input so source and front-end trade-offs become visible.
Useful for verifying output noise against ADC full-scale windows and for consistent bench measurements at a fixed output amplitude.
Three Items That Must Be Budgeted Together
Combine source thermal noise with PGA en/in (high source impedance makes bias/leakage and current noise dominate the error).
Noise grows with bandwidth. The measurement bandwidth is set by filtering and sampling strategy; use the same bandwidth in budgeting and validation.
ADC noise and quantization, referred to input, shrink as gain increases. Once that term is small, further gain only reduces headroom and worsens distortion or settling.
Increase gain until the ADC-referred RTI contribution becomes a small part of the total; beyond that point, limit gain by swing/THD and switching-settling windows.
Conclusion Rules (Executable)
- Low source impedance: prioritize en and distortion/drive; gain increases quickly hit headroom and THD limits.
- High source impedance: current noise, bias, and leakage become system error terms; validate with open/short and warm-up tests.
- Do not chase maximum gain: stop when ADC noise is no longer dominant; extra gain mostly costs swing, THD, and settling time.
- Validate with the real bandwidth: filtering and sampling define integrated noise; budgeting and verification must share the same BW.
- Budget the switching window: auto-range needs blanking and tSETTLE; gain states that cannot settle within the cadence are not usable.
Gain Switching Transients: Glitch, Charge Injection, and Settling
Intent
Treat each gain update as an engineering contract: update event → glitch → settling to an error band → valid sampling window.
Where the Glitch Comes From (Four Owners)
- Signature: spike amplitude tracks step direction and step size.
- Usually worse with: high-impedance internal nodes and temperature swings.
- Signature: a step-like offset after the update, then a slow return.
- Usually worse with: larger state changes and mixed source impedances (MUX chains).
- Signature: the waveform looks clipped or slewed, then recovers slowly.
- Usually worse with: near-rail swing, heavy load, or capacitive drive.
- Signature: differential looks acceptable but CM jump causes THD/settling to degrade.
- Usually worse with: VOCM bandwidth limits or CM noise coupling.
Settling Criterion: tSETTLE@ε (Not “Looks Flat”)
- %FS for full-scale referenced systems
- LSB for ADC resolution referenced checks
- Absolute for threshold / protection decisions
tSETTLE changes with (from→to) gain states, output swing and common-mode, source impedance, load model, and measurement bandwidth.
Samples taken before tSETTLE@ε must be treated as invalid (discard, hold, or mark). This prevents glitch energy from entering control or decision logic.
Mitigation Toolbox (Actionable)
- Delay sampling start after updates; discard N samples based on tSETTLE@ε.
- Use the same rule in firmware and production validation.
- Hold last valid output or mute during the invalid window.
- For decisions, tag samples as invalid rather than averaging them in.
- Use intermediate states for large jumps; limit maximum step size.
- Add hysteresis and minimum dwell time to prevent range chatter.
Debug Flow (Minimum Actions to Find the Owner)
- Capture: trigger on gain update and record the output waveform with full bandwidth.
- Scan: change step size and direction; a strong dependence points to injection / re-distribution.
- Sweep: vary Cload and observe ringing/settling; strong dependence points to drive/stability.
- Check CM: observe common-mode in differential systems; CM steps can dominate settling and THD.
- Validate: compute tSETTLE@ε and enforce the same blanking rule in firmware.
Stability & Drive: Filters, Cloads, and ADC Inputs
Intent
Prevent ringing, distortion, and slow settling when a PGA drives real loads: AAF input impedance, cable capacitance, and ADC sampling capacitance.
Load Types That Break Drive (Model First)
- Sources: cables, AAF input caps, ADC input network.
- Signature: ringing and longer tSETTLE; can become intermittent oscillation.
- Reality: the PGA “sees” frequency-dependent impedance, not the schematic.
- Signature: ringing/THD gets worse only in certain frequency ranges.
- Reality: periodic charge bursts distort settling and create sampling-related spurs.
- Signature: artifacts align with sampling rate or aperture timing.
- Reality: VOCM bandwidth and symmetry determine both stability and THD.
- Signature: CM noise or CM steps show up as differential distortion.
Isolation Resistor (Riso): A Repeatable Tuning Path
Place Riso close to the PGA output so the driver is isolated from downstream capacitance and sampling pulses.
Increase Riso gradually and track: ringing amplitude, tSETTLE@ε, and THD/SFDR. Stop when stability improves without unacceptable bandwidth loss.
Too much Riso forms extra poles/zeros with Cload and can reduce bandwidth or add gain error at high frequency.
Interface Rules (Stable Drive Without Over-Sacrificing Bandwidth)
- Model what the PGA sees: use a simple Zeq/Ceq view for AAF and cable loads.
- Make sampling pulses manageable: use drive + small RC shaping so charge bursts do not dominate settling.
- Preserve symmetry (diff): match paths and treat VOCM as a bandwidth and noise owner, not a static pin.
- Validate with real loads: a “clean” response into a resistor does not guarantee performance into AAF/ADC Cin.
Auto-Ranging & Calibration Hooks (Production-Grade Consistency)
Intent
Build a minimal, stable auto-range loop and a calibration lifecycle so multi-range systems do not chatter, mis-decide, or drift across production and field service.
Minimal Auto-Range Loop (Six Mandatory Blocks)
- Clip / near-rail flags for hard protection.
- Window checks for amplitude boundaries.
- Noise proxy (SNR-like) to detect wasted resolution.
Apply up/down transitions that match the gain step table. Avoid large jumps that amplify transients and settling burden.
Use a wider band than measurement uncertainty so noise never toggles ranges. The saturation side can be more conservative than the low-level side.
Enforce a minimum time (or sample count) in each range. This prevents range chatter and protects throughput.
After any gain update, mark samples invalid until settling reaches the chosen error band. Discard, hold, or tag—never average invalid data in.
Require at least one valid sample after blanking to confirm the new range. If it fails the window, transition again with hysteresis and dwell rules.
Range Set & Switching Points (Make Auto-Range Match the Gain Table)
- Binary-ish steps: fastest coverage of dynamic range.
- Ratio steps: stable boundaries for measurement chains.
- dB steps: consistent perceived changes for audio-like envelopes.
- Downshift: protect headroom and distortion (avoid clipping and recovery).
- Upshift: reduce resolution waste (avoid ADC noise dominance).
- Limit step size: keep settling windows bounded.
- Asymmetric hysteresis: tighter on the “too small” side, wider on the “near clip” side.
- Minimum dwell: lock each state long enough to get valid samples.
- Confirmation sample: require a valid re-check before declaring stable.
Calibration Hooks: Coefficient Lifecycle (Acquire → Store → Version → Validate)
- Calibrate every range only if range-to-range error dominates the budget.
- Otherwise, prioritize the ranges used most often or nearest the decision thresholds.
- Use a small set of temperature points and a repeatable rule to update coefficients.
- Bind coefficients to the test conditions (bandwidth, range, and settling rule).
- Version: calibration version and firmware version must be recorded together.
- Traceability: include date, temperature model identifier, and range table identifier.
- Fallback: keep factory defaults and last-known-good for rollback.
Failure Detection (Prevent “Overfitting” and Coefficient Drift)
After calibration, verify with an independent point. If it fails, do not accept the new coefficients.
Track coefficient movement across time/temperature. If drift exceeds the guardband, trigger re-calibration or rollback.
If a new calibration fails verification, revert to last-known-good and record the failure event for diagnosis.
Engineering Checklist: Layout, Leakage, Protection, and Verification Hooks
Intent
A review-ready checklist for high-gain systems: prevent leakage-driven “drift,” avoid digital coupling, protect inputs without destroying bandwidth, and add hooks for bring-up and production scripts.
A) Layout & Leakage (High-Z Owners)
- Keep high-Z nodes short and shielded; avoid long parallel runs.
- Define a bias return path so inputs do not float in certain ranges.
- Use guard rings for high-Z nodes and keep the guard reference consistent.
- Flux residue + humidity becomes a leakage amplifier; treat cleaning as an electrical step.
- TVS/ESD parts can leak; leakage often looks like “drift” at high gain.
- Verify leakage across temperature and humidity conditions.
B) Grounding & Routing (Coupling Control)
- Match differential routes and keep return paths continuous.
- Avoid crossing splits; preserve symmetry through the PGA and into the ADC.
- Keep SPI/I²C and fast edges away from high-gain input nodes.
- Route digital lines with a clean return; avoid “loop” coupling into analog.
If the return path is broken, the system will create an unintended antenna. At high gain, this becomes deterministic spurs and unstable settling.
C) Protection Without Killing Bandwidth
Use input RC to limit fault currents and reduce event energy; validate that it does not over-slow settling or create unacceptable phase shift.
Prefer low-capacitance protection to avoid loading high-gain nodes; check leakage across temperature to prevent drift-like errors.
Protection capacitance changes the effective load. Re-check ringing and tSETTLE@ε after adding the protection network.
D) Verification Hooks (Bring-up + Production Script Fields)
- Input short point for RTI noise checks.
- Reference injection point for gain/offset verification.
- Loopback path for end-to-end validation.
- Range state, temperature point, bandwidth setting.
- Settling rule: error band ε and blanking duration.
- Calibration version and firmware version.
- Per range: noise, headroom, and tSETTLE@ε once with real loads.
- Confirm auto-range does not chatter under worst-case noise.
Application Patterns (DAQ-First, No Sensor Physics)
Use these templates to assemble a programmable-gain front-end without drifting into sensor physics. Each card highlights where PGAs typically fail in real DAQ chains: source impedance mismatch, range-switch transients, load stability, and common-mode handling.
A) Multi-sensor + MUX: different source-Z per channel
Breaks when: channel-to-channel Zsrc changes settling; MUX memory contaminates the next channel; digital control coupling shows up at high gain.
Build rules: define a per-Zsrc tier gain table; enforce blanking between MUX/gain updates and sampling; keep a short-to-input + reference-injection test hook.
- TI PGA116AIPWR (PGA + 10-ch mux, SPI)
- TI PGA117AIPWR (scope-gain variant, mux + SPI)
- Microchip MCP6S26-I/ST (6-ch PGA with SPI mux control)
- Microchip MCP6S28-I/SL (8-ch PGA family option, SPI)
B) Precision measurement: high gain, low drift, repeatability first
Breaks when: 1/f + drift dominates at high gain; leakage looks like drift; overload recovery creates long tails.
Build rules: separate “device drift” vs “board leakage” by controlled tests; keep a fixed post-switch sampling window; log gain-range + bandwidth + temperature in production scripts.
- TI PGA281AIPW (zero-drift, high-voltage programmable-gain instrumentation amp)
- TI PGA280AIPW (digitally-controlled gain + signal-integrity features)
- Analog Devices AD8250 (digitally programmable gain instrumentation amp family)
- Analog Devices AD8251ARMZ (gains 1/2/4/8, digital or pin gain control)
- Analog Devices AD8253ARMZ (gains 1/10/100/1000 class)
C) Wide-range signals: protection + auto-ranging without chatter
Breaks when: no hysteresis causes range chatter; no blanking treats switch transients as signal; protection capacitance/leakage degrades phase/offset.
Build rules: enforce hysteresis + minimum dwell time; blank and re-sample after switching; qualify clamp impact using the same settling/THD criteria as the main signal path.
- Analog Devices / Maxim MAX9939AUB+T (SPI programmable-gain, differential I/O capable)
- TI PGA112AIDGST (zero-drift PGA family; use when DC accuracy + repeatability dominates)
- Analog Devices LTC6910-2CTS8#TRMPBF (digitally-controlled gain, compact footprint; inverting-gain family)
D) Differential acquisition: common-mode budget is a first-class constraint
Breaks when: input CM range is violated; CM steps extend settling and increase distortion; symmetry errors translate into spurs and mismatch.
Build rules: define CM range with guardband; verify CM step response; keep the SE↔DIFF converter details on the dedicated FDA page (do not expand here).
- TI PGA281AIPW (programmable-gain instrumentation amplifier)
- Analog Devices AD8250 / AD8251ARMZ (programmable-gain INA families)
- Analog Devices / Maxim MAX9939AUB+T (differential signal conditioning use-cases)
IC Selection Logic (Decision Tree + What to Ask Vendors)
A PGA is selected by conditions, not by typical numbers. The workflow below forces every candidate to pass the same gates: input constraints → gain table fit → settling@ε → noise match → distortion/load → interface/reliability → bench verify → production hooks.
Decision Tree (priority order)
- Input type + protection: SE/DIFF, allowed common-mode range, maximum miswire/overvoltage case, required overload recovery behavior.
- Gain set definition: step style (binary / ratio / dB), max gain, per-step gain error, monotonicity, and gain drift vs temperature.
- Dynamics gate (non-negotiable): require tSETTLE@ε with ε explicitly stated (e.g., 0.1% / 0.01%), with output amplitude and load model.
- Noise match gate: en/in/1/f corner must be provided with bandwidth and input termination method; match the noise model to the real source impedance tiers.
- Drive + distortion gate: THD/SFDR vs swing and vs load; stability guidance for capacitive/AAF/ADC sampling loads (Riso recommendations matter).
- Interface + reliability gate: default gain at power-up, latch/update timing, readback/CRC/lock, ESD grade, temperature range, and long-term drift notes.
- Bench verify gate: measure the “three-pack” under your conditions: noise, settling after gain step, distortion at target swing.
- Production hooks: scripting fields (gain range, BW mode, temperature, ε rule), calibration versioning, and failure signatures that can be binned.
What to ask vendors (force reproducible conditions)
Reference examples (material numbers; official links; starting points only)
These part numbers speed up datasheet lookup and bench comparison. Selection must be driven by the decision tree above (conditions + guardband + verify).
- TI PGA112 · example P/N: PGA112AIDGST
- TI PGA117 · example P/N: PGA117AIPWR
- Microchip MCP6S26 · example P/N: MCP6S26-I/ST
- TI PGA281 · example P/N: PGA281AIPW
- TI PGA280 · example P/N: PGA280AIPW
- ADI AD8250
- ADI AD8251 · example P/N: AD8251ARMZ
- ADI AD8253 · example P/N: AD8253ARMZ
- ADI LTC6910 family · example P/N: LTC6910-2CTS8#TRMPBF
- ADI LTC6911 family · example P/N: LTC6911IMS-2#PBF
- ADI/Maxim MAX9939 · example P/N: MAX9939AUB+T
FAQs (PGA / Digitally-Programmable Gain) — Switching, Settling, Noise, Consistency
These FAQs are strictly scoped to programmable-gain behavior: gain switching, tSETTLE@ε, noise/drift, interface-coupled spurs, and production-grade repeatability. Each answer is intentionally short and executable.