09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Random number generator (RNG) <strong>RM0090</strong><br />

21.4.1 RNG control register (RNG_CR)<br />

Address offset: 0x00<br />

Reset value: 0x0000 0000<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16<br />

21.4.2 RNG status register (RNG_SR)<br />

Address offset: 0x04<br />

Reset value: 0x0000 0000<br />

Reserved<br />

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

Reserved<br />

Bits 31:4 Reserved, must be kept at reset value<br />

591/1416 Doc ID 018909 Rev 3<br />

IE RNGEN<br />

rw rw<br />

Reserved<br />

Bit 3 IE: Interrupt enable<br />

0: RNG Interrupt is disabled<br />

1: RNG Interrupt is enabled. An interrupt is pending as soon as DRDY=1 or SEIS=1 or<br />

CEIS=1 in the RNG_SR register.<br />

Bit 2 RNGEN: Random number generator enable<br />

0: Random number generator is disabled<br />

1: random Number Generator is enabled.<br />

Bits 1:0 Reserved, must be kept at reset value<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16<br />

Reserved<br />

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

Reserved<br />

Bits 31:3 Reserved, must be kept at reset value<br />

SEIS CEIS<br />

SECS CECS DRDY<br />

Reserved<br />

rc_w0 rc_w0 r r r<br />

Bit 6 SEIS: Seed error interrupt status<br />

This bit is set at the same time as SECS, it is cleared by writing it to 0.<br />

0: No faulty sequence detected<br />

1: One of the following faulty sequences has been detected:<br />

– More than 64 consecutive bits at the same value (0 or 1)<br />

– More than 32 consecutive alternances of 0 and 1 (0101010101...01)<br />

An interrupt is pending if IE = 1 in the RNG_CR register.<br />

Bit 5 CEIS: Clock error interrupt status<br />

This bit is set at the same time as CECS, it is cleared by writing it to 0.<br />

0: The PLL48CLK clock was correctly detected<br />

1: The PLL48CLK was not correctly detected (f PLL48CLK < f HCLK /16)<br />

An interrupt is pending if IE = 1 in the RNG_CR register.<br />

Bits 4:3 Reserved, must be kept at reset value

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!