29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

RM0008<br />

Serial peripheral interface (SPI)<br />

Figure 211. I 2 S block diagram<br />

Address <strong>and</strong> data bus<br />

Tx buffer<br />

16-bit<br />

BSY OVR MODF CRC<br />

ERR<br />

UDR<br />

CH<br />

TxE RxNE<br />

SIDE<br />

MOSI/ SD<br />

MISO<br />

Shift register<br />

16-bit<br />

Rx buffer<br />

LSB first<br />

Communication<br />

control<br />

NSS/WS<br />

I2SCFG I2SSTD CKPOL DATLEN<br />

[1:0] [1:0] [1:0]<br />

CH<br />

LEN<br />

I2S<br />

MOD I2SE<br />

Master control logic<br />

SPI<br />

baud rate generator<br />

Bidi<br />

mode Bidi<br />

OE<br />

CRC CRC<br />

EN Next<br />

Rx<br />

DFF SSM SSI<br />

only<br />

LSB<br />

First<br />

SPE BR2 BR1 BR0 MSTR CPOL CPHA<br />

CK<br />

I2S_CK<br />

I 2 S clock generator<br />

I2SMOD<br />

MCK<br />

MCKOE ODD I2SDIV[7:0]<br />

I2SxCLK<br />

ai14748<br />

The SPI could function as an audio I 2 S interface when the I 2 S capability is enabled (by<br />

setting the I2SMOD bit in the SPI_I2SCFGR register). This interface uses almost the same<br />

pins, flags <strong>and</strong> interrupts as the SPI.<br />

The I 2 S shares three common pins with the SPI:<br />

● SD: Serial Data (mapped on the MOSI pin) to transmit or receive the two timemultiplexed<br />

data channels (in simplex mode only).<br />

● WS: Word Select (mapped on the NSS pin) is the data control signal output in master<br />

mode <strong>and</strong> input in slave mode.<br />

● CK: Serial Clock (mapped on the SCK pin) is the serial clock output in master mode<br />

<strong>and</strong> serial clock input in slave mode.<br />

Doc ID 13902 Rev 9 599/995

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!