answersLogoWhite

0

ANSWER

I find it simplest to think of SPI as a way for two devices to trade the contents of their SPI registers. The master drives the clock (typically 8 or 16 clocks for 8 or 16 bit SPI registers) and when it has finished, the master's SPI register holds the value that the slave placed in its SPI register and the slave's SPI register holds the value that was in the master's SPI register.

This requires three connections, a clock (driven by the master) and a data line from each device (master in/slave out, and master out/slave in).

There are typically other connections required for practical purposes, such as interrupt and select lines.

SPI is a synchronous protocol, so the clock signals do not have to be evenly spaced (constant frequency). The slave is only looking for the correct number of clock transitions.

The master and slave must be set up to expect the data to be valid at the correct clock transitions (high-to-low or low-to-high). This is the concept of SPI "modes."

Usually a slave device will trigger an internal interrupt when a new value arrives, and if the value is not read before a new value arrives, an overflow flag will be set, indicating the data has been lost.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What is the maximum throughput of spi protocol?

Depend of MCU clock divisor! Check datasheet.


What is SPI and PII?

whai is SPi?


What does SPI mean?

SPI, in Project Management Terms, is short for Schedule Performance Index. It's an indicator on whether the Project is on Schedule (SPI = 1), Ahead of Schedule (SPI > 1), or behind Schedule (SPI < 1).


What is the difference between i2c and spi?

Major Difference Between SPI and I2C is: SPI is full Duplex (SPI can be full/half duplex, depending on the hardware, 3 or 4 wire) and I2C is half duplex communication....we cannt send and receive data at a time in I2c..but it possible in SPI ....SPI much faster Than I2C....... Main topic to discuss the difference is 1) speed is difference in case of i2c is 100/400kbps in 7 bit mode max 400kbps (But High speed I2C communication protocols allow speeds upto 3.4Mbps!!) in case of spi speed is upto 1mbps (the higher speed of SPI is due to fact that unlike I2C, SPI interfaces to a slave device using a sperate pin called the slave select + no concept of acknowledgements which means increased Band width..) 2)Connection wise: i2c require less pin then spi (SPI 3wire: 3 IOs, SPI 4 wire: 4 IOs, I2C: 2 IOs) as spi require slave select for individual device... 3)it is better to use i2c in case of if u want to connect more device to connect. (slave addressing advantageous over SPI slave select individual pins for individual slaves) 4)bus arbitration is possible in case of i2c... not in case of spi... (SPI does not require it, since only 1 slave is controlled by the master at any given point) 6)noise sensitivity of i2c is high... there is chance to corrupt the r/w bit... then whole data is corrputed... but in case of spi.. chance is very less as whole word is trasmitted... However, I must say that I2C is more reliable, since the protocol supports slave feedback machanism (ACK) to detect whether was received correctly or corrupt. 8) it is easy to implement the spi...while i2c is little bit complex... (over heads) Formatted Answer @: http://www.bubblews.com/account/65122-kapilddit


What email protocol has the highest download speed?

The email protocol with the highest download speed is IMAP which also offers the most features. Another email protocol is POP3.


How do you break the word inspired into syllable?

In-spi-ra-tion.


What are some identifying features of routing information protocol RIP?

It uses hop count in route selection. It is a distance-vector protocol.


How does earned value give a clearer picture of project schedule?

SPI > 1: Project Ahead of schedule SPI = 1: Project on Schedule SPI < 1: Project behind Schedule


What is SPI in project management?

SPI stands for Schedule Performance Index. SPI is a measure of the schedule efficiency of a project calculated by dividing earned value (EV) by planned value (PV).


The Sydney Stock Exchange quotes prices for futures trading What does the initials SPI stand for?

spi futures


How many syllables in spiraling?

There are 3 syllables. Spi-ral-ing.


What are two features of the User Data gram Protocol UDP?

• low overhead• connectionless