{"id":124,"date":"2019-06-10T23:59:40","date_gmt":"2019-06-10T15:59:40","guid":{"rendered":"http:\/\/zechs.taipei\/?p=124"},"modified":"2019-06-12T22:59:34","modified_gmt":"2019-06-12T14:59:34","slug":"basics-of-the-i2c-communication-protocol%e8%bd%89","status":"publish","type":"post","link":"https:\/\/zechs.taipei\/?p=124","title":{"rendered":"I2C\u901a\u4fe1\u5354\u8b70\u7684\u57fa\u790e(\u8f49)"},"content":{"rendered":"<p>\u539f\u6587\u7db2\u5740<br> <a href=\"http:\/\/www.circuitbasics.com\/basics-of-the-i2c-communication-protocol\/\">http:\/\/www.circuitbasics.com\/basics-of-the-i2c-communication-protocol\/<\/a> <\/p>\n\n\n\n<h1 class=\"wp-block-heading\">I2C\u901a\u4fe1\u5354\u8b70\u7684\u57fa\u790e<\/h1>\n\n\n\n<p>Posted by&nbsp;<a href=\"http:\/\/www.circuitbasics.com\/author\/circuitbasicsgmail-com\/\">Circuit Basics<\/a>&nbsp;|&nbsp;<a href=\"http:\/\/www.circuitbasics.com\/diy-electronics\/\">DIY Electronics<\/a>&nbsp;|&nbsp;<a href=\"http:\/\/www.circuitbasics.com\/basics-of-the-i2c-communication-protocol\/#comments\">39&nbsp;<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"http:\/\/www.circuitbasics.com\/wp-content\/uploads\/2016\/01\/Introduction-to-I2C-Single-Master-Single-Slave.png\" alt=\"Basics of the I2C Communication Protocol\"\/><\/figure>\n\n\n\n<p> \u5230\u76ee\u524d\u70ba\u6b62\uff0c\u6211\u5011\u5df2\u7d93\u8a0e\u8ad6\u4e86SPI\u901a\u4fe1\u548cUART\u901a\u4fe1\u7684\u57fa\u790e\u77e5\u8b58\uff0c\u73fe\u5728\u8b93\u6211\u5011\u9032\u5165\u672c\u7cfb\u5217\u7684\u6700\u7d42\u5354\u8b70\uff0c\u5373\u5167\u90e8\u96c6\u6210\u96fb\u8def\u6216I2C\u3002 <\/p>\n\n\n\n<p><ins><\/ins><\/p>\n\n\n\n<p> \u5982\u679c\u60a8\u69cb\u5efa\u4f7f\u7528OLED\u986f\u793a\u5668\uff0c\u6c23\u58d3\u50b3\u611f\u5668\u6216\u9640\u87ba\u5100\/\u52a0\u901f\u5ea6\u8a08\u6a21\u584a\u7684\u9805\u76ee\uff0c\u60a8\u53ef\u80fd\u6703\u767c\u73fe\u81ea\u5df1\u4f7f\u7528I2C\u3002 <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">INTRODUCTION TO I2C COMMUNICATION<br> I2C\u901a\u4fe1\u7c21\u4ecb <\/h2>\n\n\n\n<p>I2C\u7d50\u5408\u4e86SPI\u548cUART\u7684\u6700\u4f73\u529f\u80fd\u3002\u4f7f\u7528I2C\uff0c\u60a8\u53ef\u4ee5\u5c07\u591a\u500b\u5f9e\u5668\u4ef6\u9023\u63a5\u5230\u55ae\u500b\u4e3b\u5668\u4ef6\uff08\u5982SPI\uff09\uff0c\u4e26\u4e14\u53ef\u4ee5\u8b93\u591a\u500b\u4e3b\u5668\u4ef6\u63a7\u5236\u55ae\u500b\u6216\u591a\u500b\u5f9e\u5668\u4ef6\u3002\u7576\u60a8\u5e0c\u671b\u6709\u591a\u500b\u5fae\u63a7\u5236\u5668\u5c07\u6578\u64da\u8a18\u9304\u5230\u55ae\u500b\u5b58\u5132\u5361\u6216\u5c07\u6587\u672c\u986f\u793a\u5230\u55ae\u500bLCD\u6642\uff0c\u9019\u975e\u5e38\u6709\u7528\u3002<\/p>\n\n\n\n<p> \u8207UART\u901a\u4fe1\u4e00\u6a23\uff0cI2C\u50c5\u4f7f\u7528\u5169\u689d\u7dda\u5728\u8a2d\u5099\u4e4b\u9593\u50b3\u8f38\u6578\u64da\uff1a <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"http:\/\/www.circuitbasics.com\/wp-content\/uploads\/2016\/01\/Introduction-to-I2C-Single-Master-Single-Slave.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"http:\/\/www.circuitbasics.com\/wp-content\/uploads\/2016\/01\/Introduction-to-I2C-Single-Master-Single-Slave-300x147.png\" alt=\"Introduction to I2C - Single Master Single Slave\" class=\"wp-image-420870\"\/><\/a><\/figure><\/div>\n\n\n\n<p><ins><\/ins><\/p>\n\n\n\n<p><strong>SDA (Serial Data)<\/strong>\u00a0\u2013  \u4e3b\u7ad9\u548c\u5f9e\u7ad9\u767c\u9001\u548c\u63a5\u6536\u6578\u64da\u7684\u7dda\u3002 <\/p>\n\n\n\n<p><strong>SCL (Serial Clock)<\/strong>\u00a0\u2013  \u5e36\u6709\u6642\u9418\u4fe1\u865f\u7684\u7dda\u8def\u3002 <\/p>\n\n\n\n<p> I2C\u662f\u4e00\u7a2e\u4e32\u884c\u901a\u4fe1\u5354\u8b70\uff0c\u56e0\u6b64\u6578\u64da\u6cbf\u8457\u55ae\u7dda\uff08SDA\u7dda\uff09\u9010\u4f4d\u50b3\u8f38\u3002 <\/p>\n\n\n\n<p> \u8207SPI\u4e00\u6a23\uff0cI2C\u662f\u540c\u6b65\u7684\uff0c\u56e0\u6b64\u4f4d\u7684\u8f38\u51fa\u901a\u904e\u4e3b\u6a5f\u548c\u5f9e\u6a5f\u4e4b\u9593\u5171\u4eab\u7684\u6642\u9418\u4fe1\u865f\u8207\u4f4d\u63a1\u6a23\u540c\u6b65\u3002\u6642\u9418\u4fe1\u865f\u59cb\u7d42\u7531\u4e3b\u6a5f\u63a7\u5236\u3002 <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><a href=\"http:\/\/www.circuitbasics.com\/wp-content\/uploads\/2016\/02\/Basics-of-the-I2C-Communication-Protocol-Specifications-Table.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img fetchpriority=\"high\" decoding=\"async\" src=\"http:\/\/www.circuitbasics.com\/wp-content\/uploads\/2016\/02\/Basics-of-the-I2C-Communication-Protocol-Specifications-Table-300x160.png\" alt=\"Basics of the I2C Communication Protocol - Specifications Table\" class=\"wp-image-422513\" width=\"583\" height=\"311\"\/><\/a><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">HOW I2C\u00a0WORKS <br>I2C\u5982\u4f55\u5de5\u4f5c <\/h2>\n\n\n\n<p>\u4f7f\u7528I2C\uff0c\u6578\u64da\u5728\u6d88\u606f\u4e2d\u50b3\u8f38\u3002\u6d88\u606f\u88ab\u5206\u89e3\u70ba\u6578\u64da\u5e40\u3002\u6bcf\u689d\u6d88\u606f\u90fd\u6709\u4e00\u500b\u5730\u5740\u5e40\uff0c\u5176\u4e2d\u5305\u542b\u5f9e\u7ad9\u7684\u4e8c\u9032\u5236\u5730\u5740\uff0c\u4ee5\u53ca\u4e00\u500b\u6216\u591a\u500b\u5305\u542b\u6b63\u5728\u50b3\u8f38\u7684\u6578\u64da\u7684\u6578\u64da\u5e40\u3002\u8a72\u6d88\u606f\u9084\u5305\u62ec\u6bcf\u500b\u6578\u64da\u5e40\u4e4b\u9593\u7684\u555f\u52d5\u548c\u505c\u6b62\u689d\u4ef6\uff0c\u8b80\/\u5beb\u4f4d\u548cACK \/ NACK\u4f4d\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"http:\/\/www.circuitbasics.com\/wp-content\/uploads\/2016\/01\/Introduction-to-I2C-Message-Frame-and-Bit-2.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"http:\/\/www.circuitbasics.com\/wp-content\/uploads\/2016\/01\/Introduction-to-I2C-Message-Frame-and-Bit-2-1024x258.png\" alt=\"Introduction to I2C - Message, Frame, and Bit\" class=\"wp-image-420891\"\/><\/a><\/figure><\/div>\n\n\n\n<p><ins><\/ins><\/p>\n\n\n\n<p><strong>Start Condition:<\/strong>\u00a0\u5728SCL\u7dda\u8def\u5f9e\u9ad8\u96fb\u5e73\u5207\u63db\u5230\u4f4e\u96fb\u5e73\u4e4b\u524d\uff0cSDA\u7dda\u8def\u5f9e\u9ad8\u96fb\u58d3\u96fb\u5e73\u5207\u63db\u5230\u4f4e\u96fb\u58d3\u96fb\u5e73\u3002<\/p>\n\n\n\n<p><strong>Stop Condition:<\/strong>\u00a0 SCL\u7dda\u8def\u5f9e\u4f4e\u96fb\u5e73\u5207\u63db\u5230\u9ad8\u96fb\u5e73\u5f8c\uff0cSDA\u7dda\u8def\u5f9e\u4f4e\u96fb\u58d3\u96fb\u5e73\u5207\u63db\u5230\u9ad8\u96fb\u58d3\u96fb\u5e73\u3002 <\/p>\n\n\n\n<p><strong>Address Frame:<\/strong>\u00a0 \u6bcf\u500b\u5f9e\u7ad9\u552f\u4e00\u76847\u621610\u4f4d\u5e8f\u5217\uff0c\u5728\u4e3b\u7ad9\u60f3\u8207\u4e4b\u901a\u4fe1\u6642\u8b58\u5225\u5f9e\u7ad9\u3002 <\/p>\n\n\n\n<p><strong>Read\/Write Bit:\u00a0<\/strong> \u4e00\u500b\u4f4d\u6307\u5b9a\u4e3b\u6a5f\u662f\u5426\u6b63\u5728\u5411\u5f9e\u6a5f\u767c\u9001\u6578\u64da\uff08\u4f4e\u96fb\u58d3\u96fb\u5e73\uff09\u6216\u5f9e\u5176\u8acb\u6c42\u6578\u64da\uff08\u9ad8\u96fb\u58d3\u96fb\u5e73\uff09\u3002 <\/p>\n\n\n\n<p><strong>ACK\/NACK Bit:<\/strong>\u00a0 \u6d88\u606f\u4e2d\u7684\u6bcf\u500b\u5e40\u5f8c\u8ddf\u4e00\u500b\u78ba\u8a8d\/\u4e0d\u61c9\u7b54\u4f4d\u3002\u5982\u679c\u6210\u529f\u63a5\u6536\u5230\u5730\u5740\u5e40\u6216\u6578\u64da\u5e40\uff0c\u5247\u5f9e\u63a5\u6536\u8a2d\u5099\u5411\u767c\u9001\u65b9\u8fd4\u56deACK\u4f4d\u3002 <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ADDRESSING  \u5c0b\u5740 <\/h3>\n\n\n\n<p>I2C\u6c92\u6709\u50cfSPI\u9019\u6a23\u7684\u5f9e\u9078\u64c7\u7dda\uff0c\u56e0\u6b64\u5b83\u9700\u8981\u53e6\u4e00\u7a2e\u65b9\u6cd5\u8b93\u5f9e\u5668\u4ef6\u77e5\u9053\u6578\u64da\u6b63\u5728\u767c\u9001\u7d66\u5b83\uff0c\u800c\u4e0d\u662f\u53e6\u4e00\u500b\u5f9e\u5668\u4ef6\u3002\u5b83\u901a\u904e\u89e3\u6c7a\u4f86\u505a\u5230\u9019\u4e00\u9ede\u3002\u5730\u5740\u5e40\u59cb\u7d42\u662f\u65b0\u6d88\u606f\u4e2d\u8d77\u59cb\u4f4d\u4e4b\u5f8c\u7684\u7b2c\u4e00\u5e40\u3002<\/p>\n\n\n\n<p>\u4e3b\u8a2d\u5099\u5c07\u8207\u5176\u901a\u4fe1\u7684\u5f9e\u8a2d\u5099\u7684\u5730\u5740\u767c\u9001\u7d66\u8207\u5176\u9023\u63a5\u7684\u6bcf\u500b\u5f9e\u8a2d\u5099\u3002\u7136\u5f8c\uff0c\u6bcf\u500b\u5f9e\u8a2d\u5099\u5c07\u5f9e\u4e3b\u8a2d\u5099\u767c\u9001\u7684\u5730\u5740\u8207\u5176\u81ea\u5df1\u7684\u5730\u5740\u9032\u884c\u6bd4\u8f03\u3002\u5982\u679c\u5730\u5740\u5339\u914d\uff0c\u5247\u5c07\u4f4e\u96fb\u58d3ACK\u4f4d\u767c\u9001\u56de\u4e3b\u6a5f\u3002\u5982\u679c\u5730\u5740\u4e0d\u5339\u914d\uff0c\u5247\u5f9e\u5668\u4ef6\u4e0d\u57f7\u884c\u4efb\u4f55\u64cd\u4f5c\uff0cSDA\u7dda\u4fdd\u6301\u9ad8\u96fb\u5e73\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">READ\/WRITE BIT<\/h3>\n\n\n\n<p>\u5730\u5740\u5e40\u5728\u672b\u5c3e\u5305\u62ec\u4e00\u500b\u4f4d\uff0c\u7528\u65bc\u901a\u77e5\u5f9e\u6a5f\u4e3b\u6a5f\u662f\u60f3\u8981\u5411\u5176\u5beb\u5165\u6578\u64da\u9084\u662f\u5f9e\u4e3b\u6a5f\u63a5\u6536\u6578\u64da\u3002\u5982\u679c\u4e3b\u8a2d\u5099\u60f3\u8981\u5411\u5f9e\u8a2d\u5099\u767c\u9001\u6578\u64da\uff0c\u5247\u8b80\/\u5beb\u4f4d\u662f\u4f4e\u96fb\u58d3\u96fb\u5e73\u3002\u5982\u679c\u4e3b\u8a2d\u5099\u5f9e\u5f9e\u8a2d\u5099\u8acb\u6c42\u6578\u64da\uff0c\u5247\u8a72\u4f4d\u662f\u9ad8\u96fb\u58d3\u96fb\u5e73\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">THE DATA FRAME<\/h3>\n\n\n\n<p> \u5728\u4e3b\u8a2d\u5099\u6aa2\u6e2c\u5230\u4f86\u81ea\u5f9e\u8a2d\u5099\u7684ACK\u4f4d\u4e4b\u5f8c\uff0c\u6e96\u5099\u597d\u767c\u9001\u7b2c\u4e00\u500b\u6578\u64da\u5e40\u3002 <\/p>\n\n\n\n<p>\u6578\u64da\u5e40\u59cb\u7d42\u70ba8\u4f4d\u9577\uff0c\u4e26\u4ee5\u6700\u9ad8\u6709\u6548\u4f4d\u5148\u767c\u9001\u3002\u7dca\u63a5\u8457\u6bcf\u500b\u6578\u64da\u5e40\u7684ACK \/ NACK\u4f4d\u4ee5\u9a57\u8b49\u5e40\u5df2\u88ab\u6210\u529f\u63a5\u6536\u3002\u5728\u767c\u9001\u4e0b\u4e00\u500b\u6578\u64da\u5e40\u4e4b\u524d\uff0c\u4e3b\u6a5f\u6216\u5f9e\u6a5f\u5fc5\u9808\u63a5\u6536ACK\u4f4d\uff08\u53d6\u6c7a\u65bc\u767c\u9001\u6578\u64da\u7684\u4eba\uff09\u3002<\/p>\n\n\n\n<p>\u5728\u767c\u9001\u4e86\u6240\u6709\u6578\u64da\u5e40\u4e4b\u5f8c\uff0c\u4e3b\u8a2d\u5099\u53ef\u4ee5\u5411\u5f9e\u8a2d\u5099\u767c\u9001\u505c\u6b62\u689d\u4ef6\u4ee5\u505c\u6b62\u50b3\u8f38\u3002\u505c\u6b62\u689d\u4ef6\u662fSCL\u7dda\u4e0a\u5f9e\u4f4e\u96fb\u5e73\u5230\u9ad8\u96fb\u5e73\u8f49\u63db\u5f8cSDA\u7dda\u4e0a\u5f9e\u4f4e\u96fb\u5e73\u8b8a\u70ba\u9ad8\u96fb\u5e73\uff0cSCL\u7dda\u4fdd\u6301\u9ad8\u96fb\u5e73\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">STEPS OF I2C DATA TRANSMISSION<\/h2>\n\n\n\n<p>1. \u5728\u5c07SCL\u7dda\u5f9e\u9ad8\u96fb\u5e73\u5207\u63db\u70ba\u4f4e\u96fb\u5e73\u4e4b\u524d\uff0c\u4e3b\u6a5f\u901a\u904e\u5c07SDA\u7dda\u5f9e\u9ad8\u96fb\u5e73\u5207\u63db\u5230\u4f4e\u96fb\u58d3\u96fb\u5e73\uff0c\u5c07\u555f\u52d5\u689d\u4ef6\u767c\u9001\u5230\u6bcf\u500b\u9023\u63a5\u7684\u5f9e\u6a5f\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><a href=\"http:\/\/www.circuitbasics.com\/wp-content\/uploads\/2016\/01\/Introduction-to-I2C-Data-Transmission-Diagram-START-CONDITION-3.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"http:\/\/www.circuitbasics.com\/wp-content\/uploads\/2016\/01\/Introduction-to-I2C-Data-Transmission-Diagram-START-CONDITION-3-300x271.png\" alt=\"Introduction to I2C - Data Transmission Diagram START CONDITION\" class=\"wp-image-420896\" width=\"488\" height=\"441\"\/><\/a><\/figure><\/div>\n\n\n\n<p><ins><\/ins><\/p>\n\n\n\n<p>2.\u00a0 \u4e3b\u8a2d\u5099\u5411\u6bcf\u500b\u5f9e\u8a2d\u5099\u767c\u9001\u5b83\u60f3\u8981\u8207\u4e4b\u901a\u4fe1\u7684\u5f9e\u8a2d\u5099\u76847\u621610\u4f4d\u5730\u5740\uff0c\u4ee5\u53ca\u8b80\/\u5beb\u4f4d\uff1a <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><a href=\"http:\/\/www.circuitbasics.com\/wp-content\/uploads\/2016\/01\/Introduction-to-I2C-Data-Transmission-Diagram-ADDRESS-FRAME-2.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"http:\/\/www.circuitbasics.com\/wp-content\/uploads\/2016\/01\/Introduction-to-I2C-Data-Transmission-Diagram-ADDRESS-FRAME-2-300x218.png\" alt=\"Introduction to I2C - Data Transmission Diagram ADDRESS FRAME\" class=\"wp-image-420903\" width=\"585\" height=\"425\"\/><\/a><\/figure><\/div>\n\n\n\n<p>3. \u6bcf\u500b\u5f9e\u7ad9\u5c07\u5f9e\u4e3b\u7ad9\u767c\u9001\u7684\u5730\u5740\u8207\u5176\u81ea\u5df1\u7684\u5730\u5740\u9032\u884c\u6bd4\u8f03\u3002\u5982\u679c\u5730\u5740\u5339\u914d\uff0c\u5247\u5f9e\u5668\u4ef6\u901a\u904e\u5c07SDA\u7dda\u62c9\u4f4e\u4e00\u4f4d\u4f86\u8fd4\u56deACK\u4f4d\u3002\u5982\u679c\u4e3b\u8a2d\u5099\u7684\u5730\u5740\u8207\u5f9e\u8a2d\u5099\u7684\u5730\u5740\u4e0d\u5339\u914d\uff0c\u5247\u5f9e\u8a2d\u5099\u5c07SDA\u7dda\u4fdd\u6301\u70ba\u9ad8\u96fb\u5e73\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><a href=\"http:\/\/www.circuitbasics.com\/wp-content\/uploads\/2016\/01\/Introduction-to-I2C-Data-Transmission-Diagram-ACK-Bit-Slave-to-Master-2.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.circuitbasics.com\/wp-content\/uploads\/2016\/01\/Introduction-to-I2C-Data-Transmission-Diagram-ACK-Bit-Slave-to-Master-2-300x218.png\" alt=\"Introduction to I2C - Data Transmission Diagram ACK Bit Slave to Master\" class=\"wp-image-420899\" width=\"528\" height=\"384\"\/><\/a><\/figure><\/div>\n\n\n\n<p>4. \u4e3b\u8a2d\u5099\u767c\u9001\u6216\u63a5\u6536\u6578\u64da\u5e40\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><a href=\"http:\/\/www.circuitbasics.com\/wp-content\/uploads\/2016\/01\/Introduction-to-I2C-Data-Transmission-Diagram-Data-Frame.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.circuitbasics.com\/wp-content\/uploads\/2016\/01\/Introduction-to-I2C-Data-Transmission-Diagram-Data-Frame-300x275.png\" alt=\"Introduction to I2C - Data Transmission Diagram Data Frame\" class=\"wp-image-420900\" width=\"525\" height=\"481\"\/><\/a><\/figure><\/div>\n\n\n\n<p>5.\u00a0\u5728\u50b3\u8f38\u4e86\u6bcf\u500b\u6578\u64da\u5e40\u4e4b\u5f8c\uff0c\u63a5\u6536\u8a2d\u5099\u5c07\u53e6\u4e00\u500bACK\u4f4d\u8fd4\u56de\u7d66\u767c\u9001\u65b9\u4ee5\u78ba\u8a8d\u6210\u529f\u63a5\u6536\u5230\u8a72\u5e40\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><a href=\"http:\/\/www.circuitbasics.com\/wp-content\/uploads\/2016\/01\/Introduction-to-I2C-Data-Transmission-Diagram-ACK-bit-slave-to-master-2A.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.circuitbasics.com\/wp-content\/uploads\/2016\/01\/Introduction-to-I2C-Data-Transmission-Diagram-ACK-bit-slave-to-master-2A-300x277.png\" alt=\"Introduction to I2C - Data Transmission Diagram ACK Bit Slave to Master\" class=\"wp-image-420902\" width=\"451\" height=\"416\"\/><\/a><\/figure><\/div>\n\n\n\n<p>6. \u8981\u505c\u6b62\u6578\u64da\u50b3\u8f38\uff0c\u4e3b\u6a5f\u901a\u904e\u5728\u5c07SDA\u5207\u63db\u70ba\u9ad8\u96fb\u5e73\u4e4b\u524d\u5c07SCL\u7f6e\u70ba\u9ad8\u96fb\u5e73\u4f86\u5411\u5f9e\u6a5f\u767c\u9001\u505c\u6b62\u689d\u4ef6\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><a href=\"http:\/\/www.circuitbasics.com\/wp-content\/uploads\/2016\/01\/Introduction-to-I2C-Data-Transmission-Diagram-Stop-Condition.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.circuitbasics.com\/wp-content\/uploads\/2016\/01\/Introduction-to-I2C-Data-Transmission-Diagram-Stop-Condition-300x275.png\" alt=\"Introduction to I2C - Data Transmission Diagram Stop Condition\" class=\"wp-image-420904\" width=\"462\" height=\"424\"\/><\/a><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">SINGLE MASTER WITH MULTIPLE SLAVES<br>\u4e00\u500b\u4e3b\u63a7\u7aef\u548c\u591a\u500b\u88ab\u63a7\u7aef<\/h2>\n\n\n\n<p>\u7531\u65bcI2C\u4f7f\u7528\u5c0b\u5740\uff0c\u56e0\u6b64\u53ef\u4ee5\u5f9e\u55ae\u500b\u4e3b\u8a2d\u5099\u63a7\u5236\u591a\u500b\u5f9e\u8a2d\u5099\u3002\u4f7f\u75287\u4f4d\u5730\u5740\uff0c\u53ef\u4ee5\u4f7f\u7528128\uff0827\uff09\u500b\u552f\u4e00\u5730\u5740\u3002\u4f7f\u752810\u4f4d\u5730\u5740\u4e26\u4e0d\u5e38\u898b\uff0c\u4f46\u63d0\u4f9b1,024\uff08210\uff09\u500b\u552f\u4e00\u5730\u5740\u3002\u8981\u5c07\u591a\u500b\u5f9e\u5668\u4ef6\u9023\u63a5\u5230\u55ae\u500b\u4e3b\u5668\u4ef6\uff0c\u8acb\u50cf\u9019\u6a23\u9023\u63a5\u5b83\u5011\uff0c\u4f7f\u75284.7K\u6b50\u59c6\u4e0a\u62c9\u96fb\u963b\u5c07SDA\u548cSCL\u7dda\u9023\u63a5\u5230Vcc\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><a href=\"http:\/\/www.circuitbasics.com\/wp-content\/uploads\/2016\/01\/Introduction-to-I2C-Single-Master-Multiple-Slaves-2.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.circuitbasics.com\/wp-content\/uploads\/2016\/01\/Introduction-to-I2C-Single-Master-Multiple-Slaves-2-227x300.png\" alt=\"Introduction to I2C - Single Master Multiple Slaves\" class=\"wp-image-420885\" width=\"453\" height=\"599\"\/><\/a><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">MULTIPLE MASTERS WITH MULTIPLE SLAVES<br>\u591a\u500b\u4e3b\u63a7\u548c\u591a\u500b\u88ab\u63a7<\/h2>\n\n\n\n<p>\u591a\u500b\u4e3b\u8a2d\u5099\u53ef\u4ee5\u9023\u63a5\u5230\u55ae\u500b\u5f9e\u8a2d\u5099\u6216\u591a\u500b\u5f9e\u8a2d\u5099\u3002\u7576\u5169\u500b\u4e3b\u8a2d\u5099\u5617\u8a66\u901a\u904eSDA\u7dda\u540c\u6642\u767c\u9001\u6216\u63a5\u6536\u6578\u64da\u6642\uff0c\u540c\u4e00\u7cfb\u7d71\u4e2d\u51fa\u73fe\u591a\u500b\u4e3b\u8a2d\u5099\u7684\u554f\u984c\u3002\u70ba\u4e86\u89e3\u6c7a\u9019\u500b\u554f\u984c\uff0c\u6bcf\u500b\u4e3b\u8a2d\u5099\u9700\u8981\u5728\u767c\u9001\u6d88\u606f\u4e4b\u524d\u6aa2\u6e2cSDA\u7dda\u8def\u662f\u4f4e\u9084\u662f\u9ad8\u3002\u5982\u679cSDA\u7dda\u70ba\u4f4e\u96fb\u5e73\uff0c\u5247\u8868\u793a\u53e6\u4e00\u500b\u4e3b\u63a7\u5236\u5668\u5df2\u63a7\u5236\u7e3d\u7dda\uff0c\u4e3b\u63a7\u5236\u5668\u61c9\u7b49\u5f85\u767c\u9001\u6d88\u606f\u3002\u5982\u679cSDA\u7dda\u8def\u5f88\u9ad8\uff0c\u90a3\u9ebc\u50b3\u8f38\u4fe1\u606f\u662f\u5b89\u5168\u7684\u3002\u8981\u5c07\u591a\u500b\u4e3b\u8a2d\u5099\u9023\u63a5\u5230\u591a\u500b\u5f9e\u8a2d\u5099\uff0c\u8acb\u4f7f\u7528\u4e0b\u5716\uff0c\u4f7f\u75284.7K\u6b50\u59c6\u4e0a\u62c9\u96fb\u963b\u5c07SDA\u548cSCL\u7dda\u8def\u9023\u63a5\u5230Vcc\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"http:\/\/www.circuitbasics.com\/wp-content\/uploads\/2016\/01\/Introduction-to-I2C-Multiple-Masters-Multiple-Slaves-2.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"http:\/\/www.circuitbasics.com\/wp-content\/uploads\/2016\/01\/Introduction-to-I2C-Multiple-Masters-Multiple-Slaves-2-183x300.png\" alt=\"Introduction to I2C - Multiple Masters Multiple Slaves 2\" class=\"wp-image-420886\"\/><\/a><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">ADVANTAGES AND DISADVANTAGES OF I2C<br> I2C\u7684\u512a\u9ede\u548c\u7f3a\u9ede <\/h2>\n\n\n\n<p>\u8207\u5176\u4ed6\u5354\u8b70\u76f8\u6bd4\uff0cI2C\u6709\u5f88\u591a\u53ef\u80fd\u4f7f\u5b83\u807d\u8d77\u4f86\u5f88\u8907\u96dc\uff0c\u4f46\u662f\u6709\u4e00\u4e9b\u5f88\u597d\u7684\u7406\u7531\u53ef\u4ee5\u89e3\u6c7a\u70ba\u4ec0\u9ebc\u4f60\u53ef\u80fd\u60f3\u8981\u4f7f\u7528I2C\u9023\u63a5\u5230\u7279\u5b9a\u8a2d\u5099\uff1a<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ADVANTAGES<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>\u53ea\u4f7f\u7528\u5169\u6839\u96fb\u7dda<\/li><li>\u652f\u6301\u591a\u500b\u4e3b\u670d\u52d9\u5668\u548c\u591a\u500b\u5f9e\u670d\u52d9\u5668<\/li><li>ACK \/ NACK\u4f4d\u78ba\u8a8d\u6bcf\u500b\u5e40\u90fd\u5df2\u6210\u529f\u50b3\u8f38<\/li><li>\u786c\u4ef6\u6c92\u6709UART\u90a3\u9ebc\u8907\u96dc<\/li><li>\u773e\u6240\u5468\u77e5\u4e14\u5ee3\u6cdb\u4f7f\u7528\u7684\u5354\u8b70<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">DISADVANTAGES<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>\u6578\u64da\u50b3\u8f38\u901f\u7387\u6bd4SPI\u6162<\/li><li>\u6578\u64da\u5e40\u7684\u5927\u5c0f\u9650\u5236\u70ba8\u4f4d<\/li><li>\u5be6\u73fe\u6bd4SPI\u66f4\u8907\u96dc\u7684\u786c\u4ef6<\/li><\/ul>\n\n\n\n<p>\u8b1d\u8b1d\u95b1\u8b80\uff01\u5e0c\u671b\u60a8\u5f9e\u9019\u4e00\u7cfb\u5217\u95dc\u65bc\u96fb\u5b50\u901a\u4fe1\u5354\u8b70\u7684\u6587\u7ae0\u4e2d\u5b78\u5230\u4e00\u4e9b\u6771\u897f\u3002\u5982\u679c\u60a8\u9084\u6c92\u6709\u95b1\u8b80\u904e\uff0c\u7b2c\u4e00\u90e8\u5206\u4ecb\u7d39\u4e86SPI\u901a\u4fe1\u5354\u8b70\uff0c\u7b2c\u4e8c\u90e8\u5206\u4ecb\u7d39\u4e86UART\u9a45\u52d5\u7684\u901a\u4fe1\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>\u539f\u6587\u7db2\u5740 http:\/\/www.circuitbasics.com\/basics-of-the-i2c-com &#8230; <a title=\"I2C\u901a\u4fe1\u5354\u8b70\u7684\u57fa\u790e(\u8f49)\" class=\"read-more\" href=\"https:\/\/zechs.taipei\/?p=124\" aria-label=\"\u95b1\u8b80\u3008I2C\u901a\u4fe1\u5354\u8b70\u7684\u57fa\u790e(\u8f49)\u3009\u5168\u6587\">\u95b1\u8b80\u5168\u6587<\/a><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-124","post","type-post","status-publish","format-standard","hentry","category-tech"],"_links":{"self":[{"href":"https:\/\/zechs.taipei\/index.php?rest_route=\/wp\/v2\/posts\/124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zechs.taipei\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zechs.taipei\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zechs.taipei\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zechs.taipei\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=124"}],"version-history":[{"count":3,"href":"https:\/\/zechs.taipei\/index.php?rest_route=\/wp\/v2\/posts\/124\/revisions"}],"predecessor-version":[{"id":132,"href":"https:\/\/zechs.taipei\/index.php?rest_route=\/wp\/v2\/posts\/124\/revisions\/132"}],"wp:attachment":[{"href":"https:\/\/zechs.taipei\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zechs.taipei\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zechs.taipei\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}