
MOSI (Master Output/Slave Input) – Line for the master to send data to the slave.
MISO (Master Input/Slave Output) – Line for the slave to send data to the master.
SCLK (Clock) – Line for the clock signal.
SS/CS (Slave Select/Chip Select) – Line for the master to select which slave to send data to.
WORKING
1.Data Transfer will be in Serial Mode
2.Synchronous Communication (shares same clock)
3. Full Duplex Communication (Both Master and Slave can send data at same time)
4.Master can support Multiple Slaves using CS (Chip Select Signal)
By asserting CS as HIGH Master can access specific Slave devices.
5.Modes of SPI.
There are 4 Modes.
WAVEFORM
SPISIMO works on positive edge of SPICLK
SPISOMI works on negative edge of SPICLK
MODE 1

MODE 2

MODE 3

MODE 4
