electronics engineering
Course handbook · Fifth year
Electromagnetic Compatibility
Electromagnetic compatibility: interference, coupling paths, shielding, grounding and EMC standards.
- 8Topics
- 0Solved exercises
- 18Formula sheet
Free handbook generated from the lessons of the site and updated often, every time a lesson or an exercise changes: the latest version is always at www.electronics-engineering.com/handbook/electromagnetic-compatibility. Links work in the PDF too.
1Introduction, units and standards
An electronic device is electromagnetically compatible if it works correctly in its electromagnetic environment without introducing intolerable disturbances for others. These are two requirements: not disturbing (limiting emissions) and not being disturbed (having sufficient immunity). In this lesson we look at the source-path-victim model and the four coupling mechanisms, the decibel units used in measurements with the proof of the conversion between dBµV and dBm, and the framework of standards.
Source, path, victim
Every compatibility problem has three elements: a source of disturbance (a clock, a switching power supply, a motor, a radio transmitter, an electrostatic discharge), a victim (a receiver, a sensor amplifier, a logic input) and a path connecting them. To solve it, it is enough to act on one of the three: reduce the source, interrupt the path or make the victim less sensitive. Acting on the source is usually the cheapest solution, because the intervention is at a single point instead of on all possible victims.

There are four paths:
- conduction through a common impedance: two circuits sharing a stretch of ground or supply; the current of one produces a drop that appears in the other;
- capacitive coupling (electric field): a parasitic capacitance between two nearby conductors, dominant when the source has high voltages and fast changes;
- inductive coupling (magnetic field): a mutual inductance between two loops, dominant when the source has large currents and fast changes;
- radiation: at large distance compared with the wavelength, electric and magnetic fields travel together as a wave (Electromagnetic Fields and Antennas lessons).
The first three are near-field and are analysed with lumped circuits (lesson on coupling); the last is far-field. The boundary is at about
: at 100 MHz about 48 cm.
Emissions and immunity are also divided into conducted (disturbances travel on cables, typically below 30 MHz, where cables are short compared with the wavelength and radiate little) and radiated (above 30 MHz).
The decibels of compatibility
Disturbances span many orders of magnitude and are measured in decibels relative to small references:
- voltages in dBµV:
; 1 mV is 60 dBµV; - electric fields in dBµV/m;
- currents in dBµA;
- powers in dBm, relative to 1 mW.
Theorem. On a 50 Ω impedance, power in dBm and voltage in dBµV are related by
![]()
Proof. Power is
. A voltage of 1 µV on 50 Ω gives
W
mW, i.e.
dBm. Since
and
grow in the same way, the difference stays constant for any voltage. ∎
Spectrum analysers, which have a 50 Ω input, display dBm; standards set limits in dBµV: the conversion is needed in every measurement.
Example. A disturbance of
dBm read on the analyser corresponds to
dBµV, i.e. about 224 µV.
To go from the voltage at the measuring antenna’s terminals to the field, the antenna factor
(in dB/m), provided by the manufacturer, is used:
, plus the cable losses.
Standards
In Europe the CE marking requires, among other things, compliance with the electromagnetic compatibility directive; in the United States the FCC rules apply. Technical standards set the limits and test methods:
- emissions: for multimedia and IT equipment the CISPR 32 standard (in Europe EN 55032) sets, for household equipment (class B), about 30 dBµV/m at 10 m between 30 and 230 MHz and 37 dBµV/m between 230 MHz and 1 GHz; for industrial equipment (class A) the limits are about 10 dB higher. For conducted emissions on the mains the limits apply between 150 kHz and 30 MHz;
- immunity: the IEC 61000-4 series defines the tests against electrostatic discharges, radiated fields, fast transients, surges and conducted disturbances (lesson on immunity).
Tests are carried out in accredited laboratories, in semi-anechoic chambers, but it pays to check compatibility from the design stage: a problem discovered at the final test costs weeks and a new revision of the printed circuit board. The following lessons show how to predict and control emissions: the spectrum of digital signals, coupling, shielding, radiation from loops and cables, printed circuit board design, filters and protection.
2Spectrum of digital signals
Almost all the emissions of a digital device arise from its signals: clocks, buses, drive lines of power switches. They are nearly rectangular waves, and their spectrum extends much higher than the clock frequency. How high depends above all on the rise times. In this lesson we look at the spectrum of a trapezoidal wave with the proof of its envelope, the role of the rise time with a numerical example, and how to reduce it without compromising operation.
The trapezoidal wave
A real clock is a periodic wave with period
, amplitude
, pulse duration
(measured at half amplitude) and rising and falling edges lasting
. Its harmonics, at frequencies
, have amplitudes (Fourier series, Mathematical Methods lesson on the Fourier transform)
![]()
Theorem. The envelope of the harmonics is flat up to
, decreases by 20 dB per decade between
and
, and by 40 dB per decade beyond
.
Proof. A trapezoid is obtained by convolving a rectangle of duration
with a rectangle of duration
(normalised to unit area): the convolution “rounds off” the edges of the first into ramps lasting
. The spectrum of a convolution is the product of the spectra, and the spectrum of a rectangle of duration
is a
function with
: hence the two factors of the formula. Each is about 1 for
and is bounded by
for
, because
. The first factor starts falling as
(20 dB per decade) from
, i.e. from
; the second adds another
from
. Beyond
the two factors together give
, i.e. 40 dB per decade. ∎

With a 50 % duty cycle the even harmonics vanish, because the first factor vanishes for integer
.
The role of rise time
The envelope shows the key point: above
the spectrum falls rapidly, and
depends only on the rise time, not on the clock frequency.
Example. A 100 MHz clock,
V,
ns,
ns:
MHz,
MHz. The first harmonic is
V. At 1 GHz the envelope has fallen by
dB up to
, plus
dB: in total about 34 dB below the flat level. With 0.1 ns edges, instead,
rises to 3.2 GHz and at 1 GHz the spectrum is only 24 dB below: 10 dB more emission, with the same clock.
This is why fast logic is “noisier” even when it runs slowly: a modern microcontroller has edges of a few hundred picoseconds even if its clock is at 16 MHz.
A practical rule relates rise time and bandwidth: the significant bandwidth of a digital signal is about
(with the rise time measured between 10 and 90 %), the same relation between rise time and bandwidth as for a first-order system (lesson on time response).
How to reduce the spectrum
- Slower edges: the outputs of microcontrollers and FPGAs often have a programmable slew rate; where speed is not needed, the minimum is chosen. A series resistor of a few tens of ohms at the output forms a low-pass filter with the line capacitance and slows the edges; it also matches the impedance and damps reflections (lesson on transmission lines).
- Spread-spectrum clocks: the clock frequency is slowly modulated by a few per cent, for example with a triangular wave. The energy of each harmonic spreads over a wider band and the measured peak, which is what standards limit, drops by 6-20 dB. Logic operation does not change, but timing margins do, and spreading must not be used where an exact frequency is needed (communications, converters).
- Fewer simultaneous transitions: outputs switching together demand current peaks from the supply, causing “ground bounce” and emissions; buses are designed with encodings or staggered delays.
- Differential signals such as LVDS: two wires with opposite currents produce fields that cancel at a distance (lesson on radiated emissions).
Reducing the spectrum at the source is the first step; what remains must be controlled along the path: printed circuit board design, filters and shields.
3Near-field coupling
At distances small compared with the wavelength, that is inside a device, on a printed circuit board or between nearby cables, disturbances travel along three routes that are studied with ordinary circuits: parasitic capacitance, mutual inductance and common impedance. In this lesson we derive the induced voltage in each case with a numerical example, and look at the remedies: distance, impedances, shields, twisted pairs and well-made grounds.
Capacitive coupling
Two nearby conductors form a capacitance
. If conductor 1 has a varying voltage
, the capacitance injects a current into conductor 2, which discharges it to ground through its impedance: the resistance
of the connected circuits and the capacitance to ground
.

Theorem. The voltage induced on conductor 2 is
![]()
which at low frequencies is about
and at high frequencies tends to
.
Proof. Kirchhoff’s current law at node 2: the current entering through
equals the current leaving to ground through
and
:
![]()
Multiplying by
and solving for
gives the formula. If
the denominator is about 1; if it is
the
terms cancel and the capacitive divider remains. ∎
The noise, in the most common region, grows with frequency (more precisely with edge speed), with the capacitance and with the victim’s impedance.
Example. A 10 MHz, 3.3 V clock runs close to the input of a high-impedance sensor,
kΩ, with
pF.
, so
V: a disaster for a sensor. With
Ω the noise drops to about 21 mV.
Remedies: increase the distance (the capacitance falls), reduce the victim’s impedance, place between the two conductors a trace or a grounded shield, which intercepts the electric field lines. A shield not connected to ground is useless: it charges to an intermediate voltage and passes the disturbance on.
Inductive coupling
A varying current
in conductor 1 produces a magnetic field, whose flux through the loop formed by the victim circuit induces a voltage
, or in time
(Physics 2 lesson on induction).
Theorem. A long straight wire and a coplanar rectangular loop of length
, with sides parallel to the wire at distances
and
, have mutual inductance
![]()
Proof. The wire’s field at distance
is
(Ampère’s law). The flux through the loop is the integral of
over its area, in strips of width
and length
:
![Rendered by QuickLaTeX.com \[ \Phi = \int_{d_1}^{d_2}\frac{\mu_0I}{2\pi r}\,l\,dr = \frac{\mu_0Il}{2\pi}\ln\frac{d_2}{d_1} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-e7d0af781592b7923c03ff23361f0441_l3.png)
and
. ∎
Example. A cable carrying a motor current runs close to a measurement circuit:
cm,
cm,
cm.
nH. If the current changes by 10 A in 100 ns (a power switch),
A/s and
V.
Remedies: increase the distance, and above all reduce the area of the victim loop, bringing the return wire close to the outgoing one. The twisted pair does even better: at every half twist the two wires swap places and the orientation of the small loop is reversed, so the voltages induced in successive loops have opposite signs and cancel. Against low-frequency magnetic fields (50 Hz, transformers) copper shields are of little use; high-permeability materials are needed (lesson on shielding).
Common impedance
If two circuits share a stretch of conductor, for example the ground return, the current of the first produces across that stretch a drop
that adds to the signals of the second. At digital signal frequencies inductance dominates: a thin trace has about 1 nH per millimetre.
Example. A logic output draws 50 mA in 1 ns through 5 nH of shared ground:
V. This is ground bounce, which can make a nearby logic input switch by mistake or corrupt a converter’s measurement.
Remedies: separate grounds joined at a single point for low-frequency circuits (star ground), a continuous ground plane for fast ones, which offers every current a very low-inductance return (lesson on printed circuit board design), and decoupling capacitors close to the components, which supply the current peaks locally.
Recognising the mechanism
To diagnose a problem it helps to ask which quantity of the source matters: if the noise scales with
and is sensitive to the victim’s impedance, it is capacitive; if it scales with
and depends on loop area, it is inductive; if it appears only when another circuit draws current, it is a common impedance. The simplest test: change the victim’s impedance. If the noise falls when the impedance is lowered it is capacitive; if it stays about the same it is inductive, because the induced voltage is a source in series with the loop, which depends on the area and not on the impedance.
4Shielding
A shield is a conductive enclosure separating the source from the victim: a device’s metal case, a cable’s braid, a foil over a sensitive circuit. It works in two ways, reflecting the wave and absorbing it, and the calculations show that even a very thin foil would suffice for most fields. The real problem is apertures: slots, seams and cables passing through the shield. In this lesson we look at shielding effectiveness, absorption and reflection with their proofs and examples, the difficult case of low-frequency magnetic fields, and apertures.
Shielding effectiveness
Shielding effectiveness is the ratio, in decibels, between the field without the shield and with it:
![]()
According to Schelkunoff’s theory it splits into three terms:
, reflection, absorption and a correction term for multiple reflections inside the shield, negligible when absorption exceeds about ten decibels.

Absorption
Inside a good conductor the field decays exponentially with depth, with a characteristic length called the skin depth (Electromagnetic Fields lesson on the skin effect):
![]()
Theorem. A shield of thickness
introduces an absorption of
![]()
Proof. Crossing the thickness
, the field amplitude is reduced by the factor
. In decibels:
. ∎
Example. Copper,
S/m: at 1 MHz
µm, and a 0.1 mm foil absorbs about 13 dB; at 100 MHz
µm and the same foil absorbs about 130 dB. Absorption grows with the square root of frequency: at high frequencies even a thin metal layer deposited on plastic is enough.
Reflection
A wave reaching a surface with an impedance different from its own is largely reflected (lesson on plane waves). The wave in free space has impedance
Ω, the metal a very small impedance,
.
Theorem. For
the reflection is
![]()
Proof. The transmission coefficient of the electric field from a medium of impedance
to one of impedance
is
. Entering the metal it is
; leaving it,
. The product is
, and its inverse in decibels gives the formula. ∎
Example. Copper at 1 MHz:
Ω,
dB. With absorption, even a thin copper shield gives more than 120 dB against a plane wave: far more than is needed.
The difficult case: near magnetic fields
Close to a magnetic source (a loop, a transformer) the wave impedance is much lower than 377 Ω, and reflection is reduced accordingly; at low frequency absorption is also small, because
is large (at 50 Hz in copper it is about 9 mm). A mains transformer cannot be shielded with a copper foil. What is needed is:
- high-permeability materials (iron-nickel alloys such as mu-metal), which offer the field lines a preferential path and divert them around the area to be protected;
- or, better, reducing the source and the victim loop (lesson on coupling).
Near electric fields, on the contrary, with high impedance, are easily shielded: a grounded conductive surface is enough.
Apertures
In practice a shield is never closed: there are ventilation slots, seams between panels, displays, connectors. A slot behaves like a slot antenna (lesson on aperture antennas), and what matters is its maximum dimension, not its area. For a slot of length
, less than half a wavelength:
![]()
Example. A 10 cm slot at 1 GHz (
cm) leaves only 3.5 dB of shielding; at 100 MHz, 23.5 dB. The thickness and material of the shield become irrelevant: the slot is what counts. Many small holes shield much better than a slot of the same area, because each has a small maximum dimension.
The resulting rules:
- seams with frequent contacts (closely spaced screws, conductive gaskets), at a spacing much less than
at the highest frequency of interest; - ventilation with grids of small holes or honeycombs, which behave like waveguides below cut-off;
- every cable passing through the shield must be filtered at the point of entry, or its braid must be bonded to the shield around its whole circumference (360°). An unfiltered cable carries the disturbance outside and radiates it, defeating the shield: it is the most common mistake. A braid connected with a short wire (pigtail) loses much of its effectiveness at high frequencies, because the pigtail has inductance.
5Radiated emissions
Nobody designs a digital circuit to radiate, yet every circuit is an unintentional antenna. There are two mechanisms: loops carrying signal currents, which radiate in differential mode, and cables carrying small common-mode currents, which radiate like dipoles. The second, for the same current, is enormously more effective, and it is the cause of most test failures. In this lesson we derive the two emission formulas from the elementary antennas, compare them with a numerical example against legal limits, and see how each is reduced.
Differential mode and common mode
In a pair of conductors (a signal and its return) the current can always be split into two parts:
- differential mode (DM): equal and opposite currents in the two conductors,
. It is the “intended” current, that of the signal; - common mode (CM): equal currents in the same direction,
, which return through parasitic capacitances to ground, the chassis or earth. Nobody wants it: it arises from asymmetries, from noise voltages on ground that push current along cables, from coupling.

Differential-mode emission
Theorem. A small loop of area
carrying current
at frequency
produces in the far field, at distance
and in the direction of maximum emission, an electric field of amplitude
![]()
Proof. The far field of a small loop (magnetic dipole) is
, with
Ω and
(Antennas lesson on elementary dipoles). Substituting:
![]()
and
. In measurements there is also the reflecting ground plane of the test site, which can double the field. ∎
The field grows with the square of frequency: doubling the frequency of a harmonic quadruples the emission (+12 dB). It is reduced by shrinking the loop area, i.e. bringing the return close to the signal (lesson on the printed circuit board), and by reducing the current and its harmonic content (lesson on the spectrum).
Common-mode emission
Theorem. A cable of length
, short compared with the wavelength, carrying common-mode current
, produces a maximum field
![]()
Proof. A short wire with uniform current is an elementary (Hertzian) dipole, with far field
(same lesson). The two conductors each carry
in the same direction, so they are equivalent to a single wire with
. Substituting
and
:
![]()
The doubled value in the formula accounts for reflection from the test site’s ground plane. ∎
The comparison
Example. At 100 MHz, at a distance of 3 m:
- a 1 cm² loop (
m²) with 10 mA of signal current:
µV/m, i.e. about 33 dBµV/m; - a 1 m cable with 1 µA of common-mode current:
µV/m, i.e. about 32 dBµV/m.
A common-mode current ten thousand times smaller than the signal current radiates just as much. The class B limit at 3 m in this band is about 40 dBµV/m: with 10 µA of common mode, a tiny amount, the cable reaches 52 dBµV/m and the test fails. The lesson is clear: cables are the main antennas, and emission problems are looked for on cables first. A radio-frequency current clamp around a cable measures
directly and makes it possible to predict the test result on the bench.
Reducing common mode
The common-mode current on the cable is driven by a noise voltage between the circuit reference (the printed circuit board ground) and the “rest of the world”. The remedies:
- reduce the voltage that drives it: a continuous ground plane with low inductance, because the ground drop between the switching circuit and the point where the cable connects is precisely the source (lesson on the printed circuit board);
- a common-mode ferrite on the cable: it presents an impedance of a few hundred ohms to the common-mode current and almost none to the signal, because the fluxes of the outgoing and return conductors cancel (lesson on filters);
- filter every wire at the connector entry, with capacitors to the chassis;
- shield the cable, bonding the braid to the chassis at 360° (lesson on shielding);
- balanced differential signals: if the two halves are perfectly symmetrical, the conversion from differential to common mode is zero. Imbalance, even 1 %, converts part of the signal current into common-mode current: this is why differential pairs must be routed with identical lengths and spacings.
6Printed circuit board design
A device’s electromagnetic compatibility is decided largely on the printed circuit board: that is where the radiating loops arise, the ground drops that drive common-mode currents, the current peaks of the supplies. The rules of good layout follow almost entirely from one principle: current returns wherever it can with the lowest impedance, and at high frequencies this means directly under the trace. In this lesson we look at the distribution of return current in a ground plane with the calculation of the fraction concentrated under the trace, the mistakes that interrupt it, supply decoupling with its resonance, and the choice of layer stack-up.
Where the current returns
At low frequency the return current in the ground plane distributes according to resistance, i.e. along the shortest path between the two ends. But above a few tens of kilohertz inductance dominates, and the current chooses the path that minimises the area of the loop formed with the outgoing current, because inductance is proportional to the linked flux (Physics 2 lesson on inductance). The minimum-area path is right under the trace.

For a thin trace at height
above a very large conducting plane, the return current density (per unit width) at a distance
from the trace’s vertical is
![]()
(obtained with the method of images: the plane is equivalent to an image wire at depth
, and the current in the plane is the one that cancels the tangential magnetic field below the plane).
Theorem. The total current in the plane is
, and the fraction flowing within distance
of the trace’s vertical is
.
Proof. With the substitution
:
![Rendered by QuickLaTeX.com \[ \int_{-D}^{D}J(x)\,dx = \frac{I}{\pi}\int_{-D/h}^{D/h}\frac{du}{1 + u^2} = \frac{2I}{\pi}\arctan\frac{D}{h} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-44f6d0c8513ea825e2843e0741e40630_l3.png)
For
the arctangent tends to
and we get
: all the current returns. ∎
Example. Within
flows
% of the current; within
, about 94 %. With traces 0.1 mm above the plane, almost all the return current lies in a strip a couple of millimetres wide under the trace.
Mistakes that interrupt the return
The return current needs that strip. If it is interrupted, the current must go around the obstacle, the loop widens and the trace becomes an antenna (lesson on radiated emissions):
- slots in the ground plane: a trace crossing a slot forces the current to go around it. It is the most common mistake, often caused by a row of closely spaced vias or by a plane split into “analogue” and “digital” areas;
- layer changes: if a trace moves from a layer referenced to the ground plane to one referenced to the supply plane, the return must jump between planes; a capacitor or a ground via near the change is needed;
- traces at the board edge: half of the distribution is missing, and the field escapes outwards.
A single continuous ground plane is almost always the best choice even for mixed-signal circuits: it is enough to place the components so that digital currents do not flow under analogue circuits. The star ground remains useful for large low-frequency currents (lesson on coupling).
Supply decoupling
When an integrated circuit switches, it draws current peaks in nanoseconds. If they had to come from the power supply through long traces, their inductance would produce voltage drops and large current loops. Decoupling capacitors close to the supply pins provide the charge locally, and the loop of the peaks closes between capacitor and component.
A real capacitor, however, has a series inductance (ESL, due to the package, traces and vias) of about 0.5-2 nH. Together with the capacitance it forms a series resonant circuit with frequency
![]()
above which the capacitor behaves like an inductor and its impedance grows with frequency (Circuit Theory lesson on resonant circuits).
Example. 100 nF with 1 nH of inductance:
MHz. Above this frequency the inductance counts, not the capacitance: a larger capacitor does not help, one with shorter connections does. This is why small capacitors in tiny packages are placed right at the pins, with short vias to the planes; and for even higher frequencies the capacitance between closely spaced supply and ground planes, which has very low inductance, is exploited.
Layer stack-up
In multilayer boards the previous rules become stack-up choices. For a four-layer board the classic is: signals, ground, supply, signals. Each signal layer has an adjacent plane as reference, and closely spaced ground and supply form a distributed capacitor. The general rules:
- every signal layer adjacent to a plane, as close as possible;
- fast signals (clocks, high-speed lines) on inner layers between two planes, which shield them;
- supply plane slightly recessed relative to the ground plane (about 20 times the spacing between them), to reduce edge radiation;
- frequent ground vias along the edge, “stitching” the planes and closing slots.
Two-layer boards, which are cheap, can still be done well: one side almost entirely ground, short traces, and every fast signal with its return alongside.
7Conducted emissions and filters
Switching power supplies are efficient and small, but they switch hundreds of volts in tens of nanoseconds, and send disturbances back onto the mains. Standards limit these conducted emissions between 150 kHz and 30 MHz, and almost every mains-powered device has a mains filter at its input. In this lesson we look at how conducted emissions are measured, the difference between differential-mode and common-mode disturbances with an example of their origin, how the common-mode choke works with its proof, the attenuation of an LC filter, and the safety limit on capacitors to earth.
Measurement
The conducted disturbance depends on the mains impedance, which changes from one socket to another. To make the measurement repeatable, an artificial network (LISN, line impedance stabilization network) is inserted between mains and device: for each conductor it presents the device with a defined impedance, 50 Ω in parallel with 50 µH, blocks disturbances coming from the mains and sends those of the device to a measuring receiver.
The CISPR 32 limits for class B, with the quasi-peak detector, are about 66-56 dBµV between 150 and 500 kHz (decreasing), 56 dBµV up to 5 MHz and 60 dBµV up to 30 MHz; for the average detector they are 10 dB lower.
Differential mode and common mode
As for cables (lesson on radiated emissions), the disturbance on the line (L) and neutral (N) conductors splits into two parts, with different origins and remedies:
- differential mode: current going out on L and back on N. It arises from the pulsating current drawn by the power supply, which the input capacitor cannot fully provide;
- common mode: current going on L and N in the same direction and returning through the protective earth conductor (PE) or capacitances to earth. It arises from the fast voltage changes of the switching node, which push current through parasitic capacitances, for example the one between the transistor and the earthed heatsink.
Example. The switching node goes from 0 to 400 V in 50 ns, and the transistor has 50 pF to the earthed heatsink. The current
A flows in pulses to earth at every transition: a huge common-mode disturbance, which the filter must block. An insulating pad with a shield connected to the primary reference, or a heatsink not connected to earth, reduces it at the source.
The mains filter

The typical filter has:
- X capacitors between L and N, against differential mode: they offer a short circuit at high frequencies to the current that goes and returns;
- a common-mode choke: two identical windings on the same core, one on L and one on N;
- Y capacitors from L and from N to earth, which close the common-mode current locally.
Theorem. In an ideal common-mode choke the differential-mode current produces no flux in the core, while the common-mode current sees the full inductance.
Proof. The two windings have the same number of turns
and are wound so that currents in the same direction produce aiding fluxes. The flux in the core is proportional to the sum of the magnetomotive forces:
. In differential mode
and
: no induced voltage, no impedance. In common mode
and the fluxes add. ∎
The advantage is decisive: the mains current, which can be many amperes, does not magnetise the core, which therefore does not saturate, and small high-permeability ferrite cores can be used to obtain millihenries of common-mode inductance. A small leakage flux, not linking both windings, still gives some differential-mode inductance, useful together with the X capacitors.
Attenuation
Each section formed by an inductor and a capacitor is a second-order low-pass filter.
Theorem. An ideal LC filter, terminated on a high-impedance load, has transfer function
with
, and above
attenuates by 40 dB per decade.
Proof. It is a divider between the inductor’s impedance
and the capacitor’s
:
. For
the magnitude is about
, which falls by a factor of 100, i.e. 40 dB, every decade. ∎
Example. With
kHz the attenuation at 150 kHz is about
dB. In reality the attenuation depends on the impedances of the mains and of the power supply, and at high frequencies it is limited by parasitics: the inter-winding capacitance of the choke and the inductance of the capacitor connections. This is why filters are mounted close to the cable entry point, with input and output well separated, because coupling between the two bypasses the filter.
The safety limit on Y capacitors
Y capacitors also carry a small 50 Hz current to earth, the leakage current, which would flow through a person if the earth connection were missing. It is
.
Example. With 4.7 nF to earth and 230 V at 50 Hz:
mA. Safety standards limit leakage to values from a few tenths of a milliampere to a few milliamperes depending on the type of equipment (much less for medical equipment), and therefore limit Y capacitors to a few nanofarads. Common mode must be fought mainly with the choke.
Capacitors connected to the mains must also be of an approved type: X capacitors are designed not to fail short-circuit if a surge damages them, Y capacitors never to fail short-circuit to earth, because they would put the mains voltage on the chassis.
8Immunity and protection
The other half of compatibility is immunity: the device must keep working when someone touches it after walking on a carpet, when a phone transmits nearby, when a motor on the same line switches off or lightning strikes a few hundred metres away. In this lesson we look at immunity tests and the criteria used to judge the result, electrostatic discharge with the calculation of its current and energy, input protection with the proof of why connections must be very short, the rectification of radio-frequency fields and software defences.
The tests
The IEC 61000-4 series defines the phenomena and the test generators. The most common:
| Test | Phenomenon | Typical levels |
|---|---|---|
| 61000-4-2 | electrostatic discharge | 4 kV contact, 8 kV air |
| 61000-4-3 | radiated field, 80 MHz – 6 GHz, AM modulated at 1 kHz | 3 V/m (residential), 10 V/m (industrial) |
| 61000-4-4 | bursts of fast transients (5 ns edges), from contacts and relays | 1-2 kV on the supply |
| 61000-4-5 | surges from lightning and switching, 1.2/50 µs | 1-2 kV |
| 61000-4-6 | radio-frequency disturbances conducted on cables, 150 kHz – 80 MHz | 3-10 V |
| 61000-4-11 | voltage dips and interruptions | from 30 % to 100 % for a few cycles |
The result is judged with three criteria: A, normal operation during the test; B, temporary degradation with self-recovery; C, loss of function requiring operator intervention. The product standard establishes which criterion is required for each test.
Electrostatic discharge
A person insulated from the floor charges up by friction to thousands of volts. The human body model (HBM) represents it as a 100 pF capacitor discharging through 1.5 kΩ; the IEC test generator uses 150 pF and 330 Ω, more severe because it represents a discharge through a metal object held in the hand.
Theorem. A capacitor
charged to voltage
discharging into a resistance
gives a peak current
, a time constant
and an energy
.
Proof. At the initial instant the whole capacitor voltage is across the resistance, so
. Then
, with solution
. The dissipated energy is the energy stored in the capacitor,
. ∎
Example. IEC generator at 8 kV: peak current of the order of
A (the standard specifies a first peak of about 30 A, because the initial edge, under a nanosecond, is limited by inductance and not by resistance), time constant about 50 ns, energy
mJ. The energy is small, but the current is huge and the very fast edge has a spectrum reaching the gigahertz range: the discharge also disturbs, by coupling, circuits it does not touch directly.
Protecting an input

The classic scheme has a transient voltage suppressor diode (TVS) right after the connector, which conducts above a threshold voltage and diverts the current to ground, followed by a series resistor and a small capacitor that limit the residue before the integrated circuit, which in turn has weak internal protections (Microelectronics lesson on testing).
Theorem. With a connection of inductance
in series with the TVS, the voltage on the protected input during the discharge exceeds the diode’s clamping voltage by
.
Proof. The discharge current flows in the TVS branch, made of the diode and its connections. The branch voltage is the sum of the diode voltage and the voltage across the inductance,
, and this is the voltage seen by the protected node. ∎
Example. 10 nH of connection (one centimetre of trace to a distant ground) and a current rising to 30 A in 1 ns:
V above the clamping voltage. The protection does not protect. The TVS must be placed right next to the connector, with the shortest possible ground connection, preferably directly to the chassis, so that the discharge does not cross the circuit’s ground plane.
For slow, energetic overvoltages (surges) more robust components are needed: metal-oxide varistors, gas discharge tubes, often in several stages.
Radio-frequency fields and rectification
A radiated field induces radio-frequency voltages on cables (lesson on radiated emissions, by reciprocity). This would seem harmless to a slow circuit, such as an audio or sensor amplifier, which has no bandwidth at those frequencies. But transistor junctions are non-linear: they rectify the radio frequency, and the 1 kHz AM modulation used in the test reappears as a 1 kHz signal in the useful band. It is the buzz heard in a loudspeaker near a phone transmitting in bursts.
Remedy: filter the radio frequency before it reaches the first junction, with an RC filter or a ferrite and a capacitor right at the input.
Software defences
Not everything is stopped by hardware. A good program tolerates disturbances:
- watchdog: a timer that restarts the processor if the program stops refreshing it;
- periodic re-reading of peripheral configuration registers, which a discharge can alter;
- filters and plausibility checks on inputs, confirmation of a command over several samples (debouncing);
- check codes (CRC) on communications and memories, with retransmission;
- predefined safe states for outputs in case of error.
This lesson completes the picture: reduce the source, interrupt the path, make the victim robust.
∑Formula sheet
Introduction, units and standards
The decibels of compatibility
![]()
Spectrum of digital signals
The trapezoidal wave
![]()
Near-field coupling
Capacitive coupling
![]()
![]()
Inductive coupling
![]()
![Rendered by QuickLaTeX.com \[ \Phi = \int_{d_1}^{d_2}\frac{\mu_0I}{2\pi r}\,l\,dr = \frac{\mu_0Il}{2\pi}\ln\frac{d_2}{d_1} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-e7d0af781592b7923c03ff23361f0441_l3.png)
Shielding
Shielding effectiveness
![]()
Absorption
![]()
![]()
Reflection
![]()
Apertures
![]()
Radiated emissions
Differential-mode emission
![]()
![]()
Common-mode emission
![]()
![]()
Printed circuit board design
Where the current returns
![]()
![Rendered by QuickLaTeX.com \[ \int_{-D}^{D}J(x)\,dx = \frac{I}{\pi}\int_{-D/h}^{D/h}\frac{du}{1 + u^2} = \frac{2I}{\pi}\arctan\frac{D}{h} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-44f6d0c8513ea825e2843e0741e40630_l3.png)
Supply decoupling
![]()