nRF51 SDK - S120 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 first payload byte of 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 BSP module 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>\Nordic\nrf51\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. Press buttons on the transmitter board and observe the PUTTY terminal connected to the receiver board.