![]() ![]() The SPI has been designed for uninterrupted, high-speed data communication within a PCB or over short wires. Typically, it’s best to avoid connecting more than three or four slaves to an SPI bus. In practical terms, the number of slave devices that can be connected in independent configuration to an SPI bus is limited. There can be only one master on the SPI bus, but many slave devices can share the bus. The SPI bus developed by Motorola is a master-slave synchronous, serial-data communication standard. Many sensors that only require unilateral data transfer also use a three-wire SPI instead of the I2C because the SPI is twice fast. As an SPI bus allows for full-duplex data transfer with multiple devices, it’s often used by electronic sensors that need bi-directional data communication with controllers or computers. SPI is also a master-slave-type serial protocol. SPI, or serial peripheral interface, is an alternative to UART when full-duplex data communication is required with multiple devices. It allows half-duplex communication with hundreds of devices over just two wires. The I2C, an inter-integrated circuit, is a master-slave, serial-data communication protocol. UART, a universal asynchronous receiver-transmitter, is used for full-duplex serial communication with a single device. ![]() UART, I2C, and SPI are the most common serial communication protocols used in embedded electronics. In the previous tutorial, we learned how to interface an ADX元45 accelerometer with Arduino by using the I2C bus. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |