English
Language : 

K60P100M100SF2RM Datasheet, PDF (796/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
Initialization/Application Information
Table 33-9. RNG Interrupt Sources
Sources
Seed generation done
Self test done
Error
Linear feedback
shift register (LFSR)
Oscillator
Self test
Statistical test
FIFO Underflow
Status Bit Field
RNG_SR[SDN]
RNG_SR[STDN]
RNG_SR[ERR]
RNG_ESR[LSFRE]
RNG_ESR[OSCE]
RNG_ESR[STE]
RNG_ESR[SATE]
RNG_ESR[FUFE]
RNG_CR
Mask Bit Field
MASKDONE
MASKDONE
MASKERR
MASKERR
MASKERR
MASKERR
MASKERR
MASKERR
Description
First seed was generated
Self test finished
Error detected. See RNG_ESR for details.
Fault in one of the TRNG's LFSRs
TRNG ring oscillator may be
malfunctioning
Self test failed
Statistics test for last seed generation
failed
FIFO read while empty
33.5 Initialization/Application Information
This section describes the module initialization.
33.5.1 Manual Seeding
The intended general operation of the RNGB is as follows:
1. Reset/initialize.
2. Write to the RNG_CR to setup the RNGB for the desired functionality.
3. Write to RNG_CMD to run self-test or seed generation.
4. Wait for interrupt to indicate completion of the requested operation(s).
5. Repeat steps 3–4 if seed generation is not complete.
6. Poll RNG_SR for FIFO level.
7. Read available random data from output FIFO.
8. Repeat steps 6 and 7 as needed, until 220 words have been generated.
9. Write to RNG_CMD to run seed mode.
10. Repeat steps 4–9.
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
796
Freescale Semiconductor, Inc.