Calculating Discrete Window Lengths to Synchronize Converter Apertures with Periodic Mains Noise
Synchronize converter apertures to mains noise by setting sample counts to exact integer multiples of the power line period using precision master clocks.

Grid
Power distribution lines couple magnetic and electric fields into low-level transducer outputs at fundamental frequencies of 50 Hz and 60 Hz. Running differential sensor pairs alongside plant cabling continuously injects normal-mode voltage. Once digitized by an analog-to-digital converter, any unattenuated AC components bleed straight into the sample stream as low-frequency offset drift or wideband baseband noise.
Line interference severity depends on local utility standards and nearby equipment loads. North America and parts of South America run on a nominal 60 Hz grid, which sets a disturbance period of 16.6667 ms. Across Europe, Asia, and Africa, the 50 Hz standard yields a 20.0000 ms period.
Industrial sites operating heavy motors, variable frequency drives, or arc furnaces add heavy harmonic distortion, spilling odd harmonics across the spectrum.
A 0.5% deviation in grid line frequency drops a 60 Hz sinc1 attenuation notch from 60 dB to less than 26 dB over a 16.67 ms aperture.

Mains Frequency Deviations
Utility networks keep line periods within statutory limits, but dynamic loading still causes localized frequency shifts. Standard EN 50160 allows grid frequencies in synchronous European networks to drift within a ±1% tolerance band ~ between 49.5 Hz and 50.5 Hz for 99.5% of any given week. On isolated grids or islanded generators, drift can widen to ±2%, or reach ±15% during abrupt load shedding.
When line frequency strays from nominal, fixed converter apertures miss the exact period of the interference. An integration window tuned precisely to 20.0000 ms offers infinite attenuation for a pure 50.0000 Hz sine wave. But if the line frequency drops to 49.5000 Hz, its period stretches to 20.2020 ms, leaving an unintegrated phase segment at the end of the window that degrades normal-mode rejection.

Harmonic Energy Distribution
Non-linear industrial loads drive integer multiples of the fundamental line rate into differential sensor wires. Rectifiers and phase-controlled power supplies generate strong 3rd, 5th, 7th, and 9th harmonics. A 50 Hz line creates sharp interference spikes at 150 Hz, 250 Hz, 350 Hz, and 450 Hz, whereas a 60 Hz grid concentrates energy at 180 Hz, 300 Hz, 420 Hz, and 540 Hz.
Sensors near high-current transformers experience spatial coupling that scales non-linearly with distance and load. Symmetrical integration windows tuned to drop the fundamental line frequency also place nulls at integer multiples of that frequency. An aperture matched to 20 ms naturally cancels 100 Hz, 150 Hz, and 200 Hz harmonics, as long as the converter clock stays locked in phase with the incoming interference.
Field installations suffer predictable failures whenever aperture calculations ignore physical coupling mechanisms and environmental noise:
- Ground loop differential voltage occurs when remote sensor earth grounds sit at different electrical potentials from the instrument enclosure, forcing AC currents through cable shields.
- Capacitive mains coupling injects displacement currents into high-impedance transducer nodes via stray capacitance between building wiring and signal leads.
- Inductive loop pick-up converts stray 50 Hz magnetic fields into normal-mode noise voltages within unshielded or loosely twisted sensor loops.
- Aliased line harmonics slip past anti-aliasing filters when the ADC modulator clock samples at sub-Nyquist rates relative to fast power transients.
Any mismatch between the physical line period and the internal sampling aperture aliases periodic noise straight into the DC measurement band, producing baseline drift that downstream digital filters cannot remove.

Aperture
Integrating converters integrate continuous-time signals over a fixed measurement duration to generate discrete digital values. Aperture refers to the exact physical time Ta during which the input stage accumulates, charges, or samples the input voltage waveform. In discrete-time signal processing, unweighted continuous integration over duration Ta acts as a continuous-time rectangular window filter.
Taking the continuous Fourier transform of a rectangular pulse of width Ta yields a sinc filter response in the frequency domain. The magnitude response H(f) = | fracsin(π f Ta)π f Ta | determines the theoretical attenuation. Spectral nulls, or notch zeros, land on non-zero integer multiples of f = frackTa, where k in 1, 2, 3, dots.
Matching Ta to the mains interference period aligns a transfer function zero directly with the fundamental line frequency.
Setting integration duration Ta = 20 ms places the first filter notch at f1 = frac10.020 = 50 Hz. Higher spectral zeros automatically fall at 100 Hz, 150 Hz, 200 Hz, and beyond. Setting Ta = 16.6667 ms puts the primary notch at 60 Hz, with secondary zeros at 120 Hz, 180 Hz, and 240 Hz. The depth of these notches sets the Normal Mode Rejection Ratio (NMRR) of the measurement path.
Truncating the sampling aperture to a fractional clock cycle leaves stationary residual noise that downstream digital filtering cannot clean up.

Integrating Converter Math
Integrating continuous voltage over time Ta applies a flat rectangular filter profile to incoming signals. In discrete delta-sigma or oversampled SAR converters, this continuous window becomes a summation of N consecutive samples collected at modulator sampling rate fs, linked by the relation Ta = fracNfs.
Substituting Ta = fracNfs into the frequency domain transfer equation converts the continuous sinc response to the discrete FIR boxcar filter transfer function H(z) = frac1N summ=0N-1 z-m. Evaluating H(z) along the unit circle z = ej 2 π f / fs gives the magnitude spectrum |H(f)| = frac1N | fracsin(π f N / fs)sin(π f / fs) |. The zeros of this function occur where the numerator vanishes and the denominator stays non-zero, giving fzero = k · fracfsN for k notin 0, N, 2N, dots.
| Master Clock fclk (MHz) | Modulator Rate fs (kHz) | Target Frequency (Hz) | Exact Period Ta (ms) | Discrete Samples N | Aperture Error (ppm) |
|---|---|---|---|---|---|
| 4.096000 | 32.000 | 50.0000 | 20.00000 | 640 | 0.00 |
| 4.096000 | 32.000 | 60.0000 | 16.66667 | 533.333 | 333,333.33 |
| 3.686400 | 28.800 | 50.0000 | 20.00000 | 576 | 0.00 |
| 3.686400 | 28.800 | 60.0000 | 16.66667 | 480 | 0.00 |
| 2.097152 | 16.384 | 50.0000 | 20.00000 | 327.680 | 2,076.18 |
| 2.097152 | 16.384 | 60.0000 | 16.66667 | 273.067 | 244.14 |

Discrete Clock Quantization
Digital logic counts integer system clock cycles to bound the physical integration window. High-resolution delta-sigma modulators produce discrete samples locked to a master clock fclk. The integer sample count N must satisfy N = round(Ta · fs).
Whenever Ta · fs yields a fractional value, the discrete filter aperture cannot align perfectly with the target mains period.
Take a delta-sigma converter running at a modulator rate fs = 32.000 kHz, clocked from a standard 4.096000 MHz crystal. For a 50 Hz notch, the calculated sample count N = 0.020000 × 32,000 = 640 exact integer samples. This aperture matches the 20.0000 ms line period perfectly, placing a notch at 50.0000 Hz with theoretically infinite depth.
Targeting a 60 Hz rejection notch at the same 32.000 kHz modulator rate calls for N = 0.01666667 × 32,000 = 533.3333 samples. Since hardware cannot integrate across partial clock cycles, the digital logic rounds N to 533. This count yields an effective integration duration Tactual = frac53332,000 = 16.65625 ms, shifting the notch from 60.0000 Hz to fnotch = frac10.01665625 = 60.0360 Hz.
That 0.0360 Hz offset degrades attenuation at the targeted 60.0000 Hz frequency. The resulting loss calculates directly as NMRR = -20 log10 | fracsin(π · 60 · 0.01665625)π · 60 · 0.01665625 | = -20 log10 | fracsin(0.999375 π)π · 0.999375 | ≈ 54.1 dB. Quantization truncation caps normal-mode attenuation at 54.1 dB regardless of reference stability, layout shielding, or silicon quality.
Maintaining deep rejection across line standards requires master clock choices that produce integer sample counts for both 50 Hz and 60 Hz periods.

Zero
Operating across dual-frequency power environments requires filter strategies that suppress multiple line frequencies at once. Equipment installed globally needs consistent measurement performance regardless of whether local power runs at 50 Hz or 60 Hz. Calculating a single discrete aperture length that drops filter zeros over both frequencies eliminates hardware variants.
Simultaneous rejection relies on finding the greatest common divisor (GCD) of the competing line frequencies. The fundamental rate to reject both 50 Hz and 60 Hz signals is fgcd = gcd(50, 60) = 10 Hz, giving a dual period Tdual = frac110 Hz = 100 ms. An integration window of exactly 100.000 ms spans five full cycles of a 50 Hz line (5 × 20 ms = 100 ms) and six full cycles of a 60 Hz line (6 × 16.6667 ms = 100 ms).
A 100 ms aperture forms a sinc filter with spectral notch zeros at every integer multiple of 10 Hz (10 Hz, 20 Hz, 30 Hz, dots). That sequence automatically catches 50 Hz, 60 Hz, 100 Hz, 120 Hz, 150 Hz, and 180 Hz. The trade-off is throughput: output data rate caps at 10 Hz.

Simultaneous Line Frequency Notch Design
Suppressing both 50 Hz and 60 Hz interference in global designs requires a clock structure tailored for dual rejection. In discrete silicon, modulator rate fs must deliver an integer sample count across the 100 ms aperture. Selecting fs = 38.400 kHz yields N = 0.100 × 38,400 = 3,840 samples per conversion frame.
Decimation filters inside modern delta-sigma ADCs often use higher-order sinc structures to widen notch bandwidths. A basic sinc1 rectangular average creates a narrow notch, leaving attenuation vulnerable to grid frequency drift. Cascading p identical boxcar stages produces a sincp response with magnitude Hp(f) = left( frac1N fracsin(π f N / fs)sin(π f / fs) right)p.
| Filter Topology | Window Ta (ms) | Nominal 50/60 Hz NMRR (dB) | NMRR at +0.5 Hz Drift (dB) | NMRR at +1.0 Hz Drift (dB) | Group Delay (ms) |
|---|---|---|---|---|---|
| Sinc1 (Boxcar) | 100.00 | > 120 (Clock limited) | 36.1 | 30.1 | 50.00 |
| Sinc3 | 100.00 | > 120 (Clock limited) | 108.3 | 90.3 | 150.00 |
| Sinc4 | 100.00 | > 120 (Clock limited) | 144.4 | 120.4 | 200.00 |
| Sinc1 (Boxcar) | 20.00 | > 120 (50 Hz only) | 22.1 | 16.1 | 10.00 |
| Sinc3 | 20.00 | > 120 (50 Hz only) | 66.3 | 48.3 | 30.00 |

High-Order Decimation Topologies
Cascaded integrator-comb architectures stack averaging stages to steepen notch slopes. While higher order p deepens attenuation for off-nominal line frequencies, it extends group delay. A sinc3 filter with a 100 ms aperture takes 300 ms to settle after an input step before outputting fully converged data.
Determining the necessary sample stream length follows a straightforward verification sequence:
- Determine local power grid fundamental frequencies and expected tolerances across target installation sites.
- Set the required Normal Mode Rejection Ratio to stay within error budget limits under peak expected line interference.
- Select a master clock frequency fclk and modulator rate fs that yield exact integer sample counts N50 = fracfs50 and N60 = fracfs60.
- Calculate dual-rejection window length Ndual = fracfsgcd(f1, f2) to align simultaneous zero notches.
- Choose decimation filter order p to meet NMRR requirements under worst-case line frequency drift.
- Verify that overall group delay tg = fracp · Nfs meets control loop latency limits.
Datasheet ratings of 100 dB power line rejection invariably assume an unvarying master clock and an absolute 50.000 Hz or 60.000 Hz line source. In field conditions with 0.5 Hz line frequency shifts, simple sinc1 filters drop to 36 dB attenuation, driving measurement drift into host application controllers.

Jitter
Mathematical models of integration windows assume a perfectly periodic sampling clock. Real oscillators suffer phase jitter, thermal frequency drift, and aging. Clock instability modulates the conversion aperture, pulling transfer function zeros away from target line frequencies and degrading attenuation.
Clock instability shows up as short-term phase jitter or steady frequency offset (ppm error). Phase jitter causes random variations in sample edge timing, raising an uncorrelated noise floor across the spectrum. Frequency drift systematically changes integration duration Ta, shifting rejection notches off target mains rates.
A crystal rated at ±100 ppm across temperature introduces a worst-case frequency shift Δ fclk = fclk × 100 × 10-6. On a 4.096 MHz oscillator, that translates to a ±409.6 Hz shift in master clock frequency. This shifts a 20.0000 ms integration aperture by ± 2.0 μs, pulling a nominal 50.0000 Hz notch to 49.9950 Hz or 50.0050 Hz. A 100 ppm clock offset by itself keeps rejection above 80 dB, but combined oscillator drift and grid frequency wander degrade performance sharply.

Oscillator Drift and Phase Stability
Quartz resonators provide tight timing, whereas internal RC clocks introduce pronounced thermal sensitivity. Converters relying on internal RC oscillators often specify timing tolerances of ±1% to ±3% over the -40°C to +85°C industrial temperature range. A +2% clock drift speeds up sampling rate fs, shortening integration duration Ta by 2%.
With a +2% clock drift, a nominal 20.0000 ms window shrinks to 19.6078 ms. The primary notch shifts from 50.0000 Hz up to 51.0000 Hz. Evaluating the sinc1 transfer function at a 50.0000 Hz input under this offset yields NMRR = 20 log10 | fracsin(π · 50 · 0.0196078)π · 50 · 0.0196078 | ≈ 34.1 dB. Running on an internal RC clock cuts line rejection by more than 80 dB compared to theoretical models.
Selecting clock topologies involves weighing timing stability, power draw, and overall component cost:
- Temperature-Compensated Crystal Oscillators (TCXO) hold timing within ±2.5 ppm over temperature, keeping notch depths above 90 dB across industrial conditions.
- Standard Quartz Crystal Oscillators (XO) provide ±20 ppm to ±100 ppm precision, maintaining acceptable rejection as long as line frequencies stay stable.
- Silicon MEMS Oscillators offer high shock resistance with timing comparable to quartz units (±25 ppm to ±50 ppm).
- Internal Monolithic RC Oscillators suffer heavy thermal drift (±10,000 ppm to ±30,000 ppm), making high-precision line rejection impossible without external phase locking.

Dynamic Phase-Locked Tracking
Real-time tracking adjusts the sample count per conversion to match measured zero-crossing intervals. Equipment running on microgrids with fluctuating frequencies uses a digital phase-locked loop (DPLL) to monitor line period continuously. An auxiliary digital input reads a zero-crossing detector isolated from the mains line via an optocoupler.
The host microcontroller or DSP counts clock cycles between consecutive zero crossings to measure exact line period Tline in real time. The digital filter then updates its decimation factor Nadaptive = round(Tline · fs). If the grid drops to 49.2 Hz, the period stretches to 20.3252 ms.
Adaptive logic scales sample accumulation from 640 up to 650 samples, shifting the notch dynamically to follow the line.
IEC 61326-1 mandates normal mode rejection ratio testing across the full operating temperature range, invalidating room-temperature benchmark specifications.
Dynamic aperture scaling continuously alters the output sample rate, complicating downstream processing algorithms that expect fixed time steps. Designers must decide whether to accept variable output sample intervals or tolerate reduced rejection when mains frequencies wander.

Bench
Evaluating normal mode rejection requires systematically injecting known line-frequency noise into the analog input loop. Datasheet rejection specs reflect clean bench conditions with quiet references, battery-powered sources, and linear supplies. Testing for real-world operation requires applying common-mode and normal-mode line noise under controlled environmental stress.
A precision test setup connects an arbitrary waveform generator (AWG) in series with a DC voltage standard. The AWG injects a calibrated AC sine wave (100 mVrms at 50.000 Hz or 60.000 Hz) onto a quiet DC bias (1.00000 VDC). The combined signal drives differential analog inputs while the converter records digital samples across temperature.
Fast Fourier Transform (FFT) analysis of the raw output quantifies residual line energy. Measuring spectral amplitude at the injected power line frequency isolates normal-mode rejection from thermal and quantization noise floors.

Normal Mode Rejection Bench Testing
Verification protocols apply differential AC interference directly across sensor terminals during conversion. Calculating measured NMRR relies on comparing injected AC amplitude Vacin against output AC amplitude Vacout extracted by FFT: NMRRdB = 20 log10 left( fracVacinVacout right).
Testing sweeps injected interference across operational tolerance bands (47.0 Hz to 53.0 Hz for 50 Hz systems; 57.0 Hz to 63.0 Hz for 60 Hz systems) in 0.1 Hz increments. Plotting NMRR over frequency reveals the empirical attenuation curve, showing actual notch bandwidth and depth limits set by master clock jitter and silicon noise.
Hardware phase locking to line zero crossings eliminates clock drift errors, but forces output data rates to vary.

Empirical Noise Floor Spectral Analysis
High-resolution Fast Fourier Transforms isolate residual line components across different integration windows. Bench measurements show clear performance shifts when changing decimation modes, master clock sources, or board shielding.
| Converter Architecture | Clock Source | Nominal Mode Ta | Injected Signal | Measured Vacout | Empirical NMRR (dB) |
|---|---|---|---|---|---|
| 24-Bit Delta-Sigma | External 0.5 ppm TCXO | 100.00 ms (Dual) | 100 mVrms @ 50.00 Hz | 0.12 μVrms | 118.4 |
| 24-Bit Delta-Sigma | External 0.5 ppm TCXO | 100.00 ms (Dual) | 100 mVrms @ 50.50 Hz | 0.48 μVrms | 106.4 |
| 24-Bit Delta-Sigma | External 50 ppm XO | 20.00 ms (50 Hz) | 100 mVrms @ 50.00 Hz | 1.10 μVrms | 99.2 |
| 24-Bit Delta-Sigma | Internal RC (±2%) | 20.00 ms (50 Hz) | 100 mVrms @ 50.00 Hz | 1.95 mVrms | 34.2 |
| 16-Bit SAR (Avg=640) | External 10 ppm XO | 20.00 ms (50 Hz) | 100 mVrms @ 50.00 Hz | 2.80 μVrms | 91.1 |
Bench data illustrates the rejection loss caused by internal RC clock drift. An internal RC clock degrades attenuation to 34.2 dB, letting nearly 2 mV of AC ripple pass into the digitizer. Switching to an external crystal oscillator restores rejection above 90 dB, demonstrating that system timing stability governs conversion accuracy.
When purchasing specifications require compliance, supply contracts need to mandate clear test frameworks. Standard procurement terms enforce these requirements directly:
Rejection Verification Clause: Normal Mode Rejection Ratio (NMRR) shall exceed 90 dB at 50 Hz ± 0.5 Hz and 60 Hz ± 0.5 Hz when tested in accordance with IEC 61326-1 Class A methods, utilizing an external master clock source bounded within ±25 ppm total frequency deviation across the full specified operating temperature range.
Including explicit clauses prevents suppliers from shipping parts qualified solely at room temperature using battery-backed master clocks.

Margin
Component selection balances clock precision, converter architecture, and digital filtering overhead. Reliable high-resolution measurements in industrial settings depend on analyzing total system error budgets rather than relying solely on individual datasheets.
Selecting measurement topologies involves balancing converter resolution, sampling bandwidth, clock stability, and bill of materials (BOM) cost. A 24-bit delta-sigma ADC with built-in decimation reduces processor overhead by outputting fully filtered, low-noise data. However, delta-sigma devices lock timing to fixed decimation ratios, making aperture adjustments hard when line frequencies shift.
High-speed Successive Approximation Register (SAR) converters offer a different approach. A 16-bit or 18-bit SAR ADC sampling at 100 kHz streams raw data into a microcontroller or FPGA, where firmware performs boxcar averaging, window truncation, or adaptive FIR filtering. This software-driven approach tracks grid variations smoothly, though it increases processor load and memory needs.

Error Budget Breakdown
Moving synchronization logic into production hardware requires explicit error budgeting. Total measurement uncertainty combines reference drift, amplifier offset, thermal noise, clock jitter, and residual line interference.
Take an industrial process loop measuring a 0 to 10 V signal with a target system accuracy of 0.01% (1 mV total allowable error). Modeling establishes a worst-case normal-mode line pickup of 500 mVpeak-to-peak (176.8 mVrms) at 50 Hz. To keep mains noise below 10% of the error budget (100 μV maximum residual AC ripple), the converter stage must deliver an NMRR of at least 20 log10 left( frac176.8 mV100 μV right) = 64.95 dB.
If grid frequency drifts by ±1% (49.5 Hz to 50.5 Hz), a basic sinc1 filter calculated for 20.000 ms delivers only 36.1 dB attenuation, leaving 2.75 mVrms (7.78 mVpeak-to-peak) of residual noise in the output stream. That residual noise exceeds the entire system error budget nearly eightfold. Upgrading to a sinc3 decimation filter increases attenuation at 49.5 Hz to 108.3 dB, reducing residual ripple to 0.68 μVrms ~ well within system limits.
| Clock Source Option | Frequency Precision (ppm) | Worst-Case 50 Hz NMRR (Sinc1) | Worst-Case 50 Hz NMRR (Sinc3) | Unit Cost Delta (USD) | Supply Risk / Second-Sourcing |
|---|---|---|---|---|---|
| Internal RC Oscillator | ±20,000 (2.0%) | 34.1 dB | 102.3 dB | $0.00 (Integrated) | Single-source internal IP block |
| Standard Quartz XO | ±50 (0.005%) | 36.1 dB (Grid limited) | 108.2 dB | +$0.22 | Multi-vendor standard footprint |
| Precision TCXO | ±2 ppm (0.0002%) | 36.1 dB (Grid limited) | 108.3 dB | +$1.45 | Limited dual-sourcing options |
| DPLL Grid Tracking | Adaptive Sync | > 90.0 dB (Dynamic) | > 120.0 dB | +$0.65 (Opto + Logic) | Discrete component implementation |

Commercial Part Selection Rules
Procurement choices balance component cost against system precision under realistic field conditions. High-precision timing components add supply chain complexity and bill-of-materials cost. Using internal RC clocks eliminates external parts, but limits line rejection unless host firmware implements high-order sinc decimation filters.
When specifying converter components and oscillators for industrial designs, purchasing documentation must validate alternate parts against timing limits:
Technical documentation for high-resolution measurement products should include qualification records for all incoming component lots:
- Oscillator frequency tolerance certificates documenting output frequency across temperature (-40°C to +85°C) for each manufacturing lot.
- ADC master clock divider verification reports confirming internal logic yields exact integer sample ratios N = fracfsfmains without truncation.
- Normal mode rejection test logs verifying at least 80 dB attenuation across specified grid frequency bands.
- Second-source component equivalence matrix confirming alternate oscillator phase noise and thermal drift parameters match primary supplier limits.
Matching discrete aperture lengths to physical line periods eliminates line-frequency corruption at the analog conversion boundary. Choosing master clock sources with frequency stability tuned to expected line drift ensures measurement subsystems perform accurately across global industrial installations.




