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

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.

主站蜘蛛池模板: 卢氏县| 永德县| 交城县| 图片| 茶陵县| 永新县| 平安县| 溧水县| 红河县| 冕宁县| 疏勒县| 郑州市| 萝北县| 达州市| 漳州市| 任丘市| 东城区| 永定县| 葵青区| 嘉荫县| 翁源县| 阿尔山市| 合水县| 舒城县| 博湖县| 玉树县| 滦南县| 繁峙县| 南京市| 乐业县| 井冈山市| 金寨县| 六枝特区| 都兰县| 抚州市| 红原县| 友谊县| 墨竹工卡县| 永宁县| 建瓯市| 锡林浩特市|