Chapter 19: PCB Design
A printed circuit board (PCB) transforms a schematic into a physical assembly of copper, dielectric, and components. Mastering PCB design means understanding how geometry affects signal integrity, how current density limits trace width, how layer stackups control impedance, and how good layout practice eliminates EMC headaches before they arise.
4-Layer PCB Stackup
19.1 Schematic Capture & Component Footprints
PCB design begins in a schematic editor (KiCad, Altium, Eagle) where components are placed as symbols connected by nets. Each symbol is linked to a footprint — the physical pad pattern on the PCB — which must match the land pattern specified in the component datasheet.
Common package families and their footprint considerations:
- Through-hole (DIP, TO-220): drill holes with annular rings; excellent mechanical strength; good for high-current or high-voltage parts.
- SMD passive (0402, 0603, 0805): two rectangular pads; smaller sizes improve density but increase assembly cost.
- Fine-pitch IC (QFP, SOIC, TSSOP): closely spaced gull-wing leads; requires stencil-applied solder paste and reflow soldering.
- Area-array (BGA, QFN, LGA): pads beneath the component; requires X-ray inspection; thermal pad on QFN carries heat away.
Design Rule: Courtyard Overlap
Every footprint has a courtyard — the minimum placement clearance boundary. Overlapping courtyards indicate a mechanical collision and will prevent assembly. Always run DRC (Design Rule Check) before layout export.
19.2 PCB Layer Stackup
A 2-layer board (signal top, signal bottom) is the most economical option, suitable for simple designs below ~100 MHz. High-speed digital or RF designs demand a 4-layer stackup: signal, ground plane, power plane, signal. The solid reference planes immediately adjacent to signal layers dramatically reduce loop inductance and radiated emissions.
2-Layer Stack
4-Layer Stack
19.3 Trace Width for Current — IPC-2221
The IPC-2221 standard relates current capacity to trace cross-sectional area and allowed temperature rise. For external traces (top or bottom layer):
where \(I\) is current in amperes, \(\Delta T\) is the allowed temperature rise in °C, and \(A\) is the cross-sectional area in square mils (1 mil = 25.4 µm). Inverting for trace width \(W\):
where \(t_{\text{Cu}}\) is the copper thickness in mils. Internal traces use the coefficient 0.024 (half the current capacity). A practical rule of thumb: 1 A per mm of trace width for 1 oz copper with 10 °C rise.
19.4 Impedance-Controlled Traces
For signals above ~100 MHz (or with rise times below ~1 ns), traces become transmission lines. The characteristic impedance of a microstrip (trace on outer layer above reference plane) is:
where \(h\) is dielectric height, \(w\) is trace width, \(t\) is copper thickness (all in consistent units), and \(\varepsilon_r\) is the dielectric constant. For a 50 Ω microstrip on FR4 (εr = 4.4) with a 1.6 mm board and 1 oz copper, the required trace width is approximately 3 mm.
A stripline (trace buried between two reference planes) gives better shielding and lower radiation but requires a more expensive stackup. Differential pairs (100 Ω) are used for USB, Ethernet, HDMI, and LVDS signals.
Signal integrity rule: when trace electrical length exceeds λ/10 (wavelength divided by 10), transmission-line effects dominate. At 1 GHz in FR4 (εr = 4.4), λ ≈ 143 mm — so traces longer than ~14 mm must be impedance-controlled.
19.5 Via Types
Through-Hole Via
Drilled from top to bottom of the board. The most common type. Minimum drill diameter ~0.2 mm (HDI), typical 0.3–0.8 mm. Every layer must accommodate the drill path, reducing routing channels on inner layers.
Blind Via
Connects an outer layer to one or more inner layers without penetrating the entire board. Enables higher routing density (BGA breakout). Requires sequential lamination, increasing cost by 20–50%.
Buried Via
Connects two or more inner layers without reaching the surface. Invisible on outer layers, maximising surface real-estate. Highest-cost option; used in advanced HDI designs for mobile SoCs and fine-pitch BGAs.
Annular ring rule: the copper ring surrounding a via hole must be large enough to guarantee a reliable connection after drill registration tolerance. IPC-2221 Class B requires a minimum annular ring of 0.05 mm (2 mil). Via-in-pad (filling with resin and plating over) allows component placement directly over vias, essential for very fine-pitch BGAs (< 0.5 mm pitch).
19.6 Design Rules, Thermal Management & EMC
Design Rule Checks (DRC)
A DRC verifies that the layout satisfies manufacturing constraints. Key parameters:
Thermal Management
High-power components require thermal relief or thermal vias. A copper polygon pour connected to a heatsink pad with a dense via array conducts heat to inner GND planes. The thermal resistance through a via array: \( \theta = L / (n \cdot k_{\text{Cu}} \cdot A_{\text{via}}) \). Thermal vias of 0.3 mm diameter on a 0.6 mm grid achieve ≈ 5 °C/W for a 10×10 mm pad.
EMC Considerations
EMC-clean layout requires: (1) solid, unbroken GND planes with no split beneath high-speed traces; (2) decoupling capacitors (100 nF, 10 nF, 1 nF) placed as close as possible to power pins; (3) return current paths follow signal traces on the adjacent reference plane; (4) clock traces guarded by GND stitching vias; (5) ferrite beads isolate noisy switching regulators from sensitive analog circuitry.
Python: Trace Width & Impedance Calculator
The simulation below (left) applies the IPC-2221 formula to plot required trace width vs current for three copper weights. The centre panel plots microstrip characteristic impedance vs w/h ratio for FR4 and Rogers substrates. The right panel shows resistive power loss vs trace width for a 100 mm trace at different currents.
Click Run to execute the Python code
Code will be executed with Python 3 on the server