# Conducted EMI: a pre-compliance estimate and an input filter

A converter's pulsed input current comes back out of its supply leads as noise, and CISPR 32 limits how much. You estimate the conducted emission of the plain buck, see why it is 89 dB over the limit, add an input capacitor, and let Voltecx size and insert a damped LC filter. About 15 minutes.

The estimate puts a LISN (50 µH, 0.1 µF and 50 Ω, as the standard says) on a copy of the circuit and reads peak, quasi-peak and average from the spectrum. It is a pre-compliance screen, not a test house's report.

Pictures: a numbered red box is what you click or read, `[Run]` is a button, `Design › Automate` a menu path.

## 1. Open the buck

Choose `File › Open Example › DC-DC › Buck converter, textbook`.

![The File menu open at Open Example, DC-DC, Buck converter, marked 1 to 4](https://voltecx-web.nguyenvanqui291.workers.dev/docs/tutorials/img/en/conducted-emi/01-open-example.png)

1. `File`.
2. `Open Example`.
3. `DC-DC`.
4. `Buck converter, textbook`.

## 2. Look at the input current

Click `[▶ Run]`, then `Maximize` at the panel's top right. In the scope's signal list open `Currents` and tick `i(Vin)`.

![The scope: i(Vin) jumps between 0 and about -5 A every switching period, marked 1 to 2](https://voltecx-web.nguyenvanqui291.workers.dev/docs/tutorials/img/en/conducted-emi/02-input-current.png)

1. `i(Vin)`, the current in the source (negative because it leaves the source's + terminal).
2. Its row: it jumps from 0 to the inductor current, about 5 A, and back, 100 000 times a second. In steady state it swings 5.45 A peak to peak around a mean of 1.25 A. The buck has no input capacitor, so the supply carries all of it.

## 3. Open Conducted EMI

Click `Restore` at the panel's top right, then choose `Design › Automate › Conducted EMI`.

![The Design menu open at Automate, Conducted EMI, marked 1 to 3](https://voltecx-web.nguyenvanqui291.workers.dev/docs/tutorials/img/en/conducted-emi/03-menu.png)

1. `Design`.
2. `Automate`.
3. `Conducted EMI`.

## 4. Set up the estimate

Click `More options` to see every field.

![The Conducted EMI Estimate form, marked 1 to 5](https://voltecx-web.nguyenvanqui291.workers.dev/docs/tutorials/img/en/conducted-emi/04-form.png)

1. `Limit`: `CISPR 32 class B`, the residential limit. Class A is for industrial equipment.
2. `Filter`: `auto` sizes a damped LC input filter if the margin is short, inserts it on a copy and measures again.
3. `Target margin`: `6` dB below the limit.
4. `Apply result`: leave it off for now, so nothing changes in the circuit.
5. `[Run]`.

## 5. Read the estimate

The window opens at the verdict. Scroll for the notes at the bottom.

![The result window: verdict, margin, required attenuation, the filter and the spectrum, marked 1 to 5](https://voltecx-web.nguyenvanqui291.workers.dev/docs/tutorials/img/en/conducted-emi/05-result.png)

1. `As drawn`, `Fail`: the worst margin is −89.4 dB at 200 kHz, measured as an average. That is the second harmonic of 100 kHz, the first one inside the 150 kHz to 30 MHz band: 143 dBµV against a 53.6 dBµV limit.
2. `Required attenuation`: 95.4 dB, how much the circuit would have to drop to pass.
3. `With the input filter`, `Pass`: the copy with the filter `auto` sized has 22.3 dB of margin. The filter has two stages, 660 µH and 504 nF each, listed under `Input filter` with its damping parts.
4. `[Apply Filter]` inserts those parts into the circuit as one undo step. Leave it for now.
5. The spectrum: peak, quasi-peak and average against the CISPR 32 quasi-peak and average limits, on a log frequency axis, first as drawn and below it with the filter. The average trace sits far above its dashed limit; with the filter it falls under it.

`Copy` still puts the whole reply on the clipboard as JSON (`before.total.marginDb`, `filter`, `after.total.pass` and the rest), which is what a script reads.

Two 660 µH chokes for a 60 W converter is a sign that something more basic is missing: there is no input capacitor.

## 6. Add an input capacitor

Close the window and press `⌘⇧Y` to open the console. Type these two lines, each followed by `Enter`:

```text
circuit.apply {"label":"Add input capacitor","ops":[{"op":"add","name":"Cin","kind":"capacitor","params":{"c":"47u","esr":"10m","v0":48},"ports":{"p":"in","n":"0"},"at":[-5,0]}]}
circuit.rotate {"component":"Cin","turns":1}
```

![The console with the two commands, and Cin next to Vin, marked 1 to 2](https://voltecx-web.nguyenvanqui291.workers.dev/docs/tutorials/img/en/conducted-emi/06-console.png)

1. `Console`: every menu item is a command, and the console runs any of them.
2. `Cin`: 47 µF with 10 mΩ of ESR, across the input. It now carries the pulses, and the supply sees the average. (You can also drag a capacitor from the parts bar and wire it.)

## 7. Estimate again, and apply the filter

Choose `Design › Automate › Conducted EMI` again. The more options stay open.

![The form with Apply result ticked, marked 1 to 2](https://voltecx-web.nguyenvanqui291.workers.dev/docs/tutorials/img/en/conducted-emi/07-apply.png)

1. Tick `Apply result`: the filter is inserted into the circuit as one undo step.
2. `[Run]`.

With `Cin` the emission falls to 86.8 dBµV, 33.2 dB over the limit. That is 56 dB better without a filter. A single damped stage of 220 µH and 515 nF is now enough, and the copy with it passes with 11.7 dB of margin.

## 8. Read the filter

Close the window. Press `⌘0` to fit the schematic, then open the `Problems` tab.

![The inserted filter between Vin and the power stage, marked 1 to 4](https://voltecx-web.nguyenvanqui291.workers.dev/docs/tutorials/img/en/conducted-emi/08-filter.png)

1. `EMI_C1`: 515 nF across the supply side.
2. `EMI_L1`: 220 µH in series with the supply.
3. `EMI_Rd1`: 6.98 Ω, which damps the filter's resonance together with
4. `EMI_Cd1`: 18 µF. Without damping, the filter's output impedance would peak at resonance and could make the converter oscillate (Middlebrook's criterion; the reply checks it).
The filter is drawn in line, between `Vin` and the power stage, with its damping branch below it. `Problems` shows no warning: `Vin` and `EMI_C1` form a loop with no resistance, but `EMI_C1` starts charged to 48 V, so no current rushes into it at t = 0.

## 9. Check the converter still works

Click `[▶ Run]`. When the run ends, click `[Show results]` on its notice.

![The scope after the filter: i(Vin) is smooth, v(out) still 12 V, marked 1](https://voltecx-web.nguyenvanqui291.workers.dev/docs/tutorials/img/en/conducted-emi/09-rerun.png)

1. `i(Vin)` now swings 48 mA peak to peak instead of 5.45 A, and `v(out)` still settles at 12 V. The ringing in the first 2 ms is the output LC of this open-loop buck, as it was in step 2.

## The same steps from a script

```sh
powercraft-cli run \
    --cmd file.openExample --params '{"name":"buckIdeal"}' \
    --cmd emi.conducted    --params '{}' \
    --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 '{"apply":true}' \
    --cmd simulation.run   --params '{}' \
    --cmd emi.radiated     --params '{}'
```

`emi.radiated` estimates the radiated emission from the switching loop, with the loop current of the last run; see [chapter 16 of the manual](https://voltecx-web.nguyenvanqui291.workers.dev/docs/manual/16-automatic-design/).

Back to the [learning path](https://voltecx-web.nguyenvanqui291.workers.dev/docs/tutorials/).
