Texas Instruments CC2650DK 사용자 설명서

다운로드
페이지 1570
Is the shutdown threshold reached?
[TRNG:IRQFLAGSTAT:SHUTDOWN_OVF] 
= 0x1
Start
Is the result ready?
[TRNG:IRQFLAGSTAT:RDY] 
= 0x1
Enable the TRNG module
[TRNG:CTL:TRNG_EN] = 0x1
Is the shutdown threshold set?
[TRNG:ALARMCNT:SHUTDOWN_THR] 
!= 0
Has alarm event occured?
[TRNG:ALARMMASK:FRO_MASK] 
!= 0x0
Is(Are) the FRO(s) shut down?
[TRNG:ALARMSTOP:FRO_FLAGS] 
!= 0x0
Read the resulted random number LSW
LSW_result =[TRNG:OUT0]
Read the resulted random number MSW
MSW_result =[TRNG:OUT1]
Clear the result ready event in the status register by 
writing to the acknowledge register
[TRNG:IRQFLAGCLR:RDY] = 0x1
Yes
No
Yes
Yes
No
No
No
Monitored mode
Unmonitored mode
Clear alarm events
[TRNG:ALARMMASK:FRO_MASK] = 0x0
[TRNG:ALARMSTOP:FRO_FLAGS] = 0x0
Modify the delay selection in an attempt to prevent 
further locking
(detune the particular FRO(s) which had the alarm)
[TRNG:FRODETUNE:FRO_MASK] = 0x-
Re-enable the shut down FROs
[TRNG:FROEN:FRO_MASK] = 0x-
Clear the shutdown overflow event in the status reguster 
by writing to the acknowledge register
[TRNG:IRQFLAGCLR:SHUTDOWN_OVF] = 0x1
Modify the delay selection in an attempt to prevent 
further locking
(detune the particular FRO(s) which had the alarm)
[TRNG:FRODETUNE:FRO_MASK] = 0x-
Has to many FROs been shut down?
[TRNG:ALARMCNT:SHUTDOWN_CNT] 
> min_number_of_FROs
Stop the TRNG module as required 
number of FROs is not valid
Stop
Need more seeds?
De-tuning already performed 
on shutdown FROs
No
No
No
Yes
Yes
Yes
Yes
No
Yes
TRNG Low-level Programing Guide
16.6.1.3 TRNG Operating Modes
This section presents the flow for different operating modes of the TRNG module.
16.6.1.3.1 Polling Mode
In polling mode, both monitored and unmonitored modes are covered.
shows the TRNG
polling mode.
Figure 16-2. TRNG Polling Mode
1161
SWCU117A – February 2015 – Revised March 2015
Random Number Generator
Copyright © 2015, Texas Instruments Incorporated