Figure 262. Lsb Justified 16-Bit Extended To 32-Bit Packet Frame With Cpol = 0; Figure 263. Example Of Lsb Justified 16-Bit Extended To 32-Bit Packet Frame - ST STM32F101 series Reference Manual

Advanced arm-based 32-bit mcus
Hide thumbs Also See for STM32F101 series:
Table of Contents

Advertisement

Serial peripheral interface (SPI)

Figure 262. LSB justified 16-bit extended to 32-bit packet frame with CPOL = 0

CK
WS
SD
When 16-bit data frame extended to 32-bit channel frame is selected during the I
configuration phase, Only one access to SPI_DR is required. The 16 remaining bits are
forced by hardware to 0x0000 to extend the data to 32-bit format. In this case it corresponds
to the half-word MSB.
If the data to transmit or the received data are 0x76A3 (0x0000 76A3 extended to 32-bit),
the operation shown in

Figure 263. Example of LSB justified 16-bit extended to 32-bit packet frame

In transmission mode, when TXE is asserted, the application has to write the data to be
transmitted (in this case 0x76A3). The 0x000 field is transmitted first (extension on 32-bit).
TXE is asserted again as soon as the effective data (0x76A3) is sent on SD.
In reception mode, RXNE is asserted as soon as the significant half-word is received (and
not the 0x0000 field).
In this way, more time is provided between two write or read operations to prevent underrun
or overrun conditions.
PCM standard
For the PCM standard, there is no need to use channel-side information. The two PCM
modes (short and long frame) are available and configurable using the PCMSYNC bit in
SPI_I2SCFGR.
721/1128
16-bit data
0 forced
MSB
Channel left 32-bit
Figure 263
is required.
Only one access to SPI_DR
0X76A3
DocID13902 Rev 15
Transmission
Reception
16-bit remaining
LSB
RM0008
Channel right
2
S

Advertisement

Table of Contents
loading

This manual is also suitable for:

Stm32f107 seriesStm32f102 seriesStm32f103 seriesStm32f105 seriesStm32f101 series

Table of Contents