GD32F20x User Manual
190
Bits
Fields
Descriptions
31:7
Reserved
Must be kept at reset value
6
SEIF
Seed error interrupt flag
This bit will be set if more than 64 consecutive same bit or more than 32
consecutive 01(or 10) changing are detected.
0: No fault detected
1: Seed error has been detected. The bit is cleared by writing 0.
5
CEIF
Clock error interrupt flag
This bit will be set if TRNG_CLK frequency is lower than 1/16 HCLK frequency.
0: No fault detected
1: Clock error has been detected. The bit is cleared by writing 0.
4:3
Reserved
Must be kept at reset value
2
SECS
Seed error current status
0: Seed error is not detected at current time. In case of SEIF=1 and SECS=0, it
means seed error has been detected before but now is recovered.
1: Seed error is detected at current time if more than 64 consecutive same bits or
more than 32 consecutive 01(or 10) changing are detected
1
CECS
Clock error current status
0: Clock error is not detected at current time. In case of CEIF=1 and CECS=0, it
means clock error has been detected before but now is recovered.
1: Clock error is detected at current time. TRNG_CLK frequency is lower than 1/16
HCLK frequency
0
DRDY
Random Data ready status bit. This bit is cleared by reading the TRNG_DATA
register and set when a new random number is generated.
0: The content of TRNG data register is not available.
1: The content of TRNG data register is available
9.4.3.
Data register (TRNG_DATA)
Address offset: 0x08
Reset value: 0x0000 0000
Application must make sure DRDY is set before reading this register
This register has to be accessed by word (32-bit)
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
TRNDATA[31:16]
r
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
TRNDATA[15:0]
r
Summary of Contents for GD32F20 Series
Page 191: ...GD32F20x User Manual 191 Bits Fields Descriptions 31 0 TRNDATA 31 0 32 Bit Random data ...
Page 290: ...GD32F20x User Manual 290 conversion is ongoing ...
Page 325: ...GD32F20x User Manual 325 15 0 ALRM 15 0 RTC alarm value low ...
Page 385: ...GD32F20x User Manual 385 ...
Page 523: ...GD32F20x User Manual 523 clears AERR bit by writing 0 to it ...