English
Language : 

CP3BT23 Datasheet, PDF (91/260 Pages) Texas Instruments – CP3BT23 Reprogrammable Connectivity Processor with Bluetooth and Dual CAN Interfaces
17.0 Random Number Generator (RNG)
The RNG unit is a hardware “true random” number genera- When a new 16-bit word of random data is available, it is
tor. When enabled, this unit provides up to 800 random bits loaded into the RNGD register. If enabled, an interrupt re-
per second. The bits are available for reading from a 16-bit quest (IRQ3) is asserted when the word is available for
register.
reading. When software reads the RNGD register, the reg-
The RNG unit includes two oscillators which operate inde- ister is cleared and the interrupt request is deasserted.
pendently of the System Clock:
The RNGCST register provides control and status bits for
! Fast Oscillator—a 24 MHz oscillator which drives a lin- the RNG module:
ear feedback shift register (LFSR).
! RNG Enable—enables or disables the RNG oscillators.
! Slow Oscillator—an unstable oscillator which drives a ! Interrupt Mask—enables or disables the interrupt when
flip-flop for sampling the pseudorandom bitstream from a new word of random data becomes available.
the LFSR. This oscillator operates at approximately 115 ! Data Valid—indicates whether a new word is available.
kHz, but it does not have a fixed frequency.
17.1 FREEZE
By sampling the pseudorandom bitstream at random inter-
vals, a random bitstream is synthesized. This bitstream is
clocked into a 16-bit shift register. A programmable clock di-
vider generates the clock signal for the shift register from the
System Clock.
The RNG module provides support for an In-System Emu-
lator by means of a special FREEZE input. When FREEZE
is asserted, the automatic clear-on-read function of the
RNDGD register is disabled.
te RNGCST
Enable
Fast Osc.
(~24 MHz)
le Slow Osc.
(~115 kHz)
(Unstable)
Q
31-Bit LFSR
Clock
RNGDIVH/RNGDIVL
D
Q
Sample
Flip-Flop
Clock
D
16-Bit Shift Register
Clock
RNGD
o System
Obs Clock
Sample Strobe
Divider
Figure 31. RNG Module Block Diagram
System
Bus
DS185
www.national.com
90