RM0008
Figure 209. Data clock timing diagram
CPOL = 1
CPOL = 0
MISO
(from master)
MOSI
(from slave)
NSS
(to slave)
Capture strobe
CPOL = 1
CPOL = 0
MISO
(from master)
MOSI
(from slave)
NSS
(to slave)
Capture strobe
Note: These timings are shown with the LSBFIRST bit reset in the SPI_CR1 register.
1. These timings are shown with the LSBFIRST bit reset in the SPI_CR1 register.
Data frame format
Data can be shifted out either MSB-first or LSB-first depending on the value of the
LSBFIRST bit in the SPI_CR1 Register.
Each data frame is 8 or 16 bits long depending on the size of the data programmed using
the DFF bit in the SPI_CR1 register. The selected data frame format is applicable for
transmission and/or reception.
MSBit
8 or 16 bits depending on Data Frame Format (see SPI_CR1)
MSBit
MSBit
8 or 16 bits depending on Data Frame Format (see SPI_CR1)
MSBit
Serial peripheral interface (SPI)
CPHA =1
CPHA =0
LSBit
LSBit
LSBit
LSBit
549/690
Need help?
Do you have a question about the STM32F102 Series and is the answer not in the manual?
Questions and answers