Serial peripheral interface / inter-IC sound (SPI/I2S)
RM0365
937/1080
DocID025202 Rev 7
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
SPIx_I2SCFGR register.
In PCM mode, the output signals (WS, SD) are sampled on the rising edge of CK signal.
The input signals (WS, SD) are captured on the falling edge of CK.
Note that CK and WS are configured as output in MASTER mode.
Figure 373. PCM standard waveforms (16-bit)
For long frame synchronization, the WS signal assertion time is fixed to 13 bits in master
mode.
For short frame synchronization, the WS synchronization signal is only one cycle long.
Figure 374. PCM standard waveforms (16-bit extended to 32-bit packet frame)
Note:
For both modes (master and slave) and for both synchronizations (short and long), the
number of bits between two consecutive pieces of data (and so two synchronization signals)
needs to be specified (DATLEN and CHLEN bits in the SPIx_I2SCFGR register) even in
slave mode.
30.7.4 Start-up
description
The
shows how the serial interface is handled in MASTER mode, when the
SPI/I2S is enabled (via I2SE bit). It shows as well the effect of CKPOL on the generated
signals.
069
&.
:6
VKRUWIUDPH
6'
:6
ORQJIUDPH
ELWV
06%
/6% 06%
069
&.
:6
VKRUWIUDPH
6'
:6
ORQJIUDPH
8SWRELWV
06%
/6%
ELWV