nRF52 DK User Guide v1.2 PDF
nRF52 DK User Guide v1.2 PDF
x
User Guide
v1.2
Contents
Revision history.................................................................................................................... 3
Chapter 1: Introduction...................................................................................4
Chapter 3: Software tools............................................................................... 6
Chapter 4: Start developing............................................................................7
Chapter 5: Interface MCU................................................................................8
5.1 IF Boot/Reset button................................................................................................................................................8
5.2 Virtual COM port....................................................................................................................................................... 8
5.2.1 Dynamic Hardware Flow Control (HWFC) handling................................................................... 9
5.3 Interface MCU firmware..........................................................................................................................................9
5.4 MSD.............................................................................................................................................................................. 10
Chapter 6: Hardware description................................................................. 11
6.1 Hardware drawings................................................................................................................................................11
6.2 Block diagram.......................................................................................................................................................... 12
6.3 Power supply............................................................................................................................................................12
6.4 Connector interface............................................................................................................................................... 14
6.5 Buttons and LEDs................................................................................................................................................... 16
6.5.1 I/O expander for buttons and LEDs................................................................................................17
6.6 32.768 kHz crystal...................................................................................................................................................19
6.7 Measuring current.................................................................................................................................................. 20
6.7.1 Preparing the development kit board...........................................................................................20
6.7.2 Using an oscilloscope for current profile measurement.........................................................21
6.7.3 Using an ampere-meter for current measurement.................................................................. 22
6.8 RF measurements................................................................................................................................................... 23
6.9 Debug input..............................................................................................................................................................24
6.10 Debug output........................................................................................................................................................25
6.11 NFC antenna interface........................................................................................................................................26
6.12 Solder bridge configuration.............................................................................................................................27
Liability disclaimer............................................................................................................. 29
Figure 1: nRF52 Development Kit board (PCA10040) v1.1.0, 5 × nRF52832 samples, and NFC tag
The UART signals are routed directly to the interface MCU. The UART pins connected to the interface MCU are
tri-stated when no terminal is connected to the virtual COM port on the computer.
Important: The terminal software used must send a DTR signal in order to configure the UART
interface MCU pins.
The P0.05 (RTS) and P0.07 (CTS) can be used freely when HWFC is disabled on the nRF52832.
Important: The mbed™ OB interface does not support HWFC through the virtual com port.
1
Baud rate 921 600 is not supported through the Virtual COM port.
• The J-Link serial number is linked to the interface MCU and will not change even when swapping
the interface MCU firmware, so it can be useful to write the serial number on a sticker on the board.
• When in bootloader mode, do not drag and drop any file except those downloaded from
www.nordicsemi.com for use with the interface MCU. If a wrong file is used, it can overwrite the
bootloader and ruin the interface MCU firmware without the possibility of recovery.
5.4 MSD
The interface MCU features a mass storage device (MSD). This makes the development kit appear as an
external drive on your computer.
This drive can be used for drag-and-drop programming. Files cannot be stored on this drive. By copying a HEX
file to the drive, the interface MCU will program the file to the device.
Important:
• Windows might try to defragment the MSD part of the interface MCU. If this happens, the interface
MCU will disconnect and be unresponsive. To return to normal operation, the development kit must
be power cycled.
• Your antivirus software might try to scan the MSD part of the interface MCU. It is known that a
certain antivirus program triggers a false positive alert in one of the files and quarantines the unit. If
this happens, the interface MCU will become unresponsive.
• If the computer is set up to boot from USB, it can try to boot from the development kit if the
development kit is connected during boot. This could be avoided by unplugging the development
kit before a computer restart, or changing the boot sequence of the computer.
You can also disable the MSD of the kit by using the msddisable command in J-Link Commander. To
enable, use the msdenable command. These commands take effect after a power cycle of the development
kit and should stay this way until changed again.
GPIO
Battery
I/O
Switch LEDs
Current VCC_nRF expander
External supply Power switch
measurement
Debouncing PCB
Switch Buttons
filter Antenna
Voltage regulator Debug out Debug in
Osc Osc
IF Boot/Reset
32.768 kHz 32 MHz
The 5 V from the USB is regulated down to 3.3 V through an on-board voltage regulator. The battery and
external power supply are not regulated. The power sources are routed through a set of diodes (D1A, D1B,
and D1C) for reverse voltage protection, where the circuit is supplied from the source with the highest
voltage.
Important: When USB is not powered, the Interface MCU is in dormant state and will draw an
additional current of ~ 20 μA in order to maintain the reset button functionality. This will affect board
current consumption, but not the nRF52832 current measurements, as described in the Measuring
current on page 20 section.
[2] USB_DETECT
SB10
V5V VBUS V5V VDD VDD_nRF
U3 D1A SW6 R6
Vin Vout N.C.
C16 C17 C18 SD103ATW-7-F SB9
GND
1.0µF 1.0µF 100nF SB11
AP7333-33SAG-7 Switch
D1B
2
1
Bat1 +
SD103ATW-7-F P22
Bat Holder CR2032 SB12 Pin List 1x2, Angled
P21 D1C
2
1 SD103ATW-7-F TP14
Pin List 1x2, Angled
The reverse voltage protection diodes will add a voltage drop to the supply voltage of the circuit. To avoid this
voltage drop, the diodes can be bypassed by shorting one or more solder bridges.
Important: Connect only one power source at the time. Shorting the solder bridges removes the
reverse voltage protection.
The signals are also available on connectors P7, P8, P9, P10, P11, and P12, which are on the bottom side of
the board. By mounting pin lists on the connector footprints, the nRF52 Development Kit board can be used as
a shield for Arduino motherboards2 or other boards that follow the Arduino standard.
For easy access to GPIO, power, and ground, the signals can also be found on the through-hole connectors
P13–P17.
Important: Some pins have default settings.
• P0.00 and P0.01 are by default used for the 32 kHz crystal and are not available on the connectors.
For more information, see Section 32.768 kHz crystal on page 19.
• P0.05, P0.06, P0.07, and P0.08 are by default used by the UART connected to the Interface MCU.
For more information, see Section Virtual COM port on page 8.
• P0.09 and P0.10 are by default used by NFC1 and NFC2. For more information, see Section NFC
antenna interface on page 26.
• P0.13 – P0.20 are by default connected to the buttons and LEDs. For more information, see Section
Buttons and LEDs on page 16.
When the nRF52 Development Kit board is used as a shield together with an Arduino standard motherboard,
the Arduino signals are routed as shown in Figure 10: Arduino signals routing on the nRF52 Development Kit
board on page 16.
2
Only 3.3 V Arduino boards.
Figure 10: Arduino signals routing on the nRF52 Development Kit board
If GPIO P0.17 – P0.20 are needed elsewhere, the LEDs can be disconnected by cutting the short on SB5 –
SB8, see Figure 11: Disconnecting the LEDs on page 17. The LEDs and buttons can also be disconnected by
using the I/O expander as described in I/O expander for buttons and LEDs on page 17.
The buttons are active low, meaning the input will be connected to ground when the button is activated. The
buttons have no external pull-up resistor, so to use the buttons the P0.13 – P0.16 pins must be configured as
an input with an internal pull-up resistor.
The LEDs are active low, meaning that writing a logical zero ('0') to the output pin will illuminate the LED.
VDD
SW1 LED1 R1
BUTTON1 LED1
PB SW SB5 220R
L0603G
SW2 LED2 R2
BUTTON2 LED2
PB SW SB6 220R
L0603G
SW3 LED3 R3
BUTTON3 LED3
PB SW SB7 220R
L0603G
SW4 LED4 R4
BUTTON4 LED4
PB SW SB8 220R
L0603G
The I/O expander will release these GPIOs for general use when the nRF52 Development Kit is used together
with boards that follows the Arduino standard. The I/O expander can be permanently enabled by shorting
solder bridge SB18 or permanently disabled by cutting the shorting track on SB19. You must also short SB18
when cutting SB19 for full compatibility with the Arduino standard.
The I/O expander can be temporarily enabled by connecting SHIELD DETECT to ground.
In addition to the buttons and LEDs, the following GPIOs are used for the I/O expander:
VEXT VEXT
C47
R29 R30 R31 R32
4k7 4k7 12k 12k U7 100nF
1 14
RESET VDD(P)
INT_EXT 11 15
INT VDD(I2C)
SCL_EXT 12 2 BUTTON1_EXT
SCL IO0
SDA_EXT 13 3 BUTTON2_EXT
SDA IO1
VEXT 4 BUTTON3_EXT
IO2
5 BUTTON4_EXT
IO3
R37 7 LED1_EXT
IO4
N.C. 8 LED2_EXT
IO5
16 9 LED3_EXT
ADDR IO6
R38 6 10 LED4_EXT
GND IO7
0R
PCAL6408A
Important: SW debouncing should not be needed when using the I/O expander. Each button on the
nRF52 Development Kit board is equipped with a debouncing filter.
XL1
SB4 SB2 C11
P0.00
12pF
X2
32.768kHz
SB3 SB1 C12
P0.01
12pF
XL2
Figure 17: Prepare the development kit board for current measurements
1. Cut the PCB track shorting solder bridge SB9 to put P22 in series with the load.
2. Short solder bridge SB11 (if using coin cell battery) or SB12 (if using external power supply) to bypass the
protection diode which would otherwise give a voltage drop.
Important: While SB11 or SB12 is shorted, the development kit must not be powered from the USB if
there is a battery or external supply connected because the protection diode has been bypassed.
To restore normal kit function after measurement:
• Solder SB9 or apply a jumper on P22
• Cut or de-solder SB11 or SB12 to reconnect the protection diode
To reprogram the nRF chip while the board is prepared for current measurement, disconnect external supply,
ensure there is no battery inserted, remove measurement devices from P22, add a jumper to P22, and then
connect the USB cable.
1. Make sure you have prepared the development kit board as described in Preparing the development kit
board on page 20.
2. Mount a 10 Ω resistor on the footprint for R6.
3. Connect an oscilloscope in differential mode or similar with two probes on the pins of the P22 connector
as shown in Figure 18: Current measurement with oscilloscope on page 22.
4. Calculate or plot the instantaneous current from the voltage drop across the 10 Ω resistor by taking the
difference of the voltages measured on the 2 probes. The voltage drop will be proportional to the current.
The 10 Ω resistor will cause a 10 mV drop for each 1 mA drawn by the circuit being measured.
5. The plotted voltage drop can be used to calculate the current at a given point in time, calculate average
current over a period, or integrated to calculate the energy used over a period.
Some tips to reduce noise:
• Use probes with 1x attenuation
• Enable averaging mode to reduce random noise
• Enable high resolution function if available
Use minimum 200 kSa/s (one sample every 5 µs) to be able to get the correct average current measurement.
1. Make sure you have prepared the development kit board as described in Preparing the development kit
board on page 20.
2. Connect an ampere-meter between the pins of connector P22 as shown in Figure 19: Current
measurement with an ampere-meter on page 23.
Important: An ampere-meter will measure the average current drawn by the nRF52832 if:
• The nRF52832 is in a state where it draws a constant current, or, the activity on the device changing
load current, like BLE connection events, is repeated continuously and has a short cycle time (less
than 100 ms) so the ampere-meter will average whole load cycles and not parts of the cycle.
• The dynamic range of the ampere-meter is wide enough to give accurate measurements from 1 µA
to 15 mA.
• Recommendation: Use true RMS ampere-meter.
6.8 RF measurements
The nRF52 Development Kit board is equipped with a small size coaxial connector (J1) for conducted
measurements of the RF signal.
The connector is of SWF type (Murata part no. MM8130-2600) with an internal switch. By default, when there is
no cable attached, the RF signal is routed to the on-board PCB trace antenna.
A test probe is available (Murata part no. MXHS83QE3000) with a standard SMA connection on the other end
for connecting instruments (the test probe is not included with the kit). When connecting the test probe, the
internal switch in the SWF connector will disconnect the PCB antenna and connect the RF signal from the
nRF52832 device to the test probe.
The connector and test probe will add loss to the RF signal which should be taken into account when doing
measurements, see Table 6: Typical loss in connector and test probe on page 24.
When the external board is powered, the interface MCU will detect the supply voltage of the board and
program/debug the target chip on the external board instead of the on-board nRF52832.
Important: The voltage supported by external debugging/programming is 3.0 V.
You can also use P20 as a debug out connection to program shield mounted targets. For the Debug out
header (P19), the Interface MCU will detect the supply voltage on the mounted shield and program/debug
the shield target.
If the Interface MCU detects target power on both P19 and P20, it will by default program/debug the target
connected to P19.
NFC uses two pins, pin 11 (NFC1) and pin 12 (NFC2) to connect the antenna. These pins are shared with GPIOs
(P0.09 and P0.10) and the PROTECT field in the NFCPINS register in UICR defines the usage of these pins and
their protection level against abnormal voltages. The content of the NFCPINS register is reloaded at every
reset.
Important: The NFC pins are enabled by default. NFC can be disabled and GPIOs enabled by defining
the CONFIG_NFCT_PINS_AS_GPIOS variable in the project settings. This can be done by defining the
preprocessor symbol in Keil, go to: Project > Options for Target > C/C++ > Preprocessor Symbols >
Define. Here you can add the CONFIG_NFCT_PINS_AS_GPIOS variable after NRF52.
This functionality can be removed by doing a nRFjprog --recover.
Pin 11 and pin 12 are by default configured to use the NFC antenna, but if pin 11 and pin 12 are needed as
normal GPIOs, R25 and R26 must be NC and R27 and R28 must be shorted by 0R.
P0.09/NFC1
C42
R27 R25 300pF P23
P0.09
1
N.C. 0R NFC1
2
3
NFC2
R28 R26 4
P0.10
5
N.C. 0R Molex 051281-0594
C43
P0.10/NFC2
300pF