GD32W51x User Manual
703
0: Transmit buffer DMA is disabled.
1: Transmit buffer DMA is enabled, w hen the TBE bit in SPI_STAT is set, there w ill be a
DMA request on corresponding DMA channel.
0
DMAREN
Receive buffer DMA enable
0: Receive buffer DMA is disabled.
1: Receive buffer DMA is enabled, w hen the RBNE bit in SPI_STAT is set, there w ill be
a DMA request on corresponding DMA channel.
20.11.3.
Status register (SPI_STAT)
Address offset: 0x08
Reset value: 0x0000 0002
This register can be accessed by 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
Reserved
FERR
TRANS RXORERR CONFERR CRCERR TXURERR I2SCH
TBE
RBNE
rc_w0
r
r
r
rc_w0
r
r
r
r
Bits
Fields
Descriptions
31:9
Reserved
Must be kept at reset value.
8
FERR
Format error
SPI TI Mode:
0: No TI mode format error
1: TI mode format error occurs
I2S Mode:
0: No I2S format error
1: I2S format error occurs
This bit is set by hardw are and cleared by w riting 0.
7
TRANS
Transmitting ongoing bit
0: SPI or I2S is idle.
1: SPI or I2S is currently transmitting and/or receiving a frame
This bit is set and cleared by hardw are.
6
RXORERR
Reception overrun error bit
0: No reception overrun error occurs.
1: Reception overrun error occurs.
This bit is set by hardw are and cleared by a read operation on the SPI_DATA register
follow ed by a read access to the SPI_STAT register.
5
CONFERR
SPI Configuration error