Spi Control Register 2 (Spix_Cr2) - STMicroelectronics STM32F05 series Reference Manual

Advanced arm-based 32-bit mcus
Table of Contents

Advertisement

Serial peripheral interface / inter-IC sound (SPI/I2S)
26.7.2

SPI control register 2 (SPIx_CR2)

Address offset: 0x04
Reset value: 0x0000
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: 1. Refer to
Bit 13 LDMA_RX: Last DMA transfer for reception
Note: 1. Refer to
Bit 12 FRXTH: FIFO reception threshold
Note: This bit is not used in I²S mode.
672/742
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 644
2. 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 644
2. 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)
Doc ID 018940 Rev 1
8
7
6
5
TXEIE RXNEIE ERRIE
rw
rw
rw
rw
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.
RM0091
0
rw

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F05 series and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents