PCBDSN
PCBDSN
Robert DeMoor
Microcontroller Applications
Texas Instruments, Inc.
12203 Southwest Freeway, MS 728
Stafford, TX 77477
Version 1.60
8/7/95
Important Notice
Texas Instruments Incorporated (TI) assumes no liability for applications assistance, customer
product design, software performance, or infringement of patents or services described herein.
Nor does TI warrant or represent that any license, either express or implied, is granted under any
patent right, copyright, mask work right, or other intellectual property right of TI covering or
relating to any combination, machine, or process in which such semiconductor products or
services might be or are used. TI reserves the right to make improvements to this document.
The information and/or drawings set forth in this document and all rights in and to inventions
disclosed herein and patents which might be granted thereon disclosing or employing the
materials, methods, techniques, or apparatus described herein are the exclusive property of
Texas Instruments. No disclosure of information or drawings shall be made to any other person
or organization without the prior consent of Texas Instruments.
Contents
1.0) Overview
4.0) Summary
4.1) Priority of Guidelines
Revision History
1.0) Overview
Electromagnetic interference (EMI) often seems like a mysterious phenomenon. EMI can be
difficult to control, and even the results of EMI testing can vary from day to day and from test
facility to test facility. At times, the act of controlling EMI has been called "black magic" or
"voodoo." However, EMI has been researched for many years, and guidelines have been
established that can improve the electromagnetic compatibility (EMC) of a system to which they
are applied.
Designing for low EMI from the start of a project results in much easier and less expensive
solutions than attempting to fix (or “Band-Aid,”) EMI problems after a design has reached the
testing phase of development. Consequently, following a few guidelines for printed circuit board
(PCB) design at the beginning of a project can help to minimize the system’s EMI while adding
little or no cost to the system.
This document concentrates on methods for reducing radiated EMI emissions. For Texas
Instruments’ microcontroller (MCU) devices with an integrated phase-locked loop oscillator (PLL)
module, the PLL-Based Clock Module Application Note, also available from Texas Instruments
(TI), should be used for guidelines concerning PCB layout and component recommendations for
optimum noise immunity for the PLL circuitry.
EMI
Sources Paths Receivers
The receiver can be a sensitive electronic module, such as a radio, or it can be an antenna
specifically designed to receive electromagnetic emissions in a test environment. Depending on
its design and layout, a PCB can either amplify or suppress the emissions of an IC.
Current must return to the point from which it originated via the path of least impedance. The
path of least impedance, however, is usually not the path of least resistance at high frequencies.
In Figure 2, Paths A and B represent two different possible current return paths, either within a
ground plane or on a ground grid network. Path A is the lowest resistance current return path for
the output signal from the MCU since its path is the shortest. However, at frequencies over
about 10 kHz, the inductive reactance of a wire is larger than the resistance of the wire.
Therefore, any signal faster than about 10 kHz will return through Path B since this path is less
inductive than Path A. On a PCB, the return current may not have a choice of which path to take.
If Path B was removed, then a very large signal/return loop would be created. This would
undesirably provide a more efficient radiating (and receiving) antenna for high-frequency EMI
than if Path B was there. Loops of this nature can and must be avoided.
Loop Area # 2
OUTPUT
Signal OUTPUT
Signal
uC uC
GND GND
Loop Area # 1
A A B
GND GND
INPUT INPUT
A = Low-frequency B = High-frequency
signal-return path signal-return path
Harmonics from a microcontroller’s system clocks tend to couple onto the device’s inputs and
outputs. Then, the coupled high-frequency EMI uses the antennas provided by the routing of the
I/O and its return path in order to radiate. Since system clocks usually operate faster than 1
MHz, system clock noise and harmonics will take the path of least impedance (Path B).
Every signal has a signal return path associated with it. Most often, this signal return path is
called "ground." The term, "ground," however, is a misnomer. A true ground is a node at a
constant potential through which no current flows under normal conditions, like the safety ground
connection on a computer chassis. If current flows through ground, then two points on the
ground will not be at the same potential due to the resistance of the conductor. If "ground" is no
longer at a constant voltage, then it is more accurately called a "current return" path. Thus, the
loop area associated with a signal and its return is the loop between the signal and its lowest-
impedance ground path. This area must be carefully controlled.
PCB traces carrying high frequencies, large voltage swings, or large amounts of current are the
most serious EMI offenders. In microcontrollers with a divide-by-2 clock module, the oscillator
supplies the highest frequency content of the device. For devices using 32768 Hz PLL-based
clocking, the oscillator is not the most serious radiated EMI threat. For these devices, in which
the primary emissions source (high-frequency oscillator) has been removed, the system clock
(SYSCLK) generates the highest frequency content. The external VCCD to VSSD path carries
the largest amount of radiation energy in such a system. Proper decoupling is necessary to keep
the EMI close to the source and off of the other PCB traces (antennas), as will be discussed in
section 3.3. Nevertheless, every pin on a MCU is a high frequency source if SYSCLK is greater
than 1 MHz. The SYSCLK fundamental and its harmonics are coupled to the I/Os and can
radiate throughout the PCB. Consequently, care must be used to minimize the loop areas
associated with all signals and returns. The most attention should be paid to power, clocks,
connectors, and fast switching signals, as will be explained in section 3.3.
Since system clock harmonics are difficult to control, it is desirable to run a microcontroller as
slow as possible while still maintaining sufficient throughput for all of the required system
operations. Harmonics of a 1 MHz system clock are less severe than harmonics of an 8 MHz
system clock.
Radiation
Signal
Loop
Load
Source Area
Return
Differential-mode noise increases with increasing loop area of the signal path. Thus, controlling
loop areas significantly helps to control differential mode emissions.
I/O Cable
I/O
VN I CM
Common mode noise can be controlled by lowering the source potential, which usually is that of
the ground system. Thus, gridding the ground (discussed in section 3.2) is also an effective
measure against common mode noise. Additional measures include placing common-mode
impedance (ferrites/chokes) in series with cabling attached to the PCB and shunting the noise
current to ground with bypass capacitors (See section 3.2.6).
2.4) Coupling
Coupling provides the path for a source to radiate to a receptor. Both differential-mode noise
and common-mode noise are forms of coupling. Another concern, however, is the occurrence of
hidden coupling effects. One signal can couple noise onto another signal which may be routed
over a long distance. Power, oscillator (for non-PLL based devices), and clock signals carry
particularly potent supplies of radiation that can be coupled into nearby I/Os. These I/Os can
then carry the noise throughout the circuit, as illustrated in the following figure. Once this
happens, the loop area associated with the coupled noise can grow enormously. In the following
figure, the “coupling effect” capacitor is not part of the design schematic, but represents an
actual path of high-frequency noise between the OSCOUT signal and the I/O. The capacitive
coupling represented in the figure is caused by the close proximity of the OSCOUT and I/O PCB
trace routes.
I/O
OSCOUT Coupling effect Load
OSCIN
XTAL
VSSD
Heavy lines indicate path (and loop area) of noise coupled onto I/O.
When a Divide-by-two Clock Oscillator Module is used on a device, the oscillator contains the
highest frequency of the MCU and can be the worst EMI threat of coupling noise onto nearby
I/Os. If a 32768 Hz PLL Clock Module is used, then the reverse case is true: noise from the
I/Os can challenge the immunity of the PLL circuitry and its ability to maintain phase-lock.
Additionally, if the CLKOUT pin is used to supply ECLK or SYSCLK to other circuitry, that signal
can supply potent radiation and coupling to other signals. The solution, however, is relatively
simple: keep oscillator, power, and clock signal loops small, and avoid running I/Os next to those
noisy sources, especially for long distances.
Impedance VS Frequency
Low-Frequency High-Frequency Characteristics
Resistor Z
F
Capacitor
Z
F Ideal
Real
Inductor Z
F
or
Z
Wire (PCB
trace) F
or
The pitfalls of the high-frequency schematic can be avoided with careful attention to the
placement of passive circuit elements.
However, this reciprocity applies only to the antennas and not to the source/sink capabilities of
the pins connected to the antennas. Consequently, the signals that are the worst emitters are
usually not the most susceptible signals. For instance, clock output signals and high-frequency
oscillators are some of the worst EMI producers. However, reset and control signals (and low-
frequency PLL oscillators) can cause the most damage when corrupted by interference. These
signals should get high priority for EMC when routed on a PCB.
The three most important aspects of PCB design are floor-planning, grounding, and bypassing,
as will be discussed in the following sections. The PLL-Based Clock Module Application Note
should also be used for guidelines concerning PCB layout and components recommended for
optimum noise immunity for the PLL circuitry.
Analog Noisy
uC
Digital
3.2) Grounding
Along with board zoning and IC placement, proper grounding is of fundamental importance to
achieving electromagnetic compatibility. Since a "ground" is really a current return path in most
cases, the goal of grounding is to provide the lowest impedance current return path possible
without generating additional noise. A ground plane will accomplish this task for all high-
frequency noise and signals since the return current for the high frequencies will follow a path
directly under the signal and back to the source. While a ground plane is ideal for minimizing
loop area and impedance, it will not always solve capacitive or inductive coupling problems.
A ground grid for digital circuitry can provide low-impedance signal return paths for high-
frequency noise on a two-layer board and does not require the additional cost of a ground plane,
which usually requires at least a four-layer PCB. For analog circuitry, a single-point grounding
scheme is often better in order to avoid the presence of ground loops. Single-point grounding is
also preferred for noisy or high-power circuitry.
To protect sensitive analog circuitry from digital noise and to protect both analog and digital
circuitry from even noisier components, such as relays and motors, the analog, digital, and noisy
parts of a system should be separated from each other and connected only at a low-impedance
ground node.
In a mixed-signal environment, the divisions between analog and digital ground may seem
unclear. However, the analog sections of a mixed-signal IC (i.e., ADC, Gauge Drivers) should
be provided with an analog grounding scheme, and digital sections of the same IC (i.e., CMOS
digital I/O, Power), including its signals and routing, should be provided with a digital grounding
scheme.
Top-side Copper
Bottom-side Copper
Via
A ground grid can be created by running ground lines horizontally on one side of the PCB and
vertically on the other side. Where the lines cross, they should be tied together with vias (feed-
through connections) to form a grid. The size of the grid should be kept small, preferably no
larger than 1 square inch, and smaller grids are better. Signals can then be routed between the
ground lines, horizontally on one side, and vertically on the other side through a via. It is usually
more effective to lay down the ground grid before routing signals. Otherwise, space for a ground
grid rarely is provided.
With this technique, signals can still be routed to any area on the board, and each signal is never
more than one half inch from a current return path.
Additionally, a localized VSSD plane can be placed under the microcontroller to provide
shielding.
The significance of a ground grid should not be under-emphasized. To this end, a few quotes
from respected EMC experts have been included:
• “The ground system is the foundation of a digital logic printed wiring board. Therefore all
digital printed wiring boards must have either a ground plane or a ground grid” [Ott, p. 285].
• “It is important to put the ground grid on the board first, before locating the signal paths” [Ott,
p. 284].
• “Critical traces need a return path less than 0.1” away” [Van Doren, p. 10-6].
• “With regard to noise control, the single most important consideration in the layout of a
digital logic system is the minimization of the ground inductance. Ground inductance in
digital systems can be minimize by using a ground plane or ground grid” [Ott, p. 296].
• “An effective and well-designed ground grid is one of the most important aspects in the ability
of the product to meet the regulatory limits and avoid functional problems” [Paul, p. 731].
• “...there are data that indicate a correlation between reduced ground drop on a PCB (high-
frequency voltage differences between two points on the ground conductor) and a reduction
in the radiated emissions of that PCB” [Paul, p. 731].
• “The design of an effective ground grid on a PCB is a critical aspect to the regulatory
compliance of the PCB and its host system” [Paul, p. 731].
normally be designed to return low frequency current or DC to its origin through a low-resistance
path.
Parallel or series ground connections provide the cleanest current return paths for analog
signals. Parallel ground connections are best, but this scheme is cumbersome to design on a
PCB. Series ground connections are less desirable, but easier to design. Thus, a parallel
connection scheme should be used for the most sensitive analog signals, and series grounds can
be used for less sensitive analog circuitry. The following figure illustrates series and parallel
ground schemes.
VSSA VSSA
R1
R2
R3
R1 R2 R3
uC uC
VSSA VSSA
A A
The shortcoming of series ground connections is that more current flows through the ground
closest to the beginning of the chain than through the ground toward the end of the chain. Thus,
according to Ohm’s law, the series resistance of the ground trace will cause the analog circuitry
at one end of the series ground connections to be at a different ground potential than the analog
circuitry at the other end of the series ground connections. Moreover, common-mode rejection
between IC’s is worse with a series connection scheme than with a parallel scheme.
Consequently, parallel grounds are better for sensitive analog circuits.
For devices which have an on-board 32768 Hz PLL module, the PLL circuitry uses VSSA as its
reference and current return path. To enhance the immunity of the PLL circuitry, a copper shield
plane should be placed under and extending beyond the edges of the crystal and tied directly to
the VSSA pin. Except for the crystal resonator and its load capacitors and/or resistor, no other
components or traces should be connected to this shield except directly at the VSSA pin. This
avoids currents flowing through the shield which could inject noise into the PLL module. The
PLL-Based Clock Module Application Note should be referenced for additional guidelines
concerning PCB layout and component recommendations for optimum noise immunity for the
PLL circuitry.
Additionally, series filters, such as ferrites or inductors, often prove helpful for reducing noise on
power supply routes. A π configuration can be used on the PVRPWR pin, for MCUs with the
primary voltage regulator (PVR) module, or on each of the VCC pins, for devices without an
integrated supply voltage regulator. An example of a π filter appears in the figure below.
MCU
VCC
PWR/VCC ferrite/inductor
VSS VSS
The importance of choosing the right ferrite or inductor should not be underemphasized. For
example, the element should exhibit a high impedance at frequencies near 100MHz if that is the
part of the spectrum of most importance for the application. An inductor with a high impedance
at 10MHz may do nothing to filter noise at 100MHz.
Also, the ferrite should be located very close to the pin of the MCU in order to obtain the greatest
benefit of suppressing noise at the MCU and keeping the noise off of the PCB trace.
signals should be routed over or next to digital ground in order to minimize differential-mode
radiation from these sources. If fact, routing ground on each side of these fast signals provides a
good signal return while also providing some shielding for the nearby signals. Additionally,
routing fast signals to connectors (and wiring harnesses), or adjacent to other signals that are
routed to connectors, should be avoided. The fast signal lines should also be properly bypassed,
as discussed later.
Multi-layer boards can provide several weapons against radiated EMI. First, multi-layer boards
provide low-impedance return paths for all signals. Since the high-frequency component of
every signal will return to its source via the path of least impedance, every signal will be returned
on the ground plane directly under the path of the signal. For this reason, the ground plane is
sometimes called an “image plane.” Consequently, the loop area associated with each signal will
correspond to the length of the trace and the thickness of the PCB between the signal layer and
the ground layer. On a board without a ground plane, the loop area corresponds to the area
between the signal and the return trace (usually ground), and this can be quite large.
Also, multi-layer boards can take advantage of the shielding capabilities of a ground plane if the
plane is on the outside of the board. In fact, imbedding the signal layers in the center of the
board, with ground planes on the outsides of the board, will provide shielding for much of the
system. This configuration is very good for EMC; however, it may add difficulty for circuit debug
since all of the signals will be covered over. Nevertheless, a generous number of test points and
vias as well as a copy of the board layout should provide an engineer with the necessary tools for
circuit debug for a board with buried signals.
Sometimes only one layer of ground plane is available. If that is the case, it usually should be
on the outside of the board, on the side with the fewest components, in order to provide the best
shielding effectiveness. If the ground plane is buried between two signal layers, its potential
shielding effectiveness is reduced. If the only ground plane is located on the side of the board
with the most components, the space required for the components (especially surface mount)
tends to create many holes or gaps in the ground plane, thus reducing its shielding effectiveness
and its image plane effect. Therefore, if locating a ground plane on the outer layer of a
multilayer PCB results in a “chopped up” ground plane, it should probably be implemented on an
inner layer instead. Regardless of where the ground plane is located, however, the image plane
effect usually provides a reduction of common-mode and differential-mode emissions.
Even when designing a PCB with a ground plane, good two-layer board design practices should
still be followed. Ground planes do not cure EMI, they just help to reduce it. Following are a few
points that are often overlooked when designing multi-layer PCBs:
• Routing clock lines or other high-speed signals near connectors or wiring harnesses should
be avoided. Routing these high-speed signals near other signals which are routed to
connectors or wiring harnesses should also be avoided. Noise may couple from one signal
to another which may be routed to a connector and wiring harness, providing several feet of
antenna for the radiated noise to propagate from.
• If clocks or high-frequency signals are exposed on the outer layer of the PCB, GND should
be routed on each side of the signal to couple noise back to the source and to provide some
shielding for other nearby signals.
• Components (i.e., resistors and small capacitors) which filter emissions from the IC should
be kept as near to the pins as possible in order to suppress the noise within a minimal area.
These components should not be confused with circuitry designed to keep voltage spikes
from entering the PCB (i.e., diodes, MOVs, and large capacitors), which usually should be
located near the power and/or signal connectors on the PCB.
• “Chopping up” (making gaps) in the ground plane by placing signal traces on it should be
avoided. When the return current (GND current) cannot follow the path of least impedance
(the same path as the associated signal), radiating loops are created. The following figure
illustrates how a slot in a ground plane creates a less direct path for ground current and
creates a larger signal-to-return loop area.
Bottom-side Copper
Return Path Slot in GND Plane
On GND
IC Top-side Route
Plane
(Top- (Top-
Bottom-side Route
side) side)
Signal Return Path On GND Plane
Via
Slot in
Bottom-side
GND Plane
Sometimes, the placement of connectors, DIP devices, or multiple vias (feed-through holes)
inadvertently chops up a ground plane when copper is not allowed to flow between the holes.
These gaps should be avoided since they deteriorate the benefits of a ground plane.
• Signal layer connections to ground planes (i.e., a route from the GND side of a capacitor to a
via connecting it to GND) should be kept as short as possible in order to take advantage of
the low-impedance properties of the ground plane.
• Private-line VSSA traces can be routed on a signal layer in order to assure clean analog
ground and to avoid ground loops, which may detrimentally affect analog circuitry. This may
or may not be necessary, depending on the desired accuracy of the analog circuitry and also
the levels of noise on the ground planes.
• An VSSA peninsula should still be placed directly under the 32768 Hz crystal resonator and
its associated capacitors and/or resistor (for devices with the 32768 Hz PLL module only)
and connected to the VSSA pin. No current should be allowed to flow through the peninsula
except for the oscillator currents. The PLL-Based Clock Module Application Note should be
referenced for additional guidelines concerning PCB layout and component
recommendations for optimum noise immunity for the PLL circuitry.
3.3) Bypassing
Bypass capacitors serve several functions for digital logic. When used on power pins, they
supply current for digital switching. When used on I/O pins, bypass capacitors provide current
return paths for high-frequency noise. They also help to round the edges of a digital signal and
thus reduce the harmonic content of the signal.
If both the core logic power and the I/O buffer power are present on separate pins on the Device,
then they should have separate bypass capacitors.
VCCD1 should be bypassed to VSSD1, and VCCD2 should be bypassed to VSSD2. Similarly,
the analog supply (VCCA) should be bypassed only to analog ground (VSSA). Since the
PLLENA pin supplies the power to the PLL (Phase-Locked Loop) circuitry, this pin should have a
bypass capacitor to VSSA, which is the ground reference for the PLL.
Since VCCD and VSSD supply the current to the digital logic, they contain the most high-
frequency electromagnetic energy of any pins on a device. Thus, the loop created by VCCD and
VSSD should receive the most attention with regards to placement of the capacitors and the
loops created by their connections. Therefore, the VCCD bypass capacitor (0.1uF) should
always be attached as close as possible to the device’s VCCD and VSSD pins, and should
provide minimal loop areas for the high-frequency currents. For devices with the Primary
Voltage Regulator (PVR) module, the load capacitor (22uF) and its associated routing should
also be located very close to the VCCD and VSSD pins, and the routing should create minimal
loop area.
The locations and routing of the bypass and load capacitors for the analog circuitry
(VCCA/VSSA) should take next priority after the digital supply capacitors. For devices with
VCCD2 and VSSD2 pins, the capacitors for these pins should receive priority only after
VCCD1/VSSD1 and VCCA/VSSA pins.
A 0.1uF ceramic chip-type bypass capacitor should be used with each power/ground
combination. However, VCCD should not be bypassed to VSSA, and conversely, VCCA should
not be bypassed to VSSD. 22uF tantalum capacitors, preferably in surface-mount packages,
should be used to load the PVR on its regulated digital and analog supply pins. The PLLENA pin
should be bypassed with a 0.01uF ceramic chip-type capacitor to VSSA.
On the other hand, some pins that have high-frequency signals should have at least a small
bypass capacitor connected to digital ground (VSSD2, if available, otherwise VSSD). SPI pins
with 50K+ Baud rates and the CLKOUT pin, if SYSCLK or ECLK is active on the pin, are good
candidates for bypass capacitors of 0.001uF to VSSD (or VSSD2 if available) and series
resistors. The value of the series resistor depends on the loading and current drive capability of
the output; however, 100 ohms is a good value to start with.
Any filter components attached to a device pin should be located as close as possible in order to
keep any noise close to the microcontoller and off of the rest of the circuit board. Moreover, a
proper return path for a bypass capacitor, from the capacitor’s ground to the microcontroller’s
ground, is essential for returning high-frequency noise to its source while providing minimal
radiating loop area.
4.0) Summary
By understanding and applying a few fundamental PCB design guidelines, a designer can reduce
the radiated EMI of a system inexpensively at the beginning of the design cycle. Following is a
summary of PCB design guidelines for reduced EMI:
22pF 10 Meg
32768Hz
OSCIN
OSCOUT
Always route 22uF Top-side
power and ground
22pF PLLENA .1uF VSSD plane
over or near VSSD under chip
each other. 10uH
IGNITION PRIGN
VSSA Low impedance point
.01uF VCCD on ground node
GND
+12 Volts PVRPWR GND
VCCA
Top-side
VSSA plane
22uF under chip
.1uF
Gray = Top-side Cu
Black = Back-side Cu
Figure 12: Example layout for Device with PVR and 32768 Hz PLL Modules
References
Ott, Henry W., Noise Reduction Techniques In Electronic Systems, second edition, John Wiley &
Sons, New York, 1988.
Gerke, Daryl and Bill Kimmel, EDN: The Designer’s Guide to Electromagnetic Compatibility,
Cahners Publishing Company, 1994.
Paul, Clayton R., Introduction to Electromagnetic Compatibility, John Wiley & Sons, Inc., 1992.
Van Doren, Tom, Grounding and Shielding Electronic Systems, T. Van Doren, 1993.