Definition of the SPI-Bus

The SPI-Bus has 4 lines at minimum (max. 7 lines):

 

 

After the CS line has selected the desired sensor, the master data and the sensor data will be transmitted bit for bit and clock by clock to the bus.

 

Example of a SPI-Bus communication with one CS:

 

spi_diagramme.jpg

 

The following variations of the settings of the Clk-Signal results in 4 BUS operating systems:

 

CLK-Phase CLK-Polarity Settings Simulyzer
Data transmission by rising edge.   Idle = 0   1_16_buspa1.jpg
spi_betr1.jpg
Data transmission by rising edge.     Idle=1 1_16_buspa3.jpg
spi_betr3.jpg
  Data transmission by falling edge.
 
Idle=0
 
  1_16_buspa2.jpg
spi_betr2.jpg
  Data transmission by falling edge.   Idle=1
 
1_16_buspa4.jpg
spi_betr4.jpg

 

The following parameters are necessary for further characteristics of the SPI-Bus:

 

info_green.jpg

The parameters are filled with predefined values, that means settings are only available if the desired values different from the predefined values.