Kristin gravatar image

Posted 2015-02-19 15:48:42 +0100


General PCB design guidelines for nRF51

    No tags

When designing a PCB with nRF51, nRF51822 or nRF51422, there are some rules that should be followed in order to get a good working radio/system, with a maximized range.

General rule

The RF part of the schematic and layout should be a copy of our reference design. It means that not only the component values, but also the geometry, relative placement of the components with respect to each other, and the lengths of the transmission lines should be the same as in our reference design. The reference design for both nRF51822 QFN and WLCSP package can be donwloaded from the nRF51822 webpage --> "downloads" --> "reference layout".

Matching networks

In RF, things work differently than in "regular" electronics, due to high frequencies (and short wavelengths). One of the resulting effects is that the phase of a signal will vary along the transmissions lines, as opposed to low frequencies where the wavelengths >> transmission lines, and this effect can be disregarded. If the system (chip and antenna) is not matched, there will be reflections of the signal in the transmission line, resulting in loss. The system can be matched using a 50 Ohm reference point; matching the chip and the antenna to 50 Ohm.

Matching the chip to 50: There are two ways to match the chip to 50 Ohm, using a discrete matching network (QFN only), or using a balun. The performance of the discrete matching network and a balun, is the same. In general, what makes the choice between the two, is the space left on the PCB, since a balun requires less space.

Discrete matching network: the discrete matching network that should be used is provided in the reference design, and it consists of all the components connected from the pins ANT1 and ANT 2. It is very important that this matching network is copy of the reference design, as explained in "general rule". The whitepaper "Tuning the nRF24xx matching network" explains the how this matching network can be tuned, if needed. The whitepaper is written for the nRF24LE1, however, the principle is the same for the nRF51.

Balun: Only baluns that are designed for the specific nRF51 packages, QFN or WLCSP, should be used. Since the impedance on ANT1 and ANT2 is different on the WLCSP and QFN packages, their baluns cannot be interchanged. The list of baluns that can be used can be found on the nRF51822 webpage --> "development tools and software". The placement of the baluns should be an exact copy of the reference layout in their datasheet.

The baluns the can be used with the nRF51 are the following:

  • QFN: 2450BM14E0003 from Johanson Technology

  • WLCSP: BAL-NRF02D3 from ST

  • WLCSP: TBL-1411-245-LR from Cyntec

In addition to matching the chip to 50 Ohm, the above solutions will also damp harmonics and RX LO, which is required for the design to pass the various regulatory standards. The whitepaper "Regulatory and Compliance Standards for RF Device" sums up the most common regulatory standards.

image description

Matching the antenna to 50 Ohm: There are basically two types of antenna matching networks; pi-network and a matching network consisting of one shunt component only. The type of antenna decides which matching network to use. If using a PCB antenna, the matching network should consist of one shunt component, and if using a chip antenna, the matching network should be a pi-network. The value(s) of the component(s) in the matching network will have to be found during tuning, by doing measurements using a network analyzer. The reason for this is that the impedance of the antenna depends on its close environment; it means that the measurements on a device should be performed when the device is placed in its final housing, in a similar environment to where it is supposed to be used. It is not possible to calculate the value(s) for the component(s) in the matching network, because there are too many parameters to take into account. The "Antenna tuning" whitepaper explains more about why tune the antenna, and how to do it.

image description

In a design, the antenna matching network should be placed in between the matching network for the chip and the antenna.


There are two types of antennas that can be used, a PCB antenna or a chip antenna. Under optimal conditions, the performance of a PCB antenna and a chip antenna will be more or less the same.

PCB antenna: The whitepaper "Quarterwave printed monopole antenna for 2.4GHz" explains how to design a PCB antenna.

Chip antenna: Any 2.4 GHz antenna can be used. In order to obtain good performance, it is important to place the antenna according to its datasheet. The antenna datasheet will also contain information about the bandwidth of the antenna.

Ground planes

A typical design consists of two ground planes; a top ground plane and a bottom ground plane. Both ground planes should preferably be as large and solid as possible. Ground is the reference of the system, the impedance of the antenna should for example be 50 Ohm with respect to ground. The larger the ground planes are, the more it takes to disturb them. The two ground planes should be connected using a lot of via holes. Our reference designs show what the distribution of the via holes may look like.

image description

Crystal and load capacitors

Crystal: On the nRF51, an external 16 MHz crystal is mandatory, and an external 32 kHz crystal is optional. When choosing a crystal, it is important that it is with the specifications given in the nRF51822/nRF51422 Product Specification, chapter 8.1 ("Electrical specifications --> Clock sources").

Load capacitors: The load capacitors are the capacitors connected to the crystal, C1 and C2 connected to the 16 MHz crystal in our reference design, and C13 and C14 for the 32 kHz crystal.The value of these capacitors can be found using the following formula:

C1 = C2 = 2Cl - C_pcb - C_pin

Cl: Load capacitance of the crystal (found in the crystal datasheet)

C_pcb + C_pin is approximately 4 pF.

The whitepaper "Crystal Oscillator Design Considerations" explains more about the topic.

Measuring the frequency of the 16 MHz crystal should be done by measuring the carrier frequency of the radio. If the carrier frequency of the radio is within the specifications, the 16 MHz crystal is also within the specifications. If trying to probe the crystal directly, the frequency of the crystal will drift, because the probe possesses a capacitance, and this will effectively change the total value(s) of the load capacitors.


mjdietz2 gravatar image

Posted Feb. 27, 2015, 4:12 a.m.

Why do you only recommend a shunt component when tuning a PCB trace antenna? Are you assuming that we are also changing the length of the antenna in this case? Why wouldn't you also use a pi-network for a pcb trace (assuming the dimensions of the antenna are fixed).

Also could you replace the tuning network up to C6 w/ a balun?

Thanks! Mike

Kristin gravatar image

Posted Feb. 27, 2015, 10:30 a.m.

Yes, when tuning a PCB antenna using one shunt component only, changing the length of the antenna is a part of the tuning. As written in the whitepaper "Quarterwave printed monopole antenna for 2.4GHz", "the length of the monopole PCB trace mainly determines the resonant frequency of the antenna, ...". That's why you want to adjust the length of the antenna.

When tuning the antenna, you will first adjust the length of the antenna, by making its impedance as close to 50 Ohm as possible. Secondly, you will use the shunt component to adjust the antenna impedance to 50 Ohm. The shunt component will not change the resonant frequency of the antenna, only the impedance of the antenna. It means that the purpose of the shunt component is to minimize the loss (reflections of signals) between the chip and the antenna.

Yes, all the components in the matching network in the reference design up to C6, C6 included, can be replaced by a balun.

vicmota gravatar image

Posted March 5, 2015, 4:05 a.m.

Nice post, Kristin!

If I put a 2.45GHz 50 ohm chip antenna + balun do I still need a pi-network between the balun and the antenna? And if so, why?


Kristin gravatar image

Posted March 9, 2015, 8:09 a.m.

Yes, when using a balun + 50 Ohm chip antenna, you will still need a pi-network between the balun and the antenna. The reason for this is that the impedance of the chip antenna is 50 Ohm with the test conditions at the manufacturer. However, your antenna will be used in a different environment, and the antenna impedance will no longer be 50 Ohm. If you take a look at the antenna datasheet, it will most likely recommend you to use a matching network for the antenna.

westhouse gravatar image

Posted March 19, 2015, 1:18 p.m.

Very helpful post, thank you.

adriand gravatar image

Posted June 10, 2015, 2:57 p.m.

Is there any specific need for having HF crystal rotated or it is just because of keeping more space on pcb?


jim0781 gravatar image

Posted Oct. 2, 2015, 5:40 p.m.

Thanks for the post. Very useful.

Is it possible to obtain the "nRF51x22 Reference Layout files for the QFN48 packet variants" in Eagle format rather than Altium? I can't read Altium format.


Posted Sept. 28, 2016, 7:11 a.m.


In my design i am planning to use monopole PCB trace antenna(not chip antenna) because i have enough free space on PCB. I have seen reference design nRF51-DK and i have following queries related to antenna tuning network.

I understood from the reference design :

1) only one shunt component recommended (C15 -1.2pF) for tuning a PCB trace antenna? Is it true?

2) Are you assuming that we are also changing the length of the antenna in this case? but in my case PCB dimensions are fixed and i can't change the length of the antenna

3)Why wouldn't you also use a pi-network for a pcb trace (assuming the dimensions of the antenna are fixed).

4) Also could you replace the tuning network up to component C6 with a balun? In my design i am using BAL-NR02D3. so,will it replace C4,L3 and C6 components also?

I have given provision for BALUN, pi-network(C4,L3 and C6) in my design but i have not included C15 ( 1.2pF) in my design. Let me know if am doing anything wrong. Thank you..

Best Regards,

Bhaskar M

Sign in to comment.

User menu

    or sign up

Recent questions

Related posts by tag

No results