![GigaDevice Semiconductor GD32E23 Series User Manual Download Page 537](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32e23-series/gd32e23-series_user-manual_2225794537.webp)
GD32E23x User Manual
537
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
SPI_DATA[15:0]
rw
Bits
Fields
Descriptions
31:16
Reserved
Must be kept at reset value.
15:0
SPI_DATA[15:0]
Data transfer register.
For SPI0, the hardware has two buffers, including transmission buffer and
reception buffer. Write data to SPI_DATA will save the data to transmission buffer
and read data from SPI_DATA will get the data from reception buffer. When the
data frame format is set to 8-bit data, the SPI_DATA [15:8] is forced to 0 and the
SPI_DATA [7:0] is used for transmission and reception, transmission buffer and
reception buffer are 8-bits. If the Data frame format is set to 16-bit data, the
SPI_DATA [15:0] is used for transmission and reception, transmission buffer and
reception buffer are 16-bit.
For SPI1, the hardware has two FIFOs, including TXFIFO and RXFIFO. Write data
to SPI_DATA will save the data to TXFIFO and read data from SPI_DATA will get
the data from RXFIFO.
Note:
In fact, SPI1 hardware determines the size of each access to SPI_DATA
only based on the BYTEN bit in SPI_CTL1, regardless of the size of the software's
current operation.
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.