iic与spi的区别(The difference between IIC and SPI).docVIP

  • 0
  • 0
  • 约1.77万字
  • 约 10页
  • 2017-08-31 发布于河南
  • 举报

iic与spi的区别(The difference between IIC and SPI).doc

iic与spi的区别(The difference between IIC and SPI)

iic与spi的区别(The difference between IIC and SPI) The difference between UART, SPI, and I2C buses The data input and output of I2C uses a line, and SPI is divided into dataIN and dataOUT. For this reason, when using I2C, CPU ports take up less than one SPI. However, because the data lines of I2C are bidirectional, isolation is more complex, and SPI is easier. Therefore, communication within the system can be I2C, and if you want to communicate with external, it is best to use SPI band isolation (can improve anti-interference ability). However, neither I2C nor SPI is suitable for long distance transmission. It takes 485 for a long distance. First: SPI (Serial Peripheral Interface: serial peripheral interface); I2C (INTER, IC, BUS) UART (Universal Asynchronous Receiver Transmitter: universal asynchronous transceiver) Second, the difference in the electrical signal line: The SPI bus consists of three signal lines: serial clock (SCLK), serial data output (SDO), and serial data input (SDI). The SPI bus enables multiple SPI devices to connect with each other. The SPI serial clock provides the SPI device for the SPI host or master device (Master), and other devices for the SPI slave or slave device (Slave). Full duplex communication can be achieved between master and slave devices, and when multiple devices are used, a device selection line can also be added. If the analog SPI bus with general IO port, there must be an output port (SDO), an input port (SDI), another mouth as the device to realize type and decide, if you want to achieve a master device, need to input and output ports, if only the realization of the main equipment for the output port can be if only, from the equipment, you only need to enter the mouth. I2C bus is bidirectional, two wire (SCL, SDA), serial and multi master (multi-master) interface standard, and has bus arbitration mechanism. It is very suitable for short distance and non regular data communication between devices. In its protocol system, when th

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档