Product categories

Have You Seen

B0505S-1WR3 MORNSUN Isolated DC - DC Converter

B0505S-1WR3 MORNSUN Isolated DC - DC Converter

Mornsun B0505S-1WR3 DC-DC Isolated ConverterMORNSUN B0505S 1WR3 1 watt, 5 Volts Isolated DC to DC Po..

Rs.106.20 (inc GST)
Rs.90.00 + GST

SKU: 2969 | DAE663
Stock: 31
XL1509-Adj E1 Buck DC to DC Converter IC (SOP8L Package)

XL1509-Adj E1 Buck DC to DC Converter IC (SOP8L Package)

XL1509-Adj E1 Buck DC to DC Converter IC (SOP8L Package)XL1509-Adj E1 Buck DC to DC Converter IC, Ad..

Rs.25.96 (inc GST)
Rs.22.00 + GST

SKU: 3657 | DAF397
Stock: 100

Introduction To SPI Interface



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.

Written by Amol Shah

Amol Shah

Founder of DNA Technology an Electronic Engineer by choice. Started working on this website as an Hobby and now its a full time venture. Very passionate about Electronics and like to learn new stuff. Want to make DNA Technology one of the best Online Store for Electronics Components in India.
Follow Me Twitter | Facebook | Google Plus | Instagram