Please update your Flash Player to view content.

                  FOLLOW  US





 
 
Introduction To SPI Interface
Tutorial - 8051 Tutorial
Written by Amol Shah   

Serial Peripheral Interface or SPI bus is a synchronous serial bus standard established by MOTOROLA. It is a 4 wire MASTER-SLAVE serial interface that operates in Full Duplex. The SPI bus can support up to 10Mbps.

SPI_Protocol
SPI Signals

SPI Specifies four Signals:

1) Clock: SCK/SCLK : Serial Clock (Output by Master).

2) Chip Select/Slave Select: CS/SS (active low output from Master).

3) Serial Data IN/Master Output, Slave Input: SDI/MOSI.

4) Serial Data Out/Master Input, Slave Output: SDO/MISO.

The SPI bus can operate with a single master device and with one or more slave devices. If the devices on the SPI bus have a chip-select signal it is possible to connect many ICs to the same SPI bus in parallel. With multiple slave devices, an independent SS signal is required from the master for each slave device. Devices have tri-state outputs that become high impedance ("disconnected") when the device is not selected, so that it does not interfere with the currently activated devices. When cascading several SPI devices, they are treated as one slave and therefore connected to the same chip select. Only one slave may talk to the master at any time, and only its SS may be activated by pulling the Slave Select LOW.
multiple_SPI_Interfacing
cascading of several SPI devices

During each SPI clock cycle, a full duplex data transmission occurs:

  • Master sends a bit on the MOSI line; the slave reads it from that same line.
  • Slave sends a bit on the MISO line; the master reads it from that same line.
DISADVANTAGE OF SPI

1)Every IC connected to bus needs its own chip-select signal line. Thus, when 10 devices are on the bus, 10 chip-select lines, in addition to the shared clock and data lines, are needed to select the appropriate device.

2)SPI does not have an acknowledgement mechanism to confirm receipt of data. If the SPI device is of output type then the SPI master may have no knowledge of whether a slave even exists. Basically SPI offers no hardware flow control.

 

Comments  

 
0 # mohammed faisal 2011-12-20 15:31
can we connect 8 devices to 1 8051 controller through spi ?
Reply | Reply with quote | Quote
 

Add comment


Security code
Refresh

 

Featured Products

Rs600.00
Rs540.00
You Save: 10.00%

Rs800.00
Rs720.00
You Save: 10.00%

 

Random Products

Rs1.00





Rs40.00



Rs700.00



Rs12.00



Latest Video

Random Articles

Search Products

User Login






 
 
.
 TUTORIALS
.
  8051 Tutorial
 
  Power Supply
 
CODE LIBRARY
.

  8051 Assembly
 
  C Code Library

.
 PROJECTS
.
  Project List
 
  Synopsis and Abstract
 
DOWNLOADS
.

  Datasheets
 
  Download

.
 POPULAR
.
  About Us
 
  DNA Shop
 
  Totorial
 
  Code Library
 
  Download
 

.
 CONTACT US
.

Mr. Amol Shah

DNA Technology Nashik,

Maharashtra 422009 India

Phone : 0253-3023939

Mobile : 09225145135

Email : contact@dnatechindia.com