nRF51 SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Random Number Generator Example

Modules

 main.c
 Random Number Generator Example Application main file.
 

Detailed Description

The Random Number Generator Example demonstrates the RNG peripheral by obtaining a random number and showing it on the LEDs.

The application starts by configuring the GPIO and starting the RNG peripheral. The main loop updates the LEDs to the random number and waits for 100ms.

Setup

Instructions on how to set up the nRFgo Motherboard: nRFgo Motherboard Setup (nRF6310).

LED assignments:

Testing

The Random Number Generator Example Application can be tested as follows:

  1. Compile and program the application.
  2. Observe that a random number is updated on the LEDs every 100ms.