官术网_书友最值得收藏!

SPI

A different approach is SPI. Introduced in the late 1980s, this technology aimed to replace asynchronous serial communication towards peripherals, by introducing a number of improvements:

  • Serial clock line to synchronize the endpoints
  • Master-slave protocol
  • One-to-many communication over the same three-wire bus

The master device, usually the microcontroller, shares the bus with one or more slaves. To trigger the communication, a separate slave select (SS) signal is used to address each slave connected to the bus. The bus uses two independent signals for data transfer, one per direction, and a shared clock line that synchronizes the two ends of the communication. Due to the clock line being generated by the master, the data transfer is more reliable, making it possible to achieve higher bitrates than ordinary UART. One of the keys for the continued success of SPI over multiple generations of microcontrollers is the low complexity required for the design of slaves, which can be as simple as a single shift register. SPI is commonly used in sensor devices, LCD displays, flash memory controllers, and network interfaces.

主站蜘蛛池模板: 永康市| 贡觉县| 顺平县| 外汇| 武冈市| 鄯善县| 新宾| 交口县| 涟源市| 棋牌| 盱眙县| 宕昌县| 饶阳县| 台南县| 石屏县| 类乌齐县| 噶尔县| 云梦县| 同江市| 额敏县| 济宁市| 淅川县| 浮山县| 蒙山县| 汤原县| 祁阳县| 山阳县| 湟中县| 新巴尔虎左旗| 汪清县| 保德县| 隆化县| 江华| 天全县| 黄龙县| 泾源县| 会宁县| 蓬安县| 巨野县| 隆子县| 东平县|