nRF51 SDK - S210 SoftDevice
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Radio Receiver Example

The Radio Receiver Example shows how to receive data with the NRF_RADIO peripheral. The receiver is configured to continuously receive packets from the corresponding transmitter project. The packet is printed in a COM listener (for example PUTTY) using UART.

The application first enables the 16 MHz crystal oscillator and configures the Board Support Package and the radio. Next, it enables the radio, waits for an event to be ready, and starts listening. When a packet is received and the Cyclic Redundancy Check (CRC) matches, the value is updated. Radio and events are then disabled.

The name of the example for PCA10028 is receiver_pca10028, and for PCA10031 it is receiver_pca10031. If you are not using the Keil Pack Installer, you can find the source code and project file of the example in the following folder: <InstallFolder>\examples\peripheral\radio\receiver

Testing

Test the Radio Receiver Example application by performing the following steps:

  1. Compile and program the application.
  2. Program the Radio Transmitter Example application to another board.
  3. Start a COM listener like PUTTY and connect to the used COM port of the receiver board with the following UART settings:
    • Baud rate: 38.400
    • 8 data bits
    • 1 stop bit
    • No parity
    • HW flow control: RTS/CTS
  4. Press buttons on the transmitter board and observe the PUTTY terminal connected to the receiver board.