• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » What is SPI? – Serial Peripheral Interface

By Abhishek Ghosh June 14, 2018 6:23 am Updated on June 14, 2018

What is SPI? – Serial Peripheral Interface

Advertisement

For Arduino and related electronics prototyping, we need to know some basic theories which make them working. In our previous articles, we discussed about I²C protocol, some basics on UART and discussed some basic around serial communication. Another phrase you’ll often come to notice is SPI. What is SPI? Full form of SPI is Serial Peripheral Interface. Serial Peripheral Interface is a bus, a synchronous serial communication interface specification primarily used in embedded systems.

 

What is SPI?

 

Serial Peripheral Interface bus (SPI) developed by Motorola in the mid 1980s. A common example of application is in liquid crystal displays. SPI also called four-wire serial bus. It operates in full-duplex mode. The circuits communicate according to a master-slave scheme, where the master controls the communication. Several slaves can coexist on the same bus, in such case, the selection of the recipient is done by a dedicated line between the master and the slave called Slave Select (SS). The SPI bus uses four logical signals:

  • SCLK – Serial Clock, Clock (generated by the master)
  • MOSI – Master Output, Slave Input (generated by the master)
  • MISO – Master Input, Slave Output (generated by the slave)
  • SS – Slave Select, Active low (generated by the master)

There are other names that are often used:

Advertisement

---

SCK, SCL – Clock (generated by the master)
SDI, DI, SI – serial data IN, MOSI
SDO, SDA, DO, SO – Serial Data OUT, MISO
nCS, CS, nSS, STE, CSN-SS

In the case of the SDI/SDO naming convention, the SDO of the master must be connected to the SDI of the slave and vice versa. To avoid confusion when wiring, it is therefore often recommended to use MISO-MOSI names that avoid ambiguity.

A typical SPI transmission is a simultaneous communication between a master and a slave:

  • The master generates the clock and selects the slave with whom he wants to communicate by using the SS signal
  • The slave responds to the requests of the master

At each clock stroke the master and the slave exchange a bit. After eight clocks the master transmitted a byte to the slave and vice versa. The speed of the clock is set according to device specific characteristics. The configuration of the SPI is often named in the technical documentation as a number or a couple , where the most significant bit is CPOL (Clock Polarity) and the least significant bit CPHA (Clock Phase).

What is SPI - Serial Peripheral Interface

 

Advantages and Disadvantages of SPI?

 

Advantages :

  • Full duplex communication
  • Greater data flow than an I2C bus
  • Flexibility of the number of bits to be transmitted as well as the protocol itself
  • Simplicity of the hardware interface
  • No possible collision
  • Slaves use the master’s clock and therefore do not need their own oscillator
  • Sharing a common bus for clock, MISO and MOSI between devices

Disadvantages :

  • Engages more pins than a I2C or UART that uses only two
  • No addressing possible
  • The protocol has no acknowledgment. The master can speak to none without knowing it – no error-checking protocol defined
  • No hot swap support
Tagged With принцип работы spi интерфейса при работе cpu с flash , what is spi for windows , what is serial peripheral interface , what is an SPI output , SPI stands for serial data , serial peripheral interface bus , Serial Peripheral Interface (SPI) - learn sparkfun com , Serial Peripheral Interface , NSS input SPI bus , is serial data mosi

This Article Has Been Shared 422 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to What is SPI? – Serial Peripheral Interface

  • Creating Circuits With Wire, Resin (Tikka Kebab Circuit Design)

    Humans Have Discovered Yummy Tikka Kebab Circuit Design. How To Around Creating Circuits With Wire, Resin, Soldier And No PCB At China Price.

  • Arduino 8 Digit 7 Segment LED Display Buying Guide

    Here Is Arduino 8 Digit 7 Segment LED Display Buying Guide. These Are Driven By MAX7219/MAX7221 Driver Which Supports LED Dot Matrix Too.

  • Arduino Temperature Humidity Sensor : New DHT11, DHT21, DHT22 Test Code

    Here is New Test Codes For Arduino Temperature Humidity Sensor DHT11, DHT21, DHT22 Test Code as Hardware (Not Shields). 2 Libraries Needed.

  • Control Multiple LED Depending on the Level of Light With Arduino

    We will show how to control multiple LED depending on the level of light With Arduino. With increasing darkness higher number of LED will light up.

  • What is I²C Protocol? Relevance of I²C in Arduino

    Previously, we discussed about UART. What is I²C Protocol? I squared C (also pronounced as I-two-C) or I²C is a bus serial communication protocol designed by Philips for home automation and home electronics applications. Since 2006, licensing fees not needed to implement the I²C protocol. Fees needed to obtain I²C slave addresses allocated by NXP. […]

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Exploring the Benefits and Advantages of Microsoft’s Operating System March 22, 2023
  • Web Design Cookbook: Accessibility March 21, 2023
  • Online Dating: How to Find Your Match March 20, 2023
  • Web Design Cookbook: Logo March 19, 2023
  • How Starlink Internet Works March 17, 2023

About This Article

Cite this article as: Abhishek Ghosh, "What is SPI? – Serial Peripheral Interface," in The Customize Windows, June 14, 2018, March 23, 2023, https://thecustomizewindows.com/2018/06/what-is-spi-serial-peripheral-interface/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT