Figure 277. Lsb Justified 16-Bit Extended To 32-Bit Packet Frame With Cpol = 0; Figure 278. Example Of Lsb Justified 16-Bit Extended To 32-Bit Packet Frame - STMicroelectronics STM32F405 Reference Manual

Advanced arm-based 32-bit mcus
Table of Contents

Advertisement

RM0090

Figure 277. 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 278. 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.
16-bit data
0 forced
MSB
Channel left 32-bit
Figure 278
is required.
Only one access to SPI_DR
0X76A3
DocID018909 Rev 11
Serial peripheral interface (SPI)
Transmission
Reception
16-bit remaining
LSB
Channel right
2
S
899/1731
918

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Table of Contents

Save PDF