Signal switches

nRF21540 DK Hardware

The nRF21540 DK has multiple analog switches that are used to connect and disconnect signals based on different scenarios.

Figure 1. Signal switches
Schematic: nRF21540 DK signal switches

The Universal Serial Bus (USB) and SW6 control the signal switches by using USB_DETECT as an input to SW6. The interface MCU can be disconnected either by unplugging the USB cable from J2 or by toggling SW6.

The signal controls switches U5, U6, and U7 that break the connection between the nRF52840 and the interface MCU and control the power for the interface MCU. For more information, see Interface MCU power.

Switches U5 and U6 break the connection of the Universal Asynchronous Receiver/Transmitter (UART) lines and SWD/RESET lines. The signal controls the routing of the RESET signal when the interface MCU is connected or disconnected as follows:

  • When the interface MCU is disconnected, cutting SB42 disconnects the Reset button from the reset pin P0.18 of nRF52840.
  • When the interface MCU is disconnected, shorting SB45 connects the RESET pin in the Arduino interface to the reset pin P0.18 of nRF52840.
  • When the interface MCU is connected, shorting SB46 connects the RESET pin in the Arduino interface to the BOOT input of the interface MCU.
  • Shorting SB43 connects the RESET pin in the Arduino interface to the Reset button.
  • Shorting SB44 connects the RESET pin in the Arduino interface to the reset pin P0.18 of nRF52840.

When a shield is connected, two analog switches connects the pull-up resistors to the SDA and SCL I2C bus lines. This function uses one ground pin on the Arduino shield to control the switch. This feature can be disabled by cutting SB33. To permanently enable pull-up resistors, short SB32.

Figure 2. Solder bridges: Shield detect and reset behavior
nRF21540 DK solder bridges: Shield detect and reset behavior

Switch U8 controls which General-Purpose Input/Output (GPIO)s certain signals are routed to. This is due to some features using the same GPIOs as the Trace output by default. These analog switches are controlled by SW7. See Debug input and trace for more information.