nRF51 SDK - S110 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 sent to P1. This can be used to light up the LEDs on the nRF6310 board among other things. It uses the hardware delivered in the nRF51822 Development Kit.

The application starts with enabling the 16MHz crystal oscillator, configuring the GPIO and the radio. The main loop enables the radio, waits for an event to be ready, and starts to listening. When a packet is received, the value is written to port 1 (LEDs) if the CRC matches. The radio is disabled and events are disabled.

Setup

Instructions on how to set up the nRFgo Motherboard: nRFgo Motherboard Setup (nRF6310).

LED assignments:

  • LED 0-7 is used to show the buttons pressed on the transmitter board.

Testing

The Radio Receiver Example Application can be tested as follows:

  1. Compile and program the application.
  2. The Radio Transmitter project must be programmed to another nRF6310 board.
  3. Press buttons on the transmitter board and the corresponding LEDs on the receiver board should be turned on.