SlideShare a Scribd company logo
1 of 13
SPI
(Serial peripheral interface)Protocol
Presented By
Abhishek
Mahesh
Introduction to SPI
Features Of SPI
Block Diagram
Types Of SPI
Working Of SPI
Data Transmission
Advantages
Applications
Introduction to SPI
Serial peripheral interface (SPI) is one of the most
widely used interfaces between microcontroller and
peripheral ICs such as sensors, ADCs, DACs, SRAM,
and others.
 wire SPI devices have four signals:
 Clock (SPI CLK, SCLK)
 Chip select (CS)
 Master out slave in(MOSI)
 Master in slave out(MISO)
Features Of SPI
 SPI is a synchronous
 Full duplex
 Multi slave communication
 Speed is up to 10m/bits
 Data transmission from both side LSB to MSB
and MSB to LSB
BLOCK DIAGRAM
The device that generates the clock signal is called the main.
Data transmitted between the main and the sub node is
synchronized to the clock generated by the main. SPI devices
support much higher clock frequencies compared to I2C
interfaces. Users should consult the product data sheet for the
clock frequency specification of the SPI interface.
Data Transmission
To begin SPI communication, the main must send
the clock signal and select the sub node by
enabling the CS signal. Usually chip select is an
active low signal; hence, the main must send a
logic 0 on this signal to select the sub node. SPI
is a full-duplex interface; both main and sub node
can send data at the same time via the MOSI and
MISO lines respectively. During SPI
communication, the data is simultaneously
transmitted (shifted out serially onto the
MOSI/SDO bus) and received (the data on the
bus (MISO/SDI) is sampled or read in)
Types Of SPI
1. Regular SPI Mode
Regular SPI Mode
In regular mode, an individual chip select for
each sub node is required from the main. Once
the chip select signal is enabled (pulled low) by
the main, the clock and data on the MOSI/MISO
lines are available for the selected sub node. If
multiple chip select signals are enabled, the data
on the MISO line is corrupted, as there is no
way for the main to identify which sub node is
transmitting the data.
Types Of SPI
2. Daisy-Chain Method
Daisy-Chain Method
In daisy-chain mode, the sub nodes are
configured such that the chip select signal for
all sub nodes is tied together and data
propagates from one sub node to the next. In
this configuration, all sub nodes receive the
same SPI clock at the same time. The data from
the main is directly connected to the first sub
node and that sub node provides data to the
next sub node and so on.
Advantages:
 Support full-duplex communication, which
means data can be transmitted and received at
the same time.
 Better signal integrity, supporting high-speed
applications.
 The hardware connection is simple, only four
signal lines are needed (some applications can
be reduced to three).
 No transceiver required.
 The slave device does not need to address
Applications
 It is used in real time clocks.
 It is used in LCD and LED.
 It is also used in video games.
THANK YOU

More Related Content

Featured

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Featured (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

SPI (Serial peripheral interface)Protocol.pptx

  • 2. Introduction to SPI Features Of SPI Block Diagram Types Of SPI Working Of SPI Data Transmission Advantages Applications
  • 3. Introduction to SPI Serial peripheral interface (SPI) is one of the most widely used interfaces between microcontroller and peripheral ICs such as sensors, ADCs, DACs, SRAM, and others.  wire SPI devices have four signals:  Clock (SPI CLK, SCLK)  Chip select (CS)  Master out slave in(MOSI)  Master in slave out(MISO)
  • 4. Features Of SPI  SPI is a synchronous  Full duplex  Multi slave communication  Speed is up to 10m/bits  Data transmission from both side LSB to MSB and MSB to LSB
  • 5. BLOCK DIAGRAM The device that generates the clock signal is called the main. Data transmitted between the main and the sub node is synchronized to the clock generated by the main. SPI devices support much higher clock frequencies compared to I2C interfaces. Users should consult the product data sheet for the clock frequency specification of the SPI interface.
  • 6. Data Transmission To begin SPI communication, the main must send the clock signal and select the sub node by enabling the CS signal. Usually chip select is an active low signal; hence, the main must send a logic 0 on this signal to select the sub node. SPI is a full-duplex interface; both main and sub node can send data at the same time via the MOSI and MISO lines respectively. During SPI communication, the data is simultaneously transmitted (shifted out serially onto the MOSI/SDO bus) and received (the data on the bus (MISO/SDI) is sampled or read in)
  • 7. Types Of SPI 1. Regular SPI Mode
  • 8. Regular SPI Mode In regular mode, an individual chip select for each sub node is required from the main. Once the chip select signal is enabled (pulled low) by the main, the clock and data on the MOSI/MISO lines are available for the selected sub node. If multiple chip select signals are enabled, the data on the MISO line is corrupted, as there is no way for the main to identify which sub node is transmitting the data.
  • 9. Types Of SPI 2. Daisy-Chain Method
  • 10. Daisy-Chain Method In daisy-chain mode, the sub nodes are configured such that the chip select signal for all sub nodes is tied together and data propagates from one sub node to the next. In this configuration, all sub nodes receive the same SPI clock at the same time. The data from the main is directly connected to the first sub node and that sub node provides data to the next sub node and so on.
  • 11. Advantages:  Support full-duplex communication, which means data can be transmitted and received at the same time.  Better signal integrity, supporting high-speed applications.  The hardware connection is simple, only four signal lines are needed (some applications can be reduced to three).  No transceiver required.  The slave device does not need to address
  • 12. Applications  It is used in real time clocks.  It is used in LCD and LED.  It is also used in video games.