nRF51 SDK - S210 SoftDevice
 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 send packets on button press.

The application first enables the 16 MHz crystal oscillator and configures the Board Support Package and the radio. When you press a button, the button state is read and the radio is enabled. When an event is ready, the packet is transmitted and the value is printed in a COM listener (for example PUTTY) using UART. Radio and events are then disabled.

The name of the example is transmitter_pca10028. 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\transmitter

Testing

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

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