48.5.2.1 Initialization

To operate the TRNG, perform these actions:
  • Configure the clock source for CLK_TRNG_APB in the Main Clock Controller (MCLK) and enable the clock by writing a ‘1’ to the TRNG bit in the APB Mask register of the MCLK.
  • Optional: Enable the output event by writing a ‘1’ to the EVCTRL.DATARDYEO bit.
  • Optional: Enable the TRNG to Run in Standby mode by writing a ‘1’ to CTRLA.RUNSTDBY.
Note: A delay between TRNG Enable (CTRLA.ENABLE = 1) and the first random number read is required. For additional information, refer to the 55.38 TRNG Electrical Specifications.

The following register is enable-protected, meaning that it can only be written when the TRNG is disabled (CTRLA.ENABLE = 0): The Event Control (EVCTRL) register.

Enable-protection is denoted by the Enable-Protected property in the register description.