Comprehensive technical documentation of all metrics, formulas, and physical models
implemented in the application.
Reference standard: IEC 60958-3 (consumer interface) / IEC 60958-4 (professional AES3 interface) - Biphase Mark Coding (BMC), coaxial signal 0.5 V peak-to-peak on nominal 75 ohm impedance.
Standards and references used:
The cable model simulates the physical degradation of an S/PDIF coaxial signal during
propagation. Five phenomena are modeled sequentially in the cable_sim() function,
each corresponding to a real physical effect.
| Cable | Impedance | Att. 5 MHz | Att. 10 MHz | BW (1m) | Vel. | Shielding | Source | Datasheet |
|---|---|---|---|---|---|---|---|---|
| Belden 1694A | 75 ohm | 1.77 dB/100m | 2.36 dB/100m | 250 MHz * | 82% c | 90 dB * | Datasheet | Belden 1694A |
| Belden 1505A | 75 ohm | 2.07 dB/100m | 2.85 dB/100m | 200 MHz * | 83% c | 80 dB * | Datasheet | Belden 1505A |
| Canare L-5CFB | 75 ohm | 1.55 dB/100m ** | 2.20 dB/100m | 220 MHz * | 79% c | 85 dB * | Datasheet (10 MHz) | Canare L-5CFB |
| Mogami 2964 | 75 ohm Β±10% | 3.30 dB/100m ** | 4.70 dB/100m | 80 MHz * | 78% c * | 85 dB * | Mogami 2014 Catalogue | Mogami 2964 |
| Sommer SC-Vector 0.8/3.7 | 75 ohm | 2.05 dB/100m ** | 2.90 dB/100m | 400 MHz * | 83% c * | 95 dB | Thomann.fr (10 MHz) | Thomann.fr |
| Generic 75 ohm coaxial | 75 ohm | 5.00 dB/100m * | 7.50 dB/100m * | 60 MHz * | 66% c * | 50 dB * | Estimate | - |
| Non-standard generic RCA cable | 45 ohm * | 10.0 dB/100m * | 16.0 dB/100m * | 25 MHz * | 66% c * | 25 dB * | Estimate | - |
| Belden 1800F (AES/EBU) | 110 ohm | 9.0 dB/100m ** | 13.7 dB/100m ** | 120 MHz * | 76% c | 75 dB * | Datasheet (5.6/8.2/11.3 MHz) | Belden 1800F |
| Canare DA206 (AES/EBU) | 110 ohm | 3.4 dB/100m ** | 4.8 dB/100m ** | 300 MHz * | 78% c * | 78 dB * | Datasheet (3 MHz) | Canare DA206 |
| Canare DA202 (AES/EBU) | 110 ohm | 6.6 dB/100m ** | 9.3 dB/100m ** | 180 MHz * | 77% c * | 75 dB * | Datasheet (3 MHz) | Canare DA202 |
AES/EBU Note: The Belden 1800F is a 110 ohm twisted-pair cable for the professional AES3 interface (IEC 60958-4). The raw attenuation per meter is higher than for 75 ohm coaxial (twisted pair vs. coax), but the AES/EBU signal level is 10 to 20 times higher (2-7 V P-P vs. 0.5 V P-P), which more than compensates. The simulator applies two corrections for AES/EBU cables:
Sources for Belden 1800F data: Belden catalog, Blue Jeans Cable. Conversions: dB/100m = dB/100ft x 3.281. Published attenuation at 5.645 MHz = 2.89 dB/100ft (9.48 dB/100m); interpolated to 5 and 10 MHz points.
Legend:
Conversions used: Belden datasheets give attenuation in dB/100ft. Conversion: dB/100m = dB/100ft Γ 3.281.
Sources for shielding values:
Manufacturer datasheets generally do not provide shielding effectiveness in dB directly.
The values used are estimated from the shielding construction according to standard orders
of magnitude (ref. Ott 2009, ch.3; MIL-STD-188-124B):
| Shielding Construction | Typical Effectiveness | Cables |
|---|---|---|
| Double shield braid + aluminum foil, ~95% coverage | 85 - 100 dB | Belden 1694A (foil + braid, 95% coverage) |
| Single copper braid, ~90-95% coverage | 70 - 85 dB | Belden 1505A, Canare L-5CFB, Mogami 2964, Belden 1800F |
| Single aluminum foil + drain | 40 - 60 dB | Generic coaxial cables |
| Partial or no shielding | 15 - 30 dB | Consumer RCA cables |
Unverified values: Bandwidths at 1 m, shielding effectiveness in dB, and some propagation velocities are estimates based on cable construction (shield type, conductor cross-section). These values do not appear in the consulted datasheets.
Each preset cable is defined by the following manufacturer parameters:
| Parameter | Variable | Unit | Description |
|---|---|---|---|
| Attenuation at 5 MHz | atten_5mhz | dB/100m | Insertion loss measured at 5 MHz (datasheet) |
| Attenuation at 10 MHz | atten_10mhz | dB/100m | Insertion loss measured at 10 MHz (datasheet) |
| Bandwidth at 1 m | bw_1m | MHz | -3 dB cutoff frequency for 1 m of cable |
| Nominal impedance | impedance | ohm | Characteristic impedance (75 ohm S/PDIF, 110 ohm AES/EBU) |
| Velocity factor | velocity_pct | % of c | Propagation speed as a percentage of the speed of light |
| Shielding | shield_db | dB | Electromagnetic shielding effectiveness |
The S/PDIF cell frequency is calculated as:
$f_{cell} = \frac{F_s \times 128}{10^6}$ (in MHz)
For $F_s = 44100$ Hz, this gives $f_{cell} \approx 5.645$ MHz.
The factor 128 comes from the IEC 60958 frame structure: each stereo frame consists of
2 sub-frames of 32 bits = 64 time slots, and each BMC bit produces 2 cells, therefore
64 cells per sub-frame x 2 sub-frames = 128 cells per audio frame.
Physical phenomenon: The skin effect and dielectric losses in the cable act as a
low-pass filter. The high-frequency components of the square BMC signal are attenuated,
rounding the rising and falling edges.
Implementation: first-order RC low-pass filter (IIR) via scipy.signal.lfilter.
Effective cutoff frequency formula:
$BW_{eff}(L) = \max\left(5,\ \frac{BW_{1m}}{\sqrt{1 + L/8}}\right)$ (in MHz)
where:
Physical justification for the $1/\sqrt{1+L/8}$ model:
The attenuation of a coaxial cable due to the skin effect follows a law $\alpha(f) = \alpha_0 \sqrt{f}$
(cf. Pozar Β§2.7, "Lossy Transmission Lines"). The -3 dB cutoff frequency corresponds to
the point where the total attenuation reaches 3 dB. Since attenuation is proportional to
$\sqrt{f} \times L$ (cumulative losses along the length), the cutoff frequency decreases as
$L$ increases. The simplified model uses $\sqrt{1 + L/L_0}$ with $L_0 = 8$ m as the reference
length, giving:
The constant $L_0 = 8$ m is calibrated to match the typical attenuation curves of
RG-59/RG-6 coaxial cables in the 1-50 MHz range.
IIR filter coefficient:
$\alpha = \frac{2\pi f_c \cdot \Delta t}{2\pi f_c \cdot \Delta t + 1}$
where:
The filter is applied by the recurrence relation:
$y[n] = \alpha \cdot x[n] + (1 - \alpha) \cdot y[n-1]$
Physical interpretation:
nearly square.
very rounded, and the decoder struggles to determine transition instants.
Typical ranges:
| Quality | $BW_{eff}$ | Effect on the signal |
|---|---|---|
| Excellent | > 100 MHz | Sharp edges, no visible degradation |
| Good | 30 - 100 MHz | Slight rounding, no data loss |
| Poor | 10 - 30 MHz | Rounded edges, increased jitter |
| Bad | 5 - 10 MHz | Heavily degraded signal, possible errors |
Physical phenomenon: At high frequency, current no longer flows through the entire
cross-section of the conductor but concentrates at the surface, in a layer of thickness $\delta$
(the penetration depth). This increases the effective resistance of the conductor and
therefore the attenuation, proportionally to $\sqrt{f}$.
Penetration depth (Pozar, eq. 2.86):
$\delta = \frac{1}{\sqrt{\pi f \mu \sigma}}$
where:
For copper at 5.6 MHz: $\delta \approx 28\ \mu m$. At 56 MHz (10th harmonic):
$\delta \approx 8.8\ \mu m$. Higher harmonics "see" a much more resistive conductor.
Implementation in the simulator:
The skin effect is an optional filter (checkbox). When enabled, it applies a frequency-domain
attenuation in the Fourier domain:
$V_{out}(f) = V_{in}(f) \times 10^{-A_{skin}(f) / 20}$
where the per-frequency attenuation follows the square-root law:
$A_{skin}(f) = A_{cell} \times \sqrt{\frac{f}{f_{cell}}}$ (in dB)
with:
Practical effect on the S/PDIF signal:
The BMC signal is a square wave whose spectrum contains odd harmonics
(3rd, 5th, 7th, ...). Without skin effect, all harmonics are attenuated by the same
amount. With skin effect:
| Harmonic | Frequency (44.1 kHz) | Relative attenuation |
|---|---|---|
| Fundamental | 5.6 MHz | $1.00 \times A_{cell}$ |
| 3rd | 16.9 MHz | $1.73 \times A_{cell}$ |
| 5th | 28.2 MHz | $2.24 \times A_{cell}$ |
| 7th | 39.5 MHz | $2.65 \times A_{cell}$ |
High harmonics, which are responsible for the sharpness of rising edges, are
disproportionately attenuated. This rounds the signal edges and reduces
eye opening, beyond what the simple low-pass filter models.
When to enable it? The skin effect is most significant for:
For short cables (< 3 m) in standard-gauge copper (AWG 18-20), the effect is
negligible (< 0.01 dB difference between harmonics).
Physical phenomenon: The signal loses amplitude as it propagates through the cable,
due to resistive losses in the conductor and dielectric losses in the insulator.
Attenuation increases with frequency and length.
Formula:
Step 1 - Linear interpolation of attenuation at the cell frequency, between the manufacturer
measurements at 5 MHz and 10 MHz:
$A_{100m} = A_{5MHz} + \frac{f_{cell} - 5}{5} \times (A_{10MHz} - A_{5MHz})$ (in dB/100m)
Step 2 - Scaling to the actual cable length:
$A_{dB} = \max\left(0,\ A_{100m} \times \frac{L}{100}\right)$
Step 3 - Application to the signal (symmetric attenuation around the midpoint):
$v_{out}[n] = v_{mid} + (v_{in}[n] - v_{mid}) \times 10^{-A_{dB}/20}$
where:
Variables:
Justification of linear interpolation:
The actual attenuation of a coaxial cable follows a $\sqrt{f}$ law (Neumann-Ross model:
$\alpha(f) = \alpha_c \sqrt{f} + \alpha_d \cdot f$, where $\alpha_c$ represents copper losses and $\alpha_d$
dielectric losses). Over the narrow 5-10 MHz interval, linear interpolation is a
sufficient approximation (error < 5% compared to the $\sqrt{f}$ model). Manufacturers
generally provide attenuation at several discrete frequencies (1, 5, 10, 50, 100 MHz),
which justifies using the two points closest to $f_{cell} \approx 5.6$ MHz.
Physical interpretation:
half the amplitude. At 12 dB, only 0.125 V P-P remains.
Typical ranges:
| Quality | $A_{dB}$ | Residual amplitude | Effect |
|---|---|---|---|
| Excellent | < 0.1 dB | > 0.49 V P-P | No perceptible degradation |
| Good | 0.1 - 1 dB | 0.45 - 0.49 V P-P | Noise margin preserved |
| Poor | 1 - 3 dB | 0.35 - 0.45 V P-P | Reduced margin, noise-sensitive |
| Bad | > 3 dB | < 0.35 V P-P | Risk of receiver unlock |
Physical phenomenon: When the cable impedance does not match the load impedance
(75 ohm for S/PDIF), part of the signal is reflected at the terminations. These
reflections arrive delayed (round-trip propagation time) and superimpose on the useful
signal, creating echoes and distortions.
Reflection coefficient (Pozar Β§2.3, eq. 2.35):
$\Gamma = \frac{Z_{cable} - Z_{load}}{Z_{cable} + Z_{load}}$
where:
where $L'$ and $C'$ are the distributed inductance and capacitance (H/m and F/m)
Round-trip delay:
$\tau_{RT} = \frac{2 \times L}{v_{prop}}$
where:
The delay is converted to a number of samples:
$d = \text{round}\left(\frac{\tau_{RT}}{\Delta t}\right)$
Multiple reflections model:
The simulator models up to 5 bounces (round trips). At each bounce $n$:
$v_{out}[k + n \cdot d\ :] \mathrel{+}= A_n \times v_{in}[: \text{len}(v) - n \cdot d]$
The amplitude of each bounce is:
This gives the geometric series:
$A_n = \Gamma^{2n-1}$
The $\Gamma^2$ attenuation per round trip is explained by the fact that the signal is
reflected once at each end (two reflections per round trip).
The simulation stops if:
Practical examples:
| Cable | $Z_{cable}$ | $\Gamma$ | $\Gamma^2$ | 1st bounce reflection |
|---|---|---|---|---|
| Belden 1694A (75 ohm) | 75 ohm | 0.0000 | 0.0000 | 0 % (perfect) |
| Generic RCA cable | 45 ohm | -0.2500 | 0.0625 | 25 % of amplitude |
| Theoretical short-circuit | 0 ohm | -1.0000 | 1.0000 | 100 % (total) |
Physical interpretation:
as time-delayed "echoes". This closes the eye diagram, increases jitter and can cause decoding errors.
increases, and echoes superimpose at different decision instants.
Typical ranges:
| Quality | $ | \Gamma | $ | Effect |
|---|---|---|---|---|
| Excellent | < 0.01 | Negligible reflections | ||
| Good | 0.01 - 0.05 | Very weak reflections | ||
| Poor | 0.05 - 0.15 | Echoes visible in the eye diagram | ||
| Bad | > 0.15 | Severe distortion, decoding errors |
Physical phenomenon: The cable shield protects the signal from electromagnetic
interference (EMI) from the environment. Insufficient shielding or a long cable (which
acts as an antenna) allows noise to superimpose on the useful signal.
The actual shielding effectiveness depends on two factors:
The analyzer offers three typical environments, each modeling a different level of
interference through an EMI penalty ($P_{EMI}$) subtracted from the cable's
intrinsic shielding:
| Environment | EMI Penalty $P_{EMI}$ | Typical interference sources |
|---|---|---|
| Pro studio | 0 dB | Linear power supply, shielded room, no light dimmers. Ideal conditions: the cable shield operates at its rated effectiveness. |
| Home hi-fi | 10 dB | Living room with TV, Wi-Fi router, switching chargers, nearby LED lighting. The ambient electromagnetic field is moderate but constant. |
| Industrial / stage | 25 dB | Power dimmers, electric motors, high-power stage lighting, mains cables running parallel to audio cables. Intense electromagnetic field. |
Why a penalty? The cable shield attenuates interference by a factor $S_{dB}$ under
ideal conditions (laboratory measurement per IEC 62153-4-3, triaxial method). But in a
real environment, the incident EMI field is more intense than in the lab. The penalty
$P_{EMI}$ models this difference: a cable with 80 dB of shielding in an industrial
environment ($P_{EMI} = 25$ dB) behaves as if it only had 55 dB of effective shielding.
In other words, the cable still filters by the same amount, but there is more noise to filter.
Orders of magnitude of EMI fields (ref. IEC 61000-4-3, Ott 2009 ch.6):
| Environment | Typical field (1-30 MHz) | Dominant source |
|---|---|---|
| Pro studio / lab | < 1 V/m | Ambient background noise |
| Home hi-fi | 1 - 3 V/m | Wi-Fi (2.4 GHz harmonics), switching power supplies, LED lighting |
| Industrial / stage | 3 - 10 V/m | Variable frequency drives, motors, DMX lighting, mains cables |
The penalty values (0, 10, 25 dB) correspond approximately to the field ratio between
the real environment and laboratory conditions:
$P_{EMI} \approx 20 \log_{10}(E_{env} / E_{lab})$.
For a lab field of ~0.3 V/m, a living room at 1 V/m gives ~10 dB and a stage at 6 V/m
gives ~26 dB.
Effective SNR formula:
$SNR_{eff} = \max\left(20,\ S_{dB} - P_{EMI} \times \min\left(1,\ \frac{L}{5}\right) - 8 \times \log_{10}(1 + L/2)\right)$ (in dB)
where:
The penalty increases linearly with length and reaches its full value from 5 m onward.
(the cable increasingly acts as a receiving antenna)
massive errors, which is not realistic for a cable of a few meters)
Practical examples:
| Cable | $S_{dB}$ | Environment | $P_{EMI}$ | Length | $P_{EMI} \times L/5$ | $SNR_{eff}$ |
|---|---|---|---|---|---|---|
| Belden 1694A | 90 dB | Studio | 0 dB | 1.5 m | 0 dB | 88.6 dB |
| Belden 1694A | 90 dB | Hi-Fi | 10 dB | 1.5 m | 3.0 dB | 85.6 dB |
| Belden 1694A | 90 dB | Industrial | 25 dB | 10 m | 25.0 dB | 58.8 dB |
| Generic RCA | 25 dB | Hi-Fi | 10 dB | 1.5 m | 3.0 dB | 20.1 dB |
| Generic RCA | 25 dB | Hi-Fi | 10 dB | 10 m | 10.0 dB | 20.0 dB (floor) |
| Generic RCA | 25 dB | Industrial | 25 dB | 1.5 m | 7.5 dB | 20.0 dB (floor) |
Physical interpretation:
SNR > 75 dB: noise is completely negligible. Even a generic cable works
correctly at short lengths.
drops to 40 dB effective - acceptable but without reserve. An unshielded RCA cable (25 dB)
hits the floor and picks up audible noise.
comfortable SNR. A generic cable is unusable beyond a few meters.
Noise application:
Noise is modeled as additive white Gaussian noise:
$v_{out}[n] = v_{in}[n] + \mathcal{N}\left(0,\ \sigma_{noise}\right)$
where the noise standard deviation is calculated from the SNR:
$\sigma_{noise} = \sqrt{\frac{P_{signal}}{10^{SNR_{eff}/10}}}$
with:
$P_{signal} = \frac{1}{N}\sum_{n=0}^{N-1} v[n]^2$
That is, the mean square power of the signal.
Variables:
Typical ranges:
| Quality | $SNR_{eff}$ | Relative noise level | Effect |
|---|---|---|---|
| Excellent | > 60 dB | < 0.1 % | Invisible, no impact |
| Good | 40 - 60 dB | 0.1 - 1 % | Weak noise, no errors |
| Poor | 25 - 40 dB | 1 - 5 % | Increased jitter, rare errors |
| Bad | 15 - 25 dB | 5 - 18 % | Possible decoding errors |
Physical phenomenon: When a digital signal passes through a long cable with limited
bandwidth, successive transitions interfere with each other. The energy of one symbol "spills"
into adjacent symbols, shifting transition instants away from the ideal grid.
This phenomenon, called ISI (Intersymbol Interference), is the dominant mechanism of jitter
degradation over long distances and the primary cause of the cliff effect in digital links.
Implemented model:
ISI jitter is modeled as a temporal perturbation applied to the signal after the
filtering, attenuation, reflections, and noise steps. Two components are combined:
$J_{src} = 2\ \text{ns RMS}$
Typical value for an S/PDIF or AES/EBU transmitter (ref. AES-12id-2020).
$J_{ISI} = \frac{K \times \sqrt{L}}{BW_{eff}}$ (in seconds RMS)
where:
The differential AES/EBU link reduces effective ISI thanks to: (1) common-mode rejection,
(2) better distributed impedance matching, (3) higher dV/dt slope at the decision threshold
(signal 10x larger). The factor 3 is calibrated so that the Canare DA206
(max spec 360m) works at 300m and the DA202 (max spec 180m) works at 180m.
$J_{total} = \sqrt{J_{src}^2 + J_{ISI}^2}$ (in seconds RMS)
Implementation:
Jitter is applied as a temporal perturbation of the signal in the sampled domain:
with the cable rise times:
$N_{rise} = \max\left(3,\ \left\lfloor\frac{0.35}{BW_{eff} \times 10^6 \times \Delta t}\right\rfloor\right)$
$v_{out}[n] = v_{in}(n + \Delta i[n])$
Calibration against the literature:
The factor $20 \times 10^{-9}$ was calibrated to reproduce jitter values published
in the technical literature:
| Distance | Effective BW | Simulated J RMS | Simulated J P-P | Literature (P-P) | Source |
|---|---|---|---|---|---|
| 10 m | ~167 MHz | ~1 ns | ~5 ns | 5 - 12 ns | AES-12id-2020, Julian Dunn (1992) |
| 100 m | ~68 MHz | ~3 ns | ~16 ns | 15 - 35 ns | Dunn, "Digital Audio Interconnections" |
| 200 m | ~42 MHz | ~4.3 ns | ~28 ns | 20 - 50 ns | Manufacturer measurements |
| 250 m | ~36 MHz | ~36.7 ns | ~192 ns | Failure expected | AES3 recommended limit: 300m max |
| 300 m | ~32 MHz | ~43.4 ns | ~193 ns | Complete failure | Beyond specifications |
Cliff effect:
ISI jitter is responsible for the characteristic cliff effect of digital links:
the signal is perfect up to a critical distance, then collapses abruptly.
This behavior emerges naturally from the model because:
time window, CER = 0%
start to spill into the adjacent cell, CER rises sharply
For the Belden 1694A (75 ohm, BW=250 MHz), the cliff effect occurs between 200 and 250 m,
which is consistent with manufacturer specifications and the AES3 standard.
Typical ranges:
| Quality | $J_{ISI}$ RMS | Typical distance (1694A) | Effect |
|---|---|---|---|
| Negligible | < 1 ns | < 50 m | No impact, perfect transmission |
| Moderate | 1 - 5 ns | 50 - 150 m | Measurable jitter, no errors |
| Critical | 5 - 30 ns | 150 - 230 m | Reduced margin, eye closing |
| Failure | > 30 ns | > 230 m | CER > 0%, cliff effect |
References:
The interface allows defining a fully custom cable by entering the physical parameters
directly. This makes it possible to simulate a cable whose specifications are known but
that is not in the preset list, or to test the individual influence of each parameter.
Customizable parameters:
| Parameter | Field | Unit | Typical range | Description |
|---|---|---|---|---|
| Impedance | $Z_{cable}$ | ohm | 30 - 110 | Characteristic impedance. 75 ohm = perfect S/PDIF matching. |
| Attenuation 5 MHz | $A_{5MHz}$ | dB/100m | 1 - 20 | Insertion loss at 5 MHz. |
| Attenuation 10 MHz | $A_{10MHz}$ | dB/100m | 2 - 30 | Insertion loss at 10 MHz. |
| Bandwidth (1m) | $BW_{1m}$ | MHz | 20 - 500 | -3 dB cutoff frequency for 1 m. |
| Propagation velocity | $V_{\%}$ | % of c | 50 - 90 | Signal speed in the cable. |
| Shielding | $S_{dB}$ | dB | 0 - 100 | Electromagnetic shielding effectiveness. |
The calculation uses the same formulas as for preset cables (sections 1.1 to 1.5).
The EMI environment parameter applies in the same way.
Use cases:
to visualize the impact of reflections)
After cable simulation (or import of an oscilloscope capture), the analyzer calculates
a set of quantitative metrics in the full_analysis() function.
Definition: The Cell Error Rate (CER) measures the proportion of BMC time cells
that were corrupted during transmission. It is the primary quality metric of the
S/PDIF link.
Cross-correlation alignment method:
Before comparing the reference cells and the decoded cells of the degraded signal,
they must be aligned in time. The analyzer uses cross-correlation:
discrimination:
$r'[n] = 2 \times r[n] - 1$, $c'[n] = 2 \times c[n] - 1$
cells of the reference ($r'$):
$\text{corr}[k] = \sum_{n=0}^{255} r'[n+k] \cdot c'[n]$
$\text{offset} = \arg\max_k\ \text{corr}[k]$
CER formula:
$CER = \frac{E}{N}$
where:
The CER is displayed as a percentage in the interface: $CER_{\%} = CER \times 100$.
Physical interpretation:
detection). Any cell error can potentially corrupt an audio sample.
unpleasant audible "click".
second. A CER of 0.01% represents ~565 erroneous cells per second.
Typical ranges:
| Quality | CER | Audible consequence |
|---|---|---|
| Perfect | $0\%$ | No errors, bit-perfect transmission |
| Good | $< 0.001\%$ | Extremely rare errors, inaudible |
| Poor | $0.001 - 0.01\%$ | Occasional clicks possible |
| Bad | $0.01 - 1\%$ | Frequent clicks, audible distortion |
| Corrupted | $> 1\%$ | Unusable signal, loss of synchronization |
Definition: Jitter measures the temporal deviation of signal transitions from an
ideal time grid. It reflects the uncertainty in the switching instants and directly
affects the quality of digital-to-analog conversion at the end of the chain.
Calculation method:
Step 1 - Zero-crossing detection by linear interpolation:
For each detected transition (sign change around the threshold $V_{thr}$), the exact
instant is linearly interpolated between two consecutive samples:
$t_{cross} = t[i] + \frac{-\left(v[i] - V_{thr}\right)}{v[i+1] - v[i]} \times \Delta t$
where:
Step 2 - Calculation of intervals between consecutive transitions:
$\Delta T[k] = t_{cross}[k+1] - t_{cross}[k]$
Step 3 - Calculation of deviation from the ideal grid:
Each interval should be an integer multiple of the cell period $T_{cell}$:
$\delta[k] = \Delta T[k] - \text{round}\left(\frac{\Delta T[k]}{T_{cell}}\right) \times T_{cell}$
The $\text{round}$ function determines the nearest ideal cell count (minimum 1), then
$\delta[k]$ is the residual deviation converted to nanoseconds:
$\delta_{ns}[k] = \delta[k] \times 10^9$
RMS jitter formula:
$J_{RMS} = \sqrt{\frac{1}{K}\sum_{k=0}^{K-1} \delta_{ns}[k]^2}$ (in ns)
This is the root mean square of all deviations. RMS jitter is the most commonly used
metric because it gives the statistical weight of the entire distribution.
Peak-to-peak jitter formula:
$J_{PP} = \max(\delta_{ns}) - \min(\delta_{ns})$ (in ns)
This is the total range of deviations, including extreme values.
Physical interpretation:
the jitter of the reconstruction clock translates directly into phase modulation noise
(ref. AES-12id-2020, "AES information document for digital audio measurements -
Jitter performance specifications").
An RMS jitter of 1 ns represents an uncertainty of 0.56% of the cell period.
errors even when RMS jitter is low.
Error), not the DAC output jitter. Real S/PDIF receivers include a PLL
that filters part of the high-frequency jitter. The jitter measured here is therefore an
upper bound on the jitter actually transmitted to the converter.
Jitter audibility and the role of the PLL:
Interface jitter (measured on the cable) is not directly equivalent to the DAC clock jitter.
The receiver PLL (Phase-Locked Loop) acts as a low-pass filter for jitter, strongly
attenuating components at audio frequencies:
| Stage | Typical jitter | Mechanism |
|---|---|---|
| S/PDIF interface (cable) | 1 - 50 ns | Interface jitter measured by the analyzer |
| Receiver PLL output | 100 - 500 ps | 40-80 dB attenuation at audio frequencies |
| ASRC (asynchronous conversion) | ~20 ps | Clock independent of the interface (20 ps typ, CS8421/AK4137) |
| Word Clock (external sync) | ~5 ps | DAC clock driven by a dedicated master clock generator |
PLL filtering model used by the simulator
The simulator assumes that ISI jitter has a white spectral density over [0 ; F_cell], with F_cell = 5.644 MHz (BMC cell rate at 44.1 kHz). The PLL is modelled as a Butterworth low-pass filter of order n. The fraction of jitter reaching the converter is computed via the equivalent noise bandwidth of the filter:
$$B_n = f_c \cdot \frac{\pi}{2n} \cdot \frac{1}{\sin\!\left(\frac{\pi}{2n}\right)}$$
$$J_{DAC} = \sqrt{\left(J_{ISI} \cdot \sqrt{\frac{B_n}{F_{cell}}}\right)^2 + J_{floor}^2}$$
where $f_c$ is the PLL corner frequency, $n$ its order, and $J_{floor}$ the intrinsic floor of the local clock (receiver's own jitter, independent of the cable).
PLL presets:
| Preset | $f_c$ (Hz) | Order | $B_n$ (Hz) | Floor (ps) | Interpretation |
|---|---|---|---|---|---|
| CS8412 | 25 000 | 2 | ~28 000 | 200 | Wide-band PLL 1990 -- passes ~7% of ISI jitter |
| VCXO | 200 | 2 | ~222 | 80 | VCXO slave -- ratio ~0.6% |
| WM8805 | 90 | 3 | ~94 | 100 | Narrow digital PLL -- ratio ~0.4% (WM8805 datasheet) |
| ASRC | 1 | 4 | ~1 | 20 | Full decoupling -- 20 ps typ (CS8421/AK4137 datasheets) |
| Word Clock | 3 | 4 | ~3 | 5 | Dedicated master generator (Mutec, Antelope...) |
The ratio $\sqrt{B_n / F_{cell}}$ quantifies attenuation of ISI jitter. For CS8412, ratio = 0.070: 7% of cable jitter reaches the DAC. For ASRC and Word Clock, ratio < 0.001: cable jitter is negligible and the result is governed solely by $J_{floor}$.
Word Clock -- typical setup: a dedicated master clock generator (Mutec MC-3+, Antelope, Aardsync II) drives the DAC clock via BNC at the sample rate (44.1 or 48 kHz). S/PDIF interface jitter is irrelevant since the D/A clock comes from the generator, not the cable. The 5 ps floor corresponds to a typical pro generator (Mutec MC-3+USB: ~3 ps, Antelope Isochrone: ~1 ps, Aardsync II: ~15 ps). A budget generator will typically measure 20-50 ps.
The signal-to-noise ratio degradation caused by jitter follows the formula (Dunn 1997):
$SNR_{jitter} = -20 \log_{10}(2\pi \cdot f_{signal} \cdot J_{RMS})$ (in dB)
where $f_{signal}$ is the audio signal frequency (Hz) and $J_{RMS}$ the RMS jitter (in seconds).
Examples:
| Interface RMS jitter | SNR @ 20 kHz | DAC jitter after CS8412 | Audible? |
|---|---|---|---|
| 100 ps | 104 dB | < 10 ps | No |
| 1 ns | 84 dB | ~90 ps | No |
| 10 ns | 64 dB | ~950 ps | No (< 1 ns, far below threshold) |
| 50 ns | 50 dB | ~4.7 ns | No with any modern PLL |
| 200 ns | 40 dB | ~19 ns | Marginal on CS8412 (ref. Benjamin & Gannon 1998) |
Empirical audibility thresholds -- from controlled listening tests:
(Benjamin & Gannon, AES paper 4826, 1998: https://aes2.org/publications/elibrary-page/?id=8354)
inaudible in practice with real music (Benjamin & Gannon 1998)
(Benjamin & Gannon 1998: 20 ns RMS). In practice, Ashihara et al. measured a threshold of 300+ ns RMS with
music for trained professional listeners (Ashihara et al., *Acoustical Science and Technology*,
2005: https://doi.org/10.1250/ast.26.50)
Typical jitter of modern DACs:
| DAC | Clock jitter (RMS) |
|---|---|
| Benchmark DAC3 | ~30 ps |
| Meridian Ultra DAC | ~20 ps |
| RME ADI-2 DAC | ~80-200 ps |
| Lynx Hilo | ~50-100 ps |
| Budget USB DAC (2010+) | ~500-2000 ps |
| Vintage CD player (1990s) | ~2000-10000 ps |
References:
Distribution: The analyzer also produces a 50-bin histogram of the distribution
of $\delta_{ns}[k]$. A healthy signal shows a narrow Gaussian distribution centered
on zero. A degraded signal shows broadening, asymmetry, or secondary peaks.
Typical ranges:
| Quality | $J_{RMS}$ | $J_{PP}$ | SNR @ 20 kHz | Consequence |
|---|---|---|---|---|
| Excellent | < 0.5 ns | < 2 ns | > 90 dB | Transparent, inaudible on any receiver |
| Good | 0.5 - 10 ns | 2 - 40 ns | 64 - 90 dB | Inaudible: PLL brings DAC jitter below 1 ns |
| Poor | 10 - 50 ns | 40 - 200 ns | 50 - 64 dB | Marginal only on CS8412 with pure tones |
| Bad | > 50 ns | > 200 ns | < 50 dB | Potentially audible on CS8412 (ref. Benjamin & Gannon 1998) |
Definition: These metrics measure the voltage levels of the degraded analog signal,
enabling evaluation of signal attenuation and symmetry.
Method: The signal is separated into two populations using the decision threshold:
$V_{thr} = \frac{\max(v) + \min(v)}{2}$
Formulas:
Mean high voltage:
$V_{high} = \frac{1}{|H|} \sum_{v[n] \in H} v[n]$
where $H = \{v[n]\ |\ v[n] > V_{thr}\}$ is the set of high-level samples.
Mean low voltage:
$V_{low} = \frac{1}{|L|} \sum_{v[n] \in L} v[n]$
where $L = \{v[n]\ |\ v[n] \leq V_{thr}\}$ is the set of low-level samples.
Peak-to-peak amplitude:
$V_{PP} = \max(v) - \min(v)$
Physical interpretation:
and $V_{low} \approx 0$ V in the model (the signal oscillates between 0 and $V_{PP} = 0.5$ V).
$V_{thr}$. A $V_{PP}$ below 0.2 V is generally problematic.
nonlinear distortion or a DC offset.
Typical ranges (for a reference signal at 0.5 V P-P):
| Quality | $V_{PP}$ | Interpretation |
|---|---|---|
| Nominal | 0.48 - 0.52 V | Signal compliant with the standard |
| Attenuated | 0.30 - 0.48 V | Acceptable loss, good margin |
| Weak | 0.20 - 0.30 V | Reduced margin, noise-sensitive |
| Critical | < 0.20 V | Risk of loss of synchronization |
Definition: RMS noise measures the dispersion of voltage samples around their
mean level (high or low). It reflects the amount of noise superimposed on the signal,
whether from EMI interference, cable thermal noise, or reflections.
Formulas:
RMS noise at the high level:
$\sigma_{high} = \sqrt{\frac{1}{|H|} \sum_{v[n] \in H} \left(v[n] - V_{high}\right)^2}$
RMS noise at the low level:
$\sigma_{low} = \sqrt{\frac{1}{|L|} \sum_{v[n] \in L} \left(v[n] - V_{low}\right)^2}$
where $V_{high}$ and $V_{low}$ are the mean voltages defined in the previous section.
Physical interpretation:
large relative to the gap between $V_{high}$ and $V_{low}$, the decoder can no longer
reliably distinguish the two levels.
$SNR_{signal} \approx 20 \times \log_{10}\left(\frac{V_{PP}}{2 \times \max(\sigma_{high}, \sigma_{low})}\right)$
A large asymmetry indicates a problem specific to one level (for example, reflection
bounces preferentially affecting rising transitions).
Typical ranges:
| Quality | $\sigma$ (V) | Noise/amplitude ratio | Effect |
|---|---|---|---|
| Excellent | < 0.001 | < 0.2 % | Clean logic levels |
| Good | 0.001 - 0.005 | 0.2 - 1 % | Low noise, harmless |
| Poor | 0.005 - 0.02 | 1 - 4 % | Induced jitter, visible |
| Bad | > 0.02 | > 4 % | Errors likely |
Definition: Each S/PDIF sub-frame (IEC 60958-1 Β§6.2.5) contains a parity bit
(bit 31, i.e., the last bit of the 32-cell sub-frame). This bit is calculated so
that the parity of all bits 4 to 31 (audio + status + parity) is even. It is the only
error detection mechanism provided by the standard - there is no error correction (FEC).
Verification formula:
$P_{check} = \left(\sum_{i=0}^{26} b[i]\right) \bmod 2$
The encoded parity bit is $b[27]$. If $P_{check} \neq b[27]$, a parity error is counted.
Error counter:
$N_{perr} = \sum_{sf} \mathbb{1}\left[b_{sf}[27] \neq \left(\sum_{i=0}^{26} b_{sf}[i]\right) \bmod 2\right]$
where the sum is over all decoded sub-frames.
Physical interpretation:
the same sub-frame. Errors on an even number of bits go undetected.
significantly degraded, since at least one bit error per affected sub-frame is required.
errors, because parity does not detect all errors.
Typical ranges:
| Quality | Parity errors | Interpretation |
|---|---|---|
| Perfect | 0 | No errors detected |
| Acceptable | 1 - 2 | Rare errors, transient conditions possible |
| Bad | > 2 | Significant link degradation |
Definition: The eye diagram is a 2D representation that superimposes all segments
of the signal over a duration of 2 cell periods (2 UI - Unit Intervals). It is the most
powerful visual diagnostic tool for signal integrity.
Construction method:
Step 1 - Calculation of the number of samples per cell:
$SPC = \text{round}\left(\frac{T_{cell}}{\Delta t}\right)$
where $T_{cell}$ is the cell period and $\Delta t$ the sampling step.
Step 2 - Windowing: the observation window is $W = 2 \times SPC$ samples
(2 cell periods = 2 UI).
Step 3 - Segment extraction: the signal is divided into segments of width $W$, offset
by a step of $SPC$ (1 cell). Each segment is a "pass" through the eye diagram:
$\text{seg}_k = v[k \cdot SPC\ :\ k \cdot SPC + W]$
for $k = 0, 1, 2, ...$, as long as the segment fits within the signal.
Step 4 - The horizontal axis is normalized between 0 and 2 UI:
$x = \text{linspace}(0,\ 2,\ W)$ repeated for each segment.
Step 5 - Construction of a 2D histogram (200 x 120 bins):
$H[i, j] = \text{count}(x \in [x_i, x_{i+1}],\ y \in [y_j, y_{j+1}])$
with:
The 2D histogram is visualized as a heatmap (color scale "Hot").
Physical interpretation:
The eye "opening" indicates the margin available to the decoder:
the eye. The larger it is, the greater the noise margin.
The larger it is, the greater the jitter margin.
| Diagram appearance | Probable cause |
|---|---|
| Wide open eye | Clean signal, good integrity |
| Vertically narrowed eye | Excessive attenuation, high noise |
| Horizontally narrowed eye | High jitter, insufficient bandwidth |
| Closed eye | Unusable signal, too many cumulative degradations |
| Multiple traces/echoes | Impedance mismatch reflections |
| Thickening of traces | EMI noise superimposed on the signal |
Rendering parameters:
| Parameter | Value | Meaning |
|---|---|---|
| X width | 2 UI | Two cell periods |
| X resolution | 200 bins | Temporal precision of the histogram |
| Y resolution | 120 bins | Voltage precision of the histogram |
| Color scale | Hot | Pass density (black = rare, white = frequent) |
Definition: The waveform comparison chart superimposes the signals from both cables
with the S/PDIF reference on three synchronized panels, allowing visualization of
differences between cables at different scales.
3-panel structure:
| Panel | Title | Content | Resolution |
|---|---|---|---|
| 1 (top) | Global view | Full signal: reference + cable A + cable B | Downsampled (max 6000 points) |
| 2 (middle) | Zoom - zone of greatest difference | Automatic zoom on the region where the gap between cables is maximum | Full resolution (~3000 samples) |
| 3 (bottom) | Difference signal | Error: $v_{cable} - v_{ref}$ for each cable | Downsampled |
Automatic zoom zone detection:
The algorithm identifies the most "interesting" region of the signal:
$D[n] = |v_A[n] - v_{ref}[n]| + |v_B[n] - v_{ref}[n]|$
$D_{smooth}[n] = \frac{1}{W} \sum_{k=0}^{W-1} D[n+k]$
$n_{center} = \arg\max_n D_{smooth}[n]$
Why 3 panels? The global view (panel 1) is downsampled for performance reasons,
which can mask fine differences between signals. The zoom panel shows these differences
at full resolution over the most relevant zone. The difference panel visually amplifies
gaps by isolating them from the carrier signal.
Synchronization: The three panels share the same X axis (time). Zooming on one
panel automatically zooms the other two, enabling correlation of observations between views.
The analyzer generates a dynamic textual interpretation below each chart, based
on the calculated metrics. These interpretations help understand what the charts show
without prior expertise in signal integrity.
Eye diagram - interpretation based on CER, eye opening, and noise:
The vertical eye opening is estimated as:
$O_{eye} = (V_{high} - V_{low}) - 6 \times \max(\sigma_{high}, \sigma_{low})$
The factor 6 (3 sigma on each side) corresponds to the visual closure threshold.
| Condition | Interpretation |
|---|---|
| $CER = 0$, $O_{eye} > 0.35$ V, $\sigma < 5$ mV | Wide open eye - signal intact |
| $CER = 0$, $O_{eye} > 0.15$ V | Open but noisy eye - decodable without errors |
| $CER < 0.001$, $O_{eye} > 0$ | Narrowed eye - signal still decodable |
| $CER < 0.05$ | Partially closed eye - causes identified |
| $CER \geq 0.05$ | Closed eye - decoding compromised |
Degradation causes are identified automatically: reflections ($|\Gamma| > 0.05$),
EMI noise ($\sigma > 10$ mV), attenuation ($V_{PP} < 0.35$ V).
Overlay - interpretation based on amplitude loss:
| Condition | Interpretation |
|---|---|
| $\Delta V_{PP} < 0.02$ V and $CER = 0$ | Waveform nearly identical to the reference |
| $\Delta V_{PP} < 0.10$ V | Reduced amplitude, visible rounded edges |
| $\Delta V_{PP} \geq 0.10$ V | Heavily distorted signal, percentage loss displayed |
where $\Delta V_{PP} = |0.5 - V_{PP}|$.
Jitter - interpretation based on RMS jitter:
| Condition | Interpretation |
|---|---|
| $J_{RMS} < 0.5$ ns | Negligible jitter - transparent to the DAC |
| $0.5 \leq J_{RMS} < 2$ ns | Low jitter - no audible impact |
| $2 \leq J_{RMS} < 10$ ns | Notable jitter - subtle degradation possible on hi-fi |
| $J_{RMS} \geq 10$ ns | High jitter - audible loss of definition |
Each interpretation includes a link to the corresponding documentation section
for deeper understanding.
The analyzer assigns a synthetic verdict to each cable by combining CER and
RMS jitter. The thresholds are defined as follows:
| Verdict | Condition | Color |
|---|---|---|
| Signal intact | $CER = 0$ AND $J_{RMS} < 0.5$ ns | Green |
| Minor degradation | $CER < 0.001$ (0.1 %) AND $J_{RMS} < 2$ ns | Orange |
| Degraded signal | $CER < 0.01$ (1 %) | Red |
| Corrupted signal | $CER \geq 0.01$ (1 %) | Red |
Conditions are evaluated from top to bottom; the first matching verdict is retained.
Note: This verdict is a useful simplification for a quick assessment. For a
thorough analysis, all individual metrics should be examined, along with the eye diagram.
| Constant | Value | Unit | Description |
|---|---|---|---|
SPDIF_VPP | 0.5 | V | Nominal S/PDIF coaxial peak-to-peak amplitude |
OVS | 32 | - | Oversampling factor for the analog waveform |
c | 3e8 | m/s | Speed of light (used for reflections) |
Before cable simulation, binary BMC cells are converted to an analog waveform
by the cells_to_analog() function:
by $V_{PP} = 0.5$ V.
evaluated over $[-3\sigma, +3\sigma]$
with slightly rounded edges.
The analyzer can import oscilloscope captures in CSV format. Below is the specification of the expected format.
# Comment (optional, lines starting with #)
time_s,voltage_V
1.000000e-07,2.50000000e-02
2.000000e-07,4.80000000e-01
3.000000e-07,4.75000000e-01
...
| Rule | Description |
|---|---|
| Separator | Comma ,, semicolon ;, or tab |
| Column 1 | Time (seconds, milliseconds, or microseconds - auto-detected) |
| Column 2 | Voltage (Volts) |
| Header | Optional - non-numeric lines are ignored |
| Comments | Lines starting with # (ignored) |
| Encoding | UTF-8 |
| Extensions | .csv or .txt |
The analyzer automatically detects the time unit based on the range of values:
| Time column range | Detected unit | Conversion |
|---|---|---|
| > 1 | Microseconds ($\mu s$) | $\times 10^{-6}$ |
| > 0.001 | Milliseconds (ms) | $\times 10^{-3}$ |
| $\leq$ 0.001 | Seconds (s) | None |
For a reliable S/PDIF signal analysis:
| Parameter | Recommended | Minimum |
|---|---|---|
| Sampling rate | > 50 MSa/s | 20 MSa/s |
| Capture duration | > 100 $\mu s$ | 10 $\mu s$ |
| Number of points | > 5000 | 500 |
| Vertical resolution | 12 bits | 8 bits |
Justification: The S/PDIF signal at 44.1 kHz has a cell frequency of ~5.6 MHz. According to the Nyquist theorem, sampling at at least 2x this frequency (11.2 MSa/s) is required, but in practice 50 MSa/s or more allows good zero-crossing interpolation for jitter measurement.
An example CSV file can be downloaded from the analyzer interface (button "Download example CSV"). It contains a reference S/PDIF signal (1 kHz sine wave, 44100 Hz, 16 bits) that has passed through a 3 m Belden 1505A cable.
The analyzer also accepts captures in WAV format (8/16 bits, mono or stereo). The signal is automatically normalized between 0 and 0.5 V to match the S/PDIF scale. This format is useful for USB oscilloscopes that export directly to WAV.
The results below serve as validation of the model. They are generated with a
1 kHz sinusoidal signal, 44100 Hz, 16 bits, 8 frames (1024 cells), fixed random seed (42).
| Cable | Effective BW | Att. | SNR | $\Gamma$ | CER | Jitter RMS | $V_{PP}$ |
|---|---|---|---|---|---|---|---|
| Belden 1694A | 229 MHz | 0.028 dB | 85.1 dB | 0.000 | 0 % | 0.001 ns | 0.499 V |
| Belden 1505A | 184 MHz | 0.033 dB | 75.1 dB | 0.000 | 0 % | 0.003 ns | 0.499 V |
| Canare L-5CFB | 202 MHz | 0.025 dB | 80.1 dB | 0.000 | 0 % | 0.001 ns | 0.499 V |
| Mogami 2964 | 73 MHz | 0.052 dB | 80.1 dB | 0.000 | 0 % | 0.063 ns | 0.497 V |
| Generic 75 ohm coax. | 55 MHz | 0.080 dB | 45.1 dB | 0.000 | 0 % | 0.138 ns | 0.512 V |
| Generic RCA | 23 MHz | 0.162 dB | 20.1 dB | -0.250 | 0 % | 1.687 ns | 0.575 V |
Observations:
its reduced bandwidth (80 MHz vs. 200+ MHz), which rounds the rising edges.
the extremes of the voltage distribution.
| Length | Effective BW | Att. | SNR | CER | Jitter RMS |
|---|---|---|---|---|---|
| 1.5 m | 22.9 MHz | 0.16 dB | 20.1 dB | 0 % | 1.7 ns |
| 5 m | 19.6 MHz | 0.54 dB | 20.0 dB | 0 % | 1.7 ns |
| 10 m | 16.7 MHz | 1.08 dB | 20.0 dB | 0 % | 1.9 ns |
| 20 m | 13.4 MHz | 2.16 dB | 20.0 dB | 40.4 % | 14.8 ns |
Errors appear from ~15-20 m, when the effective bandwidth
($BW_{eff} \approx 13$ MHz) gets too close to the cell frequency (5.6 MHz), leaving
insufficient margin for the decoder to distinguish cells after adding noise.
| Environment | $P_{EMI}$ | Effective SNR | Jitter RMS | $V_{PP}$ |
|---|---|---|---|---|
| Studio | 0 dB | 82.2 dB | 0.001 ns | 0.493 V |
| Hi-Fi | 10 dB | 72.2 dB | 0.005 ns | 0.494 V |
| Industrial | 25 dB | 57.2 dB | 0.022 ns | 0.497 V |
Even in an industrial environment, a 10 m Belden 1694A maintains negligible jitter
(0.022 ns) and 0% CER. Its 90 dB shielding easily absorbs the industrial penalty.
The simulator does not model connectors. This appendix presents data published by
manufacturers (Amphenol, Neutrik, Kings Electronics) and standards (IEC 61169-8).
> Note: the values below come from manufacturer datasheets and IEC standards. No
> independent measurements were made within the scope of this project.
A connector not specified for RF: designed for analog audio in the 1940s, adopted by
convention for consumer S/PDIF coaxial. No impedance or VSWR specification is published.
| Parameter | Typical value | Source |
|---|---|---|
| Impedance | 40 β 70 ohm (uncontrolled geometry) | Empirical estimates β no standard |
| Contact resistance | 5 β 30 mΞ© (new) / 50 β 500 mΞ© (oxidized) | Various manufacturer datasheets |
| VSWR at 5.6 MHz | Unspecified; estimated 1.3 β 2.0 | No IEC standard |
| Reflection coefficient Ξ | 0.10 β 0.33 (Zc = 50-60 ohm on 75 ohm line) | Calculation: Ξ = (Z-75)/(Z+75) |
| Mating cycles | 500 β 2000 (varies by quality) | Various manufacturers |
Effect on signal: each RCA connector pair introduces a localized impedance
discontinuity. On short cables (< 1 m), this reflection arrives during the edge transition
and decays before the next symbol. Beyond 3β5 m, echoes can accumulate and add to the
cable's own reflections.
RF-specified connector conforming to IEC 61169-8. Designed for digital video/audio
systems (controlled 75 ohm impedance).
| Parameter | Value | Source |
|---|---|---|
| Impedance | 75 ohm Β± 5% | IEC 61169-8, Amphenol RF |
| VSWR at 10 MHz | < 1.05 | Amphenol 31-5430, Kings 2014 |
| VSWR at 1 GHz | < 1.3 | Amphenol RF (75 ohm series) |
| Insertion loss at 10 MHz | < 0.05 dB | Kings Electronics BNC-75 |
| Contact resistance (center) | < 5 mΞ© | IEC 61169-8 |
| Contact resistance (shell) | < 3 mΞ© | IEC 61169-8 |
| Mating cycles | > 500 | IEC 61169-8 |
Effective Ξ: < 0.025 at 5.6 MHz (VSWR 1.05), a reflection 13Γ smaller than a typical
RCA connector. For all practical cable lengths, a BNC connector's impact on the S/PDIF
signal is physically negligible.
3-pin balanced connector conforming to IEC 61076-2-103 (Neutrik, Amphenol).
| Parameter | Value | Source |
|---|---|---|
| Contact resistance | < 10 mΞ© per pin | Neutrik NC3MXX/NC3FXX datasheet |
| Mating cycles | > 5000 | Neutrik |
| Pin-to-shell isolation | > 500 MΞ© | Neutrik |
| Impedance | Not controlled (low-frequency balanced connector) | β |
> For AES/EBU, impedance is controlled by the cable (110 ohm balanced). The XLR geometry
> is not RF-optimized, but the connector's electrical length (< 30 mm β 0.6 ns) is
> negligible at 5.6 MHz (Ξ»/100 at 10 MHz).
| Parameter | Value | Source |
|---|---|---|
| EIAJ RC-5720 plastic connector | Insertion loss < 2 dB | EIAJ RC-5720 |
| ST bayonet glass connector | Insertion loss < 0.5 dB, return loss > 25 dB | IEC 61754-2 |
| Jitter from optical connector | Negligible (no electrical reflection) | β |
| Connector | Localized Ξ | Reflection (% amplitude) | S/PDIF impact |
|---|---|---|---|
| BNC 75 ohm | < 0.025 | < 2.5% | Negligible |
| XLR (AES/EBU) | < 0.05 | < 5% | Negligible |
| RCA new (Zβ60 ohm) | ~0.11 | ~11% | Low (< 1 m) / Non-negligible (> 5 m) |
| RCA oxidized (partial contact) | Variable | Impulsive | Errors possible at any length |
| Toslink plastic | 0 (optical) | 0% | Optical attenuation only |
Modeling an RCA connector would require knowing its effective impedance, which varies with
cable geometry, plug diameter, and mating quality β information not available without
vector network analyzer (VNA) measurements. For BNC and XLR connectors, the impact is
so small at 5.6 MHz that modeling would add no useful information.
The simulator is a pedagogical tool. It does not replace a real measurement.
Main simplifications:
| Aspect | Model | Reality |
|---|---|---|
| EMI noise | Additive white Gaussian noise | Correlated, impulsive, spectrally non-flat noise |
| Reflections | Constant Gamma, frequency-independent | $\Gamma(f)$ varies with frequency, especially > 100 MHz |
| Attenuation | Linear interpolation 5-10 MHz | $\sqrt{f}$ law + dielectric losses |
| Bandwidth | 1st-order RC filter | Higher-order filter, non-ideal response |
| Receiver | Ideal comparator, fixed threshold | PLL with bandwidth, hysteresis, AGC |
| Connectors | Not modeled | Each connector adds a reflection and losses |
| Crosstalk | Not modeled | Coupling between adjacent cables (relevant in installations) |
| ISI jitter | Statistical model $\sqrt{L}/BW$ | Depends on data pattern, exact cable impulse response |
The model was compared to published data to verify its consistency with real measurements.
| Distance | Simul. RMS jitter | Simul. P-P jitter | Lit. P-P jitter | Simul. CER | Consistent? |
|---|---|---|---|---|---|
| 1.5 m | < 0.5 ns | < 2 ns | < 2 ns | 0% | Yes |
| 10 m | ~1 ns | ~5 ns | 5 - 12 ns | 0% | Yes |
| 50 m | ~1.5 ns | ~8 ns | 8 - 15 ns | 0% | Yes |
| 100 m | ~3 ns | ~16 ns | 15 - 35 ns | 0% | Yes |
| 200 m | ~4.3 ns | ~28 ns | 20 - 50 ns | 0% | Yes |
| 250 m | ~36.7 ns | ~192 ns | Failure | 33.8% | Yes (cliff effect) |
| 300 m | ~43.4 ns | ~193 ns | Failure | 38.6% | Yes |
| Cable | Max distance (sim., CER > 0) | Max distance (lit./specs) | Consistent? |
|---|---|---|---|
| Belden 1694A (75 ohm) | ~230-250 m | 200-300 m (SDI broadcast) | Yes |
| Canare DA206 (110 ohm AES/EBU) | > 300 m | 360 m (Canare specs) | Yes |
| Canare DA202 (110 ohm AES/EBU) | ~150-200 m | 180 m (Canare specs) | Yes |
| Generic RCA cable (45 ohm) | ~1-3 m | 1 m max recommended (impedance mismatch + limited bandwidth) | Yes |
This section puts common beliefs about digital cables into perspective and evaluates what
transmission line physics can confirm or refute.
The S/PDIF protocol transmits bits, not a continuous voltage. The receiver compares the
signal to a threshold (200 mV P-P per IEC 60958-3): the bit is either correctly decoded or
in error. There is no progressive degradation of digital audio content due to a
cable - there is either correct transmission or errors.
Direct consequence: two cables both transmitting CER = 0 deliver exactly the
same bits to the DAC. There is no possible audible difference between them.
The length above which impedance matching becomes important depends on fs
(source: transmission line calculations, consistent with IEC 60958-3 and field practice):
| Sample rate | Critical distance (approx.) |
|---|---|
| 44.1 kHz | 13 m |
| 48 kHz | 12 m |
| 96 kHz | 6 m |
| 192 kHz | 3 m |
Above these lengths, cable quality (impedance, shielding) begins to matter.
Below them, all proper 75 ohm cables are physically equivalent.
Even if a cable introduces jitter at the transmitter output, the S/PDIF receiver has
a phase-locked loop (PLL) that re-synchronizes the signal to a local clock.
$SNR = -20 \log_{10}(2\pi \times 20000 \times 10^{-9}) \approx 78\ \text{dB}$
which is better than the dynamic range of a 13-bit recording
The physical effects identified in this simulator have a real impact under specific conditions:
| Condition | Real effect | Typical distance |
|---|---|---|
| Impedance mismatch (45 ohm RCA cable on 75 ohm port) | Reflections, possible CER | From 10-15 m |
| Excessive length | ISI jitter, CER | > 100 m (75 ohm coax), > 1 m (generic RCA, practical recommendation) |
| Strong EMI environment (dimmers, motors) | Additive noise | All lengths without shielding |
| Bad connectors (oxidation, partial contact) | Series resistance, localized reflection | Immediate effect |
For cables < 5 m with matched impedance (75 ohm):
The audiophile belief in "high-end digital cables" has been experimentally
refuted by numerous blind tests (ABX tests). It confuses the properties of analog cables
(which affect the signal) with digital cables (which affect binary integrity).
References:
| Reference | Title | Availability |
|---|---|---|
| IEC 60958-1:2021 | Digital audio interface β Part 1: General (frame structure, BMC), 3rd ed. Geneva: IEC. | Paid β free equivalent: EBU Tech 3250-E |
| IEC 60958-3:2021 | Digital audio interface β Part 3: Consumer applications (S/PDIF coaxial), 4th ed. Geneva: IEC. | Paid β free equivalent: EBU Tech 3250-E |
| IEC 60958-4:2003 | Digital audio interface β Part 4: Professional applications (AES/EBU). Geneva: IEC. | Paid β free equivalent: EBU Tech 3250-E |
| AES3-1-2009 (r2024) | AES standard β Serial transmission format, Part 1: Audio content. AES, New York. | Paid β free equivalent: AES3-2003 below |
| AES3-2-2009 (r2024) | AES standard β Serial transmission format, Part 2: Electrical and physical. AES, New York. | Paid β free equivalent: MIL-STD-188-124B |
| AES-12id-2020 | AES information document β Jitter performance specifications. AES, New York. | Paid β free equivalent: Adams, Audio Critic #21 |
| IEC 61000-4-3:2020 | Electromagnetic compatibility β Radiated field immunity tests, 4th ed. Geneva: IEC. | Paid (webstore.iec.ch) |
| EBU Tech 3250-E (2004) | Specification of the digital audio interface (AES/EBU interface), 3rd ed. EBU. Covers IEC 60958-1, 3 and 4 + AES3 β complete electrical parameters. | Free: tech.ebu.ch |
| AES3-2003 | AES standard β Serial transmission format for two-channel digital audio. Revision of AES3-1992. Identical structure to the 2009 version. | Free: iczhiku.com |
| MIL-STD-188-124B | Grounding, Bonding, and Shielding. Shield termination (Β§5.1.2.1.1.3), max resistance 1 mΞ©, equipotential plane from 300 kHz. Covers the electrical requirements of AES3-2. | Free: everyspec.com |
| Reference | Title | ISBN |
|---|---|---|
| Pozar, D.M. (2011) | *Microwave Engineering*, 4th ed. John Wiley & Sons. | 978-0-470-63155-3 |
| Ott, H.W. (2009) | *Electromagnetic Compatibility Engineering*. John Wiley & Sons. | 978-0-470-18930-6 |
| Reference | Title | Link |
|---|---|---|
| Adams, R.W. (1994). *The Audio Critic*, No. 21 | "Clock Jitter, D/A Converters, and Sample Rate Conversion." Analysis of DAC sensitivity to jitter according to topology (multibit, 1-bit, ASRC). | biline.ca |
| Dunn, J. (1992). AES Preprint 3361 | "Jitter: Specification and Assessment in Digital Audio Equipment." 93rd AES Convention, San Francisco. | aes2.org |
| Dunn, J. (1994). JAES Vol. 42, No. 5 | "Jitter and Digital Audio Performance Measurements." *Journal of the Audio Engineering Society*, Vol. 42, No. 5. | aes2.org |
| Stuart, J.R. (2004). JAES Vol. 52, No. 3 | "Coding for High-Resolution Audio Systems." *JAES*, Vol. 52, No. 3, pp. 117β144. | aes2.org |
| Reference | Title | Link |
|---|---|---|
| Siau, J. & Burdick, A.H. β Benchmark Media Systems | "Jitter and Its Effects" | benchmarkmedia.com |
| Cable | Source | Link |
|---|---|---|
| Belden 1694A | Blue Jeans Cable (datasheet) | bluejeanscable.com |
| Belden 1505A | Blue Jeans Cable (datasheet) | bluejeanscable.com |
| Belden 1800F | Belden official catalog | catalog.belden.com |
| Canare L-5CFB | CS1.net (Canare datasheet) | cs1.net |
| Canare DA206 / DA202 | Canare Co. Ltd. | canare.co.jp |
| Mogami 2964 | Redco Audio | redco.com |