nRF51 SDK - S110 SoftDevice
|
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.
Instructions on how to set up the nRFgo Motherboard: nRFgo Motherboard Setup (nRF6310).
LED assignments:
Button assignments:
The Radio Transmitter example Application can be tested as follows: