123 Main Street, New York, NY 10001

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)

A PGA is a gain block with repeatable, selectable gain states (step or continuous) designed for:
  • 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.
Scope of this page (kept intentionally narrow)
  • 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.
Not covered here (avoid overlap with sibling pages)
  • 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)

Op-amp + manual resistors
Simple and low cost, but tolerance/assembly risk and range switching are hard to manage; production consistency often depends on calibration and process control.
INA (instrumentation amplifier)
Strong for small differential signals and CMRR, but gain/range decisions are constrained by input common-mode, protection, and overload recovery.
VGA (variable-gain amplifier)
Best for continuous control/AGC. Trade-offs include linearity, control-path noise coupling, and calibration complexity across the full control range.
PGA (digitally-programmable gain)
Best for repeatable discrete ranges and production scripts. The primary engineering “cost” is owning gain-step transients (glitch + settling) and sync update timing.

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.
PGA scope map in a DAQ signal chain Block diagram showing where a programmable gain amplifier sits between sensor or mux and an ADC/DAQ, with key concerns: step gain, digital control, settling, and noise. Scope map: Sensor/MUX → PGA → (Optional AAF) → ADC/DAQ Sensor / MUX PGA Programmable Gain Optional AAF ADC/DAQ Step gain Digital control Settling Noise Filter topology (see AAF pages) ADC theory (out of scope)
Figure 1 — A boundary-first scope map: the PGA sits between the source (sensor/MUX) and the ADC/DAQ, with ownership of gain states, digital updates, settling, and noise.

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)

Low-level
µV–mV signals → high gain → bandwidth shaping → ADC
  • 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.
Auto-range
mV–V signals → range steps → ADC (maximize range utilization)
  • 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”).
MUXed
MUX → PGA → ADC (channel-to-channel consistency)
  • 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)

Goal: use the ADC range efficiently
Choose a gain table (ratio or dB steps) so typical peaks sit near the target window while preserving headroom for transients and tolerances.
Goal: avoid wrong measurements during switching
Define blanking and settling per gain step; gate the measurement window until the chain meets the required error band.
Goal: prevent auto-range chatter
Add hysteresis (in amplitude or dB), minimum dwell time, and a consistent decision metric (clip flag, threshold margin, or noise/FS ratio).
Goal: keep channels consistent in MUX systems
Standardize source impedance where possible (series R, buffer strategy), then validate per-channel settling under the real sampling cadence.

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).
Three DAQ chain templates using a PGA Three-row block diagram showing low-level signals, auto-ranging, and multiplexed channels. Each row includes Sensor/MUX, PGA, AAF, ADC, and DSP. DAQ chain templates (3 rows): consistent blocks, different ownership Low-level Sensor PGA AAF ADC DSP Noise ownership Auto-range Sensor PGA AAF ADC DSP Blanking + settle MUXed MUX PGA Channel settling consistency Same blocks; different priorities: noise, switching window, channel consistency.
Figure 2 — Three DAQ-first patterns: low-level (noise ownership), auto-range (blanking + settling), and MUXed acquisition (channel-to-channel settling consistency).

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)

Resistor ladder + switches (binary / ratio / dB steps)
  • 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.
INA-like PGA (high CMRR, differential small-signal)
  • 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.
Fully-differential PGA (for differential ADCs)
  • 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.
Switched-cap / charge-redistribution gain
  • 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.
VGA-style continuous control (boundary note)

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.
PGA architecture taxonomy Tree-style taxonomy of PGA architectures: resistor ladder, INA-like PGA, fully-differential PGA, switched-cap PGA, and VGA-style continuous control, each with short keywords. Architecture taxonomy: choose the default trade-offs PGA Resistor ladder Accuracy Glitch Settling owner INA-like PGA CMRR CM range Recovery Fully-diff PGA VOCM Drive Headroom / THD Switched-cap Ratio Clock spur Folded noise VGA-style Continuous AGC / Cal ! !
Figure 3 — A taxonomy-first view: architectures differ by default trade-offs (accuracy, CMRR, glitch/settling ownership, VOCM/headroom, clock spur).

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)

Binary-style 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.
Ratio (geometric) steps
  • 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.
Equal-dB steps
  • 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)

Interfaces

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.

Update semantics
  • 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.
Engineering must-haves
  • 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.
Gain programming control and timing contract Diagram showing MCU write, optional latch, and analog output response. Labels include tWRITE, tLATCH, tSETTLE, and the valid sampling window after settling. Control & timing: write → (optional latch) → glitch + settle → valid window MCU SPI / I²C write tWRITE Latch / Sync tLATCH PGA Time Bus write Latch / sync Analog output tWRITE tLATCH tSETTLE Valid window sample here Contract: do not sample until after tWRITE + tLATCH + tSETTLE (+ margin).
Figure 4 — A firmware-friendly timing contract: bus write time, latch/sync delay, and analog settling define the first valid sampling instant.

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)

Input
  • 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-related
  • 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
  • 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
Dynamic / switching
  • 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

Noise (en / 1/f corner)
  • 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.
Bias / leakage (in, Ib)
  • 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.
Input CM range / headroom
  • 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.
Glitch + settling (dynamic)
  • 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.
Spec to system impact map for a programmable gain block A left-to-right mapping of key datasheet specs to system symptoms such as clipping, noise floor rise, spurs, slow settling, distortion, and mismatch. Spec → impact map (translate datasheet into system symptoms) Datasheet specs System symptoms en / 1/f corner in / bias / leakage input CM range overload recovery gain error / drift step accuracy gain flatness noise floor rise mismatch / drift-like clipping slow settle cal burden spur / glitch amp error vs freq Keep the map sparse: each spec links to the dominant symptom that breaks systems first.
Figure 5 — A sparse, decision-first mapping: focus on the dominant symptom each spec causes in real 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)

RTI (Referred-to-input)

Best for selecting gain and comparing architectures. Everything is translated back to the input so source and front-end trade-offs become visible.

RTO (Referred-to-output)

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

1) Source + PGA noise

Combine source thermal noise with PGA en/in (high source impedance makes bias/leakage and current noise dominate the error).

2) Bandwidth defines integrated noise

Noise grows with bandwidth. The measurement bandwidth is set by filtering and sampling strategy; use the same bandwidth in budgeting and validation.

3) ADC noise folds back through gain

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.

Practical stop rule

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.
Noise budget stack referred to input Conceptual stack showing source, PGA, bandwidth/filter, and ADC contributions combining into total referred-to-input noise, then impacting SNR and range choice. Noise budget (RTI): combine four owners into one number Source Rs PGA en in Filter / BW BW ADC Quant / Noise Total RTI noise SNR ENOB Range Stop increasing gain once the ADC-referred RTI term is small; then limit gain by swing, THD, and settling.
Figure 6 — A concept stack: source, PGA, bandwidth, and ADC contributions combine into Total RTI noise, which drives SNR/ENOB and range choice.

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)

1) Switch charge injection
  • Signature: spike amplitude tracks step direction and step size.
  • Usually worse with: high-impedance internal nodes and temperature swings.
2) Node re-distribution
  • Signature: a step-like offset after the update, then a slow return.
  • Usually worse with: larger state changes and mixed source impedances (MUX chains).
3) Output stage recovery
  • Signature: the waveform looks clipped or slewed, then recovers slowly.
  • Usually worse with: near-rail swing, heavy load, or capacitive drive.
4) Common-mode step (differential)
  • 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”)

Define the error band ε
  • %FS for full-scale referenced systems
  • LSB for ADC resolution referenced checks
  • Absolute for threshold / protection decisions
Bind tSETTLE to conditions

tSETTLE changes with (from→to) gain states, output swing and common-mode, source impedance, load model, and measurement bandwidth.

Sampling contract

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)

1) Time isolation (blanking / discard)
  • Delay sampling start after updates; discard N samples based on tSETTLE@ε.
  • Use the same rule in firmware and production validation.
2) Window protection (mute / hold / freeze)
  • Hold last valid output or mute during the invalid window.
  • For decisions, tag samples as invalid rather than averaging them in.
3) Soft switching (reduce step energy)
  • 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.
Glitch and settling waveform with error band and valid window A waveform illustration showing a gain update event, a glitch spike, ringing/decay, an error band ±ε, tSETTLE@ε, and the valid sampling window after settling. Glitch → settle to error band → valid sampling window Invalid window Valid window Time Output −ε Update Glitch tSETTLE@ε Sample here after settle Use the error band ε and measure tSETTLE@ε; enforce blanking to protect decisions and averaging.
Figure 7 — Define settling by tSETTLE@ε, then isolate the sampling window so switching artifacts never enter the decision path.

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)

Capacitive load (Cload)
  • Sources: cables, AAF input caps, ADC input network.
  • Signature: ringing and longer tSETTLE; can become intermittent oscillation.
AAF impedance (Zeq)
  • Reality: the PGA “sees” frequency-dependent impedance, not the schematic.
  • Signature: ringing/THD gets worse only in certain frequency ranges.
ADC sampling pulses (Cin + switch)
  • Reality: periodic charge bursts distort settling and create sampling-related spurs.
  • Signature: artifacts align with sampling rate or aperture timing.
Differential chain (VOCM + symmetry)
  • 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

Placement

Place Riso close to the PGA output so the driver is isolated from downstream capacitance and sampling pulses.

Tune by measurement

Increase Riso gradually and track: ringing amplitude, tSETTLE@ε, and THD/SFDR. Stop when stability improves without unacceptable bandwidth loss.

Know the trade-off

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.
Equivalent load model and compensation for PGA output Block diagram showing PGA output driving an isolation resistor Riso and branching into Cload, AAF equivalent impedance, and ADC sampling capacitance. Stability and settling indicators are shown. Load model: drive → Riso → (Cload / AAF Zeq / ADC Cin pulses) PGA Output driver Riso Cload Cable / cap AAF Zeq(f) ADC Cin sampling Goal: Stability Settling Model the downstream as Zeq/Ceq; Riso close to the PGA output often provides the most repeatable stability improvement.
Figure 8 — A practical interface model: treat AAF and ADC inputs as an equivalent impedance/capacitance, then tune Riso and small RC shaping to protect stability and settling.

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)

1) Detection metric
  • Clip / near-rail flags for hard protection.
  • Window checks for amplitude boundaries.
  • Noise proxy (SNR-like) to detect wasted resolution.
2) Decision rule

Apply up/down transitions that match the gain step table. Avoid large jumps that amplify transients and settling burden.

3) Hysteresis

Use a wider band than measurement uncertainty so noise never toggles ranges. The saturation side can be more conservative than the low-level side.

4) Min dwell time

Enforce a minimum time (or sample count) in each range. This prevents range chatter and protects throughput.

5) Blanking window

After any gain update, mark samples invalid until settling reaches the chosen error band. Discard, hold, or tag—never average invalid data in.

6) Re-sample / confirm

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)

Choose a gain table that matches the system
  • Binary-ish steps: fastest coverage of dynamic range.
  • Ratio steps: stable boundaries for measurement chains.
  • dB steps: consistent perceived changes for audio-like envelopes.
Define switching points by risk owners
  • Downshift: protect headroom and distortion (avoid clipping and recovery).
  • Upshift: reduce resolution waste (avoid ADC noise dominance).
  • Limit step size: keep settling windows bounded.
Guardrails that prevent chatter
  • 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)

Gain/offset per range
  • Calibrate every range only if range-to-range error dominates the budget.
  • Otherwise, prioritize the ranges used most often or nearest the decision thresholds.
Temperature strategy
  • 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).
EEPROM / NVM bookkeeping
  • 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)

Hold-out verification point

After calibration, verify with an independent point. If it fails, do not accept the new coefficients.

Drift guardband

Track coefficient movement across time/temperature. If drift exceeds the guardband, trigger re-calibration or rollback.

Rollback policy

If a new calibration fails verification, revert to last-known-good and record the failure event for diagnosis.

Auto-range state machine with hysteresis, dwell, blanking, and re-sample A state machine showing Range N switching to Range N+1 or N-1 with mandatory guardrails: hysteresis, minimum dwell time, blanking window, and re-sampling confirmation. Auto-range state machine (guardrails prevent chatter) Metric Clip Window Noise Range N steady state Range N+1 higher gain Range N−1 lower gain Upper threshold Lower threshold Hysteresis Min dwell Blanking Re-sample Guardrails are mandatory: hysteresis + min dwell + blanking + re-sample. Without them, range chatter is guaranteed.
Figure 9 — A minimal auto-range loop: every transition is gated by hysteresis, minimum dwell time, blanking, and re-sampling confirmation.

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)

High-impedance nodes
  • Keep high-Z nodes short and shielded; avoid long parallel runs.
  • Define a bias return path so inputs do not float in certain ranges.
Guarding and cleanliness
  • 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.
Protection leakage
  • 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)

Differential symmetry
  • Match differential routes and keep return paths continuous.
  • Avoid crossing splits; preserve symmetry through the PGA and into the ADC.
Digital control isolation
  • 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.
Return-path continuity

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

RC current limiting

Use input RC to limit fault currents and reduce event energy; validate that it does not over-slow settling or create unacceptable phase shift.

Low-C TVS selection

Prefer low-capacitance protection to avoid loading high-gain nodes; check leakage across temperature to prevent drift-like errors.

Verify impact on stability

Protection capacitance changes the effective load. Re-check ringing and tSETTLE@ε after adding the protection network.

D) Verification Hooks (Bring-up + Production Script Fields)

Board hooks
  • Input short point for RTI noise checks.
  • Reference injection point for gain/offset verification.
  • Loopback path for end-to-end validation.
Script fields
  • Range state, temperature point, bandwidth setting.
  • Settling rule: error band ε and blanking duration.
  • Calibration version and firmware version.
Bring-up minimum set
  • Per range: noise, headroom, and tSETTLE@ε once with real loads.
  • Confirm auto-range does not chatter under worst-case noise.
Board-level checklist diagram: zones and coupling paths A PCB partition diagram showing input/guard, PGA/high-Z, digital control, and ADC/sampling zones, with arrows indicating crosstalk, leakage, and sampling pulse coupling paths. Checklist map: partition zones and control coupling paths Input / Guard High-Z Guard ring PGA / High-Z PGA Gain net Keepout Digital Ctrl SPI / I²C Fast edges ADC / Sampling Cin pulses Ref / clock Crosstalk Leakage path Sampling pulse Use zones + arrows to drive reviews: isolate high-Z, control return paths, and validate hooks per range and bandwidth.
Figure 10 — A board-level checklist map: partition analog/digital zones and explicitly manage leakage, crosstalk, and sampling-pulse coupling paths.

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

Template: Input → MUX → PGA → (optional AAF) → ADC
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.
Reference PGA/MUX parts (example material numbers)
  • 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)
Note: Use these to shortlist architectures; final selection must be based on tSETTLE@ε with the real source-Z and ADC input model.

B) Precision measurement: high gain, low drift, repeatability first

Template: Input → PGA (high-gain ranges) → LP/AAF → ADC
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.
Reference precision programmable-gain INAs/PGAs
  • 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)
Vendor answers must include test conditions: input CM, amplitude, load model, bandwidth setting, and the exact ε used for settling.

C) Wide-range signals: protection + auto-ranging without chatter

Template: Protection (RC + low-C clamp) → PGA (auto-range) → ADC
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.
Reference wide-range programmable-gain parts
  • 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

Template: DIFF input → DIFF PGA/INA → AAF → DIFF ADC
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).
Reference differential-capable PGAs/INAs
  • TI PGA281AIPW (programmable-gain instrumentation amplifier)
  • Analog Devices AD8250 / AD8251ARMZ (programmable-gain INA families)
  • Analog Devices / Maxim MAX9939AUB+T (differential signal conditioning use-cases)
DAQ application templates for programmable gain front-ends Four DAQ-first signal-chain templates: MUXed multi-channel, precision high-gain, wide-range auto-ranging with protection, and differential acquisition with common-mode constraints. Figure 11 · Application templates (modules only) DAQ-first A) Multi-sensor + MUX MUX PGA AAF ADC settle crosstalk range B) Precision high gain PGA/INA LP ADC drift leakage repeat C) Wide-range + auto-range Protect PGA ADC hysteresis blanking re-sample D) Differential acquisition DIFF IN PGA/INA ADC CM range symmetry spurs
Keep templates module-level (MUX/PGA/AAF/ADC). Add detail only where it changes settling, noise, stability, or common-mode.

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)

  1. Input type + protection: SE/DIFF, allowed common-mode range, maximum miswire/overvoltage case, required overload recovery behavior.
  2. Gain set definition: step style (binary / ratio / dB), max gain, per-step gain error, monotonicity, and gain drift vs temperature.
  3. Dynamics gate (non-negotiable): require tSETTLE@ε with ε explicitly stated (e.g., 0.1% / 0.01%), with output amplitude and load model.
  4. 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.
  5. Drive + distortion gate: THD/SFDR vs swing and vs load; stability guidance for capacitive/AAF/ADC sampling loads (Riso recommendations matter).
  6. Interface + reliability gate: default gain at power-up, latch/update timing, readback/CRC/lock, ESD grade, temperature range, and long-term drift notes.
  7. Bench verify gate: measure the “three-pack” under your conditions: noise, settling after gain step, distortion at target swing.
  8. 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)

Gain table
Provide the full step list and mapping; per-step gain error and drift; monotonicity; any “special” steps (mute/hold/bypass).
Settling after a gain step
Provide tSETTLE@ε with ε definition, step size, output amplitude, load model (R/C/ADC Cin), and bandwidth mode. Typical BW alone is not sufficient.
Switching transients
Report glitch amplitude/area under a defined scope setup; confirm update timing (immediate vs latched); confirm mute/hold/blanking support and readback/CRC.
Noise
Provide en/in and 1/f corner with test bandwidth, input termination method, and gain setting. Require plots or at least conditions, not a single number.
Distortion + drive
Provide THD/SFDR vs frequency and swing with the exact load. Confirm stability guidance with capacitive loads and recommended Riso placement.
Production hooks
Ask for recommended production test flow and fields: gain range, BW mode, temperature points, ε rule, calibration versioning, and binning suggestions.

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).

Zero-drift PGA + MUX (DAQ scanning)
Precision programmable-gain INAs (repeatability)
Compact digitally-controlled gain blocks (special cases)
These families can be useful for specific range/speed/footprint needs. Always validate sign, gain polarity (some are inverting), and update timing.
Selection flow for PGA and digitally-programmable gain blocks A practical, condition-driven selection workflow: requirements intake, candidate filtering, gain-table fit, settling gate with epsilon, noise match, drive and distortion, interface reliability, bench verification, and production hooks. Figure 12 · Selection flow (conditions → verify → production) 1) Requirements intake SE/DIFF · CM range · miswire · temp · supply 2) Filter candidates eliminate CM/rail/overvoltage mismatches early 3) Gain-table fit step style · per-step error/drift · monotonicity 4) Dynamics gate: tSETTLE@ε ε defined · step size · amplitude · load model · BW mode ε first 5) Noise match en/in/1f + bandwidth + termination; match to Zsrc tiers 6) Drive + distortion + interface THD/SFDR vs swing/load · stability · default/latch/CRC/ESD 7) Bench verify → Production hooks noise · settle after step · distortion; then script fields + versioning
A candidate is “good” only after bench verify under the same load, bandwidth, and step conditions used in the target DAQ chain.

Request a Quote

Accepted Formats

pdf, csv, xls, xlsx, zip

Attachment

Drag & drop files here or use the button below.

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.

Why does the reading “jump” right after changing gain?
Likely cause: Charge injection / node re-distribution during range switching (plus possible output common-mode step in differential paths).
Quick check: Scope the PGA output during a gain step; capture peak glitch and the time-to-enter an ε error band (use the same ADC/AAF load as the system).
Fix: Add blanking (drop N samples) after a gain update; limit step size or use an intermediate range; prefer “latched/synchronous update” when available.
Pass criteria: First kept sample error < ε (e.g., 0.1%FS or 0.01%FS); glitch peak < X LSB (ADC-referred) and no residual tail beyond tBLANK.
Why does settling time look fine on the bench but fails in the real DAQ chain?
Likely cause: Bench load is not representative (ADC sampling cap, AAF impedance, cable capacitance, MUX memory, or higher source impedance in-system).
Quick check: Re-run the step/settling test with the exact chain: MUX + worst-case Zsrc + AAF + ADC input model; compare tSETTLE@ε.
Fix: Add output isolation (Riso) at the PGA pin; adjust AAF values to reduce effective Cload; tighten the timing (blanking) to match worst-case load.
Pass criteria: Under worst-case load + Zsrc, tSETTLE@ε meets the sampling schedule with margin (≥ X% headroom), and no channel-dependent settling failures remain.
Why does noise improve less than expected when I increase gain?
Likely cause: Total noise is dominated by source impedance (thermal + current noise) or by the ADC/reference; increasing PGA gain does not reduce those contributors (RTI view).
Quick check: Measure RTI noise at multiple gains while keeping bandwidth identical; repeat with input shorted vs real source-Z to separate PGA vs source vs ADC.
Fix: Reduce noise bandwidth (AAF/digital filter) before increasing gain; for high-Z sources, prioritize low bias/leakage and manage input RC; verify reference/ADC noise dominance.
Pass criteria: RTI noise follows the predicted budget within ±X dB for the defined bandwidth; “shorted-input” RTI is below the system allocation.
Why does THD get worse mainly at high gain or near full-scale?
Likely cause: Headroom limit (internal nodes or output swing) and heavier output loading at higher closed-loop gain; distortion rises near rails or with large CM shifts.
Quick check: Sweep amplitude at the same frequency for each gain; watch distortion vs output swing and supply headroom; compare with/without the real AAF/ADC load.
Fix: Reduce max swing (operate with margin); add output isolation (Riso) and re-tune AAF impedance; if needed, select a PGA with higher linear output drive for the required load.
Pass criteria: At required swing + worst load, THD ≤ X dB (or SFDR ≥ X dBc) across the target band, with ≥ X mV (or X%) headroom margin to rails/CM limits.
Why does output saturate even though input seems within range? (CM/headroom trap)
Likely cause: Input common-mode or internal node headroom is violated after gain is applied; the output may clip due to CM constraints even if differential input looks “small.”
Quick check: Measure input CM and output CM (for differential) across the gain step; verify output swing margin to rails under the actual load and supply.
Fix: Re-center CM (where supported), reduce gain or output swing, or adjust the front-end attenuation/offset so the operating point stays inside CM + swing limits.
Pass criteria: No clipping at maximum expected input; CM and swing remain within limits with ≥ X% margin; overload recovery meets the same tSETTLE@ε requirement.
Why does a higher source impedance cause large gain error or drift?
Likely cause: Input bias current and leakage create a DC error across high source-Z; switch leakage and protection paths often rise with temperature/humidity.
Quick check: Repeat gain/offset measurement with an equivalent dummy source-Z; then short the input at the PGA pin to see if drift collapses (leakage vs intrinsic).
Fix: Reduce effective source-Z (buffer/RC strategy), tighten cleanliness/guarding, avoid leaky protection parts on high-impedance nodes, and verify bias/leakage vs temperature.
Pass criteria: With worst-case source-Z and environment, gain error and drift stay within allocation (e.g., ≤ X ppm gain, ≤ X µV/°C offset, or ≤ X LSB over the dwell time).
Why do channels mismatch after gain switching in a MUXed system?
Likely cause: MUX memory + different channel source impedance produces different settling tails; gain update timing differs per channel, creating apparent mismatch.
Quick check: Run an A/B scan: same physical channel measured twice with a “dummy flush” in between; compare mismatch with and without extra blanking samples.
Fix: Add a flush step after MUX switch (discard N samples); tune blanking per Zsrc tier; keep consistent update order (MUX → gain → settle → sample).
Pass criteria: Channel-to-channel delta after the defined blanking window ≤ X LSB (or ≤ X ppm) under worst-case Zsrc spread and scan rate.
Why does I²C/SPI update cause spurs or periodic glitches?
Likely cause: Digital edges couple into high-gain analog nodes through return paths, ground impedance, or shared supplies; register update may toggle internal switches.
Quick check: Probe SCLK/SDA/CS and analog output in the same capture; verify whether spurs align with bus activity or with latch/update edges.
Fix: Schedule bus activity outside acquisition windows; slow down edges (series resistors), improve return routing, and use latched/synchronous update modes when available.
Pass criteria: Spurs at bus-related frequencies are below the system limit (e.g., ≤ X dBc); no periodic output glitch exceeds X LSB during acquisition windows.
How much blanking time is “enough” after a gain step?
Likely cause: Blanking is under-defined because ε is not defined (or load differs); “looks flat” is not a settling specification.
Quick check: Define ε (e.g., 0.1%FS / 0.01%FS), then measure tSETTLE@ε for the largest gain step under worst-case load and Zsrc.
Fix: Set blanking = worst-case tSETTLE@ε + margin; optionally reduce step size or insert an intermediate range to shrink worst-case settling.
Pass criteria: For worst-case step, the first kept sample error < ε across temperature and scan-rate extremes; failure rate < X ppm in production screening.
How do I detect leakage-dominated drift vs 1/f noise quickly?
Likely cause: Leakage creates a directional drift that correlates with humidity/contamination/handling; 1/f noise looks like random wander without strong environment correlation.
Quick check: Compare (a) input shorted at the PGA pin vs (b) normal source; repeat after cleaning/drying and after a humidity/handling change.
Fix: Guard high-impedance nodes, increase spacing, remove/replace leaky protection parts near the input, and enforce cleaning + conformal rules if needed.
Pass criteria: Shorted-input drift ≤ X µV/min (or ≤ X LSB/min) with low sensitivity to touch/humidity; residual wander matches the expected 1/f behavior budget.
Do I need per-gain calibration points, or is one global calibration enough?
Likely cause: Range-dependent errors exist (per-step gain error, drift, or input leakage effects); a single global calibration cannot correct range-specific behavior reliably.
Quick check: Measure gain/offset at two or more ranges using the same reference source; compare residual error after applying a global 2-point calibration.
Fix: Use global calibration only if residuals are range-invariant; otherwise apply per-range gain/offset trims (keep coefficients versioned and temperature-conditioned).
Pass criteria: After the chosen calibration strategy, residual error across all ranges ≤ X ppm (gain) and ≤ X µV (offset) over the temperature window and scan timing.
Why does touching the cable change the “offset” at high gain?
Likely cause: Triboelectric/handling charge and shield/ground potential coupling; high gain + high impedance makes tiny injected currents look like offset steps.
Quick check: Repeat with input shorted at the board connector vs at the PGA pin; compare with shield floating vs properly terminated; observe step polarity and recovery.
Fix: Enforce shield/guard strategy, add bias return path where appropriate, reduce input impedance sensitivity (buffer/RC), and keep high-impedance nodes guarded and clean.
Pass criteria: Touch/handling causes ≤ X µV (or ≤ X LSB) step at highest gain; recovery meets tSETTLE@ε and no sporadic jumps remain during normal cable motion.
Notes: ε, X, and bandwidth limits must be set by the system noise/distortion/throughput budget. Use worst-case source-Z, load model, temperature, and scan timing for validation.