个人声明:转发请注明出处,个人原创,实属不易。本人水平有限,文章若有不妥之处,还请留言批评指正,不胜感激。
发现深度好文,超全超详细,借此分享学习!!!
原文的终极总结:
Protocol | UART | I2C | SPI |
---|---|---|---|
Complexity | Simple | Easy to chain multiple devices | Complex as device increases |
Speed | Slowest | Faster than UART | Fastest |
Number of devices | Up to 2 devices | Up to 127, but gets complex | Many, but gets complex |
Number of wires | 1 | 2 | 4 |
Duplex | Full Duplex | Half Duplex | Full Duplex |
No. of masters and slaves | Single to Single | Multiple slaves and masters | 1 master, multiple slaves |