123 Main Street, New York, NY 10001

Motor / PSU Loop Filters (Low-Latency Anti-Alias LPF)

← Back to: Active Filters & Signal Conditioning

Motor/PSU “loop filters” are not compensators—they are the analog conditioning path that ensures the ADC observes a truthful, bandwidth-limited signal instead of PWM-folded artifacts. The right design balances anti-alias attenuation against the phase/delay budget around fc, so stability is preserved while false low-frequency jitter is eliminated.

H2-1 · Definition & Boundary

What “Loop Filters” Mean Here: Sensing-Chain Conditioning (Not Compensation)

In motor drives and switching PSUs, “loop filters” in this page refer to analog conditioning applied to the feedback measurement before sampling—so the controller receives a stable, bandwidth-limited signal that will not fold PWM ripple into false low-frequency error.

One-sentence definition: Loop filters here are anti-alias / ripple-suppression LPFs placed in the feedback sensing chain (current/voltage sense → AAF/LPF → ADC), designed to reduce aliasing while preserving phase margin around loop crossover.
  • Where it sits: sensor / divider → RC or active LPF (AAF) → differential driver (if used) → ADC sample/hold → digital control.
  • Typical targets: phase current / DC-bus current sense; output-voltage divider sense; “sense-node” filtering before ADC.
  • Primary engineering objective: keep the ADC input dominated by the true control bandwidth, not by switching artifacts that can alias into the baseband.
  • Secondary objective: keep total latency (analog + sampling + compute + PWM update) compatible with the required phase margin.
Not covered on purpose (to avoid cross-topic overlap): (1) Type-II/III compensation design, PID tuning cookbooks, current-mode slope compensation; (2) full derivations of Sallen-Key/MFB/SVF/biquad transfer functions; (3) general EMC/ESD tutorials unrelated to aliasing/phase budget.

The control loop only acts on what the sampling system reports. In a switching environment, fast edges and ripple can be large and wideband. Without an explicit sensing-chain bandwidth plan, the ADC can sample switching artifacts as if they were real low-frequency disturbances—driving unnecessary correction, oscillation, torque ripple, or audible artifacts.

Figure A1 — Motor/PSU control loop: where the anti-alias LPF belongs
Feedback Sensing Chain (Analog Conditioning) → ADC → Control Power Stage PWM switching ripple fsw switching frequency Sense shunt / divider Kelvin + symmetry AAF / LPF anti-alias + ripple cut Low latency focus Diff Driver VOCM control to ADC (sym.) ADC sample/hold fs sampling Digital Control loop decision fc crossover actuation Compensation Network Type II/III, PID tuning → NOT covered here Goal: attenuate switching artifacts before sampling keep phase/latency budget near fc
This page focuses on measurement-chain filtering that prevents PWM ripple from turning into “fake” baseband error, while preserving loop stability.
H2-2 · Frequency Planning

The “Frequency Triangle”: How fsw, fs, and fc Constrain Each Other

Loop-filter design in motor/PSU control is mainly a frequency planning problem: switching artifacts live around fsw and its harmonics, sampling happens at fs, and stability is most sensitive near loop crossover fc. A good plan reduces aliasing risk without adding unacceptable group delay near fc.

Three frequencies, three jobs:
  • fsw (switching): the primary source of ripple, spikes, and wideband edge energy that can contaminate sensing.
  • fs (sampling/update): the “camera shutter” rate—anything not sufficiently attenuated before sampling can fold into baseband.
  • fc (crossover): the loop’s sensitive region—extra delay here directly reduces phase margin and can trigger oscillation.
The conflict triangle (why compromises are unavoidable):
  • Fast response pushes fc higher → less phase headroom for filtering delay.
  • Low aliasing pushes analog cutoff lower → more attenuation before sampling, but more phase lag.
  • Robust stability demands low group delay near fc → limits how aggressive the analog LPF can be.

“Start from fc, then back-solve the sensing filter” is the safest sequence because fc defines the allowable delay. The analog LPF (AAF) should be sized to suppress switching artifacts enough to avoid folding, while staying “light” around fc.

Practical planning workflow (no heavy math, fully actionable):
  1. Set a target fc range from transient needs (settling time, overshoot tolerance, torque/voltage dynamics). Treat this as a stability-sensitive boundary.
  2. Check sampling/update latency: ensure total timing (sampling + compute + PWM update) does not dominate phase near fc. If latency is already high, avoid adding an aggressive analog LPF.
  3. Choose an analog LPF/AAF cutoff to meet two checks simultaneously:
    • Aliasing check: switching ripple near fs/2 and above should be significantly attenuated before the ADC sample/hold.
    • Phase/latency check: group delay around fc must remain within margin budget (avoid piling poles close to fc).
  4. Validate quickly using two fast measurements:
    • ADC-code spectrum (FFT): look for folded components that track fsw or its harmonics.
    • Step response / phase margin: confirm the loop stays well-damped across operating points (duty, speed, load).
Common mistakes that create “mystery instability”:
  • Only watching average noise while ignoring folding: the loop reacts to an artifact that looks like a real low-frequency error.
  • Designing LPF by magnitude only: steep roll-off near fc can quietly consume phase margin via group delay.
  • Double filtering (analog LPF + digital averaging/IIR): latency stacks, reducing stability at the exact frequency where the loop is sensitive.
Figure A2 — Spectrum planning: where aliasing comes from, and what the AAF must suppress
Frequency Triangle: fsw (noise source) · fs (sampling) · fc (stability) frequency magnitude fc crossover AAF corner fs/2 Nyquist fsw switching harmonics LPF response folding (alias) looks like baseband error Baseband what the loop trusts Design intent: attenuate fsw-related energy before sampling minimize delay near fc
The analog AAF must reduce switching energy that can cross Nyquist and fold back, but its corner and order must be selected with the phase/latency budget around fc in mind.
H2-3 · Aliasing Failure Path

How Aliasing Breaks Control: PWM Ripple Turning into “Fake” Baseband Error

In motor drives and switching PSUs, PWM edges and ripple are not just “noise”—they can become a measurement error after sampling. If switching energy is not sufficiently attenuated before the ADC sample/hold, discrete-time sampling can fold it into the baseband. The controller then reacts as if a real low-frequency disturbance occurred.

Mechanism (minimal theory, fully actionable):
  • Switching artifacts (fsw + harmonics + edge energy) enter the sensing path.
  • ADC sample/hold captures instantaneous voltage/current at discrete instants (rate = fs).
  • Energy near and above fs/2 can fold back into low-frequency bins.
  • The loop interprets the folded component as real baseband error and applies correction.
Field signatures (useful for fast triage):
  • Frequency drift: the oscillation/jitter tone shifts when fs or fsw shifts slightly.
  • Operating-point sensitivity: issues appear only in specific duty/speed/load regions (switching spectrum changes).
  • Strong correlation: ADC-code spurs track fsw/harmonics; symptoms worsen with higher dv/dt/di/dt conditions.
Motor vs PSU outcomes (same root cause, different symptoms):
  • Motor control: current-loop jitter, dq ripple, FOC angle perturbation, low-speed audible tone, torque ripple.
  • PSU control: output ripple misread as load steps, duty-dependent instability bands, limit cycles around certain loads.
Two quick proofs (no deep ADC details required):
  1. Change sampling phase vs PWM: if symptoms change significantly, aliasing is likely involved.
  2. Nudge fs or fsw: if the “mystery tone” frequency moves, folding is a strong suspect.
Figure A3 — From PWM ripple to baseband “fake disturbance”: the folding path
Aliasing = Measurement Error Created by Sampling PWM Ripple / Spikes source near fsw fsw + harmonics AAF / LPF attenuate before ADC reduce folding risk ADC Sample/Hold discrete instants rate = fs Discrete Samples codes over time Baseband Error looks “real” to loop “fake disturbance” folding (alias) Nyquist boundary fs/2 energy near fs/2 Key point: AAF prevents incorrect observation, not just “noise reduction”.
Folding artifacts often track fs/fsw changes and can appear as convincing “low-frequency error” even when the analog waveform looks acceptable.
H2-4 · Phase & Latency Budget

Phase/Latency Accounting: How Much Phase Margin the AAF Can “Consume”

In a closed loop, filters behave like a latency tax. The most dangerous place to pay that tax is near the loop crossover fc, where loop gain is near unity and extra phase lag directly reduces phase margin. A stable, low-latency sensing filter requires explicit accounting for every delay contributor.

Delay sources that stack (end-to-end):
  • Analog LPF group delay: phase lag added by the sensing filter around fc.
  • ADC sample/hold + conversion: effective time shift from aperture/hold behavior and conversion latency.
  • Digital compute/update: control decision is updated once per cycle; the loop waits between updates.
  • PWM/actuation update: duty/command may apply on specific timing boundaries (synchronous update).
Why fc is the danger zone: phase margin is decided where the loop crosses unity gain. High-frequency phase behavior matters less if loop gain is already low there. Excess delay near fc can turn a well-damped response into ringing, limit cycles, or duty/speed “instability bands”.
Practical budget worksheet (what to measure / estimate):
  • LPF delay @ fc: from simulation or measured frequency response (group delay around fc).
  • ADC latency: from datasheet timing (aperture + pipeline/settling + conversion).
  • Control update delay: fraction of the sampling period consumed by computation and scheduling.
  • PWM update delay: time until the new command takes effect at the actuator.
  • Total delay: sum of contributors; confirm phase margin remains above the minimum target across operating points.
Low-latency strategies (priority order):
  1. Reduce unavoidable system delays (update and actuation timing) before adding filter order.
  2. Keep analog LPF “light” near fc: low order, low Q, avoid sharp poles near the crossover region.
  3. Use digital steepening carefully: additional roll-off belongs in digital only after alias risk is controlled (see H2-3).
  4. Control sampling alignment vs PWM to lower ripple capture probability, reducing the need for aggressive analog filtering.
Acceptance checks (must pass together):
  • Frequency domain: phase margin meets target at worst duty/speed/load and temperature corners.
  • Time domain: step response is well-damped (no excessive overshoot/ringing or slow recovery after spikes).
  • Spectral: ADC-code folding spurs are suppressed and no longer masquerade as baseband disturbances.
Figure A4 — Latency budget: each block “spends” phase margin near fc
Delay Accounting → Phase Margin Impact (most sensitive near fc) Analog LPF group delay ADC S/H + conversion Compute / Update cycle delay PWM Update actuation timing Total delay = LPF + ADC + compute + PWM update Latency budget (stacked) LPF ADC Compute PWM Most sensitive near fc: extra delay → phase loss → reduced margin Phase Margin min goal Design rule: keep analog LPF light around fc; allocate steep roll-off elsewhere only after alias risk is controlled. Budget delays, validate phase margin, then confirm folded spurs are suppressed in ADC codes.
AAF selection is a latency allocation problem. If total delay grows, phase margin shrinks near fc even when amplitude response looks “better”.
H2-5 · AAF Optioning

Choosing the Anti-Alias LPF: 1st-Order RC vs 2nd-Order Active vs Differential AAF

In motor and PSU control, anti-alias filtering is a measurement reliability choice, not a “prettier waveform” choice. The safest decision path is to start with the lowest-latency option that prevents folding artifacts, and only add order when the data proves it is necessary.

Three common options and their practical role in a closed loop:
  • 1st-order RC: lowest risk and the smallest phase hit near fc, but limited roll-off. Best for “reduce spike/ripple capture” with minimal delay.
  • 2nd-order active LPF (topology-agnostic here): stronger pre-sampling attenuation, but higher sensitivity to phase budget, tolerance drift, amplifier non-idealities, and stability with capacitive loading.
  • Differential driver + AAF: combines filtering with ADC drive, impedance control, and common-mode management (often the practical default for harsh dv/dt environments).
Low-latency priority: keeping phase margin intact near fc is usually worth more than pushing roll-off one step steeper. A slightly noisier measurement can be stable and controllable; a phase-punched loop cannot.
When 1st-order RC is the preferred default:
  • Phase budget is tight: high fc targets or large unavoidable system delay (ADC + compute + PWM update).
  • Sampling is well-behaved: fs is fixed and sampling alignment vs PWM can be controlled.
  • Aliasing is “spike-driven”: a modest bandwidth limit already suppresses the most harmful capture events.
When upgrading to 2nd-order active makes sense (data-driven triggers):
  • ADC-code FFT still shows folding spurs that shift with fs or fsw even after RC tuning.
  • RC cutoff must be pushed too low to clean the codes, and that begins to reduce phase margin near fc.
  • Symptoms remain operating-point sensitive (duty/speed/load windows) despite reasonable sampling alignment.
Selection criteria (text-form “decision table”):
  • Prefer RC when: phase margin is the primary constraint and aliasing is occasional/edge-driven.
  • Prefer 2nd-order active when: pre-sampling attenuation is insufficient with RC at acceptable delay.
  • Prefer differential AAF when: common-mode noise, ground bounce, long routing, or differential ADC input makes “filter + drive + VOCM” a single, verifiable block.
Figure A5 — Three AAF choices in loop context: roll-off vs phase cost
AAF Selection: Minimize Delay Near fc, Add Order Only When Needed Sense AAF (choice) ADC Digital Control Option A — 1st-Order RC lowest risk / lowest delay RC (single pole) Phase cost near fc Attenuation before sampling Use when tight phase budget, spike-driven aliasing, simple validation. Option B — 2nd-Order Active stronger roll-off, more risk active LPF block Phase cost near fc Attenuation before sampling Use when RC cannot suppress folding spurs without breaking phase margin. Option C — Diff Driver + AAF filter + drive + VOCM VOCM differential AAF Phase cost near fc Attenuation before sampling Use when harsh dv/dt, diff ADC input, need robust drive.
Selection should prioritize phase margin near fc. Add order only when RC cannot suppress folding artifacts without forcing an excessively low cutoff.
H2-6 · Differential Drive to ADC

Why Differential + AAF Is the Practical Default in Motor/PSU Sensing

In high dv/dt and high di/dt systems, many sensing failures come from common-mode uncertainty and ground bounce. Differential signaling reduces sensitivity to unpredictable return paths and makes the ADC input operating point explicit via common-mode control. The tradeoff is that the driver must remain stable while charging a switched sampling capacitor.

What differential solves (directly relevant to loop sensing):
  • Common-mode noise rejection: switching dv/dt coupling often appears as common-mode; differential paths reduce its impact.
  • Lower sensitivity to ground bounce: measurement depends less on a single “perfect ground” reference.
  • Explicit ADC operating point: VOCM sets input common-mode and preserves dynamic range.
Three must-check engineering points:
  • VOCM and input range: ensure output common-mode and differential swing stay inside the ADC input window across corners.
  • Driver stability with capacitive load: the ADC input behaves like a switched capacitor; poor isolation can cause ringing or even oscillation.
  • Who dominates bandwidth and distortion: clarify whether the RC/AAF or the driver sets the effective bandwidth and linearity.
Connection checklist (differential AAF → ADC):
  • Symmetry: match R/C values and keep differential routing length and coupling consistent.
  • RC placement: place the final isolation/filter resistors close to the ADC pins to control kickback.
  • VOCM hygiene: decouple VOCM/reference locally and keep its return path quiet and short.
  • Stability validation: check step response and sampling transients for overshoot/ringing; confirm settling within the sampling window.
Verification shortcuts (fast and revealing):
  • ADC-code FFT: folding spurs and sample-related tones should drop after differential AAF is correctly placed and stabilized.
  • Transient capture: observe driver outputs during sampling activity; ringing implies insufficient isolation or unstable drive.
  • Corner sweep: repeat at worst duty/speed/load and temperature to avoid “works on bench, fails in field”.
Figure A6 — Differential driver + differential AAF + ADC input model (sampling cap kickback)
Differential AAF into ADC: Symmetry + Isolation Controls Kickback Differential Driver / FDA sets swing + stability VOCM OUT+ OUT− Differential AAF (symmetric) place close to ADC Riso Riso Cdiff/Ccm match + symmetry ADC Input Model switched capacitor Csamp risk zone Connection checklist (high impact) • Match R/C and keep routing symmetric (OUT+ / OUT−) • Place final Riso close to ADC pins to tame kickback • Verify settling within sampling window (no ringing/overshoot) • Keep VOCM/reference quiet and locally decoupled • Re-test across worst duty/speed/load and temperature corners
Differential AAF improves immunity to ground bounce and dv/dt, but only if symmetry, RC placement, and driver stability against the ADC’s switched-cap input are verified.
H2-7 · Ripple, Spikes, Saturation & Recovery

Ripple/Spike → Nonlinearity → Recovery Delay: the Hidden Loop Killer

The most damaging failures in motor/PSU sensing are often not “noise inside the passband,” but out-of-band events that trigger nonlinear behavior (saturation or clamp conduction). The recovery window acts like a variable extra delay, which directly reduces phase margin around fc.

Why this is deceptive: switching ripple and spikes may sit “above bandwidth,” but once a nonlinear threshold is crossed, they can create a baseband error through saturation, asymmetry, or clamp-induced distortion. The loop then reacts to a measurement that is not simply “noisy,” but wrong.
Common trigger conditions (field-realistic):
  • High current / high duty regions where switching edges are stronger and coupling increases.
  • Fast transients (load steps, motor acceleration) that push the front-end swing toward rails.
  • Protection engagement (input clamp/ESD/TVS conduction) that temporarily changes impedance and injects parasitics.
Three nonlinear paths that turn “out-of-band” into “in-band” error:
  • Output rail saturation: the amplifier/driver hits a rail → recovery time stretches the effective delay → phase margin drops near fc.
  • Clamp conduction: a spike turns on a clamp path → impedance and charge flow change abruptly → low-frequency bias or ringing appears in the sampled data.
  • Rectification/asymmetry: nonlinearity creates a low-frequency envelope or offset from high-frequency ripple → the loop “sees” a fake disturbance.
Design levers (focus on impact paths, not part catalogs):
  • Headroom planning: keep normal and worst-case spikes from crossing saturation/clamp thresholds.
  • Controlled limiting: prefer predictable limiting behavior over “accidental” clamp engagement in the signal path.
  • RC buffering/isolation: reduce spike energy before it reaches nonlinear elements; place isolation close to the sensitive node.
  • Parasitic discipline: avoid letting clamp capacitance and return currents become part of the measurement transfer path.
Acceptance checklist (fast, loop-oriented):
  • Detect threshold crossing: check if the front-end output hits rails or if clamp current flows in worst operating windows.
  • Measure recovery window: quantify how long it takes to return to a normal error band after an event (this is extra delay).
  • Look for baseband artifacts: confirm no low-frequency bias/envelope is created by nonlinear events.
  • Reconcile with phase budget: include recovery-driven delay in the total delay stack and re-check stability near fc.
Figure A7 — Spike triggers nonlinearity; recovery becomes extra delay that eats phase margin
Out-of-band Spikes Can Create In-band Error via Nonlinearity + Recovery Sense AAF / Buffer Driver / Amp risk of nonlinearity ADC SPIKE nonlinearity zone Cause → Effect chain Spike / Ripple Saturation / Clamp threshold crossed Recovery Time Extra Delay (Δt) phase margin ↓ near fc Timeline view (what to measure) time → EVENT spike RECOVERY WINDOW ΔDelay Impact near fc phase margin ↓
The key metric is not spike amplitude alone, but the recovery time after saturation/clamp events, because it behaves like extra delay that reduces stability margin.
H2-8 · Analog vs Digital Filtering

Analog vs Digital Filtering: Avoid “Double Low-Pass” That Kills the Loop

Software filtering can be powerful, but it cannot replace the analog responsibilities that make sampling valid. The safest approach is to assign roles: analog prevents aliasing and protects sampling, while digital provides steeper or more selective shaping—only after stability impact is re-verified around fc.

Division of labor (loop-view):
  • Analog domain: suppress spikes/ripple before sampling, prevent folding, protect ADC input behavior, keep settling predictable.
  • Digital domain: implement steeper roll-off, adjustable cutoffs, selective shaping (e.g., narrow notches), and profile-specific tuning.
Why “averaging made it worse” happens:
  • Extra group delay: moving average / low-pass blocks add delay that matters most near fc.
  • Second bite of phase: if analog already low-pass filters, a second digital low-pass often consumes phase margin twice.
  • Smoother ≠ better: a smooth but late measurement can destabilize a loop more than a noisier but timely measurement.
Stacking rule (non-negotiable acceptance gate):
  • Rule 1: any digital filter must be treated as added delay in the total delay stack.
  • Rule 2: phase margin (or equivalent stability metric) must be re-verified around fc.
  • Rule 3: step response must be re-checked (overshoot, ringing, recovery time) across worst operating corners.
Commissioning checklist (fast, practical):
  • Before digital filtering: confirm ADC-code FFT does not show dominant folding artifacts; if it does, fix analog first.
  • After digital filtering: verify no new oscillation/limit-cycle appears and transient response remains within targets.
  • Corner sweep: repeat at worst duty/speed/load and temperature—stacked delay failures are often window-specific.
Figure A8 — Filtering stack comparison: analog-only vs analog + digital (delay stack and phase impact)
Do Not Stack Delay Blindly: Analog First, Digital Only with Re-Validation Path A — Analog AAF Only minimum extra delay near fc Sense Analog LPF AAF ADC Delay stack (qualitative) Analog delay ADC + compute + PWM Phase margin near fc more margin available (safer) Path B — Analog + Digital LPF/Average risk: double phase hit near fc Sense Analog LPF AAF ADC Digital LPF / Avg adds group delay Delay stack (qualitative) Analog delay Digital filter delay ADC + compute + PWM Phase margin near fc less margin available (risk)
A digital filter is not “free.” Treat it as added delay, then re-validate stability near fc and transient response before deployment.
H2-9 · Tolerance & Temperature Drift

Why “Same PCB, Same BOM” Can Be Stable in Some Units and Marginal in Others

In production, loop-filter behavior is not a single fixed curve. Small shifts in RC cutoff, matching balance, and sensor/metal tempco can move the system from comfortable margin into a narrow stability window—especially when the total delay budget is tight near fc.

Typical “unit-to-unit” symptoms (field-realistic):
  • Only some boards show oscillation/limit-cycle in specific duty or load corners.
  • Cold start looks fine, but high temperature introduces audible whine or control jitter.
  • Step response varies across units even with identical firmware settings.

Sensitivity #1: RC tolerance → cutoff shift → phase hit near fc

A cutoff shift is not just “different bandwidth.” It changes the phase lag around the loop’s sensitive region (near fc), so a design that is stable on paper can become marginal when combined with ADC/update delay and PWM delay.

cutoff driftphase lagmargin window

Sensitivity #2: mismatch → CM→DM conversion in differential chains

Differential measurement rejects common-mode noise only when the path stays balanced. R/C mismatch and asymmetric temperature gradients degrade balance, converting common-mode disturbances into in-band differential error.

CM→DMmatchingasymmetry

Sensitivity #3: self-heating + copper R change + sense tempco

In motor/PSU environments, local heating shifts copper resistance and sense resistor value, effectively moving the measured operating point. Even without changing the filter topology, the loop can be pushed into a more fragile corner where ripple, saturation, or aliasing effects become dominant.

self-heatingRsense tempcooperating shift

What to validate fast: “is the measurement chain still the intended one?”

Focus on repeatable checks: (1) cutoff/settling window, (2) differential balance under common-mode stimulus, (3) high-temperature drift impact on measurement offset and recovery behavior after spikes.

cutoff checkbalance checkhot check
Practical calibration hooks (interfaces only, not a calibration architecture):
Hook / Interface What it enables Quick acceptance idea
Bypass / loopback test points Isolate the filter/driver path from the rest of the system and measure it as a standalone block. Apply a known stimulus; verify cutoff/settling stays within an allowed window.
EEPROM parameterization Small, bounded correction of cutoff or gain to compensate drift and tolerance variation. Store per-unit trim values; confirm stability metrics do not regress after trimming.
Production “go/no-go” fixture test Fast detection of out-of-family filters without running full control tuning. Measure a response signature (settling time or amplitude at a test tone) and compare to limits.
Figure A9 — Three drift paths: cutoff shift, CM→DM from mismatch, and sensed-value drift from temperature
Tolerance & Temp Drift Can Move a Loop from “OK” to “Marginal” Sense Node AAF / Driver cutoff + balance ADC Control uses “measured” value stability depends on margin near fc Path 1 — RC tolerance cutoff shifts → phase changes near fc R ±% C ±% fc shift Path 2 — mismatch CM noise → DM error (balance lost) + Δmatch CM→DM Path 3 — temperature measured value drifts Rsense / copper R tempco heat Outcome Some units: stable margin remains above target Some units: marginal / unstable phase near fc reduced by drift + mismatch margin window shrinks
Drift affects stability through three coupled mechanisms: cutoff/phase shift, CM→DM conversion from mismatch, and temperature-driven measurement offset that changes the operating corner.
H2-10 · Layout & Grounding

Layout and Return Paths: Good Filtering Fails If the Sensing Node Is Injected

In motor and PSU hardware, the main enemies are high di/dt return currents, ground bounce, and dv/dt coupling into high-impedance sense nodes. Poor layout does not merely “add noise”— it injects out-of-band content that can fold into baseband, reduce effective phase margin, and trigger saturation/recovery behavior in the front-end.

Four rules that directly protect loop observation quality:
  • Kelvin sense: sense resistor/divider must use dedicated sense leads that do not share power returns.
  • Differential symmetry: keep the pair tightly coupled and balanced; avoid crossing ground splits or return “gaps.”
  • RC placement near ADC: place input isolation and anti-alias capacitors to control kickback and ringing locally.
  • Return-path visualization: explicitly trace where switching currents return versus where measurement/reference currents return.
Layout self-check list (≤10 items, acceptance-ready):
  1. Kelvin routing: sense leads land directly at the sense element (no shared copper with power current).
  2. Pair coupling: differential traces run together with consistent spacing and minimal asymmetry.
  3. No split crossings: differential pair does not cross ground splits or return discontinuities.
  4. Riso at the pin: the final isolation resistor is placed close to the ADC input pin.
  5. CAA capacitor loop: anti-alias capacitor loop area is minimized; its return is clean and short.
  6. Reference integrity: ADC reference/VOCM decoupling is close, with a direct, quiet return path.
  7. Keepout from switch node: high-impedance sense nodes are routed away from fast dv/dt nodes and gate traces.
  8. Parallel run avoided: long parallel routing next to PWM/gate/switch nets is avoided for sense lines.
  9. Single defined tie: analog and power ground connection point (if separated) is controlled and reviewable.
  10. Probe access: test pads exist to probe injected noise and to isolate the sensing chain during debug.
Figure A10 — Good vs bad layout: return-path injection, CM→DM, and ADC kickback control
Layout Decides Whether the Loop Sees Reality or Injected Error GOOD Kelvin + tight diff + RC at ADC Sense element Kelvin taps Differential AAF / Driver balanced routing + tight-coupled pair ADC input (RC placed at pin) Riso Caa ADC Return paths are separated switching return vs measurement return quiet measurement return power switching return kept away BAD shared returns + asymmetry + RC far Sense element no Kelvin Diff path (unbalanced) pair separated pair not coupled → CM→DM dv/dt coupling di/dt return injects ADC input (RC placed far away) long trace Riso Caa ADC kickback ringing Shared return path measurement rides on power return injection into sense reference
Good layout prevents injected out-of-band energy from entering the sampling chain, reducing alias risk, preventing nonlinear recovery events, and keeping phase margin predictable near fc.

H2-11 · Validation & Debug: Proving anti-aliasing without killing phase margin

This section defines a practical “done” criterion for loop-measurement filtering (sense → AAF → ADC), and a field-debug path that separates false observation (aliasing / nonlinearity / sampling alignment) from true plant dynamics. No compensator tuning tutorial is included—only measurement, acceptance language, and probe mapping.

Validation Trio (Frequency · Time · Spectrum)

1) Frequency-domain: protect phase margin near fc (not at “very high” frequency)

  • Measure: loop gain/phase around the crossover region; focus on the phase trend within a tight window around fc.
  • Watch for: unexpected peaking, an extra pole/zero, or a resonance introduced by AAF + ADC input network + driver stability.
  • Pass language: “Phase margin at/near fc stays above the project minimum under worst-case duty, load, and temperature.”

2) Time-domain: step response confirms delay + recovery

  • Measure: load/current steps (PSU) or torque/current commands (motor), plus the ADC input node (or a safe replica node).
  • Watch for: sustained ringing/limit cycles, long recovery after saturation/clamp, and duty-dependent “texture” in the measured variable.
  • Pass language: “Settling time and overshoot meet limits; no persistent oscillation; recovery after rare clipping stays within delay budget.”

3) Spectrum: FFT of ADC codes exposes fsw folding (aliasing fingerprints)

  • Measure: raw ADC codes (or decimated stream) long enough for an FFT that resolves baseband.
  • Watch for: comb-like or discrete components that correlate with fsw harmonics and move as duty/load changes.
  • Pass language: “No strong fsw-folding features in baseband; changing AAF corner produces the expected reduction of folding marks.”

Practical hint: the goal is not a perfect textbook Bode plot or DSP lesson; the goal is a repeatable, worst-case pass/fail statement tied to fc and folding marks.

Acceptance Criteria (use as a checklist)

  • Anti-alias proof: baseband FFT shows no dominant fsw-related folding signatures across duty/load/temperature corners.
  • Phase safety: phase margin near fc stays above the minimum target after enabling AAF + any required digital smoothing.
  • No hidden nonlinearity: ADC input chain does not hit rails or clamp conduction in normal operation; if rare, recovery time does not exceed budget.
  • Reproducibility: two boards at opposite tolerance corners do not diverge into “stable vs unstable” under the same stress script.

Symptom → likely cause → first probes (field-friendly mapping)

Symptom Likely root cause in the sense chain First probes / measurements Fast direction
Current p-p jitter rises, control “goes nervous” Front-end saturation/clamp recovery, or PWM-aligned sampling creating folded baseband artifacts 1) Observe ADC input node for clipping/recovery tail
2) Log ADC codes and FFT for fsw folding marks
3) Check sampling timing vs PWM edges
Increase headroom / soften spikes before ADC; then fix sampling alignment and AAF corner
Only certain duty / speed regions unstable Common-mode swing limit, driver stability with RC load, or clamp conduction triggered only in that operating zone 1) Check common-mode vs ADC allowed range
2) Look for ringing at ADC input (RC placement / driver)
3) Compare FFT signatures across duty points
Re-center VOCM/CM range; validate driver stability; move/retune RC closest to ADC pins
Temperature-related instability RC corner drift / mismatch drift causing phase and folding changes; sense resistor drift shifts operating point 1) Sweep temperature and re-check phase near fc
2) Repeat FFT for folding marks at hot/cold
3) Compare boards (tolerance corner A/B)
Use tighter TC parts / matched networks; add calibration hooks or parameterized corners

Debug Path (minimize wasted loops)

  1. Rule out nonlinearity first: verify the AAF/driver/ADC input never clips or triggers clamp conduction during the failing scenario. If clipping exists, recovery time becomes extra delay that can collapse phase margin.
  2. Then rule out false observation: inspect FFT of ADC codes for fsw folding marks and duty-dependent “textures”. If folding exists, the controller is reacting to a fake baseband disturbance.
  3. Then validate phase near fc: re-check gain/phase around fc with the same filters enabled (analog + any digital smoothing). Any new pole or peaking near fc is a red flag.
  4. Finally corner the scatter: compare multiple boards and temperatures; if only some boards fail, component tolerance/mismatch is likely pulling the AAF corner or balance into a sensitive zone.

This ordering is intentional: clipping and aliasing can mimic “plant instability” and mislead tuning attempts.

Example Tools & On-board Hooks (with part numbers / models)

Models below are common in loop stability + switching measurements. Select equivalents that match bandwidth and safety category.

Use case Example part numbers / models Why it helps in this section
Loop gain / phase measurement (FRA) OMICRON Lab Bode 100 Venable 6300 Series Ridley AP300 Measures gain/phase around fc to confirm phase margin after AAF + any digital smoothing.
Injection into control loop Picotest J2101A Picotest J2100A Clean signal injection without collapsing the loop; supports stability measurement in switching supplies.
Switching current observation Tektronix TCPA300 Tektronix TCP312A Reveals duty/speed corners where current ripple or spikes correlate with ADC folding marks and jitter.
High-voltage differential observation Keysight N2790A Safer probing of floating nodes; helps confirm ADC input ringing/clipping and spike profiles.
Board-level bypass / loopback routing TI TMUX1108 TI TMUX1108PWR Implements “bypass AAF / loopback test / alternate corner” hooks for fast A/B validation and production screening.
Store calibration / corner parameters Microchip 24AA02E48 Stores per-board parameters (gain/corner trims, corner IDs, revision tags) to correlate failures with tolerance and temperature drift.

Implementation guidance stays within this page boundary: hooks exist to validate anti-aliasing and phase margin, not to redesign the compensator.

Figure A11 — Validation & debug flow (measure → criteria → next step)
Validate & Debug the Sense Chain (AAF → ADC) without margin loss Goal: stop false observation (aliasing / clipping) while preserving phase margin near fc Validation Trio Frequency-domain Measure gain/phase near fc Check peaking & extra poles Time-domain Step: overshoot / ringing Recovery after rare clipping Spectrum (ADC FFT) Look for fsw folding marks Confirm AAF corner effect Acceptance Criteria • No dominant fsw-folding in baseband • Phase margin near fc ≥ minimum target • No clipping/clamp in normal operation • Worst-case corners still stable Symptom Entry • jitter ↑ / “nervous” control • duty/speed band instability • temperature-dependent failures → go to Debug Path (right) Debug Path (order matters) Step 1 — Nonlinearity Clipping / clamp recovery tail? Step 2 — False observation FFT shows fsw folding marks? Step 3 — Phase near fc Margin drop after filters enabled? Step 4 — Scatter corners Tolerance / temp drift correlation? Measurement outputs to archive (for production + field) Phase at fc • Step settling & recovery • ADC FFT folding map vs duty/load/temp • Board-to-board scatter
A single workflow ties together phase near fc, time-domain settling/recovery, and FFT folding marks. This prevents “tuning around a false signal” caused by aliasing or front-end nonlinearity.

Request a Quote

Accepted Formats

pdf, csv, xls, xlsx, zip

Attachment

Drag & drop files here or use the button below.

H2-12 · FAQs (Motor / PSU Loop Filters)

These FAQs focus on measurement-chain filtering (sense → AAF/driver → ADC). Each answer gives a practical rule, a short “why,” and a simple verification method (phase near fc, step response, or FFT of ADC codes).

1Should the AAF cutoff align to fc or to fs/2?

The cutoff is not “aligned to one number.” It must satisfy two constraints at once: (1) enough attenuation before fs/2 to reduce PWM ripple and spike energy that can fold into baseband, and (2) minimal phase loss around fc so margin stays safe. If both cannot be met, reduce ripple at the source or increase fs rather than pushing a sharp AAF near fc.

2Why can a “cleaner” current waveform make the loop less stable?

A cleaner plot often means more filtering, and filtering near fc adds delay and phase lag. The loop then reacts to a delayed measurement and can ring or enter limit cycles—even though noise looks lower. The most common trap is stacking an analog low-pass with a digital moving average/IIR, doubling the phase loss. Verify by re-checking phase near fc and step settling after enabling filtering.

3PWM ripple is high frequency—how does it fold into low-frequency jitter?

Discrete sampling folds energy above fs/2 back into baseband. PWM spikes and ripple can enter the ADC input bandwidth and, after sample/hold, appear as fake low-frequency disturbances that the controller tries to “correct.” This is especially visible when sampling timing drifts relative to PWM edges or when fs is a submultiple of fsw. Confirm by FFT of ADC codes: folding fingerprints track duty/load and fsw.

4When 1st-order RC is not enough, how to move to 2nd-order without killing phase margin?

The goal is stronger stopband attenuation without placing a sharp corner or resonance near fc. Prefer low-Q behavior and avoid narrow peaking. If a 2nd-order response is needed, keep its effective transition away from fc and validate the driver + ADC input stability, because the ADC’s sampling capacitance can create extra poles. Pass/fail should be based on phase near fc and step response, not on “prettier” waveforms.

5With differential ADC drive, should the RC sit at the driver output or right at the ADC pins?

In most systems, the final RC that defines the ADC input network should be placed as close as practical to the ADC pins, so it absorbs sampling kickback locally and keeps the high-di/dt loop small. However, if the driver is sensitive to capacitive loading, add a small series isolation element at the driver and treat the network as a two-stage stability problem. Verify by checking for ringing/overshoot at the ADC inputs under worst-case sampling conditions.

6Why does a rare high-current event cause “saturation → slow recovery → unstable control”?

High-current events can inject spikes that push the AAF/driver into output rails or forward-bias protection paths. The recovery tail behaves like extra delay in the measurement chain, and delay is most damaging around fc. Nonlinear behavior also converts “out-of-band” energy into baseband error. Check the ADC input node for clipping and recovery time, then increase headroom, soften spikes before the amplifier, or re-locate clamp return paths to avoid corrupting the signal node.

7Why can a digital moving average make low-speed motor whining worse?

A moving average is a delay generator in the control band. At low speed, the loop often operates closer to its phase-margin limits, so added group delay can produce torque ripple and audible whine. If analog AAF already introduces delay, stacking a moving average can push total delay past the safe budget. Before enabling any digital smoothing, re-verify phase near fc and confirm step response does not add ringing or limit cycles.

8Same design, very different stability across boards—what tolerance/matching pitfalls show up most?

The usual issue is not “a bit more noise,” but corners shifting: RC tolerance moves the AAF corner, and mismatch unbalances differential paths, converting common-mode disturbance into differential error. Temperature gradients and self-heating can worsen mismatch, and sense-element drift shifts operating points into sensitive regions. Build in quick A/B hooks (bypass or loopback) and compare phase near fc across multiple boards at hot/cold to confirm a tolerance-driven margin collapse.

9Why do certain duty cycles or speed points jitter more—and what coupling paths should be checked first?

“Only in certain regions” usually means a coupling path turns on: common-mode swing approaches limits, return currents re-route, or spikes begin to trigger clamp conduction or amplifier slew limits. Start with common-mode range and clamp activity, then inspect ADC-input ringing and return path geometry (Kelvin sense, differential symmetry, and proximity to switching nodes). Validate by correlating the symptom with FFT folding marks and with the presence/absence of clipping.

10How to include “sampling aligned to PWM” in filtering and phase/delay budget?

Sampling timing is part of the measurement chain. If sampling occurs near switch edges, spike energy enters the sample/hold window and increases folding risk; it also changes effective delay and can create duty-dependent artifacts. Define a sampling window that avoids edges and include ADC sample/hold delay + compute/update delay + PWM update delay as one budget. Verify by shifting sampling phase and confirming that baseband FFT artifacts reduce and that phase near fc does not degrade.

11How to use FFT to tell “fsw folding” from a real low-frequency disturbance?

Folding signatures typically track switching behavior. If the baseband “disturbance” changes position or strength when fsw, duty, or sampling phase changes, it is likely folded content, not a true plant perturbation. A fast field check is an A/B experiment: tweak AAF corner (or temporarily change fsw) and see whether the baseband lines move or fade predictably. Real low-frequency disturbances stay anchored in frequency and do not follow fsw adjustments.

12Can clamps/TVS worsen phase or distortion? How to decide whether to change them?

Yes—two mechanisms matter. Linear parasitics (especially capacitance) reshape the ADC input network and add phase lag, while nonlinear conduction creates clipping and slow recovery tails that behave like extra delay around fc. Decide with measurements: confirm whether the protection is ever near conduction in normal operation, and look for waveform deformation or recovery tails at the ADC input. If issues appear, add isolation, relocate return paths, reduce effective capacitance, or move the clamp away from the precision signal node.

Figure A12 — FAQ Map: quick navigation from symptom to the right checks
FAQ Map — find the right check fast All checks stay inside sense → AAF/drive → ADC (anti-alias + phase safety) Frequency Triangle fsw · fs · fc planning AAF corner vs margin Aliasing / Folding PWM ripple → fake baseband FFT of ADC codes Delay / Phase Budget Group delay near fc Analog + digital stacking AAF Choice 1st-order RC vs 2nd-order Keep poles away from fc Differential to ADC RC placement · kickback Driver stability Nonlinearity Traps Saturation · clamp recovery Out-of-band → baseband Fast “What to do next” If jitter ↑ Check clipping → FFT → fc phase If only some duty/speed CM range → ringing → returns If temperature related Corner drift → mismatch → A/B hooks If “cleaner but worse” Total delay budget near fc
Use this map to route each FAQ to the right engineering check: anti-alias verification (FFT), phase safety near fc, and nonlinearity recovery.