29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

RM0008<br />

Serial peripheral interface (SPI)<br />

Figure 212. I 2 S Phillips protocol waveforms (16/32-bit full accuracy, CPOL = 0)<br />

CK<br />

WS<br />

Transmission<br />

Reception<br />

SD<br />

May be 16-bit, 32-bit<br />

MSB LSB MSB<br />

Channel left<br />

Channel right<br />

Data are latched on the falling edge of CK (for the transmitter) <strong>and</strong> are read on the rising<br />

edge (for the receiver). The WS signal is also latched on the falling edge of CK.<br />

Figure 213. I 2 S Phillips st<strong>and</strong>ard waveforms (24-bit frame with CPOL = 0)<br />

CK<br />

WS<br />

SD<br />

Transmission<br />

24-bit data<br />

Reception<br />

8-bit remaining<br />

0 forced<br />

MSB<br />

LSB<br />

Channel left 32-bit<br />

Channel right<br />

This mode needs two write or read operations to/from the SPI_DR.<br />

● In transmission mode:<br />

if 0x8EAA33 has to be sent (24-bit):<br />

Figure 214. Transmitting 0x8EAA33<br />

First write to Data register<br />

0x8EAA<br />

Second write to Data register<br />

0x33XX<br />

Only the 8 MSBs are sent to complete the 24 bits<br />

8 LSB bits have no meaning <strong>and</strong> could be<br />

anything<br />

Doc ID 13902 Rev 9 601/995

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

Saved successfully!

Ooh no, something went wrong!