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 />

Figure 210. Data clock timing diagram<br />

CPHA =1<br />

CPOL = 1<br />

CPOL = 0<br />

MISO<br />

(from master)<br />

MOSI<br />

(from slave)<br />

MSBit<br />

LSBit<br />

8 or 16 bits depending on Data Frame Format (see SPI_CR1)<br />

MSBit<br />

LSBit<br />

NSS<br />

(to slave)<br />

Capture strobe<br />

CPHA =0<br />

CPOL = 1<br />

CPOL = 0<br />

MISO<br />

(from master)<br />

MOSI<br />

(from slave)<br />

MSBit<br />

LSBit<br />

8 or 16 bits depending on Data Frame Format (see SPI_CR1)<br />

MSBit<br />

LSBit<br />

NSS<br />

(to slave)<br />

Capture strobe<br />

Note: These timings are shown with the LSBFIRST bit reset in the SPI_CR1 register.<br />

1. These timings are shown with the LSBFIRST bit reset in the SPI_CR1 register.<br />

Data frame format<br />

Data can be shifted out either MSB-first or LSB-first depending on the value of the<br />

LSBFIRST bit in the SPI_CR1 Register.<br />

Each data frame is 8 or 16 bits long depending on the size of the data programmed using<br />

the DFF bit in the SPI_CR1 register. The selected data frame format is applicable for<br />

transmission <strong>and</strong>/or reception.<br />

592/995 Doc ID 13902 Rev 9

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

Saved successfully!

Ooh no, something went wrong!