• 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 573 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 (22.1K 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

  • Ways To Make Sure Your Online Course Outshine Others July 3, 2022
  • Will Smart Factories Become the New Assembly Line? July 2, 2022
  • The Cost of Doing Business as a Handyman July 1, 2022
  • Samsung Galaxy S22 Ultra: Long Term Review June 30, 2022
  • How to Make the Most of Your S Pen (S22 Ultra) June 29, 2022

About This Article

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

Source:The Customize Windows, JiMA.in

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Privacy Policy.

PC users can consult Corrine Chorney for Security.

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

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

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