SPI, I2C, UART, USB 通信方式比较整理

本文对比了SPI, I2C, UART, USB四种通信方式。SPI适合高速嵌入式通信,通常用于同一PCB上的芯片间;I2C使用较少的引脚,具有地址机制,适合连接多个设备;UART是通用异步串口,广泛应用于系统间通信;USB传输速度最快,但更复杂,适用于高速数据传输。" 87878557,8153442,Angular项目发布及刷新报错解决方案,"['Angular', '前端开发', '发布部署', '路由']
摘要由CSDN通过智能技术生成

[source]

  1. https://electronics.stackexchange.com/questions/241996/usb-uart-spi-difference-and-usage
  2. https://electronics.stackexchange.com/questions/37814/usart-uart-rs232-usb-spi-i2c-ttl-etc-what-are-all-of-these-and-how-do-th

SPI

SPI is good for embedded stuff as it is just a shift register and not much else, this allows for really fast comms (10Mbps is not uncommon even in tiny 8bit micros with and 50+ in a lot of 32bit chips). Data gets loaded into a shift register and sent out bit by bit on each clock cycle. At the other end the reverse action is performed. There are 4 pins: MISO (Master-In Slave-Out), MOSI (Master-Out Slave-In), CLK and CS (Chip Select), sometimes its the more ambiguous SDI (serial in), SDO (serial out), SCK (clock) and CE (chip enable) or some variation thereof. SPI is an internal interface, pretty much just used between chips on the same PCB. (I2C is another

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值