Emission-aware programming

Last updated

Emission-aware programming is a design philosophy aiming to reduce the amount of electromagnetic radiation emitted by electronic devices through proper design of the software executed by the device, rather than changing the hardware.

Emission sources

Emission considerations require the evaluation of many details such as the clock frequencies and switching rates which are related to the oscillator. Rise/fall times and signal harmonics are related to the output driver. The data transfer rates can be dependent on hardware or can be controlled by software and often have to meet a certain protocol. Impedances, trace loading and the various circuit components are hardware related and must be considered from the beginning of the design.

Three basic actions for emission reduction can be defined:

Only this action can be applied to software-based emission control. Reduction of, for instance, the switching frequency or the number of switching circuits reduces the power consumption and therefore the emissions. For example this could be low voltage operation or the usage of power reduction modes.
RF energy is not a problem if the structures dealing with it are too small [nb 1] for acting as effective antennas. A decoupling capacitor keeps most of the RF energy locally in a small loop between the device and the capacitor as shown in the figure.
Insulation of RF energy by correct placement of a decoupling capacitor. Isulation of RF Energy.png
Insulation of RF energy by correct placement of a decoupling capacitor.
Any impedance formed by coils, capacitors, resistors, ferrites etc. can be used for this purpose.

In the following all components that can be influenced by the software design will be described.

Oscillator

Microcontrollers require a clock source for the switching of the internal transistors. Almost all controllers require an external crystal or ceramic resonator. Since the ceramic resonator is potentially sensitive to spikes which can shorten clock periods typically a Pierce oscillator configuration is used. Harmonic frequencies of the clock cause unwanted emissions.

The circuit internal to the MC in simplified form is a NAND gate followed by an inverter. The external oscillator is not the only source of emissions. The system clock circuits consists of an internal RF divider followed by large amplifiers. These amplifiers drive long lines inside the components and might cause interferences.

The use of internal oscillators instead of external ones should be preferred. (An additional hardware measure is the use of spread spectrum oscillators.)

Power supply

The field strength is proportional to the current as a consequence the power supply, providing the current for the entire system, is a strong source of emissions. Physically, a reduction of the power consumption of the system and the minimising of circuit loops (by the usage of decoupling capacities) emitting the noise, improves the EME performance. A software based solution is to temporary disable peripheral devices when not needed and thereby reduce unnecessary power consumption.

I/O pins

If an MC uses external memory space or peripheral devices continuous transitions on several data/address bus lines are implied. The emission depends on the frequency of the transitions, their quantity, rise/fall time and duration. The quantity of transitions, of port traffic can be influenced by the use of interrupts instead of continuous polling of ports. The use of interrupts is software based as well.

For the IRQ or reset pins (input pins) the termination is more important than for general I/O ports. If noise causes these two pins to mis-trigger it will have a negative effect on the circuit behavior. A high current consumption is often observed, particularly in CMOS devices, when the input pins are unconnected due to leakage current internal to the IC. Terminating high impedance input pins can therefore lead to a reduction in supply current and hence reduces emission. With most MC the internal pull-up resistors can be used to set unused pins to a defined voltage level.

Ringing

To achieve fastest possible transmission rates the fastest possible switching rates are applied. The faster the switching rate the more likely over- and undershooting (ringing) will occur. Ringing of the output signal is mainly caused by parasitic elements of the output structure e.g. the capacitive components like the parasitic capacities and the load capacitances as well as the parasitic inductances that are built by the bond wire and the lead frame.

In four techniques to reduce ringing are described:

Ground bounce

Ground bounce is a voltage bounce caused by simultaneous switching of several outputs from one logic state to the other, for example from high to low. The voltage built up across the parasitic inductance of the IC ground return connection causes a transient voltage potential shift in the ground reference potential with respect to the system ground. Ground bounce is caused by CMOS crowbar current and the dynamic switching currents of capacitive loads.

Rise and fall time

One way of reducing the emissions of an MC System is to extend the rise and fall time (slew rate control). Some controllers like the Motorola HCS08 offer the feature of software controlled slew rate output buffers enabling the user to extend the rise time from 3 ns to 30 ns for each pin separately.

Some microcontrollers offer current limiting, a way of limiting the maximum current driven by the output port (e.g. Motorola MCS12).

Emission control: power saving

The most effective way of reducing emissions is to temporarily shut down unused modules in the MC, thereby saving power. Most microcontrollers support several sleep modes.

Conclusion

In order to reduce electromagnetic emissions on software basis the following measures should be considered:

Most software implemented improvements on emission can only be detected using an average-detector.

See also

Notes

  1. In RF engineering the unit of measurement is the wave length λ. Geometrical measures are taken as a multiple of the wave length. The geometrical distance d between two points are quantified in d/λ. Thus terms like small or large are always related to wave length. Electromagnetically large structures accord to d >= 1 and small to d < 0.1 or d = λ/10. The range between electromagnetically small and large is the resonant frequency range.

Related Research Articles

<span class="mw-page-title-main">Electronic oscillator</span> Type of electronic circuit

An electronic oscillator is an electronic circuit that produces a periodic, oscillating electronic signal, often a sine wave or a square wave or a triangle wave. Oscillators convert direct current (DC) from a power supply to an alternating current (AC) signal. They are widely used in many electronic devices ranging from simplest clock generators to digital instruments and complex computers and peripherals etc. Common examples of signals generated by oscillators include signals broadcast by radio and television transmitters, clock signals that regulate computers and quartz clocks, and the sounds produced by electronic beepers and video games.

<span class="mw-page-title-main">Amplifier</span> Electronic device/component that increases the strength of a signal

An amplifier, electronic amplifier or (informally) amp is an electronic device that can increase the power of a signal. It is a two-port electronic circuit that uses electric power from a power supply to increase the amplitude of a signal applied to its input terminals, producing a proportionally greater amplitude signal at its output. The amount of amplification provided by an amplifier is measured by its gain: the ratio of output voltage, current, or power to input. An amplifier is a circuit that has a power gain greater than one.

<span class="mw-page-title-main">Tesla coil</span> Electrical resonant transformer circuit invented by Nikola Tesla

A Tesla coil is an electrical resonant transformer circuit designed by inventor Nikola Tesla in 1891. It is used to produce high-voltage, low-current, high frequency alternating-current electricity. Tesla experimented with a number of different configurations consisting of two, or sometimes three, coupled resonant electric circuits.

<span class="mw-page-title-main">Electromagnetic compatibility</span>

Electromagnetic compatibility (EMC) is the ability of electrical equipment and systems to function acceptably in their electromagnetic environment, by limiting the unintentional generation, propagation and reception of electromagnetic energy which may cause unwanted effects such as electromagnetic interference (EMI) or even physical damage in operational equipment. The goal of EMC is the correct operation of different equipment in a common electromagnetic environment. It is also the name given to the associated branch of electrical engineering.

<span class="mw-page-title-main">Switched-mode power supply</span> Power supply with switching regulator

A switched-mode power supply is an electronic power supply that incorporates a switching regulator to convert electrical power efficiently.

This is an index of articles relating to electronics and electricity or natural electricity and things that run on electricity and things that use or conduct electricity.

<span class="mw-page-title-main">Voltage multiplier</span>

A voltage multiplier is an electrical circuit that converts AC electrical power from a lower voltage to a higher DC voltage, typically using a network of capacitors and diodes.

<span class="mw-page-title-main">Electronic component</span> Discrete device in an electronic system

An electronic component is any basic discrete device or physical entity in an electronic system used to affect electrons or their associated fields. Electronic components are mostly industrial products, available in a singular form and are not to be confused with electrical elements, which are conceptual abstractions representing idealized electronic components and elements.

<span class="mw-page-title-main">Variable capacitor</span>

A variable capacitor is a capacitor whose capacitance may be intentionally and repeatedly changed mechanically or electronically. Variable capacitors are often used in L/C circuits to set the resonance frequency, e.g. to tune a radio, or as a variable reactance, e.g. for impedance matching in antenna tuners.

<span class="mw-page-title-main">Choke (electronics)</span>

In electronics, a choke is an inductor used to block higher-frequency alternating currents while passing direct current (DC) and lower-frequencies alternating current (AC) in an electrical circuit. A choke usually consists of a coil of insulated wire often wound on a magnetic core, although some consist of a doughnut-shaped "bead" of ferrite material strung on a wire. The choke's impedance increases with frequency. Its low electrical resistance passes both AC and DC with little power loss, but its reactance limits the amount of AC passed.

A radio transmitter or just transmitter is an electronic device which produces radio waves with an antenna. Radio waves are electromagnetic waves with frequencies between about 30 Hz and 300 GHz. The transmitter itself generates a radio frequency alternating current, which is applied to the antenna. When excited by this alternating current, the antenna radiates radio waves. Transmitters are necessary parts of all systems that use radio: radio and television broadcasting, cell phones, wireless networks, radar, two way radios like walkie talkies, radio navigation systems like GPS, remote entry systems, among numerous other uses.

In electronics, motorboating is a type of low frequency parasitic oscillation that sometimes occurs in audio and radio equipment and often manifests itself as a sound similar to an idling motorboat engine, a "put-put-put", in audio output from speakers or earphones. It is a problem encountered particularly in radio transceivers and older vacuum tube audio systems, guitar amplifiers, PA systems and is caused by some type of unwanted feedback in the circuit. The amplifying devices in audio and radio equipment are vulnerable to a variety of feedback problems, which can cause distinctive noise in the output. The term motorboating is applied to oscillations whose frequency is below the range of hearing, from 1 to 10 hertz, so the individual oscillations are heard as pulses. Sometimes the oscillations can even be seen visually as the woofer cones in speakers slowly moving in and out.

Parasitic capacitance is an unavoidable and usually unwanted capacitance that exists between the parts of an electronic component or circuit simply because of their proximity to each other. When two electrical conductors at different voltages are close together, the electric field between them causes electric charge to be stored on them; this effect is capacitance.

<span class="mw-page-title-main">Decoupling capacitor</span>

A decoupling capacitor is a capacitor used to decouple one part of an electrical network (circuit) from another. Noise caused by other circuit elements is shunted through the capacitor, reducing its effect on the rest of the circuit. For higher frequencies an alternative name is bypass capacitor as it is used to bypass the power supply or other high impedance component of a circuit.

In the field of electronics, a technique where part of the output of a system is used at startup can be described as bootstrapping.

An induction heater is a key piece of equipment used in all forms of induction heating. Typically an induction heater operates at either medium frequency (MF) or radio frequency (RF) ranges.

<span class="mw-page-title-main">Applications of capacitors</span> Uses Of Capacitors In Daily Life.

Capacitors have many uses in electronic and electrical systems. They are so ubiquitous that it is rare that an electrical product does not include at least one for some purpose.

Parasitic oscillation is an undesirable electronic oscillation in an electronic or digital device. It is often caused by feedback in an amplifying device. The problem occurs notably in RF, audio, and other electronic amplifiers as well as in digital signal processing. It is one of the fundamental issues addressed by control theory.

Power integrity or PI is an analysis to check whether the desired voltage and current are met from source to destination. Today, power integrity plays a major role in the success and failure of new electronic products. There are several coupled aspects of PI: on the chip, in the chip package, on the circuit board, and in the system. Four main issues must be resolved to ensure power integrity at the printed circuit board level:

  1. Keep the voltage ripple at the chips pads lower than the specification
  2. Control ground bounce
  3. Control electromagnetic interference and maintain electromagnetic compatibility: the power distribution network is generally the largest set of conductors on the circuit board and therefore the largest (unwanted) antenna for emission and reception of noise.
  4. Maintaining a proper DC Voltage level at the load at high currents. A modern processor or field-programmable gate array can pull 1-100 Amps at sub-1V VDD levels with AC and DC margins in the tens of millivolts. Very little DC voltage drop can thus be tolerated on the power distribution network.

This glossary of electrical and electronics engineering is a list of definitions of terms and concepts related specifically to electrical engineering and electronics engineering. For terms related to engineering in general, see Glossary of engineering.

References