Chapter 23. Circuit Board Layout Techniques
Bruce Carter
23.1. General Considerations
Prior discussions focused on how to design op amp circuitry, how to use ICs, and the use of associated passive components. One additional circuit component must be considered for the design to be a success—the printed circuit board (PCB) on which the circuit is to be located.
23.1.1. The PCB Is a Component of the Op Amp Design
Op amp circuitry is analog circuitry and very different from digital circuitry. It must be partitioned in its own section of the board, using special layout techniques.
Printed circuit board effects become most apparent in high speed analog circuits, but common mistakes described in this chapter can even affect the performance of audio circuits. The purpose of this chapter is to discuss some of the more common mistakes made by designers and how they degrade performance and to provide simple fixes to avoid the problems.
In all but very rare cases, the PCB layout for analog circuitry must be designed such that the effect of the PCB is transparent to the circuit. Any effect caused by the PCB itself should be minimized so that the operation of the analog circuitry in production is the same as the performance of the design and prototype.
23.1.2. Prototype, Prototype, Prototype!
Normal design cycles, particularly of large digital boards, dictate laying out of the PCB as soon as possible. The digital circuitry has been simulated, but in most cases, the production PCB itself is the prototype and may even be sold to a customer. Digital designers can correct small mistakes by implementing cuts and jumpers, reprogramming gate arrays or flash memories, and going on to the next project. This is not the case with analog circuitry. Some of the common design mistakes discussed in this chapter cannot be corrected by the cut and jumper method. They render the entire PCB unusable. It is very important for the digital designer, who is used to cuts and jumpers, to read and understand this chapter prior to releasing a board to a layout service.
A little care, taken up front, can save a board worth thousands of dollars from becoming scrap because of blunders in a tiny section of analog circuitry. This author has been the unfortunate recipient of a simple analog circuit designed by another engineer, who was accustomed to the cut and jumper method of correcting his mistakes. This resulted in a design that was full of mistakes. Not only was the op amp hooked up with inverting and noninverting inputs reversed, but an RC time constant had to be added to prevent a race condition. Repercussions from these mistakes and associated rework problems actually caused hundreds of hours to be lost from a tight production schedule. Prototyping this circuit would have taken less than a day. Prototype all analog circuitry!
23.1.3. Noise Sources
Noise is the primary limitation on analog circuitry performance. Internal op amp noise is covered in Chapter 12. Other types of noise include
• Conducted emissions, noise that the analog circuitry generates through its connections to other circuits. This is usually negligible in analog circuitry, unless it is high power, such as an audio amplifier that draws heavy currents from its power supply.
• Radiated emissions, noise that the analog circuitry generates or transmits through the air. This is also usually negligible in analog circuitry, unless it is high frequency, such as video.
• Conducted susceptibility, noise from external circuitry that is conducted into the analog circuit through its connections to other circuits. Analog circuitry must be connected to the “outside world” by at least a ground connection, a power connection, an input, and an output. Noise can be conducted into the circuit through all of these paths, as well as any others present.
• Radiated susceptibility, noise that is received through the air (or transmitted into the analog circuitry) from external sources. Analog circuitry, in many cases, resides on a PCB that may have high speed digital logic, including DSP chips. High speed clocks and switching digital signals create considerable radio frequency interference (RFI). Other sources of radiated noise are endless: the switching power supply in a digital system, cellular telephones, broadcast radio and TV, fluorescent lighting, nearby PCs, lightning in thunderstorms, and so on. Even if the analog circuitry is primarily audio in frequency, RFI may produce noticeable noise in the output.
23.2. PCB Mechanical Construction
It is important to choose a PCB with the right mechanical characteristics for the application.
23.2.1. Materials: Choosing the Right One for the Application
Printed circuit board materials are available in various grades, as defined by the National Electrical Manufacturers Association (NEMA). It would be very convenient for designers if this organization were closely allied with the electronics industry, controlling parameters such as the resistivity and dielectric constant of the material. Unfortunately, that is not the case. NEMA is an electrical safety organization, and the different PCB grades primarily describe the flammability, high temperature stability, and moisture absorption of the board. Therefore, specifying a given NEMA grade does not guarantee electrical parameters of the material. If this becomes critical for an application, consult the manufacturer of the raw board stock.
Laminated materials are designated with FR (flame resistant) and G grades. FR–1 is the least flame resistant, and FR–5 is the most. G10 and G11 have special characteristics, as described in Table 23.1.
Table 23.1 PCB Materials
Grade designationMaterial/comments
FR–1Paper/phenolic: room temperature punchable, poor moisture resistance
FR–2Paper/phenolic: suitable for single sided PCB consumer equipment, good moisture resistance
FR–3Paper/epoxy: designed for balance of good mechanical and electrical characteristics
FR–4Glass cloth/epoxy: excellent mechanical and electrical properties
FR–5Glass cloth/epoxy: high strength at elevated temperatures, self-extinguishing
G10Glass cloth/epoxy: high insulation resistance, highest bond strength of glass laminates, high humidity resistance
G11Glass cloth/epoxy: high flexural strength retention at high temperature, extreme resistance to solvents
Do not use FR–1. There are many examples of boards with burned spots, where high wattage components heated a section of the board for a period of time. This grade of PCB material has more in common with cardboard than anything else.
FR–4 is commonly used in industrial quality equipment, while FR–2 is used in high volume consumer applications. These two board materials appear to be industry standards. Deviating from these standards can limit the number of raw board material suppliers and PCB houses that can fabricate the board because their tooling is already set up for these materials. Nevertheless, in some applications, one of the other grades may make sense. For very high frequency applications, it may be necessary to consider Teflon or even ceramic board substrate. One thing can be counted on, however: The more exotic the board substrate, the more expensive it is.
In selecting a board material, pay careful attention to the moisture absorption. Just about every desirable performance characteristic of the board is negatively affected by moisture. This includes surface resistance of the board, dielectric leakage, high voltage breakdown and arcing, and mechanical stability. Also, pay attention to the operating temperature. High operating temperatures can occur in unexpected places, such as in proximity to large digital ICs that switch at high speeds. Be aware that heat rises, so if one of those 500 pin monster ICs is located directly under a sensitive analog circuit, both the PCB and circuit characteristics may vary with the temperature.
After the board substrate material has been selected, the next decision is how thick to make the copper foil laminate. For most applications, 1 oz copper is sufficient. If the circuit consumes a lot of power, 2 oz may be better. Avoid ½ oz copper, because it tends to break between the trace and the pad.
23.2.2. How Many Layers Are Best?
Depending on the complexity of the overall circuitry being designed, a designer must decide how many layers to make the PCB.
Single Sided
Very simple consumer electronics are sometimes fabricated on single sided PCBs, keeping the raw board material inexpensive (FR–1 or FR–2) with thin copper cladding. These designs frequently include many jumper wires, simulating the circuit routing on a double sided board. This technique is recommended only for low frequency circuitry. For reasons described later, this type of design is extremely susceptible to radiated noise. It is harder to design a board of this type because of the many things that can go wrong. Many complex designs have been successfully implemented with this technique, but they require a lot of forethought. An example is a television set that puts all the analog circuitry on a single sided board at the bottom of the case and uses the metallized CRT itself to shield the board from a separate digital tuning board near the top of the set. Be prepared to get creative if the design demands high volume, low cost PCBs.
If a single sided PCB is a requirement, remember the trace resistance! The op amp is not a three terminal device (inverting input, noninverting input, and output). It is a seven terminal device, as shown in Figure 23.1.
B9781856175050000235/gr1.jpg is missing
Figure 23.1
Op amp terminal model.
Resistance in the power leads of the device must be taken into account, as well as resistance between the return for the inputs and the load. Both the input and load must return somewhere. If these are at different potentials due to trace resistance, there can be problems.
Double Sided
The next level of complexity is double sided. Although there are some double sided FR–2 boards, they are more commonly fabricated with FR–4 material. The increased strength of FR–4 material supports vias better. Doubled sided boards are easier to route, because there are two layers of foil; and it is possible to route signals by crossing traces on different layers. Crossing traces, however, is not recommended for analog circuitry. Wherever possible, the bottom layer should be devoted to a ground plane and all other signals routed on the top layer. A ground plane provides several benefits:
• Ground is frequently the most common connection in the circuit. Having it continuous on the bottom layer usually makes the most sense for circuit routing.
• It increases mechanical strength of the board.
• It lowers the impedance of all ground connections in the circuit, which reduces undesirable conducted noise.
• It adds a distributed capacitance to every net in the circuit, helping to suppress radiated noise.
• It acts as a shield to radiated noise coming from underneath the board.
Multilayer
Double sided boards, in spite of their benefits, are not the best method of construction, especially for sensitive or high speed designs. The most common board thickness is 1.5 mm. This separation is too great for full realization of some of the benefits listed previously. Distributed capacitance, for example, is very low due to the separation.
Critical designs call for multilayer boards. Some of the reasons are obvious:
• Better routing for power as well as ground connections. If the power is also on a plane, it is available to all points in the circuit simply by adding vias.
• Other layers are available for signal routing, making routing easier.
• Capacitance is distributed between the power and ground planes, reducing high frequency noise.
Other reasons for multilayer boards, however, may not be obvious or intuitive:
• Better EMI/RFI rejection due to the image plane effect, which has been known since the time of Marconi. When a conductor is placed close to a parallel conductive surface, most of the high frequency currents return directly under the conductor, flowing in the opposite direction. This mirror image of the conductor within the plane creates a transmission line. Since currents are equal and opposite in the transmission line, it is relatively immune to radiated noise. It also couples the signal very efficiently. The image plane effect works equally well with ground and power planes, but they must be continuous. Any gap or discontinuity causes the beneficial effects to quickly vanish. More discussion on this follows.
• Reduced overall project cost for small production runs. Although multilayer boards are more expensive to manufacture, EMI/RFI requirements from the FCC or other agencies may require expensive testing of the design. Any problems can force a complete redesign of the PCB, leading to additional rounds of testing. A multilayer PCB can have as much as 20 dB better EMI/RFI performance over a two layer PCB. If production volumes are going to be small, it makes sense to make a better PCB to begin with than try to cut costs and take the risk of failing $25,000 to $50,000 tests.
23.2.3. Board Stack-Up: The Order of Layers
There has been a lot of confusion in the past over the optimum order for PCB layers. Take, for example, a four layer board consisting of two signal layers, a power plane, and a ground plane. Is it better to route the signal traces between the layers, thus providing shielding for the signal traces, or to make the ground and power planes the two inner planes?
In considering this question, it is important to remember that, no matter what is decided, signals will still be exposed on one or both of the top and bottom planes. The leads of the op amp PCB package and the traces on the board leading to nearby passive components and feed throughs will be exposed. Therefore, all shielding effects are compromised. It is far better to take advantage of the distributed capacitance between the power and ground plane by making them internal.
Another advantage of placing the planes internally is that the signal traces are available for probing and modification on the top and bottom layers. Anyone who has had to change connections on buried traces appreciates this feature.
For more than four layers, it is a general rule to shield higher speed signals between the ground and power planes and route slower signals on the outer layers.
23.3. Grounding
Good grounding is a system level design consideration. It should be planned into the product from the first conceptual design reviews.
23.3.1. The Most Important Rule: Keep Grounds Separate
Separate grounding for analog and digital portions of circuitry is one of the simplest and most effective methods of noise suppression. One or more layers on multilayer PCBs are usually devoted to ground planes. If the designer is not careful, the analog circuitry will be connected directly to these ground planes. The analog circuitry return, after all, is the same net in the netlist as digital return. Autorouters respond accordingly and connect all the grounds, creating a disaster.
After the fact separation of grounds on a mixed digital and analog board is almost impossible. Every ground connection in the analog circuitry must be lifted from the board and connected together. For surface mount boards, this results in a colossal mess of “tombstoned” passive components and floating IC leads.
23.3.2. Other Ground Rules
• Ground and power planes are at the same AC potential, due to decoupling capacitors and distributed capacitance. Therefore, it is important to isolate the power planes as well.
• Do not overlap digital and analog planes (Figure 23.2). Place analog power coincident with analog ground and digital power coincident with digital ground. If any portion of analog and digital planes overlap, the distributed capacitance between the overlapping portions couples high speed digital noise with the analog circuitry. This defeats the purpose of isolated planes.
B9781856175050000235/gr2.jpg is missing
Figure 23.2
Digital and analog plane placement.
Separate grounds (Figure 23.3) does not mean that the grounds are electrically separate in the system. They have to be common at some point, preferably a single, low impedance point. Systemwise, there is only one ground, and it is the electrical safety ground in an AC powered system or battery ground in a DC powered system. Everything else “returns” to that ground. It would be a good idea to develop the discipline to refer to everything that is not a ground as a return. All returns should be connected together at a single point, which is the system ground. At some point, this will be the chassis. It is important to avoid ground loops by multiple connections to the chassis. Ensuring only one chassis ground point is one of the most difficult aspects of system design.
B9781856175050000235/gr3.jpg is missing
Figure 23.3
Separate grounds.
• If at all possible, dedicate separate connector pins to separate returns and combine the returns only at the system ground. Aging and repeated mating cause connector pins to increase in contact resistance, so several pins are needed. Many digital boards consist of many layers and hundreds or thousands of nets. The addition of one more net is seldom an issue, but the addition of several connector pins almost always is. If this cannot be done, then it will be necessary to make the two returns a single net on the PCB—with very special routing precautions.
• It is important to keep digital signals away from analog portions of the circuit. It makes little sense to isolate planes, keep analog traces short, and place passive components carefully if high speed digital traces are running right next to the sensitive analog traces. Digital signals must be routed around analog circuitry and not overlap analog ground and power planes. If not, the design will include a new schematic symbol shown in Figure 23.4, the broadcasting antenna! Most digital clocks are high enough in frequency that even small capacitances between traces and planes can couple significant noise. Remember that it is not only the fundamental frequency of the clock that can cause a potential problem but also the higher frequency harmonics.
B9781856175050000235/gr4.jpg is missing
Figure 23.4
Broadcasting from PCB traces.
• It is a good idea to locate analog circuitry as close as possible to the input/output connections of the board. Digital designers, used to high current ICs, will be tempted to make a 50 mil trace run several inches to the analog circuitry, thinking that reducing the resistance in the trace will help get rid of noise. What they actually do is create a long, skinny capacitor that couples noise from digital ground and power planes into the op amp, making the problem worse!
23.3.3. A Good Example
Figure 23.5 shows a possible board layout. In this system, all electronics, including the power supply, reside on one PCB. Three isolated ground/power planes are employed: one for power, one for digital, and one for analog. Power and ground connections from digital and analog sections of the board are combined only in the supply section and are combined in close proximity. High frequency conducted noise on the power lines is limited by inductors (chokes). In this case, the designer has even located low frequency analog circuitry close to low speed digital, keeping high frequency digital and analog physically apart on the board. This is a good, careful design that has a high likelihood of success—providing good layout and decoupling rules are also followed.
B9781856175050000235/gr5.jpg is missing
Figure 23.5
A careful board layout.
23.3.4. A Notable Exception
In one case, it is necessary to combine analog and digital signals on the analog ground plane. Analog to digital and digital to analog converters (ADCs and DACs) are packaged as ICs with analog and digital ground pins coming out of the package. One might assume, based on the previous discussion, that the digital ground pin should be connected to digital ground and the analog ground pin to analog ground. That, however, is not correct.
The pin names analog ground and digital ground refer to internal connections in the IC, not the plane to which they should be connected. Both should connect to the analog ground plane. The connection would have been made inside the IC, but it is impossible to get low enough impedance at the typical geometries inside ICs. The IC designer actually counts on the end user to supply a low impedance connection outside the IC. Otherwise, the performance of the converter is worse than specified.
One might suspect that the digital portions of the converter would make circuit performance worse by coupling digital switching noise onto the analog ground and power plane. Converter designers realize this and design digital portions without a lot of output power to minimize switching transients. If the converter does not drive large fanouts, this should be no problem. Be sure to properly decouple the logic supply for the converter to analog ground (see the following section).
23.4. The Frequency Characteristics of Passive Components
Choosing the right passive components for an analog design is important. In most cases, a right passive component fits on the same pads as a wrong passive component but not always. Start the design process by carefully considering the high frequency characteristics of passive components and putting the correct part outline on the board from the start.
Most designers are totally ignorant of the frequency limitations of the passive components they use in analog circuitry. Passive components have limited frequency ranges, and operation of the part outside that range can have some very unexpected results. One might think that this discussion applies only to high speed analog circuits. But high frequencies that are radiated or conducted into a low speed circuit also affect passive components. For example, a simple op amp low pass filter may well turn into a high pass filter at RF frequencies.
23.4.1. Resistors
High frequency performance of resistors is approximated by the schematic shown in Figure 23.6.
B9781856175050000235/gr6.jpg is missing
Figure 23.6
Resistor high frequency performance.
Resistors are typically one of three types: wire wound, carbon composition, or film. It does not take a lot of imagination to understand how wire wound resistors can become inductive, because they are coils of resistive wire. Most designers are not aware of the internal construction of film resistors, which are also coils of thin metallic film. Therefore, film resistors are also inductive at high frequencies. The inductance of film resistors is lower, however, and values under 2 kΩ are usually suitable for high frequency work.
The end caps of resistors are parallel, and there will be an associated capacitance. Usually, the resistance will make the parasitic capacitor so “leaky” that the capacitance does not matter. For very high resistances, the capacitance appears in parallel with the resistance, lowering its impedance at high frequencies.
23.4.2. Capacitors
High frequency performance of capacitors is approximated by the schematic shown in Figure 23.7. Capacitors are used in analog circuitry for power supply decoupling and as filter components. For an ideal capacitor, reactance decreases by the formula
(23.1)
B9781856175050000235/si1.gif is missing
where
XC = capacitive reactance in ohms.
f = frequency in hertz.
C = capacitance in microfarads.
B9781856175050000235/gr7.jpg is missing
Figure 23.7
Capacitor high frequency performance.
Therefore, a 10 μF electrolytic capacitor has a reactance of 1.6 Ω at 10 kHz and 160 μΩ at 100 MHz. Right?
In reality, one never sees the 160 μΩ with the electrolytic capacitor. Film and electrolytic capacitors have layers of material wound around each other, which creates a parasitic inductance. The self-inductance effects of ceramic capacitors are much smaller, giving them a higher operating frequency. There is also some leakage current from plate to plate, which appears as a resistance in parallel with the capacitor, as well as resistance within the plates themselves, which add a parasitic series resistance. The electrolyte itself in electrolytic capacitors is not perfectly conductive (to reduce leakage current). These resistances combine to create the equivalent series resistance (ESR). The capacitors used for decoupling should be low ESR types, as any series resistance limits the effectiveness of the capacitor for ripple and noise rejection. Elevated temperatures also severely increase the ESR and can be permanently destructive to capacitors. Therefore, if an aluminum electrolytic will be subjected to high temperatures, use the high temperature grade (105°C) not the low temperature grade (85°C).
For leaded parts, the leads themselves also add a parasitic inductance. For small values of capacitance, it is important to keep the lead lengths short. The combination of parasitic inductance and capacitance can produce resonant circuits! Assuming a lead self-inductance of 8 nH/cm (see the following sections), a 0.01 μF capacitor with two 1 cm leads resonates at 12.5 MHz. This effect was well known to engineers many decades ago, who designed vacuum tube based products with leaded components. Woe be to any hobbyist restoring antique radios that is unaware of this effect!
If electrolytic capacitors are used in a design, make sure that the polarity is correctly observed. The positive terminal of the capacitor must be connected to the more positive of two DC potentials. If there is any doubt whatsoever which polarity is correct, design calculations must continue until it is known, or a prototype must be built. Incorrect polarity of electrolytic capacitors causes them to conduct DC current, in most cases, destroying the part—and probably the rest of the circuit as well. If there is a rare case in which both polarities are present, use a nonpolarized electrolytic capacitor (which is constructed by connecting two polarized electrolytic capacitors in series). Of course, one can always connect two capacitors in series on the PCB, keeping in mind that the effective capacitance is cut in half for equal values of capacitor.
23.4.3. Inductors
High frequency performance of inductors is approximated by the schematic shown in Figure 23.8. Inductive reactance is described by the formula
(23.2)
B9781856175050000235/si2.gif is missing
B9781856175050000235/gr8.jpg is missing
Figure 23.8
Inductor high frequency performance.
where
XL = inductive reactance in ohms.
f = frequency in hertz.
L = inductance in Henrys.
Therefore, a 10 mH inductor has a reactance of 628 Ω at 10 kHz, which increases to 6.28 MΩ at 100 MHz. Right?
In reality, one never sees the 6.28 MΩ with this inductor. Parasitic resistances are easy to understand: The inductor is constructed of wire, which has a given resistance per unit length. Parasitic capacitance is harder to visualize, unless one considers that each turn of wire in the inductor is located next to adjacent turns, forming a capacitor. This parasitic capacitance limits the upper frequency of this inductor to under 1 MHz. Even small wire wound inductors start to become ineffective in the 10 MHz to 100 MHz range.
23.4.4. Unexpected PCB Passive Components
In addition to the obvious passive components just discussed, the PCB itself has characteristics that form components every bit as real as those discussed previously—just not as obvious.
PCB Trace Characteristics
The layout pattern on a PCB can make it susceptible to radiated noise. A good layout minimizes the susceptibility of analog circuitry to as many radiated noise sources as possible. Unfortunately, some level of RF energy always is able to upset the normal operation of the circuit. If good design techniques are followed, this level is one that the circuit never encounters in normal operation.
Trace Antennas
A board is susceptible because the pattern of traces and component leads form antennas. Antenna theory is a complex subject, well beyond the scope of this book. Nevertheless, a few basics are presented here.
One basic type of antenna is the whip, or straight conductor. This antenna works because a straight conductor has parasitic inductance and therefore can concentrate flux from external sources. The impedance of any straight conductor has a resistive component and an inductive component:
(23.3)
B9781856175050000235/si3.gif is missing
For DC and low frequencies, resistance is the major factor. As the frequency increases, however, the inductance becomes more important. Somewhere in the range of 1 kHz to 10 kHz, the inductive reactance exceeds the resistance, so the conductor is no longer a low resistance connection but rather an inductor.
The formula for the inductance of a PCB trace is
(23.4)
B9781856175050000235/si4.gif is missing
where
X = length of the trace.
W = width of the trace.
H = thickness of the trace.
The inductance is relatively unaffected by the diameter, since it varies as the logarithm of the circumference. Common wires and PCB traces vary between 6 nH and 12 nH per centimeter.
For example, a 10 cm PCB trace has a resistance of 57 mΩ and an inductance of 8 nH per centimeter. At 100 kHz, the inductive reactance reaches 50 mΩ. At frequencies above 100 kHz, the trace is inductive—not resistive.
A rule of thumb for whip antennas is that they begin to couple significant energy at about one 20th of the wavelength of the received signal, peaking at one quarter the wavelength. Therefore, the 10 cm conductor of the previous paragraph begins to be a fairly good antenna at frequencies above 150 MHz. Remember that, although the clock generator on a digital PCB may not operate at a frequency as high as 150 MHz, it approximates a square wave. Square waves have harmonics throughout the frequency range where PCB conductors become efficient antennas. If through hole components are mounted in a way that leaves significant lead length, those component leads also become antennas, particularly if they are bent.
Another major type of antenna is the loop. The inductance of a straight conductor is dramatically increased by bending it into partial or complete loops. Increased inductance lowers the frequency at which the conductor couples radiated signals into the circuit.
Without realizing it, most digital designers are well versed in loop antenna theory. They know not to make loops in critical signal pathways. Some designers that would never think of making a loop with a high speed clock or reset signal, however, turn right around and create a loop by the technique they use for layout of the analog section of the board. Loop antennas constructed as loops of wire are easy to visualize. What is not as obvious is that slot antennas are just as efficient. Consider the three cases shown in Figure 23.9.
B9781856175050000235/gr9.jpg is missing
Figure 23.9
Loop and slot antenna board trace layouts.
Version A is a poor design. It does not use an analog ground plane at all. A loop is formed by the ground and signal traces. An electric field, E, and perpendicular magnetic field, H, are created and form the basis of a loop antenna. A rule of thumb for loop antennas is that the length of each leg is equal to half the most efficiently received wavelength. Remember, however, that, even at one 20th of the wavelength, the loop still is a fairly efficient antenna.
Version B is a better design, but there is intrusion into the ground plane, presumably to make room for a signal trace. A much smaller slot antenna is formed by the difference in pathways between signal and return. A second loop is created by the cutout for the IC.
Version C is the best design. Signal and return are coincident with each other, eliminating loop antenna effects completely. Note that there is still a cutout for the IC, but it is located away from the return path for the signal.
Trace Reflections
Reflections and matching are closely related to loop antenna theory but different enough to warrant their own discussion.
When a PCB trace turns a corner at a 90° angle, a reflection can occur. This is primarily due to the change in width of the trace. At the apex of the turn, the trace width is increased to 1.414 times its width. This upsets the transmission line characteristics, especially the distributed capacitance and self-inductance of the trace, resulting in the reflection. It is a given that not all PCB traces can be straight, so they have to turn corners. Most CAD systems give some rounding effect on the trace. Sharp 90° corners in traces are a relic of the tape up days of PCB layout. The rounding effects of CAD programs, however, still do not necessarily maintain constant width as the trace rounds the corner. Figure 23.10 shows progressively better techniques of rounding corners. Only the last example maintains constant trace width and minimizes reflections. Most CAD programs now support these methods, but they can entail a little more work to master.
B9781856175050000235/gr10.jpg is missing
Figure 23.10
PCB trace corners.
A suggestion for the advanced PCB layout engineer is to leave rounding to the last step before tear dropping and flood filling. Otherwise, the CAD program slows down doing numerical calculations as the traces are moved around during routing.
Trace to Plane Capacitors
PCB traces, being composed of foil, form capacitance with other traces that they cross on other layers. For two traces crossing each other on adjacent planes, this is seldom a problem. Coincident traces (those that occupy the same routing on different layers), form a long, skinny capacitor. The formula for capacitance is shown in Figure 23.11.
B9781856175050000235/gr11.jpg is missing
Figure 23.11
PCB trace to plane capacitance formula.
For example, if the capacitance formula is applied to the following trace:
• Four layer board, signal routing next to the ground plane.
• Board layer thickness, 0.188 mm.
• Trace width, 0.75 mm.
• Trace length, 7.5 mm.
A typical value for ER of FR–4 PCB material is 4.5. Due to the variations of material from which an FR–4 board can be fabricated, this value is not guaranteed but should be in the range of 4 to 5.
The capacitance between these traces would be 1.1 pF. Of course, the antenna effect on a 7.5 mm trace would be devastating, so this example is a bit extreme. Ignoring the antenna effects for now, in some cases, even a very small parasitic capacitance, like 1 pF, is unacceptable. Figure 23.12 dramatically illustrates the effect of 1 pF capacitance occurring at the inverting input of the op amp. It causes doubling of the output amplitude near the bandwidth limit of the op amp. This is an invitation to oscillation, especially since the trace is an efficient antenna above 180 MHz.
B9781856175050000235/gr12.jpg is missing
Figure 23.12
Effect of a 1 pF capacitance on op amp inverting input.
There are numerous fixes to this problem. The most obvious would be to shorten the length of the traces. Another, not so obvious fix would be to use a different trace width. There is no reason why an inverting op amp trace has to be 0.75 mm wide—it carries almost no current. If the trace length is reduced to 2.5 mm (one third as long) and the trace width is changed to 0.188 mm (one quarter as wide), the capacitance becomes 0.1 pF, much less significant in the preceding example. Another fix is to remove the ground plane under the inverting input and the traces leading to it.
The inverting input of op amps, particularly high speed op amps, is especially prone to oscillation in high gain circuits. This is due to unwanted capacitance on the input stage. It is important to minimize capacitance on this input by reducing trace width and placing components as close as possible to this input. If this input still oscillates, it may be necessary to scale the input and feedback resistors lower by a decade or two to change the resonance of the circuit. Scaling up the resistors seldom helps, as the problem is also related to the impedance of the circuit. If filter components are involved, they also must be scaled to avoid changing the filter characteristics of the circuit. The power consumption of the circuit also increases if resistors are lowered.
Trace to Trace Capacitors and Inductors
PCB traces are not infinitely thin. They have some finite thickness, as defined by the ounce parameter of the copper clad foil. The higher the number of ounces, the thicker the copper. If two traces run side by side, then there is capacitive and inductive coupling between them (Figure 23.13). The formulas for these parasitic effects can be found in transmission line or microstrip references but are too complex for inclusion here.
B9781856175050000235/gr13.jpg is missing
Figure 23.13
Coupling between parallel signal traces.
Signal lines should not be routed parallel to each other, unless transmission line or microstrip effects are desired. Otherwise, a gap of at least three times the signal trace width should be maintained.
Capacitance between traces in an analog design can become a problem if fixed resistors in the design are large (several megaohms). Capacitance between the inverting and noninverting inputs of an op amp could easily cause oscillation.
Inductive Vias
Whenever routing constraints force a via (connection between layers of a PCB, Figure 23.14), a parasitic inductor is also formed. At a given diameter (d), the approximate inductance (L) of an via at a height of (h) may be calculated as follows:
(23.5)
B9781856175050000235/si5.gif is missing
B9781856175050000235/gr14.jpg is missing
Figure 23.14
Via inductance measurements.
For example, a 0.4 mm diameter via through a 1.5 mm thick PCB has an inductance of 1.1 nH.
Keep in mind that inductive vias combined with parasitic capacitance can form resonant circuits. The self-inductance of a via is small enough that these resonances are in the gigahertz range, but inductors add in series, lowering the resonant frequency. Do not put several vias on a critical trace of a high speed analog circuit! Another concern is that the vias put holes in ground planes, potentially creating ground loops. They should be avoided: The best analog layout is one that routes all signal traces on the top layer of the PCB.
Flux Residue Resistance
Yes, even an unclean board can affect analog circuit performance.
Be aware that if the circuit has very high resistances, even in the low megaohms, special attention may need to be paid to cleaning. A finished assembly may be adversely affected by flux or cleansing residue. The electronics industry in the past few years has joined the rest of the world in becoming environmentally responsible. Hazardous chemicals are being removed from the manufacturing process, including flux that has to be cleaned with organic solvents. Water soluble fluxes are becoming more common, but water itself can easily become contaminated with impurities. These impurities lower the insulation characteristics of the PCB substrate. It is vitally important to clean with fresh distilled water every time a high impedance circuit is cleaned. Some applications that may call for the older organic fluxes and solvents, such as very low power battery powered equipment with resistors in the tens of megaohm range. Nothing can beat a good vapor defluxing machine for ensuring that the board is clean.
23.5. Decoupling
Noise, of course, can propagate into analog circuitry through the power pins of the circuit as a whole and the op amp itself. Bypass capacitors are used to reduce the coupled noise by providing low impedance power sources local to the analog circuitry.
23.5.1. Digital Circuitry: A Major Problem for Analog Circuitry
If analog circuitry is located on the same board with digital circuitry, it is important to understand a little about the electrical characteristics of digital gates.
A typical digital output consists of two transistors connected in series between power and ground (Figure 23.15). One transistor is turned on and the other turned off to produce logic high and vice versa for logic low. Because one transistor is turned off for either logic state, the power consumption for either logic state is low, while the gate is static at that level.
B9781856175050000235/gr15.jpg is missing
Figure 23.15
Logic gate output structure.
The situation changes dramatically whenever the output switches from one logic state to the other. For a brief period of time, both transistors conduct simultaneously. During this period of time, current drawn from the power supply increases dramatically, since there is now a low impedance path through the two transistors from power to ground. Power consumption rises dramatically then falls, creating a droop on the power supply voltage and a corresponding current spike. The current spike radiates radio frequency (RF) energy. There may be dozens or even hundreds of such outputs on a digital IC, so the aggregate effect may be quite dramatic.
It is impossible to predict the frequencies of these spikes, because the frequencies are affected by the propagation delays of the transistors in the gate. Propagation delay is affected by random factors that occur during manufacture. Digital switching noise is broadband, with harmonics throughout the spectrum. A general rejection technique is required, rather than one that rejects a specific frequency.
23.5.2. Choosing the Right Capacitor
Table 23.2 is a rough guideline describing the maximum useful frequencies of common capacitor types.
Table 23.2 Recommended Maximum Frequencies for Capacitors
TypeMaximum frequency
Aluminum electrolytic100 kHz
Tantalum electrolytic1 MHz
Mica500 MHz
Ceramic1 GHz
Obviously, from the table, tantalum electrolytic capacitors are useless for frequencies above 1 MHz. Effective high frequency decoupling at higher frequencies demands a ceramic capacitor. Self-resonances of the capacitor must be known and avoided, or the capacitor may not help or even make the problem worse. Figure 23.16 illustrates the typical self-resonance of two capacitors commonly used for bypassing: 10 μF tantalum electrolytic and 0.01 μF ceramic.
B9781856175050000235/gr16.jpg is missing
Figure 23.16
Capacitor self-resonance.
Consider these resonances to be typical values, the characteristics of actual capacitors can vary from manufacturer to manufacturer and grade of part to grade of part. The important thing is to make sure that the self-resonance of the capacitor occurs at a frequency above the range of the noise that must be rejected. Otherwise, the capacitor enters a region where it is inductive.
Do not assume that a single 0.1 μF capacitor will decouple all frequencies. Smaller capacitors may work better at higher frequencies than larger ones. When poor decoupling at higher frequencies is suspected, try a smaller capacitor rather than a larger one.
23.5.3. Decoupling at the IC Level
The method most often used to decouple the high frequency noise is to include a capacitor or multiple capacitors connected from the op amp power pin to the op amp ground pin. It is important to keep the traces on this decoupling capacitor short. If not, the traces on the PCB have significant self-inductance, defeating the purpose of the capacitor.
A decoupling capacitor must be included on every op amp package, whether it contains one, two, or four devices per package. The value of capacitor must be picked carefully to reject the type of noise present in the circuit.
In particularly troublesome cases, it may be necessary to add a series inductor into the power supply line connecting to the op amp. This inductor is in addition to the decoupling capacitors, which are the first line of defense. The inductor should be located before, not after, the capacitors.
Another technique that is lower in cost is to replace the series inductor with a small resistor in the 10 Ω to 100 Ω range. The resistor forms a low pass filter with the decoupling capacitors. There is a penalty to pay for this technique: Depending on the power consumption of the op amp, it will reduce the rail to rail voltage range. The resistor forms a voltage divider with the op amp as a resistive active component in the lower leg of the divider. Depending on the application, this may or may not be acceptable.
23.5.4. Decoupling at the Board Level
Usually, enough low frequency ripple is on the power supply at the board input to warrant a bulk decoupling capacitor at the power input. This capacitor is used primarily to reject low frequency signals, so an aluminum or tantalum capacitor is acceptable. An additional ceramic cap at the power input decouples any stray high frequency switching noise that may be coupled off of the other boards.
23.6. Input and Output Isolation
Many noise problems are the result of noise being conducted into the circuit through its input and output pins. Due to the high frequency limitations of passive components, the response of the circuit to high frequency noise may be quite unpredictable.
In situations in which conducted noise is substantially different in frequency from the normal operating range of the circuit, the solution may be as simple as a passive RC low pass filter that rejects RF frequencies while having negligible effect at audio frequencies. A good example is RF noise being conducted into an audio op amp circuit. Be careful, though. A low pass filter loses its characteristics at 100 to 1000 times f3dB. More stages may be required to cover different frequency ranges. If this is the case, make the highest frequency filter the one nearest the source of noise. Inductors or ferrite beads can also be used in a noise rejection filter network to eliminate conducted noise. Ferrite beads are inductive up to a specified frequency then become resistive.
The effect of radiated energy coupling into an analog circuit can be so bad that the only solution to the problem may be to completely shield the circuit from radiated energy. This shield, called a Faraday cage, must be carefully designed so that the frequencies causing the problem are not allowed to enter the circuit. This means that the shield must have no holes or slots larger than one 20th the wavelength of the offending frequency. This can be a demanding requirement. It is a good idea to design a PCB from the beginning to have enough room to add a metal shield if it becomes necessary. If a shield is used, frequently the problem is severe enough that ferrite beads also are required on all connections to the circuit.
23.7. Packages
Op amps are commonly supplied one, two, or four per package (Figure 23.17). Single op amps often contain additional inputs for features such as offset nulling. Op amps supplied two and four per package offer only inverting and noninverting inputs and the output. If additional features are important, the only package choice is single. Be aware, though, that the offset nulling pins on a single op amp package can act as secondary inputs and must be treated carefully. Consult the data sheet on the particular device being used.
B9781856175050000235/gr17.jpg is missing
Figure 23.17
Common op amp pinouts.
The single op amp package places the output on the opposite side from the inputs. This can be a disadvantage at high speeds, because it forces longer PCB traces. One way to overcome this difficulty is to use a surface mount package and mount the feedback components on the rear of the board. This, however, adds at least two vias to the design and places a hole in the ground plane for a two layer design. It may make more sense to use a dual op amp package, even if the second op amp is unused (remember to terminate it properly, see Section 23.7.3). Figure 23.18 illustrates a trace length for an inverting op amp stage.
B9781856175050000235/gr18.jpg is missing
Figure 23.18
Trace length for an inverting op amp stage.
It is popular to use dual op amps for stereophonic circuits and quad op amps for filter stages with many sections. There is a penalty for doing so, however. Although modern processing techniques provide high levels of isolation between amplifiers on the same piece of silicon, there is some crosstalk. If isolation between amplifiers is important, then single packages should be considered. Crosstalk problems are not limited to the IC—the dual and quad packages place a high density of passive components in close proximity to each other. This proximity leads to some crosstalk.
Dual and quad op amp packages offer additional benefits beyond density. The amplifier stages tend to be mirror images of each other. If similar stages are to be laid out on the PCB, the layout needs to be done only once, then it can be mirror imaged to form the other stage. Figure 23.19 illustrates this effect for four inverting op amp stages implemented in a quad package.
B9781856175050000235/gr19.jpg is missing
Figure 23.19
Mirror image layout for quad op amp package.
These illustrations, however, do not show all connections required for operation, in particular, the half supply generator for single supply operation. Modifying the diagram of Figure 23.19 to use the fourth op amp as a half supply generator is shown in Figure 23.20.
B9781856175050000235/gr20.jpg is missing
Figure 23.20
Quad op amp package layout with half supply generator.
This example shows all the connections actually required to produce three independent inverting stages. Note that the half supply connection can be made entirely under the IC, keeping the trace length short. This example is not meant to be used as a suggested PCB layout, it merely illustrates what can be done. The half supply op amp, for example, could be any one of the four. The passive components can be selected so that they span the lead pitch. Surface mount 0402 packages, for example, span a width equal to or less than a standard small outline package. This can keep trace lengths extremely short for high frequency applications.
Package styles for op amps include the dual inline and small outline. Lead pitches for op amps have been continually decreasing, as has been the case for all ICs in general. Decreasing lead pitches are accompanied by a decrease in the size of passive components as well. Decreasing the overall circuit dimensions reduces parasitic inductance, which should allow higher frequency circuits, but it also increases the potential for crosstalk by placing conductors closer to each other where capacitive effects increase.
23.7.1. Through Hole Considerations
The older technology for op amps and other components is through hole. Components are constructed with leads that insert through holes in the board, hence the name.
Through hole components, due to their size, are better suited to applications where space is not an issue. The components themselves are frequently lower in cost but the PCB is more expensive, because the PCB fabrication house has to drill holes for component leads. PCBs are primarily a mechanical fabrication; the number of holes and number of different drills have a big impact on the price.
The leads on a through hole op amp are arranged on a 0.1 in. grid. Many PCB layout people like to maintain the 0.1 in. grid for the rest of the components as well. Resistors and other passive components can even be purchased with leads prebent to land on a 0.1 in. grid. Some electrolytic capacitors have leads that are on a 0.025 in. grid.
These component sizes may force a lot of wasted area on the PCB. Components that ideally should be placed close to the op amp itself may be forced several tenths of an inch away, due to intervening components. Therefore, through hole circuitry is not recommended for high speed analog circuitry or for analog circuitry in proximity to high speed digital.
Some designers attempt to overcome the long trace length caused by resistors by placing the resistors on the board vertically, one lead of the resistor bent close to the body of the part. This is common in older consumer electronics. This allows for denser placement of parts and may help some with trace length, but each resistor exposes almost 1 cm of one component lead to radiated signals and lead self-inductance.
An advantage of the through hole approach of PCB layout is that the through holes themselves can serve as feed throughs, reducing the number of vias in complex circuits.
23.7.2. Surface Mounting
Surface mount circuitry does not require a hole for each component lead. Automated testing, however, may require vias on every node. The holes were never an issue with through hole circuitry, because every component lead made a hole in the board. The PCB layout designer who is used to designing a board with a minimum number of vias now has to put a via on every node of the circuit. This can make Swiss cheese out of a nice continuous ground plane, negating many of the advantages it provides.
Fortunately, there is a close variation of the “via on every node” requirement. This requirement can often be met by putting a test pad on every node. The automated test station can then access the analog circuitry from the top of the board. A clamshell test fixture is significantly more expensive than one that accesses only one side of the board. The extra cost can be justified if there is documentation that circuit performance will be unacceptable with vias.
Signal connections to ground or the power supply may have to be made through a small fixed resistor instead, so the automated equipment can access that pin of the IC and test its function.
23.7.3. Unused Sections
In many op amp designs, one or more op amps may be unused. If this is the case, the unused section must be terminated properly. Improper termination can result in greater power consumption, more heat, and more noise in op amps on the same physical IC. If the unused section of the op amp is connected as shown in the better side of Figure 23.21, it will be easier to use it for design changes.
B9781856175050000235/gr21.jpg is missing
Figure 23.21
Proper termination of unused op amp sections.
23.8. Summary
Keep the following points in mind when designing a PCB for analog circuitry.
23.8.1. General
• Think of the PCB as a component of the design.
• Know and understand the types of noise to which the circuit will be subjected.
• Prototype the circuit.
23.8.2. Board Structure
• Use a high quality board material, such as FR–4.
• Multilayer boards are as much as 20 dB better than double sided boards.
• Use separate, nonoverlapping ground and power planes.
• Place power and ground planes to the interior of the board instead of the exterior.
23.8.3. Components
• Be aware of frequency limitations of traces and other passive components.
• Avoid vertical mounting of through hole passive components in high speed circuits.
• Use surface mount for high speed analog circuitry.
• Keep traces as short as possible.
• Use narrow traces if long traces are required.
• Terminate unused op amp sections properly.
23.8.4. Routing
• Keep analog circuitry close to the power connector of the board.
• Never route digital traces through analog sections of the board or vice versa.
• Make sure that traces to the inverting input of the op amp are short.
• Make sure that traces to the inverting and noninverting inputs of the op amp do not parallel each other for any significant length.
• It is better to avoid vias, but the self-inductance of vias is small enough that a few should cause few problems.
• Do not use right angle traces, use curves if at all possible.
23.8.5. Bypassing
• Use the correct type of capacitor to reject the conducted frequency range.
• Use tantalum capacitors at power input connectors for filtering power supply ripple.
• Use ceramic capacitors at power input connectors for high frequency conducted noise.
• Use ceramic capacitors at the power connections of every op amp IC package. More than one capacitor may be necessary to cover different frequency ranges.
• Change the capacitor to a smaller—not larger—value if oscillation occurs.
• Add series inductors or resistors for stubborn cases.
• Bypass analog power only to analog return, never to digital return.
Further Reading
1. James Bryant, Ask the Applications Engineer –10, Analog Devices (2002); Analog Dialog 30th Anniversary Issue.
2. Andy Hahn, High-Speed Operational Amplifier Layout Made Easy. (2000) Texas Instruments, Dallas; SLOA046.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset