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.
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.
- 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.
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.
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.
- 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.
- 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.
- Set a target fc range from transient needs (settling time, overshoot tolerance, torque/voltage dynamics). Treat this as a stability-sensitive boundary.
- 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.
- 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).
- 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).
- 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.
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.
- 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.
- 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 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.
- Change sampling phase vs PWM: if symptoms change significantly, aliasing is likely involved.
- Nudge fs or fsw: if the “mystery tone” frequency moves, folding is a strong suspect.
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.
- 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).
- 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.
- Reduce unavoidable system delays (update and actuation timing) before adding filter order.
- Keep analog LPF “light” near fc: low order, low Q, avoid sharp poles near the crossover region.
- Use digital steepening carefully: additional roll-off belongs in digital only after alias risk is controlled (see H2-3).
- Control sampling alignment vs PWM to lower ripple capture probability, reducing the need for aggressive analog filtering.
- 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.
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.
- 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).
- 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.
- 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.
- 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.
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.
- 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.
- 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.
- 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.
- 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”.
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.
- 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.
- 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.
- 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.
- 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.
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.
- 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.
- 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.
- 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.
- 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.
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.
- 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.
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.
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.
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.
| 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. |
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.
- 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.
- Kelvin routing: sense leads land directly at the sense element (no shared copper with power current).
- Pair coupling: differential traces run together with consistent spacing and minimal asymmetry.
- No split crossings: differential pair does not cross ground splits or return discontinuities.
- Riso at the pin: the final isolation resistor is placed close to the ADC input pin.
- CAA capacitor loop: anti-alias capacitor loop area is minimized; its return is clean and short.
- Reference integrity: ADC reference/VOCM decoupling is close, with a direct, quiet return path.
- Keepout from switch node: high-impedance sense nodes are routed away from fast dv/dt nodes and gate traces.
- Parallel run avoided: long parallel routing next to PWM/gate/switch nets is avoided for sense lines.
- Single defined tie: analog and power ground connection point (if separated) is controlled and reviewable.
- Probe access: test pads exist to probe injected noise and to isolate the sensing chain during debug.
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.
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)
- 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.
- 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.
- 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.
- 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.
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.