ST STM32L4 5 Series Reference Manual page 1441

Advanced arm-based 32-bit mcus
Table of Contents

Advertisement

RM0351
Bits 11:8 DS [3:0]: Data size
These bits configure the data length for SPI transfers:
If software attempts to write one of the "Not used" values, they are forced to the value "0111"(8-
bit).
Bit 7 TXEIE: Tx buffer empty interrupt enable
Bit 6 RXNEIE: RX buffer not empty interrupt enable
Bit 5 ERRIE: Error interrupt enable
This bit controls the generation of an interrupt when an error condition occurs (CRCERR,
OVR, MODF in SPI mode, FRE at TI mode).
Bit 4 FRF: Frame format
Note: This bit must be written only when the SPI is disabled (SPE=0).
Bit 3 NSSP
This bit is used in master mode only. it allow the SPI to generate an NSS pulse between two
consecutive data when doing continuous transfers. In the case of a single data transfer, it
forces the NSS pin high level after the transfer.
It has no meaning if CPHA = '1', or FRF = '1'.
Note: 1. This bit must be written only when the SPI is disabled (SPE=0).
0000: Not used
0001: Not used
0010: Not used
0011: 4-bit
0100: 5-bit
0101: 6-bit
0110: 7-bit
0111: 8-bit
1000: 9-bit
1001: 10-bit
1010: 11-bit
1011: 12-bit
1100: 13-bit
1101: 14-bit
1110: 15-bit
1111: 16-bit
0: TXE interrupt masked
1: TXE interrupt not masked. Used to generate an interrupt request when the TXE flag is set.
0: RXNE interrupt masked
1: RXNE interrupt not masked. Used to generate an interrupt request when the RXNE flag is
set.
0: Error interrupt is masked
1: Error interrupt is enabled
0: SPI Motorola mode
1 SPI TI mode
NSS pulse management
:
0: No NSS pulse
1: NSS pulse generated
2. This bit is not used in SPI TI mode.
DocID024597 Rev 5
Serial peripheral interface (SPI)
1441/1830
1446

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32L4 5 Series and is the answer not in the manual?

Table of Contents

Save PDF