{"id":66021,"date":"2023-11-25T00:36:03","date_gmt":"2023-11-24T16:36:03","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=66021"},"modified":"2023-11-25T00:36:17","modified_gmt":"2023-11-24T16:36:17","slug":"ijkhsjkqb","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/66021.html","title":{"rendered":"I2C\u63a5\u53e3\u548cSPI\u63a5\u53e3\u533a\u522b"},"content":{"rendered":"\n
\u3000\u3000\u5728\u73b0\u4ee3\u7535\u5b50\u8bbe\u5907\u4e2d\uff0cI2C(Inter-Integrated Circuit)<\/strong>\u548cSPI(Serial Peripheral Interface)<\/strong>\u662f\u4e24\u79cd\u5e38\u89c1\u7684\u4e32\u884c\u901a\u4fe1\u63a5\u53e3\u3002\u5b83\u4eec\u5728\u4e0d\u540c\u7684\u573a\u666f\u4e2d\u88ab\u5e7f\u6cdb\u5e94\u7528\uff0c\u4f46\u53c8\u6709\u4e00\u4e9b\u660e\u663e\u7684\u533a\u522b\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecdI2C\u63a5\u53e3\u548cSPI\u63a5\u53e3\u7684\u7279\u70b9\u3001\u533a\u522b\u4ee5\u53ca\u5404\u81ea\u9002\u7528\u7684\u5e94\u7528\u573a\u666f\u3002<\/p>\n\n\n\n \u3000\u3000I2C\u548cSPI\u90fd\u662f\u4e32\u884c\u901a\u4fe1\u63a5\u53e3\uff0c\u7528\u4e8e\u5728\u591a\u4e2a\u8bbe\u5907\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\u3002\u5b83\u4eec\u5728\u786c\u4ef6\u548c\u8f6f\u4ef6\u5c42\u9762\u4e0a\u90fd\u6709\u4e00\u4e9b\u4e0d\u540c\u4e4b\u5904\u3002<\/p>\n\n\n\n \u3000\u3000I2C\u63a5\u53e3\u7531\u98de\u5229\u6d66\u516c\u53f8(\u73b0\u5728\u7684\u6069\u667a\u6d66\u534a\u5bfc\u4f53)\u4e8e1980\u5e74\u4ee3\u521d\u5f00\u53d1\uff0c\u7528\u4e8e\u5b9e\u73b0\u82af\u7247\u4e4b\u95f4\u7684\u901a\u4fe1\u3002\u5b83\u91c7\u7528\u4e24\u6839\u7ebf(\u4e00\u6839\u65f6\u949f\u7ebf\u548c\u4e00\u6839\u6570\u636e\u7ebf)\u7684\u7ed3\u6784\uff0c\u53ef\u4ee5\u8fde\u63a5\u591a\u8fbe128\u4e2a\u8bbe\u5907\u3002I2C\u63a5\u53e3\u901a\u5e38\u7528\u4e8e\u77ed\u8ddd\u79bb\u901a\u4fe1\uff0c\u901f\u7387\u8f83\u4f4e\uff0c\u5e76\u4e14\u6613\u4e8e\u5b9e\u73b0\u3002<\/p>\n\n\n\n \u3000\u3000SPI\u63a5\u53e3\u7531Motorola\u516c\u53f8\u57281980\u5e74\u4ee3\u5f00\u53d1\uff0c\u7528\u4e8e\u5728\u82af\u7247\u4e4b\u95f4\u8fdb\u884c\u5168\u53cc\u5de5\u901a\u4fe1\u3002\u5b83\u4f7f\u7528\u56db\u6839\u7ebf(\u4e00\u6839\u65f6\u949f\u7ebf\u3001\u4e00\u6839\u4e3b\u8bbe\u5907\u8f93\u51fa\u7ebf\u3001\u4e00\u6839\u4e3b\u8bbe\u5907\u8f93\u5165\u7ebf\u548c\u4e00\u6839\u4ece\u8bbe\u5907\u9009\u62e9\u7ebf)\u7684\u7ed3\u6784\u3002SPI\u63a5\u53e3\u901a\u5e38\u7528\u4e8e\u9ad8\u901f\u901a\u4fe1\uff0c\u9002\u7528\u4e8e\u8fde\u63a5\u5c11\u91cf\u8bbe\u5907\u3002<\/p>\n\n\n\n \u3000\u3000I2C\u63a5\u53e3\u548cSPI\u63a5\u53e3\u5728\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\u5b58\u5728\u660e\u663e\u7684\u533a\u522b\uff1a<\/p>\n\n\n\n \u3000\u3000I2C\u63a5\u53e3\u4ec5\u4f7f\u7528\u4e24\u6839\u7ebf\u8fdb\u884c\u901a\u4fe1\uff0c\u53ef\u4ee5\u8fde\u63a5\u591a\u8fbe128\u4e2a\u8bbe\u5907\u3002\u800cSPI\u63a5\u53e3\u4f7f\u7528\u56db\u6839\u7ebf\u8fdb\u884c\u901a\u4fe1\uff0c\u4e00\u822c\u8fde\u63a5\u5c11\u91cf\u8bbe\u5907\u3002<\/p>\n\n\n\n \u3000\u3000I2C\u63a5\u53e3\u7684\u4f20\u8f93\u901f\u7387\u4e00\u822c\u8f83\u4f4e\uff0c\u901a\u5e38\u5728100 kHz\u5230400 kHz\u4e4b\u95f4\u3002\u800cSPI\u63a5\u53e3\u7684\u4f20\u8f93\u901f\u7387\u53ef\u4ee5\u8fbe\u5230\u51e0\u767ekHz\u5230\u51e0\u5341MHz\uff0c\u751a\u81f3\u66f4\u9ad8\u3002<\/p>\n\n\n\n \u3000\u3000I2C\u63a5\u53e3\u91c7\u7528\u4e3b\u4ece\u7ed3\u6784\uff0c\u5176\u4e2d\u4e00\u4e2a\u8bbe\u5907\u5145\u5f53\u4e3b\u8bbe\u5907\uff0c\u8d1f\u8d23\u53d1\u8d77\u548c\u63a7\u5236\u901a\u4fe1\u8fc7\u7a0b\u3002\u800cSPI\u63a5\u53e3\u6ca1\u6709\u660e\u786e\u7684\u4e3b\u4ece\u5173\u7cfb\uff0c\u6bcf\u4e2a\u8bbe\u5907\u5728\u901a\u4fe1\u4e2d\u90fd\u53ef\u4ee5\u53d1\u9001\u548c\u63a5\u6536\u6570\u636e\u3002<\/p>\n\n\n\n \u3000\u3000I2C\u63a5\u53e3\u4f7f\u7528\u65f6\u949f\u540c\u6b65\u673a\u5236\uff0c\u65f6\u949f\u4fe1\u53f7\u7531\u4e3b\u8bbe\u5907\u63d0\u4f9b\u3002\u800cSPI\u63a5\u53e3\u6ca1\u6709\u660e\u786e\u7684\u65f6\u949f\u540c\u6b65\u673a\u5236\uff0c\u6bcf\u4e2a\u8bbe\u5907\u90fd\u6709\u81ea\u5df1\u7684\u65f6\u949f\u4fe1\u53f7\u3002<\/p>\n\n\n\n \u3000\u3000\u76f8\u5bf9\u800c\u8a00\uff0cI2C\u63a5\u53e3\u7684\u786c\u4ef6\u590d\u6742\u5ea6\u8f83\u4f4e\uff0c\u56e0\u4e3a\u5b83\u53ea\u9700\u8981\u4e24\u6839\u7ebf\u3002\u800cSPI\u63a5\u53e3\u7684\u786c\u4ef6\u590d\u6742\u5ea6\u8f83\u9ad8\uff0c\u56e0\u4e3a\u5b83\u9700\u8981\u56db\u6839\u7ebf\u3002<\/p>\n\n\n\n \u3000\u3000\u6839\u636eI2C\u63a5\u53e3\u548cSPI\u63a5\u53e3\u7684\u7279\u70b9\u548c\u533a\u522b\uff0c\u5b83\u4eec\u5728\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u4e2d\u6709\u5404\u81ea\u7684\u4f18\u52bf\u548c\u9002\u7528\u6027\u3002<\/p>\n\n\n\n \u3000\u3000\u7531\u4e8eI2C\u63a5\u53e3\u8fde\u63a5\u7684\u8bbe\u5907\u6570\u91cf\u8f83\u591a\uff0c\u5e76\u4e14\u4f20\u8f93\u901f\u7387\u8f83\u4f4e\uff0c\u9002\u7528\u4e8e\u4ee5\u4e0b\u573a\u666f\uff1a<\/p>\n\n\n\n \u3000\u3000\u7531\u4e8eSPI\u63a5\u53e3\u4f20\u8f93\u901f\u7387\u8f83\u9ad8\uff0c\u5e76\u4e14\u9002\u7528\u4e8e\u8fde\u63a5\u5c11\u91cf\u8bbe\u5907\uff0c\u9002\u7528\u4e8e\u4ee5\u4e0b\u573a\u666f\uff1a<\/p>\n\n\n\n \u3000\u3000I2C\u63a5\u53e3\u548cSPI\u63a5\u53e3\u662f\u4e24\u79cd\u5e38\u89c1\u7684\u4e32\u884c\u901a\u4fe1\u63a5\u53e3\uff0c\u5b83\u4eec\u5728\u786c\u4ef6\u548c\u8f6f\u4ef6\u5c42\u9762\u4e0a\u90fd\u6709\u4e00\u4e9b\u4e0d\u540c\u4e4b\u5904\u3002I2C\u63a5\u53e3\u9002\u7528\u4e8e\u8fde\u63a5\u591a\u4e2a\u8bbe\u5907\uff0c\u4f20\u8f93\u901f\u7387\u8f83\u4f4e;\u800cSPI\u63a5\u53e3\u9002\u7528\u4e8e\u8fde\u63a5\u5c11\u91cf\u8bbe\u5907\uff0c\u4f20\u8f93\u901f\u7387\u8f83\u9ad8\u3002<\/strong>\u6839\u636e\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\u548c\u9700\u6c42\uff0c\u9009\u62e9\u5408\u9002\u7684\u63a5\u53e3\u53ef\u4ee5\u63d0\u9ad8\u7cfb\u7edf\u7684\u6027\u80fd\u548c\u53ef\u9760\u6027\u3002<\/p>\n\n\n\n \u3000\u3000\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u8bfb\u8005\u53ef\u4ee5\u66f4\u597d\u5730\u7406\u89e3I2C\u63a5\u53e3\u548cSPI\u63a5\u53e3\u7684\u533a\u522b\uff0c\u4ee5\u53ca\u5b83\u4eec\u5728\u4e0d\u540c\u573a\u666f\u4e2d\u7684\u5e94\u7528\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u9002\u5408\u7684\u63a5\u53e3\uff0c\u53ef\u4ee5\u63d0\u9ad8\u7cfb\u7edf\u7684\u6548\u7387\u548c\u6027\u80fd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" I2C\u63a5\u53e3\u548cSPI\u63a5\u53e3\u662f\u4e24\u79cd\u5e38\u89c1\u7684\u4e32\u884c\u901a\u4fe1\u63a5\u53e3\uff0c\u5b83\u4eec\u5728\u786c\u4ef6\u548c\u8f6f\u4ef6\u5c42\u9762\u4e0a\u90fd\u6709\u4e00\u4e9b\u4e0d\u540c\u4e4b\u5904\u3002I2C\u63a5\u53e3\u9002\u7528\u4e8e\u8fde\u63a5\u591a\u4e2a\u8bbe\u5907\uff0c\u4f20\u8f93\u901f\u7387\u8f83\u4f4e;\u800cSPI\u63a5\u53e3\u9002\u7528\u4e8e\u8fde\u63a5\u5c11\u91cf\u8bbe\u5907<\/p>\n","protected":false},"author":1,"featured_media":26592,"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,301],"class_list":["post-66021","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-i2c","tag-spiinterface"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/66021"}],"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=66021"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/66021\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/26592"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=66021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=66021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=66021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\u3000\u3000\u4e00\u3001\u6982\u8ff0<\/h2>\n\n\n\n
\u3000\u30001. I2C\u63a5\u53e3<\/h3>\n\n\n\n
\u3000\u30002. SPI\u63a5\u53e3<\/h3>\n\n\n\n
\u3000\u3000\u4e8c\u3001\u533a\u522b\u5206\u6790<\/h2>\n\n\n\n
\u3000\u30001. \u7ebf\u6570\u548c\u8fde\u63a5\u8bbe\u5907\u6570\u91cf<\/h3>\n\n\n\n
\u3000\u30002. \u4f20\u8f93\u901f\u7387<\/h3>\n\n\n\n
\u3000\u30003. \u901a\u4fe1\u65b9\u5f0f<\/h3>\n\n\n\n
\u3000\u30004. \u65f6\u949f\u540c\u6b65<\/h3>\n\n\n\n
\u3000\u30005. \u786c\u4ef6\u590d\u6742\u5ea6<\/h3>\n\n\n\n
\u3000\u3000\u4e09\u3001\u5e94\u7528\u573a\u666f\u5206\u6790<\/h2>\n\n\n\n
\u3000\u30001. I2C\u63a5\u53e3\u7684\u5e94\u7528\u573a\u666f<\/h3>\n\n\n\n
\n
\u3000\u30002. SPI\u63a5\u53e3\u7684\u5e94\u7528\u573a\u666f<\/h3>\n\n\n\n
\n
\u3000\u3000\u56db\u3001\u603b\u7ed3<\/h2>\n\n\n\n