{"id":97590,"date":"2024-09-10T14:15:11","date_gmt":"2024-09-10T06:15:11","guid":{"rendered":"\/\/www.viralrail.com\/?p=97590"},"modified":"2024-09-10T14:15:15","modified_gmt":"2024-09-10T06:15:15","slug":"itxxyjjjyy","status":"publish","type":"post","link":"\/\/www.viralrail.com\/blog\/97590.html","title":{"rendered":"I2C\u901a\u4fe1\u534f\u8bae\u7b80\u4ecb\u53ca\u5e94\u7528"},"content":{"rendered":"\n
\u3000\u3000I2C(Inter-Integrated Circuit)\u901a\u4fe1\u534f\u8bae<\/strong>\u662f\u4e00\u79cd\u5e7f\u6cdb\u5e94\u7528\u4e8e\u7535\u5b50\u8bbe\u5907\u4e4b\u95f4\u7684\u4e32\u884c\u901a\u4fe1\u534f\u8bae\uff0c\u7531\u98de\u5229\u6d66\u516c\u53f8\u4e8e1982\u5e74\u5f00\u53d1\u3002\u5b83\u4e3b\u8981\u7528\u4e8e\u5fae\u63a7\u5236\u5668\u548c\u5404\u79cd\u96c6\u6210\u7535\u8def\u4e4b\u95f4\u8fdb\u884c\u6570\u636e\u4f20\u8f93\uff0c\u5177\u6709\u591a\u4e3b\u3001\u591a\u4ece\u7684\u7279\u70b9\uff0c\u652f\u6301\u540c\u6b65\u534a\u53cc\u5de5\u901a\u4fe1\u3002<\/p>\n\n\n\n \u3000\u3000I2C\u534f\u8bae\u4f7f\u7528\u4e24\u6761\u4fe1\u53f7\u7ebf\uff1aSCL(\u4e32\u884c\u65f6\u949f\u7ebf)\u548cSDA(\u4e32\u884c\u6570\u636e\u7ebf)\uff0c\u901a\u8fc7\u8fd9\u4e24\u6761\u7ebf\u5b9e\u73b0\u4e3b\u8bbe\u5907\u4e0e\u4ece\u8bbe\u5907\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u3002\u6bcf\u4e2a\u8fde\u63a5\u5230\u603b\u7ebf\u7684\u8bbe\u5907\u90fd\u6709\u4e00\u4e2a\u552f\u4e00\u7684\u5730\u5740\uff0c\u7528\u4e8e\u6807\u8bc6\u4e0d\u540c\u7684\u8bbe\u5907\u3002I2C\u534f\u8bae\u652f\u6301\u8d77\u59cb\u6761\u4ef6\u3001\u505c\u6b62\u6761\u4ef6\u4ee5\u53ca\u5e94\u7b54\u4fe1\u53f7\u7b49\u5173\u952e\u64cd\u4f5c\uff0c\u786e\u4fdd\u6570\u636e\u4f20\u8f93\u7684\u53ef\u9760\u6027\u548c\u5b8c\u6574\u6027\u3002<\/p>\n\n\n\n \u3000\u3000I2C\u901a\u4fe1\u7684\u57fa\u672c\u6d41\u7a0b\u5305\u62ec\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a<\/p>\n\n\n\n \u3000\u3000I2C\u534f\u8bae\u7684\u7269\u7406\u5c42\u8bbe\u8ba1\u7b80\u5355\uff0c\u53ea\u9700\u4e24\u6839\u7ebf\u5373\u53ef\u5b9e\u73b0\u901a\u4fe1\uff0c\u8fd9\u4f7f\u5f97\u5176\u5728\u77ed\u8ddd\u79bb\u3001\u4f4e\u901f\u7684\u5e94\u7528\u573a\u666f\u4e2d\u975e\u5e38\u9002\u7528\u3002\u6b64\u5916\uff0cI2C\u8fd8\u652f\u6301\u83ca\u82b1\u94fe(Daisy Chain)\u8fde\u63a5\u65b9\u5f0f\uff0c\u5141\u8bb8\u591a\u4e2a\u8bbe\u5907\u5171\u4eab\u540c\u4e00\u603b\u7ebf\uff0c\u4ece\u800c\u8282\u7701\u4e86\u5e03\u7ebf\u8d44\u6e90\u3002<\/p>\n\n\n\n \u3000\u3000I2C\u534f\u8bae\u7684\u534f\u8bae\u5c42\u5305\u62ec\u8d77\u59cb\u6761\u4ef6\u3001\u5730\u5740\u6bb5\u3001\u8bfb\/\u5199\u4f4d\u3001\u6570\u636e\u5757\u548c\u505c\u6b62\u6761\u4ef6\u7b49\u90e8\u5206\u3002\u6bcf\u4e2a\u4f20\u8f93\u75318\u4f4d\u6570\u636e\u5757\u548cACK\u4f4d\u7ec4\u6210\uff0cSDA\u4e3a\u53cc\u5411\u7ebf\uff0c\u5728\u53d1\u9001ACK\u4f4d\u65f6\uff0c\u53d1\u5c04\u5668\u5fc5\u987b\u5c06\u7ebf\u7f6e\u4e8e\u9ad8\u963b\u6001\u4ee5\u5141\u8bb8\u63a5\u6536\u5668\u5199\u5165'0'\u3002<\/p>\n\n\n\n \u3000\u3000I2C\u534f\u8bae\u56e0\u5176\u7075\u6d3b\u6027\u548c\u9ad8\u6548\u6027\uff0c\u5728\u8bb8\u591a\u5d4c\u5165\u5f0f\u7cfb\u7edf\u4e2d\u5f97\u5230\u4e86\u5e7f\u6cdb\u5e94\u7528\u3002\u4f8b\u5982\uff1a<\/p>\n\n\n\n \u3000\u3000I2C\u534f\u8bae\u4ee5\u5176\u7b80\u6d01\u7684\u8bbe\u8ba1\u548c\u5e7f\u6cdb\u7684\u5e94\u7528\u573a\u666f\uff0c\u5728\u73b0\u4ee3\u7535\u5b50\u8bbe\u5907\u4e2d\u626e\u6f14\u7740\u91cd\u8981\u89d2\u8272\u3002<\/p>\n\n\n\n \u3000\u3000I2C\u901a\u4fe1\u534f\u8bae\u7684\u6700\u65b0\u7248\u672c\u548c\u6539\u8fdb\u4e3b\u8981\u4f53\u73b0\u5728\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\uff1a<\/p>\n\n\n\n \u3000\u3000\u63d0\u9ad8I2C\u901a\u4fe1\u534f\u8bae\u7684\u4f20\u8f93\u901f\u7387\u548c\u5bb9\u9519\u6027\u53ef\u4ee5\u4ece\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\u8fdb\u884c\u4f18\u5316\uff1a<\/p>\n\n\n\n \u3000\u3000\u91c7\u7528\u9ad8\u901f\u6a21\u5f0f<\/strong>\uff1a<\/p>\n\n\n\n \u3000\u3000\u4f7f\u7528\u66f4\u9ad8\u901f\u7684I2C\u534f\u8bae\u7248\u672c\uff0c\u5982I2C-FAST\u6216I2C-HIGH SPEED\uff0c\u53ef\u4ee5\u663e\u8457\u63d0\u5347\u6570\u636e\u4f20\u8f93\u901f\u5ea6\u3002<\/p>\n\n\n\n \u3000\u3000\u5bf9\u4e8e\u5e38\u89c4\u7684I2C\u603b\u7ebf\u89c4\u8303\uff0c\u901a\u8fc7\u5f15\u5165\u5f00\u6f0f\u8f93\u51fa\u7f13\u51b2\u5668\u548c\u7535\u6d41\u6e90\u4e0a\u62c9\u7535\u8def\u6765\u7f29\u77ed\u4fe1\u53f7\u7684\u4e0a\u5347\u65f6\u95f4\uff0c\u4ece\u800c\u5b9e\u73b0\u66f4\u9ad8\u7684\u4f20\u8f93\u901f\u7387(\u4f8b\u59823.4Mbps)\u3002<\/p>\n\n\n\n \u3000\u3000\u4f18\u5316\u5e03\u7ebf<\/strong>\uff1a<\/p>\n\n\n\n \u3000\u3000\u5408\u7406\u5e03\u7f6eI2C\u603b\u7ebf\u7684\u7ebf\u8def\u53ef\u4ee5\u51cf\u5c0f\u4fe1\u53f7\u4f20\u8f93\u7684\u5e72\u6270\u548c\u8870\u51cf\uff0c\u4ece\u800c\u63d0\u9ad8\u6570\u636e\u4f20\u8f93\u901f\u7387\u3002\u907f\u514d\u957f\u8ddd\u79bb\u5e03\u7ebf\u548c\u7e41\u6742\u7684\u5e03\u7ebf\u73af\u5883\u6709\u52a9\u4e8e\u63d0\u9ad8I2C\u6570\u636e\u4f20\u8f93\u901f\u7387\u3002<\/p>\n\n\n\n \u3000\u3000\u4f7f\u7528DMA\u6280\u672f<\/strong>\uff1a<\/p>\n\n\n\n \u3000\u3000\u5728\u5fae\u63a7\u5236\u5668\u4e2d\u4f7f\u7528\u76f4\u63a5\u5b58\u50a8\u5668\u8bbf\u95ee(DMA)\u6280\u672f\uff0c\u53ef\u4ee5\u5728I2C\u901a\u4fe1\u4e2d\u51cf\u5c11CPU\u7684\u8d1f\u8f7d\uff0c\u63d0\u9ad8\u901a\u4fe1\u6027\u80fd\u3002<\/p>\n\n\n\n \u3000\u3000\u6545\u969c\u68c0\u6d4b\u4e0e\u5904\u7406\u673a\u5236<\/strong>\uff1a<\/p>\n\n\n\n \u3000\u3000I2C\u603b\u7ebf\u63d0\u4f9b\u4e86\u67d0\u4e9b\u5bb9\u9519\u673a\u5236\uff0c\u53ef\u4ee5\u5e2e\u52a9\u68c0\u6d4b\u548c\u5904\u7406\u901a\u4fe1\u4e2d\u7684\u6545\u969c\uff0c\u63d0\u9ad8\u7cfb\u7edf\u7684\u53ef\u9760\u6027\u3002<\/p>\n\n\n\n \u3000\u3000\u8fd9\u4e9b\u673a\u5236\u5305\u62ec\u5728\u901a\u4fe1\u8fc7\u7a0b\u4e2d\u5b9a\u671f\u68c0\u67e5\u6570\u636e\u5b8c\u6574\u6027\uff0c\u5e76\u5728\u53d1\u73b0\u9519\u8bef\u65f6\u91c7\u53d6\u76f8\u5e94\u7684\u63aa\u65bd\uff0c\u5982\u91cd\u4f20\u6570\u636e\u6216\u5207\u6362\u5230\u5907\u7528\u8def\u5f84\u3002<\/p>\n\n\n\n \u3000\u3000\u6570\u636e\u538b\u7f29\u548c\u7f16\u7801<\/strong>\uff1a<\/p>\n\n\n\n \u3000\u3000\u901a\u8fc7\u6570\u636e\u538b\u7f29\u6216\u4f7f\u7528\u9ad8\u6548\u7684\u7f16\u7801\u65b9\u5f0f\u6765\u51cf\u5c11\u4f20\u8f93\u7684\u6570\u636e\u91cf\uff0c\u53ef\u4ee5\u964d\u4f4e\u901a\u4fe1\u8fc7\u7a0b\u4e2d\u7684\u9519\u8bef\u7387\u548c\u63d0\u9ad8\u7cfb\u7edf\u7684\u5bb9\u9519\u80fd\u529b\u3002<\/p>\n\n\n\n \u3000\u3000I2C\u4e0e\u5176\u4ed6\u4e32\u884c\u901a\u4fe1\u534f\u8bae(\u5982SPI\u3001UART)\u76f8\u6bd4\uff0c\u5177\u6709\u4ee5\u4e0b\u4f18\u7f3a\u70b9\uff1a<\/p>\n\n\n\n \u3000\u3000\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u89e3\u51b3I2C\u901a\u4fe1\u4e2d\u7684\u83ca\u82b1\u94fe\u8fde\u63a5\u95ee\u9898\u4e3b\u8981\u6d89\u53ca\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\uff1a<\/p>\n\n\n\n \u3000\u3000\u9488\u5bf9\u9ad8\u901f\u6570\u636e\u4f20\u8f93\u9700\u6c42\uff0c\u6709\u591a\u79cd\u66ff\u4ee3I2C\u901a\u4fe1\u534f\u8bae\u7684\u6280\u672f\u6216\u65b9\u6cd5\u3002\u4ee5\u4e0b\u662f\u51e0\u79cd\u4e3b\u8981\u7684\u66ff\u4ee3\u6280\u672f\uff1a<\/p>\n\n\n\n \u3000\u3000SERDES\u6280\u672f\u901a\u8fc7\u5c06\u591a\u4f4d\u5e76\u884c\u6570\u636e\u8f6c\u6362\u4e3a\u5355bit\u4e32\u884c\u6570\u636e\uff0c\u5e76\u5728\u901a\u4fe1\u94fe\u8def\u4e0a\u91c7\u7528LVDS\u7535\u5e73\u4f20\u8f93\uff0c\u4ece\u800c\u5b9e\u73b0\u9ad8\u901f\u6570\u636e\u4f20\u8f93\u3002<\/p>\n\n\n\n \u3000\u3000PCIE\u603b\u7ebf\u662f\u4e00\u79cd\u9ad8\u901f\u4e32\u884c\u8ba1\u7b97\u673a\u6269\u5c55\u603b\u7ebf\u6807\u51c6\uff0c\u5177\u6709\u9ad8\u5e26\u5bbd\u3001\u4f4e\u5ef6\u8fdf\u7b49\u4f18\u70b9\u3002\u5b83\u91c7\u7528\u5dee\u5206\u4fe1\u53f7\u4f20\u8f93\u65b9\u5f0f\uff0c\u901a\u8fc7\u591a\u6761\u901a\u9053\u5e76\u884c\u4f20\u8f93\u6570\u636e\uff0c\u4ee5\u83b7\u5f97\u66f4\u9ad8\u7684\u4f20\u8f93\u901f\u7387\u3002<\/p>\n\n\n\n \u3000\u3000UDP\u9002\u7528\u4e8e\u6781\u9ad8\u901f\u7f51\u7edc\u4e0a\u4f20\u8f93\u5927\u91cf\u6570\u636e\uff0c\u901a\u8fc7\u4e92\u8054\u7f51\u5c06\u6570\u636e\u4ece\u4e00\u4e2a\u4f4d\u7f6e\u4f20\u8f93\u5230\u53e6\u4e00\u4e2a\u4f4d\u7f6e\u3002\u4e3a\u4e86\u63d0\u9ad8\u6570\u636e\u8d28\u91cf\u548c\u51cf\u5c11\u4e22\u5931\uff0c\u53ef\u4ee5\u7ed3\u5408TCP(\u4f20\u8f93\u63a7\u5236\u534f\u8bae)\u8fdb\u884c\u8d28\u91cf\u63a7\u5236\u3002<\/p>\n\n\n\n \u3000\u3000Raysync\u534f\u8bae\u901a\u8fc7\u70b9\u5bf9\u70b9\u4f20\u8f93\u6280\u672f\u548c\u591a\u79cd\u7a7f\u8d8a\u4e2d\u95f4\u4ef6\u7684\u65b9\u6cd5(\u5982\u4e2d\u7ee7\u3001\u9006\u5411\u94fe\u63a5\u548cUDP\u6253\u6d1e\u6280\u672f)\uff0c\u6765\u5b9e\u73b0\u4e0d\u540c\u7f51\u7edc\u73af\u5883\u4e0b\u7684\u9ad8\u6548\u4f20\u8f93\u3002\u8fd9\u4e9b\u6280\u672f\u4f7f\u5f97\u5ba2\u6237\u7aef\u4e4b\u95f4\u80fd\u591f\u76f4\u63a5\u5efa\u7acb\u901a\u4fe1\uff0c\u7ed5\u8fc7\u53ef\u80fd\u7684\u7f51\u7edc\u969c\u788d\uff0c\u4ece\u800c\u5b9e\u73b0\u9ad8\u901f\u3001\u7a33\u5b9a\u7684\u6570\u636e\u4f20\u8f93\u3002<\/p>\n\n\n\n \u3000\u3000CAN\u603b\u7ebf\u662f\u4e13\u95e8\u4e3a\u6c7d\u8f66\u5e94\u7528\u800c\u8bbe\u8ba1\u7684\u5dee\u5206\u4e32\u884c\u603b\u7ebf\uff0c\u4e5f\u7528\u4e8e\u822a\u7a7a\u822a\u5929\u7cfb\u7edf\u548c\u5176\u4ed6\u9886\u57df\u3002\u5b83\u901a\u8fc7\u4e00\u5bf9\u5e26\u5730\u4fe1\u53f7\u7ebf(CAN H\u548cCAN L)\u8fdb\u884c\u6570\u636e\u4f20\u8f93\uff0c\u652f\u6301\u9ad8\u8fbe1 Mbps\u7684\u6570\u636e\u4f20\u8f93\u901f\u7387\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" I2C(Inter-Integrated Circuit)\u901a\u4fe1\u534f\u8bae\u662f\u4e00\u79cd\u5e7f\u6cdb\u5e94\u7528\u4e8e\u7535\u5b50\u8bbe\u5907\u4e4b\u95f4\u7684\u4e32\u884c\u901a\u4fe1\u534f\u8bae\uff0c\u7531\u98de\u5229\u6d66\u516c\u53f8\u4e8e1982\u5e74\u5f00\u53d1\u3002\u5b83\u4e3b\u8981\u7528\u4e8e\u5fae\u63a7\u5236\u5668\u548c\u5404\u79cd\u96c6\u6210\u7535\u8def\u4e4b\u95f4\u8fdb\u884c\u6570\u636e\u4f20\u8f93<\/p>\n","protected":false},"author":1,"featured_media":96397,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[137],"class_list":["post-97590","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-txxy"],"_links":{"self":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/97590"}],"collection":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/comments?post=97590"}],"version-history":[{"count":0,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/97590\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media\/96397"}],"wp:attachment":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media?parent=97590"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/categories?post=97590"},{"taxonomy":"post_tag","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/tags?post=97590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\u3000\u3000\u4e00\u3001 I2C\u901a\u4fe1\u534f\u8bae\u4ecb\u7ecd<\/h2>\n\n\n\n
\u3000\u30001. \u57fa\u672c\u6982\u5ff5\u4e0e\u7279\u70b9<\/h3>\n\n\n\n
\u3000\u30002. \u5de5\u4f5c\u539f\u7406<\/h3>\n\n\n\n
\n
\u3000\u30003. \u7269\u7406\u5c42\u7279\u70b9<\/h3>\n\n\n\n
\u3000\u30004. \u534f\u8bae\u5c42\u7ed3\u6784<\/h3>\n\n\n\n
\u3000\u30005. \u5e94\u7528\u573a\u666f<\/h3>\n\n\n\n
\n
\u3000\u30006. \u4f18\u70b9\u4e0e\u7f3a\u70b9<\/h3>\n\n\n\n
\u3000\u3000(1). \u4f18\u70b9\uff1a<\/h4>\n\n\n\n
\n
\u3000\u3000(2). \u7f3a\u70b9\uff1a<\/h4>\n\n\n\n
\n
\u3000\u3000\u4e8c\u3001 I2C\u901a\u4fe1\u534f\u8bae\u7684\u6700\u65b0\u7248\u672c\u548c\u6539\u8fdb\u6709\u54ea\u4e9b?<\/h2>\n\n\n\n
\n
\u3000\u3000\u4e09\u3001 \u5982\u4f55\u63d0\u9ad8I2C\u901a\u4fe1\u534f\u8bae\u7684\u4f20\u8f93\u901f\u7387\u548c\u5bb9\u9519\u6027?<\/h2>\n\n\n\n
\u3000\u30001. \u63d0\u9ad8\u4f20\u8f93\u901f\u7387<\/h3>\n\n\n\n
\u3000\u30002. \u63d0\u9ad8\u5bb9\u9519\u6027<\/h3>\n\n\n\n
\u3000\u3000\u56db\u3001 I2C\u4e0e\u5176\u4ed6\u4e32\u884c\u901a\u4fe1\u534f\u8bae(\u5982SPI\u3001UART)\u76f8\u6bd4\uff0c\u5177\u4f53\u4f18\u7f3a\u70b9\u662f\u4ec0\u4e48?<\/h2>\n\n\n\n
\u3000\u30001. \u4f18\u70b9\uff1a<\/h3>\n\n\n\n
\n
\u3000\u30002. \u7f3a\u70b9\uff1a<\/h3>\n\n\n\n
\n
\u3000\u30003. \u5e94\u7528\u573a\u666f\uff1a<\/h3>\n\n\n\n
\n
\u3000\u3000\u4e94\u3001 \u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5982\u4f55\u89e3\u51b3I2C\u901a\u4fe1\u4e2d\u7684\u83ca\u82b1\u94fe\u8fde\u63a5\u95ee\u9898?<\/h2>\n\n\n\n
\n
\u3000\u3000\u516d\u3001 \u9488\u5bf9\u9ad8\u901f\u6570\u636e\u4f20\u8f93\u9700\u6c42\uff0c\u6709\u54ea\u4e9b\u66ff\u4ee3I2C\u901a\u4fe1\u534f\u8bae\u7684\u6280\u672f\u6216\u65b9\u6cd5?<\/h2>\n\n\n\n