serial peripheral interface
DESCRIPTION
Serial Communication ProtocolTRANSCRIPT
![Page 1: Serial peripheral interface](https://reader036.vdocuments.net/reader036/viewer/2022082702/5561651ad8b42a72628b4dc5/html5/thumbnails/1.jpg)
Serial Peripheral Interface
Abhijeet Kapse
![Page 2: Serial peripheral interface](https://reader036.vdocuments.net/reader036/viewer/2022082702/5561651ad8b42a72628b4dc5/html5/thumbnails/2.jpg)
Index Introduction
Overview
Communication
Advantages
Disadvantages
Applications
![Page 3: Serial peripheral interface](https://reader036.vdocuments.net/reader036/viewer/2022082702/5561651ad8b42a72628b4dc5/html5/thumbnails/3.jpg)
Introduction
Communication Protocol Developed By Motorola
Four Wire Protocol
Serial Interface
Master-Slave Approach
Synchronous- Data clocked with Clock Signal
Data Rate-10mbps
![Page 4: Serial peripheral interface](https://reader036.vdocuments.net/reader036/viewer/2022082702/5561651ad8b42a72628b4dc5/html5/thumbnails/4.jpg)
OverviewSimple SPI Protocol Specifies 4 Signal Wires
1. Master Out Slave In (MOSI)
2. Master In Slave Out (MISO)
3. Serial Clock (SCLK)
4. Slave Select (SS)
![Page 5: Serial peripheral interface](https://reader036.vdocuments.net/reader036/viewer/2022082702/5561651ad8b42a72628b4dc5/html5/thumbnails/5.jpg)
Single Master Single Slave
Master Slave
SCLK
MOSI
MISO
SS
Master• Initiates the Connection• Controls SCLK and Data transfer Slave• Transmits Data• Receives Data
![Page 6: Serial peripheral interface](https://reader036.vdocuments.net/reader036/viewer/2022082702/5561651ad8b42a72628b4dc5/html5/thumbnails/6.jpg)
Single Master Multiple Slave
Master
SCLKMOSI
MISO
SS1
SS2
SCLK
MOSIMISO
SS
SCLK
MOSI
MISO
SS
![Page 7: Serial peripheral interface](https://reader036.vdocuments.net/reader036/viewer/2022082702/5561651ad8b42a72628b4dc5/html5/thumbnails/7.jpg)
How Do They Communicate Communication Initiated by Master only
Master Configures the clock – Frequency less than equal to maximum frequency Slave Support
Master Selects Slave – By Pulling chip select(SS) of particular Slave-peripheral to Low State
![Page 8: Serial peripheral interface](https://reader036.vdocuments.net/reader036/viewer/2022082702/5561651ad8b42a72628b4dc5/html5/thumbnails/8.jpg)
Advantages
Full Duplex Communication
Higher Throughput than I2C
Not Limited to 8 bit words in case of bit transferring
Arbitrary choice of message size, content and Purpose
Low Power
![Page 9: Serial peripheral interface](https://reader036.vdocuments.net/reader036/viewer/2022082702/5561651ad8b42a72628b4dc5/html5/thumbnails/9.jpg)
Disadvantages Requires more pins than I2C
No hardware flow control
No Slave Acknowledgement
Multi Master Difficult to Implement
Short Distance
![Page 10: Serial peripheral interface](https://reader036.vdocuments.net/reader036/viewer/2022082702/5561651ad8b42a72628b4dc5/html5/thumbnails/10.jpg)
SPI Peripherals
Converters (ADC, DAC)
Memories (EEPROM, RAM’s, Flash)
Sensors (Temperature, Humidity, Pressure)
Real Time Clocks
Misc.- Potentiometers, LCD controllers, UART’s, USB controller, CAN controller, amplifiers