Bringup
Open the editor
Microcontroller with real firmwarenRF52840-QIAAnrf52840

nRF52840 (Cortex-M4, Firmware)

Runs real firmware (Zephyr ELF / Intel HEX) on an ARM Cortex-M4 emulator; GPIOs drive the analog circuit.

VDDGNDP0.00P0.01P0.02P0.03P0.04P0.05P0.06P0.07P0.08P0.09P0.10P0.11P0.12P0.13P0.14P0.15P0.16P0.17P0.18P0.19P0.20P0.21P0.22P0.23P0.24P0.25P0.26P0.27P0.28P0.29P0.30P0.31P1.00P1.01P1.02P1.03P1.04P1.05P1.06P1.07P1.08P1.09P1.10P1.11P1.12P1.13P1.14P1.15nRF52840-QIAA
Schematic symbol

Key data

Category
ICs
Simulation model
Microcontroller with real firmware
Manufacturer part number
nRF52840-QIAA
Reference prefix
U
Pins
50
Land pattern
BMD-340_UBLOX_LGA68

Notes

The firmware runs on an emulated CPU core, instruction by instruction. Peripherals that the model implements (GPIO, timers, UART, SPI, I²C, ADC and others, see the description) act on the pins of the circuit, so the analog parts around the chip see the same voltages and timing as on a real board.

  • Right-click the part and choose "Open in code editor" to write and compile its code; "Serial monitor" shows its UART output.
  • In the inspector you can load a demo firmware or your own ELF / Intel HEX / BIN file instead.
  • GPIO pins are real circuit pins: an LED on an output needs a series resistor, an input needs a defined level (pull-up or pull-down).
  • The debugger in the code view stops at breakpoints and shows registers, variables and the call stack.

Simulation model

An emulated CPU core runs the firmware binary instruction by instruction. The GPIO pins are pins of the analog circuit: outputs drive through a driver resistance, inputs read the voltage with thresholds.

Device
nrf52840
CPU core
ARM Cortex-M4F
Emulator
ARM Cortex-M emulator
Firmware
Bare-metal C (arm-none-eabi-gcc) or a Zephyr project in the code view, or your own ELF / Intel HEX / BIN file
Flash / RAM for firmware
1 MB / 256 KB
Supply pins
VDD / GND
Mapped GPIO pins
48

Pins 50

simulatedreal chip onlyPin functions from the emulator and the datasheet.

PinNameFunctionsUse
VDDVDDSupply pinSupply 1.7–3.6 V: decoupling per the reference circuit
GNDGNDGround pinGround
P0.00P0.00I/O pinXL132.768 kHz crystal (XL1/XL2) for the low-power clock, or GPIO
P0.01P0.01I/O pinXL232.768 kHz crystal (XL1/XL2) for the low-power clock, or GPIO
P0.02P0.02I/O pinAIN0Analog input: potentiometer, sensor voltage (0 V … supply)
P0.03P0.03I/O pinAIN1Analog input: potentiometer, sensor voltage (0 V … supply)
P0.04P0.04I/O pinAIN2Analog input: potentiometer, sensor voltage (0 V … supply)
P0.05P0.05I/O pinAIN3Analog input: potentiometer, sensor voltage (0 V … supply)
P0.06P0.06I/O pinUART0 TX on the nRF52840 DK (Zephyr console)
P0.07P0.07I/O pinTRACECLKGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
P0.08P0.08I/O pinUART0 RX on the nRF52840 DK (Zephyr console)
P0.09P0.09I/O pinNFC1NFC antenna (NFC1/NFC2); usable as GPIO after disabling NFC in UICR
P0.10P0.10I/O pinNFC2NFC antenna (NFC1/NFC2); usable as GPIO after disabling NFC in UICR
P0.11P0.11I/O pinButton 1 on the nRF52840 DK (to GND, pull-up)
P0.12P0.12I/O pinButton 2 on the nRF52840 DK (to GND, pull-up)
P0.13P0.13I/O pinLED1 on the nRF52840 DK (active low)
P0.14P0.14I/O pinLED2 on the nRF52840 DK (active low)
P0.15P0.15I/O pinLED3 on the nRF52840 DK (active low)
P0.16P0.16I/O pinLED4 on the nRF52840 DK (active low)
P0.17P0.17I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
P0.18P0.18I/O pinRESETPin reset when enabled in UICR (Zephyr default on the DK); otherwise GPIO
P0.19P0.19I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
P0.20P0.20I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
P0.21P0.21I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
P0.22P0.22I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
P0.23P0.23I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
P0.24P0.24I/O pinButton 3 on the nRF52840 DK (to GND, pull-up)
P0.25P0.25I/O pinButton 4 on the nRF52840 DK (to GND, pull-up)
P0.26P0.26I/O pinI²C SDA on the Arduino header of the nRF52840 DK
P0.27P0.27I/O pinI²C SCL on the Arduino header of the nRF52840 DK
P0.28P0.28I/O pinAIN4Analog input: potentiometer, sensor voltage (0 V … supply)
P0.29P0.29I/O pinAIN5Analog input: potentiometer, sensor voltage (0 V … supply)
P0.30P0.30I/O pinAIN6Analog input: potentiometer, sensor voltage (0 V … supply)
P0.31P0.31I/O pinAIN7Analog input: potentiometer, sensor voltage (0 V … supply)
P1.00P1.00I/O pinSWOGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
P1.01P1.01I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
P1.02P1.02I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
P1.03P1.03I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
P1.04P1.04I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
P1.05P1.05I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
P1.06P1.06I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
P1.07P1.07I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
P1.08P1.08I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
P1.09P1.09I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
P1.10P1.10I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
P1.11P1.11I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
P1.12P1.12I/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
P1.13P1.13I/O pinSPI MOSI on the Arduino header of the nRF52840 DK
P1.14P1.14I/O pinSPI MISO on the Arduino header of the nRF52840 DK
P1.15P1.15I/O pinSPI SCK on the Arduino header of the nRF52840 DK

Parameters 1

Packagepackage
DefaultBMD-340
BMD-340aQFN73

PCB

Verified land patternBMD-340_UBLOX_LGA68
PackageLand patternStatusSource
BMD-340 · BMD-340-A-RBMD-340_UBLOX_LGA68Verified land patternu-blox BMD-340 data sheet UBX-19033353 R13 §5.2 (pad map and land pattern), VCC + VCCH tied for normal-voltage mode (§4.3); antenna keep-out §6.1
aQFN73 · nRF52840-QIAA-RNordic_AQFN-73-1EP_7x7mm_P0.5mmDraft: check before productionKiCad 10.0.7 library: symbol nRF52840 (pin numbers), footprint Package_DFN_QFN:Nordic_AQFN-73-1EP_7x7mm_P0.5mm (IPC-7351B land pattern)

Needs: bare nRF52840 (aQFN-73, 0.5 mm, via-in-pad): needs the reference circuit from the product specification (32 MHz crystal on XC1/XC2, decoupling DEC1…DEC6, inductors on DCC/DCCH, RF matching and antenna on ANT). For hobbyists use a module (e.g. u-blox BMD-340).