Download Print this page

Texas Instruments SimpleLink CC2620 Technical Reference Manual page 1164

Zigbee rf4ce wireless mcu simplelink cc13 series; simplelink cc26 series

Advertisement

TRNG Low-level Programing Guide
16.6.1.3.2 Interrupt Mode
The Interrupt Mode section covers the event servicing of the module. Only the unmonitored mode is
covered.
Table 16-4
routine flow.
Step
Enable interrupt generation when data is ready (available)
in the output registers.
Enable the shutdown overflow interrupt generation when
the maximum possible FRO shutdowns reach the selected
shutdown threshold
Enable the TRNG
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
1164
Random Number Generator
lists the TRNG interrupt mode steps, while
Table 16-4. TRNG Interrupt Mode
Figure 16-3. Interrupt Service Routine
Read the status register to determine the type of the
granted interrupt value = TRNG:IRQFLAGSTAT
Yes
Interrupt caused
by ready result in output registers?
TRNG:IRQFLAGSTAT.RDY
Copyright © 2015, Texas Instruments Incorporated
Figure 16-3
Register / Bit-field
TRNG:IRQFLAGMASK.RDY
TRNG:IRQFLAGMASK.SHUTDOWN_OVF
TRNG:CTL.TRNG_EN
Enter ISR
No
= 0x1
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
register by writing to the acknowledge register
TRNG:IRQFLAGCLR.SHUTDOWN_OVF = 0x1
Exit ISR
SWCU117C – February 2015 – Revised September 2015
www.ti.com
shows the interrupt service
Value
0x1
0x1
0x1
Submit Documentation Feedback

Hide quick links:

Advertisement

loading