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

The Radio Transmitter Example shows how to transmit data with the NRF_RADIO peripheral. The transmitter is configured to continuously send packets. The first payload byte of the packet is taken from GPIO Port 0 which can connect to the buttons on an nRFgo board for example. After transmission, the first payload byte of the packet is sent to P1 which can be used light up the LEDs on the nRF6310 board. 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 reads the data on port 0 (Buttons) and enables the radio. When an event is ready, the packet is transmitted and the value is written to the port 1 (LEDs). The radio is disabled and the 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.

Button assignments:

  • Button 0-7 is used to light up the corresponding LEDs on both Transmitter and Receiver board.

Testing

The Radio Transmitter example Application can be tested as follows:

  1. Compile and program the application.
  2. The Radio Receiver 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.