什么使SPI比I2C协议更快 [英] What makes SPI faster than I2C protocol
问题描述
这个问题是在采访中被问到我的。请让我正确,如果我错了。
I2C非常涉及,在总线上支持多个主控。这导致总线协议中的重大开销,每个字节的ACK和用于仲裁访问总线的有意延迟。此外,一个最大总线速率,原始规格为100 kHz,400 kHz是常见的,额外的10 kHz低速和3.4 Mhz高速模式,2012年规范定义了5 Mhz超快速模式。
更简单的是,一个单一的主机,没有总线协议超出芯片选择,没有设置最大总线速率。如果距离很短,那么你可以尽可能快地去。芯片之间的互连速度相当快,相差不到一英寸。
I know the basic of I2C and SPI communication. As both are synchronous protocol. I wanted to know that what makes SPI faster than I2C. If I am not wrong using I2C we can go used 400kbps while in SPI we can achieve 10mbps also. Does it because of hardware change? This question was asked to me in one of the interview.. Please make me correct if I am wrong.
I2C is quite involved, supporting multiple masters on the bus. Which causes significant overhead in the bus protocol, an ACK for every byte and intentional delays to arbitrate access to the bus. Also a set maximum bus rate, 100 kHz in the original spec, 400 kHz is common today, additional 10 kHz low-speed and 3.4 Mhz high-speed modes, the 2012 spec defines a 5 Mhz ultra-fast mode.
SPI is much simpler, a single master with no bus protocol beyond a chip select and no set maximum bus rate. If the distances are short then you can go as fast as you dare. Quite fast on an interconnect between chips that are less than an inch apart.
这篇关于什么使SPI比I2C协议更快的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!