RF - PCB - Design - An5407 Optimized RF Board Layout For stm32wl Series Stmicroelectronics
RF - PCB - Design - An5407 Optimized RF Board Layout For stm32wl Series Stmicroelectronics
RF - PCB - Design - An5407 Optimized RF Board Layout For stm32wl Series Stmicroelectronics
Application note
Introduction
The STM32WL Series microcontrollers integrate RF transceiver for LPWAN (long-power wide-area network), compatible with
LoRa®, GFSK, DBPSK, and MSK, in the frequency range 150 to 960 MHz.
The STM32WL Series devices (named STM32WL later in this document) have two output powers:
• HP (high-power RFO_HP), optimized up to 22 dBm
• LP (low-power RFO_LP), optimized up to 15 dBm
The devices also include a differential RF input (RFI, up to 0 dBm) for the Rx low-noise amplifier (LNA).
To achieve the right performances for the RF output and RF input signals, some recommendations must be followed for the
board design. Special care is required for the layout of an RF board compared to a conventional circuit.
This document describes precautions to be taken to achieve the best RF performance of the STM32WL on efficient applications,
that last for long time under battery. The description is based on the UFBGA73 (5 x 5 mm) reference 4-layer board.
This application note applies to STM32WL Series microcontrollers based on the Arm® Cortex®-M processor.
Note: Arm is a registered trademark of Arm Limited (or its subsidiaries) in the US and/or elsewhere.
All transmission lines below microwave frequencies have at least two conductors:
• In one conductor, the RF currents go towards the antenna.
• In the other, the RF currents come back to the RF source.
In order to feed an antenna, transmission lines on PCBs, designed considering their characteristic impedances,
are used.
The characteristic impedance of a transmission line (sometimes represented by ZC or Z0) is defined as the
constant ratio between the voltage and current waves along the line. ZC can be defined with R, L, G and C
parameters that represent the transmission line model of an extremely short segment, as shown in this formula:
R + jwL Zseries
ZC = =
G + jwC Ysℎunt
where:
• R = total series resistance, per unit length of two conductors, in ohms
• L = total series inductance, per unit length of two conductors, in henrys
• G = shunt conductance between two conductors per unit length, in siemens
• C = shunt capacitance per unit length between conductors, in farads
• j = imaginary number
• ω = angular frequency, in rad/s
The impedance formed by a PCB trace and its associated reference planes, constitute the characteristic
impedance of the transmission line on the PCB. This characteristic impedance on PCBs is frequently called
controlled impedance.
To make it simpler, the controlled impedance of a PCB is the physical dimensions that define the R, L, G and C
parameters. Characteristics of the materials, like permeability of permittivity, impact the value of the controlled
impedance. Since no magnetic materials are used in PCBs, the relative permeability is considered equal to one
(µr = 1).
In the example of a coplanar single-ended waveguide line with lower-ground plane (GCPW for grounded coplanar
waveguide), the physical dimensions like t (thickness), w (width), c (clearance), h (height) and permittivity
constants of dielectric materials, determinate the characteristic impedance of the transmission line on the PCB.
Transmission lines on PCBs can also be made in other formats like microstrip or strip lines.
GCPW is often selected up to a few GHz in order to reduce radiation due to fringe fields, therefore causing less
EM (electromagnetic) radiation thus less interference. For STM32WL reference boards, GCPW are used as
standard transmission line structures.
GCPW is more sensitive to PCB manufacturing variations than microstrip lines . GCPW physical dimensions
(such as t, w, c, and h) must be kept within low tolerances in order to maintain an impedance very close to 50 Ω.
In order to understand how the manufacturing process can impact the characteristic impedance of a GCPW
transmission line on a PCB, consider the example of a 4-layer PCB with physical dimensions varying with 20 %
tolerance, around a 50 Ω characteristic impedance at 1 GHz. In that case, the stack-up with nominal values is
shown in the figure below.
The entire PCB stack-up for this example is depicted in the figure below.
Note: Due to mechanical constraints, PCBs are often made with symmetrical stack-ups.
As the transmission width varies during the manufacturing process within a 20 % tolerance, the expected result is
shown in the figures below.
The goal is to design, in theory, transmission lines that can delivery to the antenna 100 % of the power inserted at
the beginning of the line. To better understand the impact of the mismatch due to a characteristic impedance other
than 50 Ω, see the table below.
As a good practice, always identify the controlled impedances in schematics as depicted in the figure below.
3 RF transmission line
The geometry of a transmission line is defined to minimize the tendency of the line to act as an antenna and to
radiate on its own, while the geometry of an antenna is selected to maximize its tendency to radiate.
As mentioned before, the RF transmission line on PCB is defined by its geometry and the PCB stack-up. This
section includes a PCB stack-up description and some stack-ups to be copied in order to have the right
impedances for the Tx and Rx paths.
Figure 7. Typical 4-layer PCB stack-up with three different types of vias
Better
Short traces
Better
Whenever possible, thermal reliefs must be avoided on RF lines as they increase the equivalent series
inductance (ESL) of capacitors and then change the frequency response of the capacitors in addition to
increasing losses.
4.2 Inductors
The table below gives some recommendations regarding the inductors.
The recommendation is to put some vias around RF lines as shown in the figure below, in order to reduce
high‑frequency issues.
The RF currents that go to the antenna must come back to their source inside the chip to complete a closed loop:
it is done by a return path. Thus, a return path for the delivery medium back to the energy source must be
provided. A return path is defined as the conductive path taken by the current returning to the source from the
load, generally this return path is done on a grounded plane.
When designing transmission line on PCB with a controlled impedance (50 Ω), the objective is to maintain the
same impedance in the whole system in order to transfer as much as energy as possible to the antenna and to
minimize the unintentional loss of energy in the transmission line.
Taking the above routing and increase slightly layout dimensions allow the user
to route the RF lines without discontinuities as shown below.
Whenever possible, align the width between the RF lines and pads (no transition needed). Do not hesitate to
reduce pad components to maintain constant width of RF traces.
Tapered transition
Pad components
Abrupt transition with different width
Not good
Single-step transition
Single-step transition
A bend is needed when there is a direction change for an RF line. Bends with RF lines can cause reflections and
power loss. Some guidelines are detailed in this section to avoid issues with bends in high-frequency transmission
lines. The main idea when designing bends is to keep the same trace width in the corner.
Consider the worst case that is the 90° bend shown in the figure below.
The ideal case is a straight line with a constant width as shown below.
Recommended
With
continuous
width
Better
Better
Not good
The STM32WL features a linear, high-efficiency RF PA (power amplifier) connected to the RFO pin (PA output).
Due to the high-frequency harmonic components generated at RFO (above GHz for an operating frequency
starting at 500 MHz), the RF tracks before filtering stages (before L5, C21, C24, C22, L6 and C25 in the
schematic) may radiate unintentional electromagnetic (EM) energy. Any piece of metal that makes λ/4 under
certain conditions, can act as an antenna radiating EM energy.
Note: Remember that the power radiated by a linear antenna of length L, is proportional to P = (L/λ)2. This means that
the bigger the unintentional antenna is, the greater the amount of energy it radiates.
The following formula can be used to determine the longest length of a track to not radiate EM energy on a PCB:
3 × 108
L<
4 × ℎ × f × ϵr_eff
where:
• h is the harmonic for which the user must determine the maximum track length to avoid.
• f is the operating frequency of the RF signal.
• εr_eff is the effective dielectric constant of the PCB stack-up layers.
Example
For an operating frequency at 915 MHz, the ninth harmonic (h9) is equal to 8.235 GHz (9 x 915 MHz). For PCB
with an εr_eff = 3, the maximum track length is:
3 × 108
L<
4 × 9 × 9.15 × 106 × 3
The maximum track length to avoid an unintentional harmonic radiation with an operating frequency at 915 MHz
and taking the ninth harmonic, is 5.258 mm.
RF trace near
PCB edge
Impact
One solution to mitigate the problem of tracks that radiate EM is to place them between grounded planes (below
and above).
High harmonics may cause EMC issues. The metal shield prevents harmonic components
from causing interference with other circuits.
10 Decoupling capacitors
Capacitors with lower values must be placed closer to the chip than higher-value ones, as shown in the figure
below.
When routing decoupling capacitors, the smallest possible current loop must be maintained. Large current loops
are translated into inductive behavior.
Current loop
Recommended Reduced current loop
The equivalent series inductance (ESL, see the figure below) of a capacitor is impacted by the current loop.
The reference PCB 4-layer layout for BGA package is detailed in the figures below.
12 Documentation references
• Carr, Joseph J., and George Hippisley. Practical antenna handbook. New York, NY: McGraw-Hill/TAB
Electronics, 2012. Print.
• Thierauf, Stephen C. High-speed circuit board signal integrity. Norwood, MA: Artech House, 2017.
• Hart, Bryan. Digital Signal Transmission: Line Circuit Technology. Boston, MA: Springer US, 1987.
• Parise, Brendon. A Practical Guide to RF and Mixed Technology Printed Circuit Board. Pleasanton, CA
(USA). Optimum Design Associates, 2017, pp. 181-182.
• Li, Richard C. RF circuit design. Hoboken, New Jersey: John Wiley & Sons, Inc, 2012, pp. 328.
• Thierauf, Stephen C. High-speed circuit board signal integrity. Boston: Artech House, 2004.
• R.N. Simons: Coplanar Waveguide Circuits, Components, and Systems, Wiley-IEEE Press, 2001.
• Li Zhi, Wang Qiang and Shi Changsheng, "Application of guard traces with vias in the RF PCB layout," 2002
3rd International Symposium on Electromagnetic Compatibility, Beijing, China, 2002, pp. 771-774.
• Montrose, Mark I. Printed circuit board design techniques for EMC compliance: a handbook for designers.
New York: IEEE Press, 2000.
• A. A. Oliner, "Equivalent Circuits for Discontinuities in Balanced Strip Transmission Line," in IRE
Transactions on Microwave Theory and Techniques, vol. 3, no. 2, pp. 134-143, March 1955.
• R. Mehran, "Calculation of Microstrip Bends and Y-Junctions with Arbitrary Angle," in IEEE Transactions on
Microwave Theory and Techniques, vol. 26, no. 6, pp. 400-405, Jun. 1978.
• I. Wolff, G. Kompa and R. Mehran, "Calculation method for microstrip discontinuities and T junctions," in
Electronics Letters, vol. 8, no. 7, pp. 177-179, 6 April 1972.
• R. J. P. Douville and D. S. James, “Experimental study of symmetric microstrip bends and their
compensation,” IEEE Trans. Microwave Theory Tech., vol. MTT-26. pp. 175-182, Mar. 1978.
• R. Horton, "The Electrical Characterization of a Right-Angled Bend in Microstrip Line (Short Papers)," in
IEEE Transactions on Microwave Theory and Techniques, vol. 21, no. 6, pp. 427-429, Jun. 1973.
• B. Easter, A. Gopinath and I. M. Stephenson, "Theoretical and experimental methods for evaluating
discontinuities in microstrip," in Radio and Electronic Engineer, vol. 48, no. 1.2, pp. 73-84, January-February
1978.
• Shinichi Ikami and Akihisa Sakurai, "Practical analysis on 20H rule for PCB," 2008 Asia-Pacific Symposium
on Electromagnetic Compatibility and 19th International Zurich Symposium on Electromagnetic
Compatibility, Singapore, 2008, pp. 180-183.
• Xiaoning Ye et al., "EMI mitigation with multilayer power-bus stacks and via stitching of reference planes," in
IEEE Transactions on Electromagnetic Compatibility, vol. 43, no. 4, pp. 538-548, Nov. 2001.
• M. I. Montrose, "Radiated emission far-field propagation with multiple ground stitch locations within a printed
circuit board," 2010 Asia-Pacific International Symposium on Electromagnetic Compatibility, Beijing, 2010,
pp. 297-300.
• A. Jaze, B. Archambeault and S. Connor, "EMI noise reduction between planes due to a signal via with a
ground via at various distances," 2011 IEEE International Symposium on Electromagnetic Compatibility,
Long Beach, CA, USA, 2011, pp. 167-172.
• C. L. Holloway and E. F. Kuester, "Closed-form expressions for the current density on the ground plane of a
microstrip line, with application to ground plane loss," in IEEE Transactions on Microwave Theory and
Techniques, vol. 43, no. 5, pp. 1204-1207, May 1995.
• Jun So Pak, Hyungsoo Kim, Joungho Kim and Heejae Lee, "PCB power/ground plane edge radiation
excited by high-frequency clock," 2004 International Symposium on Electromagnetic Compatibility (IEEE
Cat. No.04CH37559), Silicon Valley, CA, USA, 2004, pp. 197-202 vol.1.
• F. Gisin and Z. Pantic-Tanner, "Radiation from printed circuit board edge structures," 2001 IEEE EMC
International Symposium. Symposium Record. International Symposium on Electromagnetic Compatibility
(Cat. No.01CH37161), Montreal, Que., Canada, 2001, pp. 881-883 vol.2.
• Joungho Kim, Junso Pak, Jongbae Park and Hyungsoo Kim, "Noise generation, coupling, isolation, and EM
radiation in high-speed package and PCB," 2005 IEEE International Symposium on Circuits and Systems,
Kobe, 2005, pp. 5766-5769 Vol. 6.
• Mariscotti, Andrea. RF and Microwave Measurements: Device Characterization, Signal Integrity and
Spectrum Analysis. Chiasso (Switzerland: ASTM Analysis, Simulation, Test and Measurement Sagl, 2015,
pp. 299-392. Print.
• Advanced Design System 2020, Keysight Technologies.
13 Conclusion
Some care must be taken when designing an RF board. Guidelines for decoupling capacitors, RF general rules,
reduction of EMC issues, controlled impedances with predefined PCB stack-up layers are presented in this
application note. The user must adapt these guidelines to the application.
Those guidelines must be followed to secure a correct behavior of the application, with high performance for the
RF part of the STM32WL board.
Solder mask
• Case 1: typical stack-up for BGA package with PCB total thickness = 1.04 mm
Consider configuration detailed in the table below.
The Tx and Rx lines detailed in the figures below can then be built from this configuration.
RF reference plane
for 50 ohms
Figure 29. Rx 100 ohms differential pair (case 1, PCB total = 1.04 mm)
RF reference plane
for 100 ohms diff
• Case 2: typical stack-up for BGA package with PCB total thickness = 1.10 mm
Consider configuration detailed in the table below.
The Tx and Rx lines detailed in the figures below can then be built from this configuration.
RF reference plane
for 50 ohms
Figure 31. Rx 100 Ω differential pair (case 2, PCB total = 1.10 mm)
RF reference plane
for 100 ohms diff
• Case 3: typical stack-up for BGA package with PCB total thickness = 1.60 mm
Consider configuration detailed in the table below.
The Tx and Rx lines details in the figures below can then be built from this configuration.
RF reference plane
for 50 ohms
Figure 33. Rx 100 Ω differential pair (case 3, PCB total = 1.60 mm)
RF reference plane
for 100 ohms diff
Important:
The longer the distance is between the source and the antenna, the greater the potential for loss of energy in the RF
transmission line. As a design rule, RF transmission lines must be as short as possible and without discontinuities.
Revision history
Contents
1 Main rules summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2 Characteristic and controlled impedance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
3 RF transmission line. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.1 Stack-up board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.2 Stack-ups for Tx 50 Ω and Rx 100 Ω . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
List of tables
Table 1. Characteristic impedance and impact on RF measures (load impedance = 50 Ω) . . . . . . . . . . . . . . . . . . . . . . . . 6
Table 2. Capacitor pads with RF signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Table 3. Inductor pads with RF signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Table 4. Return paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Table 5. Layout discontinuities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Table 6. Track transitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Table 7. Test points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Table 8. Pad component width . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Table 9. RF switch transitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Table 10. Package pad to RF line transitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Table 11. Guidelines for bends in RF lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Table 12. Return currents for decoupling capacitors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Table 13. Case 1: PCB total thickness = 1.04 mm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Table 14. Case 2: PCB total thickness = 1.10 mm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Table 15. Case 3: PCB total thickness = 1.60 mm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Table 16. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
List of figures
Figure 1. Example of a GCPW in a 2-layer PCB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Figure 2. Example of a transmission line type GCPW on PCB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Figure 3. Stack-up example for 4-layer PCB. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Figure 4. Characteristic impedance versus width variation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Figure 5. Characteristic impedance versus clearance variation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Figure 6. Example of schematic with controlled impedance identified . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Figure 7. Typical 4-layer PCB stack-up with three different types of vias . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Figure 8. Example of capacitors on RF lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Figure 9. Thermal reliefs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Figure 10. Spacing between vias around GCPW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Figure 11. Clean return path example for RF currents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Figure 12. 90° bend example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Figure 13. Ideal case: straight line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Figure 14. Typical circuit for RFO harmonics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Figure 15. EM radiation generated by HF signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Figure 16. How to mitigate unintentional EM radiation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Figure 17. PCB example with or without ground flooding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Figure 18. PCB example with or without metal shield . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Figure 19. GND and power planes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Figure 20. Decoupling capacitors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Figure 21. High-frequency equivalent model of a capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Figure 22. All layers of STM32WL reference layout for BGA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Figure 23. Top layer of STM32WL reference layout for BGA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Figure 24. Middle layer 1 of STM32WL reference layout for BGA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Figure 25. Middle layer 2 of STM32WL reference layout for BGA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Figure 26. Bottom layer of STM32WL reference layout for BGA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Figure 27. Typical stack-up for BGA package. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Figure 28. Tx 50 ohms RF tracks (case 1, PCB total = 1.04 mm) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Figure 29. Rx 100 ohms differential pair (case 1, PCB total = 1.04 mm). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Figure 30. Tx 50 Ω RF tracks (case 2, PCB total = 1.10 mm) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 31. Rx 100 Ω differential pair (case 2, PCB total = 1.10 mm) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Figure 32. Tx 50 Ω RF tracks (case 3, PCB total = 1.60 mm) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Figure 33. Rx 100 Ω differential pair (case 3, PCB total = 1.60 mm) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34