DocID025202 Rev 7
952/1080
RM0365
Serial peripheral interface / inter-IC sound (SPI/I2S)
959
30.9.3
SPI status register (SPIx_SR)
Address offset: 0x08
Reset value: 0x0002
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Res.
Res.
Res.
FTLVL[1:0]
FRLVL[2:0]
FRE
BSY
OVR
MODF
CRC
ERR
UDR
CHSIDE
TXE
RXNE
r
r
r
r
r
r
r
r
rc_w0
r
r
r
r
Bits 15:13 Reserved, must be kept at reset value.
Bits 12:11
FTLVL[1:0]:
FIFO Transmission Level
These bits are set and cleared by hardware.
00: FIFO empty
01: 1/4 FIFO
10: 1/2 FIFO
11: FIFO full (considered as FULL when the FIFO threshold is greater than 1/2)
Note: These bits are not used in I²S mode.
Bits 10:9
FRLVL[1:0]
: FIFO reception level
These bits are set and cleared by hardware.
00: FIFO empty
01: 1/4 FIFO
10: 1/2 FIFO
11: FIFO full
Note: These bits are not used in I²S mode and in SPI receive-only mode while CRC
calculation is enabled.
Bit 8
FRE
: Frame format error
This flag is used for SPI in TI slave mode and I
2
and
Section 30.7.9: I2S error flags
This flag is set by hardware and reset when SPIx_SR is read by software.
0: No frame format error
1: A frame format error occurred
Bit 7
BSY:
Busy flag
0:
SPI (or I2S) not busy
1: SPI (or I2S) is busy in communication or Tx buffer is not empty
This flag is set and cleared by hardware.
Note: The BSY flag must be used with caution: refer to
Section 30.5.10: SPI status flags
and
Procedure for disabling the SPI on page 914
.
Bit 6
OVR:
Overrun flag
0: No overrun occurred
1: Overrun occurred
This flag is set by hardware and reset by a software sequence. Refer to
for the software sequence.
Bit 5
MODF:
Mode fault
0: No mode fault occurred
1: Mode fault occurred
This flag is set by hardware and reset by a software sequence. Refer to
Note: This bit is not used in I
2
S mode.