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
- Build the program and download it inside the SAM V71 Xplained Ultra board. Please refer to the Getting Started with SAM V71 Microcontrollers.pdf
- 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
- 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 --
- In the terminal window, we will see random data generated by TRNG peripheral.
References