![GigaDevice Semiconductor GD32E23 Series User Manual Download Page 535](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32e23-series/gd32e23-series_user-manual_2225794535.webp)
GD32E23x User Manual
535
18.5.3.
Status register (SPI_STAT)
Address offset: 0x08
Reset value: 0x0000 0002
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
Reserved
TXLVL[1:0]
RXLVL[1:0]
FERR
TRANS
RXORER
R
CONFER
R
CRCERR
TXURER
R
I2SCH
TBE
RBNE
r
r
rc_w0
r
r
r
rc_w0
r
r
r
r
Bits
Fields
Descriptions
31:13
Reserved
Must be kept at reset value.
12:11
TXLVL[1:0]
TXFIFO level (only for SPI1)
00: Empty
01: 1/4 full
10: 1/2 full
11: Full
Note:
The FIFO level here refers to the current actual storage of the FIFO. Here,
the FIFO is considered full when the FIFO level is greater than 1/2.
10:9
RXLVL[1:0]
RXFIFO level (only for SPI1)
00: Empty
01: 1/4 full
10: 1/2 full
11: Full
This field has no meaning when SPI is in receive-only mode with CRC function
enabled.
Note:
The FIFO level here refers to the current actual storage of the FIFO. Here,
the FIFO is considered full when the FIFO level is greater than 1/2.
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 hardware and is able to be cleared by writing 0.
7
TRANS
Transmitting ongoing bit
0: SPI or I2S is idle.