GD32F20x User Manual
576
This bit is set by hardware and cleared by a read operation on the SPI_STAT
register.
This bit is not used in SPI mode.
2
I2SCH
I2S channel side
0: The next data needs to be transmitted or the data just received belongs to left
channel.
1: The next data needs to be transmitted or the data just received belongs to right
channel .
This bit is set and cleared by hardware.
This bit is not used in SPI mode, and has no meaning in the I2S PCM mode.
1
TBE
Transmit Buffer Empty
0: Transmit buffer is not empty
1: Transmit buffer is empty
0
RBNE
Receive Buffer Not Empty
0: Receive buffer is empty
1: Receive buffer is not empty
21.11.4.
Data register (SPI_DATA)
Address offset: 0x0C
Reset value: 0x0000
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
Reserved
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
DATA[15:0]
rw
Bits
Fields
Descriptions
31:16
Reserved
Must be kept at reset value
15:0
DATA[15:0]
Data transfer register.
The hardware has two buffers, including transmit buffer and receive buffer. Write
data to SPI_DATA will save the data to transmit buffer and read data from
SPI_DATA will get the data from receive 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, transmit buffer and
receive 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, transmit buffer and receive buffer are
16-bit.
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 ...