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

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.

主站蜘蛛池模板: 阿勒泰市| 鄂温| 周宁县| 合肥市| 濮阳市| 彭阳县| 连云港市| 于都县| 仁化县| 丹棱县| 噶尔县| 崇州市| 嵩明县| 咸阳市| 香港 | 宣城市| 阳西县| 吴堡县| 渭南市| 东宁县| 大埔县| 清新县| 榕江县| 辽宁省| 忻州市| 福海县| 泗洪县| 灵台县| 宝清县| 洛川县| 孟津县| 黄梅县| 贵阳市| 虹口区| 华阴市| 宁陕县| 开远市| 即墨市| 扬中市| 合水县| 工布江达县|