Serial peripheral interface (SPI)
Figure 210. I
MOSI/ SD
MISO
NSS/WS
CK
MCK
The SPI could function as an audio I
setting the I2SMOD bit in the SPI_I2SCFGR register). This interface uses almost the same
pins, flags and interrupts as the SPI.
2
The I
S shares three common pins with the SPI:
●
SD: Serial Data (mapped on the MOSI pin) to transmit or receive the two time-
multiplexed data channels (in simplex mode only).
●
WS: Word Select (mapped on the NSS pin) is the data control signal output in master
mode and input in slave mode.
●
CK: Serial Clock (mapped on the SCK pin) is the serial clock output in master mode
and serial clock input in slave mode.
556/690
2
S block diagram
Master control logic
SPI
baud rate generator
I2S_CK
I2SMOD
Address and data bus
Tx buffer
BSY OVR MODF CRC
16-bit
Shift register
16-bit
Rx buffer
I2SCFG
[1:0]
Bidi
Bidi
mode
OE
LSB
First SPE BR2 BR1 BR0
2
I
S clock generator
MCKOE ODD
I2SDIV[7:0]
2
S interface when the I
CH
UDR
TxE RxNE
SIDE
ERR
LSB first
Communication
control
CH
I2SSTD
CKPOL
DATLEN
LEN
[1:0]
[1:0]
I2S
I2SE
MOD
CRC
CRC
Rx
DFF
SSM SSI
EN
Next
only
MSTR CPOL CPHA
I2SxCLK
2
S capability is enabled (by
RM0008
ai14748
Need help?
Do you have a question about the STM32F102 Series and is the answer not in the manual?
Questions and answers