RM0453
Bit 1 CPOL: Clock polarity
Note: This bit should not be changed when communication is ongoing.
Bit 0 CPHA: Clock phase
Note: This bit should not be changed when communication is ongoing.
37.9.2
SPI control register 2 (SPIx_CR2)
Address offset: 0x04
Reset value: 0x0700
15
14
13
12
LDMA
LDMA
FRXT
Res.
_TX
_RX
H
rw
rw
rw
Bit 15 Reserved, must be kept at reset value.
Bit 14 LDMA_TX: Last DMA transfer for transmission
Note: Refer to
Bit 13 LDMA_RX: Last DMA transfer for reception
Note: Refer to
Bit 12 FRXTH: FIFO reception threshold
Note: This bit is not used in I
Serial peripheral interface / integrated interchip sound (SPI/I2S)
0: CK to 0 when idle
1: CK to 1 when idle
This bit is not used in I
at TI mode.
0: The first clock transition is the first data capture edge
1: The second clock transition is the first data capture edge
This bit is not used in I
at TI mode.
11
10
9
DS[3:0]
rw
rw
rw
This bit is used in data packing mode, to define if the total number of data to transmit by DMA
is odd or even. It has significance only if the TXDMAEN bit in the SPIx_CR2 register is set
and if packing mode is used (data length =< 8-bit and write access to SPIx_DR is 16-bit
wide). It has to be written when the SPI is disabled (SPE = 0 in the SPIx_CR1 register).
0: Number of data to transfer is even
1: Number of data to transfer is odd
Procedure for disabling the SPI on page 1279
This bit is not used in I²S mode.
Th
is bit is used in data packing mode, to define if the total number of data to receive by DMA
is odd or even. It has significance only if the RXDMAEN bit in the SPIx_CR2 register is set
and if packing mode is used (data length =< 8-bit and write access to SPIx_DR is 16-bit
wide). It has to be written when the SPI is disabled (SPE = 0 in the SPIx_CR1 register).
0: Number of data to transfer is even
1: Number of data to transfer is odd
Procedure for disabling the SPI on page 1279
This bit is not used in I²S mode.
This bit is used to set the threshold of the RXFIFO that triggers an RXNE event
0: RXNE event is generated if the FIFO level is greater than or equal to 1/2 (16-bit)
1: RXNE event is generated if the FIFO level is greater than or equal to 1/4 (8-bit)
2
S mode and SPI TI mode except the case when CRC is applied
2
S mode and SPI TI mode except the case when CRC is applied
8
7
6
5
TXEIE RXNEIE ERRIE
rw
rw
rw
rw
2
S mode.
RM0453 Rev 1
4
3
2
1
FRF
NSSP
SSOE
TXDMAEN RXDMAEN
rw
rw
rw
rw
if the CRCEN bit is set.
if the CRCEN bit is set.
0
rw
1315/1461
1323
Need help?
Do you have a question about the STM32WL5 Series and is the answer not in the manual?
Questions and answers