Introduction To SPI Interface

Serial Periphiral 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.Image

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 Image 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.

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 it's 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 outpur type then the SPI master may have no knowledge of whether a slave even exists. Basically SPI offers no hardware flow control.

-Amol Shah
Quote this article in website Favoured Print Send to friend Related articles Save this to del.icio.us

Users' Comments (0) RSS feed comment

No comment posted

Add your comment



mXcomment 1.0.5 © 2007-2008 - visualclinic.fr
License Creative Commons - Some rights reserved
 
< Prev   Next >
Home arrow Tutorial arrow Introduction To SPI Interface