GD32F10x User Manual
514
18.5.5.
CRC polynomial register (SPI_CRCPOLY)
Address offset: 0x10
Reset value: 0x0000 0007
This register can be accessed by byte (8-bit) or half-word (16-bit) or word (32-bit).
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
CRCPOLY[15:0]
rw
Bits
Fields
Descriptions
31:16
Reserved
Must be kept at reset value.
15:0
CRCPOLY[15:0]
CRC polynomial register
This register contains the CRC polynomial and it is used for CRC calculation. The
default value is 0007h.
18.5.6.
RX CRC register (SPI_RCRC)
Address offset: 0x14
Reset value: 0x0000 0000
This register can be accessed by byte (8-bit) or half-word (16-bit) or word (32-bit).
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
RCRC[15:0]
r
Bits
Fields
Descriptions
31:16
Reserved
Must be kept at reset value.
15:0
RCRC[15:0]
RX CRC value
When the CRCEN bit of SPI_CTL0 is set, the hardware computes the CRC value
of the received bytes and saves them in RCRC register. If the Data frame format is
set to 8-bit data, CRC calculation is based on CRC8 standard, and saves the value
in RCR[7:0], when the Data frame format is set to 16-bit data, CRC calculation is
based on CRC16 standard, and saves the value in RCRC[15:0].
The hardware computes the CRC value after each received bit, when the TRANS
is set, a read to this register could return an intermediate value.
Summary of Contents for GD32F10 Series
Page 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Page 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Page 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Page 427: ...GD32F10x User Manual 427 value ...
Page 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...