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.

Serial peripheral interface (SPI)<br />

RM0008<br />

LSB justified st<strong>and</strong>ard<br />

This st<strong>and</strong>ard is similar to the MSB justified st<strong>and</strong>ard (no difference for the 16-bit <strong>and</strong> 32-bit<br />

full-accuracy frame formats).<br />

Figure 221. LSB justified 16-bit or 32-bit full-accuracy with CPOL = 0<br />

CK<br />

WS<br />

Transmission<br />

Reception<br />

SD<br />

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

MSB<br />

LSB MSB<br />

Channel left<br />

Channel right<br />

Figure 222. LSB Justified 24-bit frame length with CPOL = 0<br />

CK<br />

WS<br />

SD<br />

8-bit data<br />

0 forced<br />

MSB<br />

Transmission<br />

24-bit remaining<br />

Reception<br />

LSB<br />

Channel left 32-bit<br />

Channel right<br />

●<br />

In transmission mode:<br />

If data 0x3478AE have to be transmitted, two write operations to the SPI_DR register<br />

are required from software or by DMA. The operations are shown below.<br />

Figure 223. Operations required to transmit 0x3478AE<br />

First write to Data register<br />

Second write to Data register<br />

conditioned by TXE = ‘1’ conditioned by TXE = ‘1’<br />

0xXX34<br />

Only the 8 LSB bits of the half-word<br />

are significant. Whatever the 8 MSBs<br />

a field of 0x00 is forced instead<br />

0x78AE<br />

●<br />

In reception mode:<br />

If data 0x3478AE are received, two successive read operations from SPI_DR are<br />

required on each RXNE event.<br />

604/995 Doc ID 13902 Rev 9

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

Saved successfully!

Ooh no, something went wrong!