\n

RNG

Peripheral Memory Blocks

address_offset : 0x0 Bytes (0x0)
size : 0x400 byte (0x0)
mem_usage : registers
protection : not protected

Registers

RNG_CR (CR)

RNG_SR (SR)

RNG_DR (DR)


RNG_CR (CR)

control register
address_offset : 0x0 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

RNG_CR RNG_CR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RNGEN IE CED

RNGEN : True random number generator enable
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

0x0 : B_0x0

True random number generator is disabled. Analog noise sources are powered off and logic clocked by the RNG clock is gated.

0x1 : B_0x1

True random number generator is enabled.

End of enumeration elements list.

IE : Interrupt Enable
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

0x0 : B_0x0

RNG Interrupt is disabled

0x1 : B_0x1

RNG Interrupt is enabled. An interrupt is pending as soon as DRDY='1', SEIS='1' or CEIS=1 in the RNG_SR register.

End of enumeration elements list.

CED : Clock error detection The clock error detection cannot be enabled nor disabled on-the-fly when the RNG is enabled, i.e. to enable or disable CED the RNG must be disabled.
bits : 5 - 5 (1 bit)
access : read-write

Enumeration:

0x0 : B_0x0

Clock error detection is enable

0x1 : B_0x1

Clock error detection is disable

End of enumeration elements list.


RNG_SR (SR)

status register
address_offset : 0x4 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

RNG_SR RNG_SR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 DRDY CECS SECS CEIS SEIS

DRDY : Data Ready Once the output buffer becomes empty (after reading the RNG_DR register), this bit returns to 0 until a new random value is generated. Note: The DRDY bit can rise when the peripheral is disabled (RNGEN=0 in the RNG_CR register). If IE=1 in the RNG_CR register, an interrupt is generated when DRDY=1.
bits : 0 - 0 (1 bit)
access : read-only

Enumeration:

0x0 : B_0x0

The RNG_DR register is not yet valid, no random data is available.

0x1 : B_0x1

The RNG_DR register contains valid random data.

End of enumeration elements list.

CECS : Clock error current status Note: CECS bit is valid only if the CED bit in the RNG_CR register is set to 0.
bits : 1 - 1 (1 bit)
access : read-only

Enumeration:

0x0 : B_0x0

The RNG clock is correct (fRNGCLK> fHCLK/32). If the CEIS bit is set, this means that a slow clock was detected and the situation has been recovered.

0x1 : B_0x1

The RNG clock is too slow (fRNGCLK< fHCLK/32).

End of enumeration elements list.

SECS : Seed error current status One of the noise source has provided more than 64 consecutive bits at a constant value (“0” or “1”), or more than 32 consecutive occurrence of two bit patterns (“01” or “10”) Both noise sources have delivered more than 32 consecutive bits at a constant value (“0” or “1”), or more than 16 consecutive occurrence of two bit patterns (“01” or “10”)
bits : 2 - 2 (1 bit)
access : read-only

Enumeration:

0x0 : B_0x0

No faulty sequence has currently been detected. If the SEIS bit is set, this means that a faulty sequence was detected and the situation has been recovered.

0x1 : B_0x1

At least one of the following faulty sequence has been detected:

End of enumeration elements list.

CEIS : Clock error interrupt status This bit is set at the same time as CECS. It is cleared by writing 0. Writing 1 has no effect. An interrupt is pending if IE = 1 in the RNG_CR register.
bits : 5 - 5 (1 bit)
access : read-write

Enumeration:

0x0 : B_0x0

The RNG clock is correct (fRNGCLK> fHCLK/32)

0x1 : B_0x1

The RNG has been detected too slow (fRNGCLK< fHCLK/32)

End of enumeration elements list.

SEIS : Seed error interrupt status This bit is set at the same time as SECS. It is cleared by writing 0. Writing 1 has no effect. An interrupt is pending if IE = 1 in the RNG_CR register.
bits : 6 - 6 (1 bit)
access : read-write

Enumeration:

0x0 : B_0x0

No faulty sequence detected

0x1 : B_0x1

At least one faulty sequence has been detected. See SECS bit description for details.

End of enumeration elements list.


RNG_DR (DR)

data register
address_offset : 0x8 Bytes (0x0)
size : 32 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

RNG_DR RNG_DR read-only 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RNDATA

RNDATA : Random data
bits : 0 - 31 (32 bit)



Is something missing? Is something wrong? can you help correct it ? Please contact us at info@chipselect.org !

This website is sponsored by EmbeetleEmbeetle, an IDE designed from scratch for embedded software developers.