Random Number Generator Example Application main file.
More...
|
int | main (void) |
| Function for main application entry.
|
|
This file contains the source code for a sample application using the Random Number Generator. The following PAN workarounds must be taken into consideration (all but number 24 are demonstrated):
- PAN_028 rev2.0A anomaly 21 - RNG: Generated random value is reset when VALRDY event is cleared.
- PAN_028 rev2.0A anomaly 22 - RNG: RNG does not generate a new number after the current number generated
- PAN_028 rev2.0A anomaly 23 - RNG: STOP task clears the VALUE register
- PAN_028 rev2.0A anomaly 24 - RNG: The STOP task cannot be assigned to a PPI channel.
In short the PANS add the following restrictions:
- The random number must be read before VALRDY is cleared.
- EVENTS_VALRDY must be cleared to start generating a new value
- read VALUE before triggering STOP task.
- The random number generator has to be stopped by writing to the STOP task register.
Use board setup A for this example.