Serial peripheral interface/ inter-IC sound (SPI/I2S) RM0367
896/1043 RM0367 Rev 7
31.6 I
2
S functional description
31.6.1 I
2
S general description
The block diagram of the I
2
S is shown in Figure 292.
Figure 292. I
2
S block diagram
1. MCK is mapped on the MISO pin.
The SPI can function as an audio I
2
S interface when the I
2
S capability is enabled (by setting
the I2SMOD bit in the SPIx_I2SCFGR register). This interface mainly uses the same pins,
flags and interrupts as the SPI.
Tx buffer
Shift register
16-bit
Communication
Rx buffer
16-bit
MOSI/SD
Master control logic
MISO
SPI
baud rate generator
I2SMOD
LSB first
LSB
First
SPE BR2 BR1 BR0 MSTR
CPOL CPHA
Bidi
mode
Bidi
OE
CRC
EN
CRC
Next
DFF
Rx
only
SSM
SSI
Address and data bus
control
NSS/WS
BSY OVR MODF
CRC
ERR
CH
SIDE
TxE RxNE
I
2
S clock generator
MCK
I2S_
CK
I2S
MOD
I2SE
CH
DATLEN
LEN
CK
POL
I2SCFG
I2SSTD
MCKOE ODD I2SDIV[7:0]
[1:0]
[1:0]
[1:0]
UDR
I2SxCLK
MS32126V1
FRE
CK