Kinetis SDK v.1.2 Demo Applications User's Guide  Rev. 0
Freescale Semiconductor, Inc.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
RNGA Example

Overview

The RNGA is a digital integrated circuit capable of generating the 32-bit random numbers. The RNGA Example project is a demonstration program that uses the KSDK software to generate random numbers and prints them to the terminal.

Supported Platforms

These Freescale Freedom development platforms and Tower System modules are supported by the RNGA example.

System Requirement

Hardware requirements

Toolchain requirements

Software requirements

Getting Started

Hardware settings

The RNGA Example project does not call for any special hardware configurations. Although not required, the recommendation is to leave the development board's jumper settings and configurations in default state when running this example.

Prepare the example

  1. Connect a USB cable between the PC host and the OpenSDA USB port on the board.
  2. Open a serial terminal with these settings:
    • 115200 baud rate
    • 8 data bits
    • No parity
    • One stop bit
    • No flow control
  3. Download the program to the target board.
  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the example.

Run the example

These instructions are displayed/shown on the terminal window:

RNGA Peripheral Driver Example
Generate 10 random numbers
Generate 10 number:
Get random data No.0: 75128ccd.
Get random data No.1: f3bc5f99.
Get random data No.2: fe50a8bc.
Get random data No.3: 4737e46d.
Get random data No.4: 9f8bb4a8.
Get random data No.5: cadfd781.
Get random data No.6: a8263a08.
Get random data No.7: 3fed8d88.
Get random data No.8: c2826970.
Get random data No.9: 2715eb04.
Press any key to continue