# 24. Conducted EMI and input filters

A switching converter draws its input current in pulses, and part of that current comes back out of the supply leads as noise. Conducted-emission standards limit that noise between 150 kHz and 30 MHz. This chapter covers the conducted estimate, `emi.conducted`: the LISN it puts on the input, the limit lines it checks, how to read its margins, how it sizes a differential-mode and a common-mode input filter, and how it checks that the filter leaves the converter stable. [Tutorial 9](https://voltecx-web.nguyenvanqui291.workers.dev/docs/tutorials/09-conducted-emi/) takes the same command step by step on a buck.

> **An estimate, not a compliance test.** `emi.conducted` is a pre-compliance estimate against CISPR 32 class A or B, CISPR 11 group 1 class A or B, or CISPR 25 classes 1 to 5, from the simulated input current through a LISN model. The CISPR 11 and CISPR 25 limits were read from secondary sources and not checked against the standards' text. MIL-STD-461 CE102 is not included. It depends on the parasitics in your circuit, and a schematic has few. A pass is a result in Voltecx's models; only a measurement at a test house is a compliance result.

## What the estimate does

1. It makes a copy of the circuit and puts the limit's LISN (line impedance stabilisation network) between the input source and the converter. Your circuit is never changed unless you apply the filter (below).
2. The copy runs for `tSettle` (by default the circuit's end time), then for whole switching periods (by default the periods in 444 µs) with a step no larger than `maxStep` (10 ns by default).
3. The voltage across the LISN's 50 Ω receiver port goes through a model of the receiver: the limit's bandwidth (9 kHz in band B, from CISPR 16-1-1) and its three detectors, peak, quasi-peak (1 ms charge, 160 ms discharge) and average. The levels are in dBµV.
4. Each detector's spectrum is held to the limit band by band. The worst margin, its frequency and its detector are the result.

A DC input gets one LISN, on the supply line. A sine source is read as an AC mains input: it gets a LISN on L and on N, runs whole mains periods, then 8 windows at equal phases of the next mains period, and joins their receiver envelopes. With two LISNs the reply also splits the noise into differential mode (`dm`) and common mode (`cm`), the split of C. R. Paul, *Introduction to Electromagnetic Compatibility*, 2nd ed., ch. 6.

A DC input whose return is drawn as ground has no common-mode path. Give `cChassis`, the switch node's or heat sink's capacitance to the chassis, and the copies move the converter's return to its own net, hang that capacitance from `chassisNode` (by default the switch node `layout.hints` finds) to ground and put a LISN on both lines.

## The limits

`limit` picks the line. When you leave it out, the stored design spec's `spec.emi.limit` (from `spec.set` or `design.auto`) is used, else CISPR 32 class B.

| `limit` | Standard and table | Port | LISN |
|---|---|---|---|
| `cispr32A`, `cispr32B` | CISPR 32:2015 (edition 2.0), Annex A, conducted emission at the AC mains power port | AC mains | 50 µH, 0.1 µF, 50 Ω (CISPR 16-1-2) |
| `cispr11A`, `cispr11B` | CISPR 11:2015+A2:2019, group 1, class A (rated input up to 20 kVA) or B; EN 55011:2016+A2:2021 Table 2, as secondary sources cite it | AC mains | 50 µH, 0.1 µF, 50 Ω (CISPR 16-1-2) |
| `cispr25Class1` to `cispr25Class5` | CISPR 25 edition 5.0 (2021), voltage method; peak and average from Tables 1 and 2 of an ST article, quasi-peak from Table 5 of a Baltic Lab article | DC supply line | 5 µH with 1 Ω in series, 50 Ω port |

The CISPR 32 lines, in dBµV (a limit falls linearly with the logarithm of frequency inside a segment, and at a transition frequency the lower limit applies):

| Band | Class A quasi-peak | Class A average | Class B quasi-peak | Class B average |
|---|---|---|---|---|
| 0.15 to 0.5 MHz | 79 | 66 | 66 falling to 56 | 56 falling to 46 |
| 0.5 to 5 MHz | 73 | 60 | 56 | 46 |
| 5 to 30 MHz | 73 | 60 | 60 | 50 |

Class B is the residential limit and class A the industrial one. CISPR 25 holds only its listed bands (for example 0.15 to 0.3 MHz and 0.53 to 1.8 MHz) and adds a peak limit; frequencies between the bands are not held. The reply's `limit` names the source and edition of the line it used, and its `setup.lisn` the network.

## Run it

Choose **Design › Automate › Conducted EMI**. The form opens with the common fields; **More options** shows the rest.

![The Conducted EMI Estimate form with More options open, marked 1 to 5](https://voltecx-web.nguyenvanqui291.workers.dev/docs/manual/img/en/emi-filters/01-form.png)

1. `Limit`: the line, here CISPR 32 class B.
2. `Filter`: `auto` sizes a damped LC input filter when the margin is short of the target, inserts it on a copy and measures again. `oneStage` and `twoStage` force the number of stages, and `none` only measures.
3. `Target margin`: how far below the limit the result must be, 6 dB by default (or the stored spec's `spec.emi.targetMarginDb`). A pass with less margin than this is reported as short.
4. `Apply result`: off, nothing in the circuit changes. On, the sized filter is inserted as one undo step.
5. `[Run]`. The command is long-running, so it goes through the status bar with progress and Cancel.

The circuit in the picture is the textbook buck (`buckIdeal`) with a 47 µF input capacitor `Cin` added, as in step 6 of the tutorial.

## Read the result

![The result window: the margin as drawn, the required attenuation, the margin with the filter and the Apply Filter button, marked 1 to 5](https://voltecx-web.nguyenvanqui291.workers.dev/docs/manual/img/en/emi-filters/02-result.png)

1. As drawn: `Fail`, with the worst margin, its frequency and its detector: here −33.2 dB at 200 kHz, the second harmonic of 100 kHz, read with the average detector.
2. `Required attenuation`: how much the emission must drop for the worst frequency to meet the target margin, here 39.2 dB (33.2 dB to the limit plus the 6 dB target).
3. With the input filter: the same measurement on the copy with the filter, here a pass with 11.7 dB of margin. The filter is one stage of 220 µH and 515 nF; its parts are listed under `Input filter`.
4. `[Apply Filter]` inserts those parts into the circuit as one undo step, the same as running again with `Apply result` ticked.
5. `As drawn` over the spectrum: peak, quasi-peak and average against the quasi-peak and average limits, as drawn and, below it, with the filter.

`Copy` puts the whole reply on the clipboard as JSON. The keys a script reads:

| Key | What it holds |
|---|---|
| `before.total.pass`, `marginDb`, `worst` | The verdict as drawn, the worst margin and where it is (`fHz`, `detector`, `levelDbuv`, `limitDbuv`) |
| `before.total.bands` | Each band's quasi-peak and average margin, the peak-to-quasi-peak gap and the attenuation that band needs |
| `before.dm`, `before.cm` | The same for the differential and common mode, with two LISNs; `null` with one |
| `filter` | The sized filter: `stages`, `cornerHz`, the parts and the `circuit.apply` edits that insert it |
| `after` | The measurement with the filter in, shaped like `before` |
| `rounds` | Each sizing round: the filter is sized, measured and sized again for what it lacked, up to 4 rounds |
| `pass` | The whole verdict: the margin after the filter meets the target, Middlebrook's check passes and the loop keeps its phase margin |
| `notes` | What was assumed or skipped, in English and Traditional Chinese |

A large `peakVsQp` in a band means the emission is a few strong lines, not a broad hump; the quasi-peak detector forgives the first less than the second.

## Size the differential-mode filter

Each stage is a shunt capacitor on the supply side and a series inductor towards the converter. Above its corner `f0 = 1/(2π·√(L·C))` one stage adds about 40 dB per decade and two stages about 80 dB per decade. The corner is the highest one that gives every frequency its required attenuation at that slope. With `auto` one stage is used while the attenuation at the frequency that sets the corner is at most 40 dB, and two stages above that.

The stages are catalogue parts with their data-sheet values in the circuit and the BOM: Coilcraft inductors, Murata or other capacitors from the capacitor catalogue on a DC input, X2 film capacitors on an AC one, and E96 chip resistors. When the catalogue has no part for a role, `filter.catalogue.missing` says which and why, and the value stays ideal.

Before you size a filter, look at the input capacitor. A converter without one pushes all of its pulsed current into the supply, and the filter it needs is large: the tutorial's buck needs two 660 µH stages without `Cin` and one 220 µH stage with it.

## Damping and Middlebrook's check

An LC filter has no loss, so its output impedance peaks at resonance. A regulated converter draws constant power and looks like a negative resistance of magnitude `V²/P` at its input; a filter peak near that magnitude can make the converter oscillate (R. D. Middlebrook, "Input filter considerations in design and application of switching regulators", IEEE IAS Annual Meeting, 1976).

So each inductor gets a damping branch across the capacitance on its converter side: a resistor `Rd` in series with a blocking capacitor `Cd`, sized with the optimal parallel damping of R. W. Erickson and D. Maksimovic, *Fundamentals of Power Electronics*, chapter "Input Filter Design". Voltecx holds the filter's peak output impedance 3 times (about 10 dB) below the converter's input impedance. The check reads the peak of the whole drawn filter, not only the closed form for one stage.

- `zinOhm` sets the input impedance the filter is held to. Give `Vin_min²/P` at full load for the worst case; by default it is the measured V/I.
- `filter.middlebrook` has the impedance, the peak, the margin and `pass`.
- `pmMinDeg` (default the stored spec's, else 45°) and `loopCheck` (on) measure `analysis.loopGain` with and without the filter, and a load step to half the load resistance. `stability` has both phase margins, both dips and the `|Zo(f)|` curve. A circuit without a control loop has no loop gain to measure, and the reply says so.

## Common-mode filter

With two LISNs (an AC input, or a DC input with `cChassis`) and a common-mode margin below the target, a common-mode stage is sized: a catalogue common-mode choke in both lines and a Y capacitor from each line to ground. It needs a limit on the Y capacitance, because that limit comes from the product's safety standard and has no default:

- `yCapMax`: the largest Y capacitance per line, or
- `touchCurrent`: the safety standard's touch-current limit. Each Y capacitor is then at most `touchCurrent/(2π·mainsHz·mainsV)`. On a DC input give `mainsHz` and `mainsV` too.

`filter.commonMode` names the choke (manufacturer, part number, inductance, stray inductance, DC resistance, ratings and its data sheet) and the Y capacitor, and says whether the choke's worst-case inductance reaches the corner it needs (`reaches`).

## Apply the filter

Tick `Apply result`, pass `"apply": true`, or click `[Apply Filter]` in the result. The filter goes in between the source and the power stage as one undo step, drawn in line with its damping branch below it; its parts are named `EMI_C1`, `EMI_L1`, `EMI_Rd1`, `EMI_Cd1` and so on per stage. The command refuses to apply, and says why in `applyRefused`, when the margin after the filter misses the target, Middlebrook's check fails or the loop's phase margin falls below `pmMinDeg`.

After applying, run the simulation again: the converter should still reach its output, and the input current should be smooth.

## Parasitics and a measured spectrum

A schematic of ideal parts has a capacitor without ESL and an inductor without winding capacitance, so above a few MHz the estimate is optimistic. With `"parasitics": true` the measured copies get capacitor ESR and ESL, inductor winding capacitance and switch output capacitance from the circuit, from `parasiticValues` (data-sheet values by component name) or from the catalogues. A value none of these gives is skipped and listed, never invented. The reply's `parasitics` shows each value and its source, the margin with and without them, and the change.

`measured` overlays a receiver's or spectrum analyser's export (a frequency and a level in dBµV on each line) on the limit and the prediction, with each band's measured and predicted margin and their difference. Use it to see how far the model is from your bench.

## From a script

```sh
powercraft-cli run \
    --cmd file.openExample --params '{"name":"buckIdeal"}' \
    --cmd circuit.apply    --params '{"ops":[{"op":"add","name":"Cin","kind":"capacitor","params":{"c":"47u","esr":"10m","v0":48},"ports":{"p":"in","n":"0"},"at":[-5,0]}]}' \
    --cmd emi.conducted    --params '{"limit":"cispr32B","targetMarginDb":6}' \
    --cmd emi.conducted    --params '{"apply":true}' \
    --cmd simulation.run   --params '{}'
```

The first `emi.conducted` only reports; the second inserts the filter it sizes.

## What the estimate does not tell you

- It is not a compliance measurement. The test house's layout, cables, ground plane and receiver decide the result.
- Coupling through the board's layout (the switch node's capacitance to the heat sink and chassis, magnetic coupling into the filter) is only in the estimate as far as you draw it or give it with `cChassis` and `parasiticValues`.
- Above 30 MHz the emission is radiated. `emi.radiated` estimates it from the hot loop and the switch node's common-mode current, and `emi.nearField` maps the board's near field; see chapter 16 and chapter 22.

Next: back to the [contents](https://voltecx-web.nguyenvanqui291.workers.dev/docs/manual/).
