GD32F403xx User Manual
490
If the NSS pin is configured as input, the NSS pin should be pulled high in master
mode, and this bit has no effect.
1
DMATEN
Transmit buffer DMA enable
0: Transmit buffer DMA is disabled
1: Transmit buffer DMA is enabled . When the TBE bit in SPI_STAT is set, it will
generate a DMA request at corresponding DMA channel.
0
DMAREN
Receive buffer DMA enable
0: Receive buffer DMA is disabled
1: Receive buffer DMA is enabled . When the RBNE bit in SPI_STAT is set, it will
generate a DMA request at corresponding DMA channel.
19.5.3.
Status register (SPI_STAT)
Address offset: 0x08
Reset value: 0x0002
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
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 bit
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 hardware and is able to be cleared by writing 0.
7
TRANS
Transmitting on-going 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 hardware.
6
RXORERR
Reception overrun error bit
0: No reception overrun error occurs.