DocID025202 Rev 7
936/1080
RM0365
Serial peripheral interface / inter-IC sound (SPI/I2S)
959
Figure 370. Operations required to receive 0x3478AE
Figure 371. LSB justified 16-bit extended to 32-bit packet frame
When 16-bit data frame extended to 32-bit channel frame is selected during the I
2
S
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
is required.
Figure 372. 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.
[;;
[$(
)LUVWUHDGIURP'DWDUHJLVWHU
FRQGLWLRQHGE\5;1(
6HFRQGUHDGIURP'DWDUHJLVWHU
FRQGLWLRQHGE\5;1(
2QO\WKH/6%RIWKH
KDOIZRUGDUHVLJQLILFDQW
$ILHOGRI[LVIRUFHG
LQVWHDGRIWKH06%V
069
069
&.
:6
6'
7UDQVPLVVLRQ
5HFHSWLRQ
ELWGDWD
IRUFHG
06%
/6%
&KDQQHOOHIWELW
&KDQQHOULJKW
ELWUHPDLQLQJ
[$
2QO\RQHDFFHVVWRWKH63,['5UHJLVWHU
069