nRF51 SDK
|
Modules | |
main.c | |
Radio Receiver Example Application main file. | |
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.
Instructions on how to set up the nRFgo Motherboard: nRFgo Motherboard Setup (nRF6310).
LED assignments:
The Radio Receiver Example Application can be tested as follows: