SAMV71 Xplained Ultra Software Package 1.3

True Random Number Generator Example

Purpose

The TRNG example shows how to generate random data with TRNG peripheral.

Requirements

This package can be used with SAM V71 Xplained Ultra board.

Description

The demonstration program configure TRNG peripheral. As soon as the TRNG is enabled the generator provides one 32-bit value every 84 clock cycles. TRNG interrupt status DATRDY is set when a new random value is ready, it can be read out on the 32-bit output data register (TRNG_ODATA)in TRNG interrupt routine.

Usage

  1. Build the program and download it inside the SAM V71 Xplained Ultra board. Please refer to the Getting Started with SAM V71 Microcontrollers.pdf
  2. On the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings:
    • 115200 baud rates
    • 8 bits of data
    • No parity
    • 1 stop bit
    • No flow control
  3. In the terminal window, the following text should appear (values depend on the board and chip used):
          -- TRNG Example xxx --
          -- SAMxxxxxx-xx
          -- Compiled: xxx xx xxxx xx:xx:xx --
    
  4. In the terminal window, we will see random data generated by TRNG peripheral.

References

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines