{"id":30331,"date":"2023-09-14T08:29:54","date_gmt":"2023-09-14T00:29:54","guid":{"rendered":"https:\/\/www.techphant.cn\/blog\/30331.html"},"modified":"2023-11-25T00:17:03","modified_gmt":"2023-11-24T16:17:03","slug":"yiddpjjjyyy","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/30331.html","title":{"rendered":"\u6709I2C\u768451\u5355\u7247\u673a\uff1a\u7b80\u4ecb\u4e0e\u5e94\u7528"},"content":{"rendered":"

  I2C\uff08Inter-Integrated Circuit\uff09\u662f\u4e00\u79cd\u53cc\u7ebf\u603b\u7ebf\uff0c\u5b83\u53ef\u4ee5\u8ba9\u591a\u4e2a\u5355\u7247\u673a\u4e4b\u95f4\u8fdb\u884c\u6570\u636e\u4ea4\u6362\uff0c\u4ece\u800c\u5b9e\u73b0\u591a\u4e2a\u5355\u7247\u673a\u4e4b\u95f4\u7684\u901a\u4fe1\u300251\u5355\u7247\u673a\u662f\u4e00\u79cd\u7ecf\u5178\u7684\u5355\u7247\u673a\uff0c\u5b83\u53ef\u4ee5\u8ba9\u7a0b\u5e8f\u5458\u4eec\u8f7b\u677e\u5730\u5c06\u4e00\u4e9b\u7b80\u5355\u7684\u6307\u4ee4\u8f6c\u6362\u6210\u673a\u5668\u6307\u4ee4\uff0c\u4ece\u800c\u5b9e\u73b0\u4e00\u4e9b\u590d\u6742\u7684\u529f\u80fd\u3002\u6709I2C\u768451\u5355\u7247\u673a\u662f\u5c06I2C\u6280\u672f\u548c51\u5355\u7247\u673a\u6280\u672f\u7ed3\u5408\u5728\u4e00\u8d77\uff0c\u5b9e\u73b0\u4e86\u591a\u4e2a51\u5355\u7247\u673a\u4e4b\u95f4\u7684\u901a\u4fe1\uff0c\u4ece\u800c\u5b9e\u73b0\u4e86\u66f4\u590d\u6742\u7684\u529f\u80fd\u3002<\/p>\n

I2C\u7684\u57fa\u672c\u539f\u7406<\/h2>\n

  I2C\u662f\u4e00\u79cd\u53cc\u7ebf\u603b\u7ebf\u6280\u672f\uff0c\u5b83\u53ef\u4ee5\u8ba9\u591a\u4e2a\u5355\u7247\u673a\u4e4b\u95f4\u8fdb\u884c\u6570\u636e\u4ea4\u6362\uff0c\u4ece\u800c\u5b9e\u73b0\u591a\u4e2a\u5355\u7247\u673a\u4e4b\u95f4\u7684\u901a\u4fe1\u3002I2C\u603b\u7ebf\u7531\u4e24\u6839\u4fe1\u53f7\u7ebf\u7ec4\u6210\uff0c\u4e00\u6839\u662fSCL\uff08\u65f6\u949f\u7ebf\uff09\uff0c\u4e00\u6839\u662fSDA\uff08\u6570\u636e\u7ebf\uff09\u3002I2C\u603b\u7ebf\u4e0a\u7684\u4e24\u4e2a\u4fe1\u53f7\u7ebf\u90fd\u662f\u53cc\u5411\u7684\uff0c\u53ef\u4ee5\u7531\u4efb\u610f\u4e00\u65b9\u53d1\u51fa\u4fe1\u53f7\uff0c\u53e6\u4e00\u65b9\u63a5\u6536\u4fe1\u53f7\u3002I2C\u603b\u7ebf\u4e0a\u7684\u6bcf\u4e00\u4e2a\u8bbe\u5907\u90fd\u6709\u4e00\u4e2a\u552f\u4e00\u7684\u5730\u5740\uff0c\u7531\u5b83\u4eec\u7684\u5730\u5740\u6765\u786e\u5b9a\u8c01\u662f\u53d1\u9001\u65b9\uff0c\u8c01\u662f\u63a5\u6536\u65b9\u3002I2C\u603b\u7ebf\u4e0a\u7684\u8bbe\u5907\u4e4b\u95f4\u53ef\u4ee5\u76f8\u4e92\u4f20\u8f93\u6570\u636e\uff0c\u4ece\u800c\u5b9e\u73b0\u591a\u4e2a\u5355\u7247\u673a\u4e4b\u95f4\u7684\u901a\u4fe1\u3002<\/p>\n

\u6709I2C\u768451\u5355\u7247\u673a\u7684\u7279\u70b9<\/h2>\n

1.\u652f\u6301\u591a\u79cd\u6307\u4ee4<\/h3>\n

  \u6709I2C\u768451\u5355\u7247\u673a\u652f\u6301\u591a\u79cd\u6307\u4ee4\uff0c\u53ef\u4ee5\u5b9e\u73b0\u591a\u79cd\u529f\u80fd\u3002\u5b83\u53ef\u4ee5\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u5982C\u3001C++\u7b49\uff0c\u53ef\u4ee5\u8ba9\u7a0b\u5e8f\u5458\u4eec\u8f7b\u677e\u5730\u5c06\u4e00\u4e9b\u7b80\u5355\u7684\u6307\u4ee4\u8f6c\u6362\u6210\u673a\u5668\u6307\u4ee4\uff0c\u4ece\u800c\u5b9e\u73b0\u4e00\u4e9b\u590d\u6742\u7684\u529f\u80fd\u3002<\/p>\n

2.\u5177\u5907\u826f\u597d\u7684\u4f20\u8f93\u6548\u7387<\/h3>\n

  \u6709I2C\u768451\u5355\u7247\u673a\u5177\u5907\u826f\u597d\u7684\u4f20\u8f93\u6548\u7387\uff0c\u53ef\u4ee5\u5b9e\u73b0\u9ad8\u901f\u4f20\u8f93\uff0c\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\u3002\u5b83\u4f7f\u7528\u53cc\u7ebf\u603b\u7ebf\u6280\u672f\uff0c\u53ef\u4ee5\u8ba9\u591a\u4e2a\u5355\u7247\u673a\u4e4b\u95f4\u8fdb\u884c\u6570\u636e\u4ea4\u6362\uff0c\u4ece\u800c\u5b9e\u73b0\u591a\u4e2a\u5355\u7247\u673a\u4e4b\u95f4\u7684\u901a\u4fe1\uff0c\u63d0\u9ad8\u7cfb\u7edf\u7684\u4f20\u8f93\u6548\u7387\u3002<\/p>\n

3.\u5177\u5907\u9ad8\u5ea6\u7684\u7075\u6d3b\u6027<\/h3>\n

  \u6709I2C\u768451\u5355\u7247\u673a\u5177\u5907\u9ad8\u5ea6\u7684\u7075\u6d3b\u6027\uff0c\u53ef\u4ee5\u5b9e\u73b0\u591a\u79cd\u529f\u80fd\u3002\u5b83\u53ef\u4ee5\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u53ef\u4ee5\u8ba9\u7a0b\u5e8f\u5458\u4eec\u8f7b\u677e\u5730\u5c06\u4e00\u4e9b\u7b80\u5355\u7684\u6307\u4ee4\u8f6c\u6362\u6210\u673a\u5668\u6307\u4ee4\uff0c\u4ece\u800c\u5b9e\u73b0\u4e00\u4e9b\u590d\u6742\u7684\u529f\u80fd\uff0c\u6ee1\u8db3\u7a0b\u5e8f\u5458\u4eec\u7684\u9700\u6c42\u3002<\/p>\n

\u6709I2C\u768451\u5355\u7247\u673a\u7684\u5e94\u7528<\/h2>\n

  \u6709I2C\u768451\u5355\u7247\u673a\u53ef\u4ee5\u7528\u4e8e\u5b9e\u73b0\u591a\u79cd\u529f\u80fd\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u5404\u4e2a\u9886\u57df\u3002\u5b83\u53ef\u4ee5\u7528\u4e8e\u5b9e\u73b0\u667a\u80fd\u5bb6\u5c45\u3001\u667a\u80fd\u5b89\u9632\u3001\u667a\u80fd\u4ea4\u901a\u3001\u667a\u80fd\u63a7\u5236\u7b49\u591a\u79cd\u529f\u80fd\uff0c\u53ef\u4ee5\u6ee1\u8db3\u7a0b\u5e8f\u5458\u4eec\u7684\u9700\u6c42\u3002\u540c\u65f6\uff0c\u6709I2C\u768451\u5355\u7247\u673a\u8fd8\u53ef\u4ee5\u7528\u4e8e\u5b9e\u73b0\u667a\u80fd\u533b\u7597\u3001\u667a\u80fd\u6559\u80b2\u3001\u667a\u80fd\u5de5\u5382\u7b49\u591a\u79cd\u529f\u80fd\uff0c\u4ece\u800c\u63d0\u9ad8\u7cfb\u7edf\u7684\u6548\u7387\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  \u6709I2C\u768451\u5355\u7247\u673a\u662f\u5c06I2C\u6280\u672f\u548c51\u5355\u7247\u673a\u6280\u672f\u7ed3\u5408\u5728\u4e00\u8d77\uff0c\u5b83\u53ef\u4ee5\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u53ef\u4ee5\u8ba9\u7a0b\u5e8f\u5458\u4eec\u8f7b\u677e\u5730\u5c06\u4e00\u4e9b\u7b80\u5355\u7684\u6307\u4ee4\u8f6c\u6362\u6210\u673a\u5668\u6307\u4ee4\uff0c\u4ece\u800c\u5b9e\u73b0\u4e00\u4e9b\u590d\u6742\u7684\u529f\u80fd\u3002<\/strong>\u5b83\u5177\u5907\u826f\u597d\u7684\u4f20\u8f93\u6548\u7387\uff0c\u53ef\u4ee5\u5b9e\u73b0\u9ad8\u901f\u4f20\u8f93\uff0c\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\uff1b\u5177\u5907\u9ad8\u5ea6\u7684\u7075\u6d3b\u6027\uff0c\u53ef\u4ee5\u5b9e\u73b0\u591a\u79cd\u529f\u80fd\uff0c\u6ee1\u8db3\u7a0b\u5e8f\u5458\u4eec\u7684\u9700\u6c42\u3002\u6709I2C\u768451\u5355\u7247\u673a\u53ef\u4ee5\u7528\u4e8e\u5b9e\u73b0\u667a\u80fd\u5bb6\u5c45\u3001\u667a\u80fd\u5b89\u9632\u3001\u667a\u80fd\u4ea4\u901a\u3001\u667a\u80fd\u63a7\u5236\u7b49\u591a\u79cd\u529f\u80fd\uff0c\u53ef\u4ee5\u6ee1\u8db3\u7a0b\u5e8f\u5458\u4eec\u7684\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

I2C\uff08Inter-Integrated Circuit\uff09\u662f\u4e00\u79cd\u53cc\u7ebf\u603b\u7ebf\uff0c\u5b83\u53ef\u4ee5\u8ba9\u591a\u4e2a\u5355\u7247\u673a\u4e4b\u95f4\u8fdb\u884c\u6570\u636e\u4ea4\u6362\uff0c\u4ece\u800c\u5b9e\u73b0\u591a\u4e2a\u5355\u7247\u673a\u4e4b\u95f4\u7684\u901a\u4fe1\u300251\u5355\u7247\u673a\u662f\u4e00\u79cd\u7ecf\u5178\u7684\u5355\u7247\u673a\uff0c<\/p>\n","protected":false},"author":1,"featured_media":3671,"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":[351,83],"class_list":["post-30331","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-i2c","tag-dpj"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/30331"}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=30331"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/30331\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/3671"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=30331"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=30331"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=30331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}