{"id":42322,"date":"2023-09-28T02:41:23","date_gmt":"2023-09-27T18:41:23","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=42322"},"modified":"2023-11-25T00:14:14","modified_gmt":"2023-11-24T16:14:14","slug":"shidsawcszj","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/42322.html","title":{"rendered":"SPI\u548cI2C\u90fd\u662f\u6309\u4f4d\u4f20\u8f93\uff1a\u603b\u7ed3"},"content":{"rendered":"

  SPI\u548cI2C\u90fd\u662f\u6309\u4f4d\u4f20\u8f93\uff0c\u8fd9\u662f\u4e24\u79cd\u975e\u5e38\u6d41\u884c\u7684\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\u3002<\/strong>\u5b83\u4eec\u90fd\u662f\u5de5\u4e1a\u6807\u51c6\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u5404\u79cd\u7535\u5b50\u8bbe\u5907\uff0c\u7528\u4e8e\u63a7\u5236\u8bbe\u5907\u548c\u4f20\u8f93\u6570\u636e\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u4ecb\u7ecd\u8fd9\u4e24\u79cd\u6280\u672f\u7684\u57fa\u672c\u539f\u7406\uff0c\u4ee5\u53ca\u5b83\u4eec\u4e4b\u95f4\u7684\u533a\u522b\u3002<\/p>\n

SPI\uff08\u4e32\u884c\u5916\u56f4\u63a5\u53e3\uff09<\/h2>\n

  \u4ec0\u4e48\u662fSPI\uff1f<\/h3>\n

  SPI\uff08\u4e32\u884c\u5916\u56f4\u63a5\u53e3\uff09\u662f\u4e00\u79cd\u9ad8\u901f\u6570\u636e\u4f20\u8f93\u6280\u672f\uff0c\u7531Motorola\u4e8e1985\u5e74\u63a8\u51fa\u3002\u5b83\u4f7f\u7528\u56db\u6839\u7ebf\u8fde\u63a5\u4e24\u4e2a\u8bbe\u5907\uff1aMISO\uff08\u4ece\u673a\u8f93\u5165\uff09\uff0cMOSI\uff08\u4ece\u673a\u8f93\u51fa\uff09\uff0cSCLK\uff08\u65f6\u949f\uff09\u548cSS\uff08\u7247\u9009\uff09\u3002\u5b83\u53ef\u4ee5\u5728\u6bcf\u6b21\u65f6\u949f\u5468\u671f\u5185\u4f20\u8f93\u4e00\u4f4d\u6570\u636e\uff0c\u56e0\u6b64\u53ef\u4ee5\u8fbe\u5230\u9ad8\u901f\u4f20\u8f93\u3002<\/p>\n

  SPI\u7684\u4f18\u52bf<\/h3>\n

  SPI\u7684\u4f18\u52bf\u5728\u4e8e\u5b83\u7684\u9ad8\u901f\u4f20\u8f93\u901f\u5ea6\uff0c\u6700\u9ad8\u53ef\u8fbe20MHz\u3002\u6b64\u5916\uff0c\u5b83\u53ef\u4ee5\u4f7f\u7528\u66f4\u5c11\u7684\u5f15\u811a\u8fde\u63a5\u591a\u4e2a\u8bbe\u5907\uff0c\u4ece\u800c\u8282\u7701\u7a7a\u95f4\u3002\u6b64\u5916\uff0c\u5b83\u7684\u64cd\u4f5c\u7b80\u5355\uff0c\u6613\u4e8e\u5b9e\u73b0\u3002<\/p>\n

I2C\uff08Inter-Integrated Circuit\uff09<\/h2>\n

  \u4ec0\u4e48\u662fI2C\uff1f<\/h3>\n

  I2C\uff08Inter-Integrated Circuit\uff09\u662f\u4e00\u79cd\u7531Philips\u516c\u53f8\u5f00\u53d1\u7684\u4e24\u7ebf\u5236\u4e32\u884c\u63a5\u53e3\uff0c\u5b83\u53ef\u4ee5\u8fde\u63a5\u5fae\u63a7\u5236\u5668\u3001\u5904\u7406\u5668\u3001\u5b58\u50a8\u5668\u3001\u6a21\u62df\u5668\u548c\u5176\u4ed6\u7535\u5b50\u8bbe\u5907\u3002\u5b83\u4f7f\u7528\u4e24\u6839\u7ebf\u8fde\u63a5\u4e24\u4e2a\u8bbe\u5907\uff1aSDA\uff08\u6570\u636e\uff09\u548cSCL\uff08\u65f6\u949f\uff09\u3002\u5b83\u53ef\u4ee5\u5728\u6bcf\u6b21\u65f6\u949f\u5468\u671f\u5185\u4f20\u8f93\u4e00\u4f4d\u6570\u636e\uff0c\u56e0\u6b64\u53ef\u4ee5\u8fbe\u5230\u9ad8\u901f\u4f20\u8f93\u3002<\/p>\n

  I2C\u7684\u4f18\u52bf<\/h3>\n

  I2C\u7684\u4f18\u52bf\u5728\u4e8e\u5b83\u53ef\u4ee5\u4f7f\u7528\u66f4\u5c11\u7684\u5f15\u811a\u8fde\u63a5\u591a\u4e2a\u8bbe\u5907\uff0c\u4ece\u800c\u8282\u7701\u7a7a\u95f4\u3002\u6b64\u5916\uff0c\u5b83\u7684\u64cd\u4f5c\u7b80\u5355\uff0c\u6613\u4e8e\u5b9e\u73b0\uff0c\u5e76\u4e14\u53ef\u4ee5\u652f\u6301\u591a\u79cd\u6570\u636e\u4f20\u8f93\u6a21\u5f0f\u3002<\/p>\n

SPI\u548cI2C\u7684\u533a\u522b<\/h2>\n

  \u901f\u5ea6<\/h3>\n

  SPI\u7684\u4f20\u8f93\u901f\u5ea6\u8981\u6bd4I2C\u5feb\u5f97\u591a\uff0c\u6700\u9ad8\u53ef\u8fbe20MHz\uff0c\u800cI2C\u7684\u6700\u9ad8\u4f20\u8f93\u901f\u5ea6\u53ea\u6709400KHz\u3002<\/p>\n

  \u8fde\u63a5\u6570\u91cf<\/h3>\n

  SPI\u53ef\u4ee5\u8fde\u63a5\u591a\u4e2a\u8bbe\u5907\uff0c\u4f46\u6bcf\u4e2a\u8bbe\u5907\u90fd\u9700\u8981\u4e00\u4e2a\u5355\u72ec\u7684\u7247\u9009\u5f15\u811a\uff0c\u800cI2C\u53ea\u9700\u8981\u4e24\u6839\u7ebf\uff0c\u53ef\u4ee5\u8fde\u63a5\u591a\u8fbe128\u4e2a\u8bbe\u5907\u3002<\/p>\n

  \u6570\u636e\u4f20\u8f93\u6a21\u5f0f<\/h3>\n

  SPI\u53ea\u80fd\u4f7f\u7528\u5168\u53cc\u5de5\u6a21\u5f0f\uff0c\u800cI2C\u53ef\u4ee5\u652f\u6301\u591a\u79cd\u6570\u636e\u4f20\u8f93\u6a21\u5f0f\uff0c\u5305\u62ec\u5168\u53cc\u5de5\u6a21\u5f0f\u3001\u534a\u53cc\u5de5\u6a21\u5f0f\u548c\u56db\u7ebf\u6a21\u5f0f\u3002<\/p>\n

  \u603b\u7ed3<\/h3>\n

  SPI\u548cI2C\u90fd\u662f\u6309\u4f4d\u4f20\u8f93\uff0c\u8fd9\u662f\u4e24\u79cd\u975e\u5e38\u6d41\u884c\u7684\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\u3002<\/strong>\u5b83\u4eec\u90fd\u662f\u5de5\u4e1a\u6807\u51c6\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u5404\u79cd\u7535\u5b50\u8bbe\u5907\uff0c\u7528\u4e8e\u63a7\u5236\u8bbe\u5907\u548c\u4f20\u8f93\u6570\u636e\u3002SPI\u7684\u4f20\u8f93\u901f\u5ea6\u8981\u6bd4I2C\u5feb\u5f97\u591a\uff0c\u6700\u9ad8\u53ef\u8fbe20MHz\uff0c\u800cI2C\u7684\u6700\u9ad8\u4f20\u8f93\u901f\u5ea6\u53ea\u6709400KHz\u3002\u6b64\u5916\uff0cSPI\u53ef\u4ee5\u4f7f\u7528\u66f4\u5c11\u7684\u5f15\u811a\u8fde\u63a5\u591a\u4e2a\u8bbe\u5907\uff0c\u4ece\u800c\u8282\u7701\u7a7a\u95f4\uff0c\u800cI2C\u5219\u53ef\u4ee5\u652f\u6301\u591a\u79cd\u6570\u636e\u4f20\u8f93\u6a21\u5f0f\u3002\u56e0\u6b64\uff0c\u5728\u9009\u62e9SPI\u6216I2C\u65f6\uff0c\u5e94\u6839\u636e\u5e94\u7528\u7684\u5177\u4f53\u9700\u6c42\u6765\u9009\u62e9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

SPI\u548cI2C\u90fd\u662f\u6309\u4f4d\u4f20\u8f93\uff0c\u8fd9\u662f\u4e24\u79cd\u975e\u5e38\u6d41\u884c\u7684\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\u3002\u5b83\u4eec\u90fd\u662f\u5de5\u4e1a\u6807\u51c6\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u5404\u79cd\u7535\u5b50\u8bbe\u5907\uff0c\u7528\u4e8e\u63a7\u5236\u8bbe\u5907\u548c\u4f20\u8f93\u6570\u636e\u3002\u5728\u672c\u6587\u4e2d\uff0c<\/p>\n","protected":false},"author":1,"featured_media":4132,"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,288],"class_list":["post-42322","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-i2c","tag-spitx"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/42322","targetHints":{"allow":["GET"]}}],"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=42322"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/42322\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=42322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=42322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=42322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}