Download Print this page

ST STM32F301 6 Series Reference Manual page 814

Advanced arm-based 32-bit mcus

Advertisement

Serial peripheral interface / integrated interchip sound (SPI/I2S)
CK
WS
SD
When 16-bit data frame extended to 32-bit channel frame is selected during the I2S
configuration phase, Only one access to the SPIx_DR register 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 333. Example of 16-bit data frame extended to 32-bit channel frame
In transmission mode, when a TXE event occurs, the application has to write the data to be
transmitted (in this case 0x76A3). The 0x000 field is transmitted first (extension on 32-bit).
The TXE flag is set 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.
814/874
Figure 331. Operations required to receive 0x3478AE
First read from Data register
conditioned by RXNE=1
0xXX34
Only the 8 LSB of the
half-word are significant.
A field of 0x00 is forced
instead of the 8 MSBs.
Figure 332. LSB justified 16-bit extended to 32-bit packet frame
16-bit data
0 forced
Channel left 32-bit
Figure 333
Only one access to the SPIx-DR register
RM0366 Rev 5
Second read from Data register
conditioned by RXNE=1
Transmission
16-bit remaining
MSB
is required.
0x76A3
0x78AE
Reception
LSB
Channel right
RM0366
MS19597V1
MS30105V1
MS19598V1

Advertisement

loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Stm32f301 8 seriesStm32f318 8 series