Figure 301. Operations Required To Receive 0X3478Ae; Figure 302. Lsb Justified 16-Bit Extended To 32-Bit Packet Frame With Cpol = 0; Figure 303. Example Of Lsb Justified 16-Bit Extended To 32-Bit Packet Frame - ST STM32F40 Series Reference Manual

Hide thumbs Also See for STM32F40 Series:
Table of Contents

Advertisement

Serial peripheral interface (SPI)

Figure 301. Operations required to receive 0x3478AE

Figure 302. 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 303. 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.
827/1422
First read from Data register
conditioned by RXNE = '1'
0x0034
Only the 8 LSB bits of the half-word
are significant. Whatever the 8 MSBs,
a field of 0x00 is forced instead
16-bit data
0 forced
Channel left 32-bit
Figure 303
is required.
Only one access to SPI_DR
Doc ID 018909 Rev 4
Second read from Data register
conditioned by RXNE = '1'
0x78AE
Transmission
16-bit remaining
MSB
0X76A3
RM0090
Reception
LSB
Channel right
2
S

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

This manual is also suitable for:

Stm32f41 seriesStm32f42 seriesStm32f43 seriesRm0090

Table of Contents

Save PDF