kicad2ems.core.emission - a radiated-emission estimate: the board's ports driven
by a signal (a clock, data, a CW sweep or a spectrum file), the field it makes
at a test site's antenna 3 or 10 m away over a reflecting floor, the antenna's
height scanned and the board turned on a turntable, the largest held, against
CISPR 32's class A or B limits.
python -m kicad2ems.core.emission board.kicad_pcb --out emi
--drive P1 --signal clock --f0 25 --rise 1 --amp 3.3
[--distance 3] [--class B] [--orientation all] [--fmin 0.03 --fmax 6]
The drive (kicad2ems.core.phased's PORT[=amplitude][@phase] items: P1, or a pair
P1+@0,P1-@180) scales the signal at each driven port: its source's open-circuit
voltage, behind the port's load (its reference, or --load), every other port on
its load. mom25d solves the board at each frequency (kicad2ems.core.radiated: one
factor, every port's currents), the drive's far field on a grid of directions
(--step deg), and the site (kicad2ems.core.radiated.site) the field at the
antenna: below 1 GHz the direct ray and the floor's, above it the direct ray
alone (an absorber-lined floor, as CISPR 16-1-4 has above 1 GHz); the vertical
and horizontal polarisations, heights 1-4 m, the turntable round, the board in
--orientation (all: the worst of flat, flipped and on each edge).
The signal's spectrum: a clock's lines (a trapezoid: f0, 10-90 % rise, 0 to amp,
duty), data (PRBS lines while their spacing is at least the receiver's
bandwidth, else random data's PSD in 120 kHz / 1 MHz), a flat CW amplitude, or a
file of lines (f Hz, volts RMS). The field per volt is solved at the lines
themselves when they are no more than --points, else on --points frequencies in
log f and interpolated between them in dB (a resonance narrower than their
spacing is missed). A line reads the same on CISPR's quasi-peak, average and
peak detectors (a CW tone); data's continuous part is its RMS in the bandwidth,
which the peak detector reads several dB above.
Writes <out>/emission.json and <name>_emission.png. Left out: what the board is
connected to (cables, which most often dominate a product's emission: their
common-mode current needs the cable's model and the field-to-line coupling), the
board edge and anything below mom25d's infinite ground, an enclosure.