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

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.

主站蜘蛛池模板: 延寿县| 西青区| 连城县| 瓮安县| 依安县| 鄂托克前旗| 宜春市| 延庆县| 调兵山市| 博白县| 名山县| 紫阳县| 昆明市| 内黄县| 永春县| 潍坊市| 六安市| 印江| 丹凤县| 五莲县| 永兴县| 利川市| 常山县| 宣威市| 曲周县| 东安县| 乌兰察布市| 伊通| 广饶县| 房产| 老河口市| 加查县| 伊春市| 绍兴市| 云龙县| 定州市| 万载县| 甘德县| 巩留县| 泗洪县| 澄城县|