55.5 Functional Description

Important: Users must wait for TRNG Warmup Time (TRNGWUP in Section 58.13.1.16 or 59.13.1.16) as specified in the AC electrical timings after enabling, but before use.

For additional information, refer to the TRNG Warm-Up Time for the SAM V70/V71 and SAM E70/S70.

The TRNG interrupt line can be enabled in the Interrupt Enable register (TRNG_IER), and disabled in the Interrupt Disable register (TRNG_IDR). This interrupt is set when a new random value is available, and is cleared when the Status register (TRNG_ISR) is read. The TRNG_ISR.DATRDY flag is set when the random data is ready to be read out on the 32-bit Output Data register (TRNG_ODATA).

The normal mode of operation checks that the flag in TRNG_ISR equals ‘1’ before reading TRNG_ODATA when a 32-bit random value is required by the software application.

Figure 55-2. TRNG Data Generation Sequence