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

Modules

 main.c
 Radio Receiver Example Application main file.
 

Detailed Description

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:

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.