SLAU847D October 2022 – May 2024 MSPM0L1105 , MSPM0L1106 , MSPM0L1227 , MSPM0L1228 , MSPM0L1228-Q1 , MSPM0L1303 , MSPM0L1304 , MSPM0L1304-Q1 , MSPM0L1305 , MSPM0L1305-Q1 , MSPM0L1306 , MSPM0L1306-Q1 , MSPM0L1343 , MSPM0L1344 , MSPM0L1345 , MSPM0L1346 , MSPM0L2227 , MSPM0L2228 , MSPM0L2228-Q1
The TRNG includes a state machine which manages the current operating state of the TRNG. The TRNG is configured for use by sending commands to the TRNG to change its state. The TRNG has seven states, given in Table 10-2.
Code | State Name | Description |
---|---|---|
0x0 | OFF | Analog block is powered off, digital block is disabled |
0x1 | PWRUP_ES | TRNG is in the process of powering up the entropy source and will transition to NORM_FUNC. |
0x2 | PWRDOWN_ES | TRNG is in the process of powering down the entropy source and will transition to OFF. |
0x3 | NORM_FUNC | TRNG is running and generating random bits normally. |
0x7 | TEST_DIG | TRNG is running the digital power-on self-test. |
0xB | TEST_ANA | TRNG is running the analog power-on self-test. |
0xA | ERROR | Operation halted due to an error condition. The analog remains powered but the health and conditioning logic is stopped. |
The current TRNG state can be determined by application software. To check the current state, read the FSM_STATE field in the STAT register of the TRNG.