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

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.

主站蜘蛛池模板: 额尔古纳市| 洪湖市| 乐山市| 夏河县| 福建省| 景谷| 尼勒克县| 望江县| 大城县| 乌拉特后旗| 藁城市| 航空| 梨树县| 刚察县| 济阳县| 诸城市| 元朗区| 莱阳市| 安康市| 闵行区| 南安市| 正阳县| 曲靖市| 龙泉市| 三河市| 荥阳市| 信丰县| 布拖县| 呈贡县| 平邑县| 开阳县| 通州市| 嘉义市| 枞阳县| 西乌珠穆沁旗| 福建省| 黄大仙区| 新化县| 祁门县| 万荣县| 内江市|