{"id":44071,"date":"2023-09-27T09:27:39","date_gmt":"2023-09-27T01:27:39","guid":{"rendered":"\/\/www.viralrail.com\/?p=44071"},"modified":"2023-11-25T00:14:29","modified_gmt":"2023-11-24T16:14:29","slug":"ihsdqb-2","status":"publish","type":"post","link":"\/\/www.viralrail.com\/blog\/44071.html","title":{"rendered":"I2C\u548cSPI\u7684\u533a\u522b"},"content":{"rendered":"
I2C\u548cSPI\u662f\u4e24\u79cd\u5e7f\u6cdb\u5e94\u7528\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u5b83\u4eec\u90fd\u53ef\u4ee5\u7528\u4e8e\u8fde\u63a5\u591a\u4e2a\u7cfb\u7edf\u7ec4\u4ef6\uff0c\u4ee5\u5b9e\u73b0\u6570\u636e\u4f20\u8f93\u3002\u5b83\u4eec\u4e4b\u95f4\u5b58\u5728\u4e00\u4e9b\u5173\u952e\u7684\u4e0d\u540c\uff0c\u8fd9\u4e9b\u4e0d\u540c\u53ef\u80fd\u4f1a\u5f71\u54cd\u7cfb\u7edf\u8bbe\u8ba1\u548c\u6027\u80fd\u3002\u672c\u6587\u5c06\u6df1\u5165\u63a2\u8ba8I2C\u548cSPI\u4e4b\u95f4\u7684\u533a\u522b\uff0c\u4ee5\u5e2e\u52a9\u60a8\u505a\u51fa\u6b63\u786e\u7684\u9009\u62e9\u3002<\/p>\n
I2C\uff08Inter-Integrated Circuit\uff09\u662f\u4e00\u79cd\u4e32\u884c\u603b\u7ebf\uff0c\u5b83\u53ef\u4ee5\u5728\u4e24\u4e2a\u6216\u591a\u4e2a\u8bbe\u5907\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\u3002\u5b83\u53ef\u4ee5\u7528\u4e8e\u8fde\u63a5\u591a\u4e2a\u7cfb\u7edf\u7ec4\u4ef6\uff0c\u5982\u5904\u7406\u5668\u3001\u5185\u5b58\u3001ADC\u3001DAC\u7b49\uff0c\u4ee5\u5b9e\u73b0\u4fe1\u53f7\u5904\u7406\u3001\u901a\u4fe1\u548c\u6570\u636e\u4f20\u8f93\u3002I2C\u7684\u6700\u5927\u4f18\u70b9\u662f\u5b83\u5177\u6709\u4f4e\u6210\u672c\u3001\u4f4e\u590d\u6742\u6027\u548c\u4f4e\u7535\u538b\u7279\u6027\uff0c\u53ef\u4ee5\u5728\u6781\u4f4e\u7684\u529f\u8017\u4e0b\u5b9e\u73b0\u9ad8\u901f\u6570\u636e\u4f20\u8f93\u3002<\/p>\n
SPI\uff08Serial Peripheral Interface\uff09\u662f\u4e00\u79cd\u5168\u53cc\u5de5\u7684\u4e32\u884c\u63a5\u53e3\uff0c\u5b83\u53ef\u4ee5\u7528\u4e8e\u8fde\u63a5\u591a\u4e2a\u5916\u8bbe\uff0c\u5982\u5904\u7406\u5668\u3001\u5185\u5b58\u3001ADC\u3001DAC\u7b49\uff0c\u4ee5\u5b9e\u73b0\u4fe1\u53f7\u5904\u7406\u3001\u901a\u4fe1\u548c\u6570\u636e\u4f20\u8f93\u3002SPI\u7684\u6700\u5927\u4f18\u70b9\u662f\u5b83\u5177\u6709\u4f4e\u5ef6\u8fdf\u3001\u9ad8\u901f\u5ea6\u548c\u9ad8\u5e26\u5bbd\u7279\u6027\uff0c\u53ef\u4ee5\u5728\u6781\u4f4e\u7684\u529f\u8017\u4e0b\u5b9e\u73b0\u9ad8\u901f\u6570\u636e\u4f20\u8f93\u3002<\/p>\n
I2C\u4f7f\u7528\u4e24\u6839\u7ebf\uff08SDA\u548cSCL\uff09\u6765\u4f20\u8f93\u6570\u636e\uff0c\u800cSPI\u4f7f\u7528\u56db\u6839\u7ebf\uff08MISO\u3001MOSI\u3001SCK\u548cSS\uff09\u6765\u4f20\u8f93\u6570\u636e\u3002\u7531\u4e8eI2C\u4f7f\u7528\u7684\u7ebf\u6570\u91cf\u5c11\uff0c\u56e0\u6b64\u5176\u786c\u4ef6\u8bbe\u8ba1\u66f4\u4e3a\u7b80\u5355\uff0c\u800cSPI\u7684\u786c\u4ef6\u8bbe\u8ba1\u66f4\u4e3a\u590d\u6742\u3002<\/p>\n
I2C\u7684\u6570\u636e\u4f20\u8f93\u901f\u7387\u8f83\u6162\uff0c\u6700\u9ad8\u53ef\u8fbe3.4 Mbps\uff0c\u800cSPI\u7684\u6570\u636e\u4f20\u8f93\u901f\u7387\u8f83\u5feb\uff0c\u6700\u9ad8\u53ef\u8fbe50 Mbps\u3002<\/p>\n
I2C\u53ef\u4ee5\u4f7f\u75287\u4f4d\u6216\u800510\u4f4d\u5730\u5740\u6765\u5206\u914d\u8bbe\u5907\uff0c\u800cSPI\u53ea\u80fd\u4f7f\u7528\u4e00\u4e2a\u5730\u5740\u6765\u5206\u914d\u8bbe\u5907\u3002<\/p>\n
I2C\u53ef\u4ee5\u5b9e\u73b0\u53cc\u5411\u6570\u636e\u4f20\u8f93\uff0c\u800cSPI\u53ea\u80fd\u5b9e\u73b0\u5355\u5411\u6570\u636e\u4f20\u8f93\u3002<\/p>\n
I2C\u652f\u6301\u591a\u4e3b\u673a\uff0c\u4e5f\u5c31\u662f\u8bf4\uff0c\u53ef\u4ee5\u6709\u591a\u4e2a\u4e3b\u673a\u5728\u540c\u4e00\u4e2a\u603b\u7ebf\u4e0a\u4f20\u8f93\u6570\u636e\uff0c\u800cSPI\u53ea\u652f\u6301\u5355\u4e3b\u673a\u3002<\/p>\n
I2C\u548cSPI\u662f\u4e24\u79cd\u5e7f\u6cdb\u5e94\u7528\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u5b83\u4eec\u4e4b\u95f4\u5b58\u5728\u4e00\u4e9b\u5173\u952e\u7684\u4e0d\u540c\uff0c\u5305\u62ec\u786c\u4ef6\u3001\u6570\u636e\u4f20\u8f93\u901f\u7387\u3001\u5730\u5740\u5206\u914d\u3001\u6570\u636e\u4f20\u8f93\u65b9\u5411\u548c\u591a\u4e3b\u673a\u652f\u6301\u3002<\/strong>I2C\u5177\u6709\u4f4e\u6210\u672c\u3001\u4f4e\u590d\u6742\u6027\u548c\u4f4e\u7535\u538b\u7279\u6027\uff0c\u53ef\u4ee5\u5728\u6781\u4f4e\u7684\u529f\u8017\u4e0b\u5b9e\u73b0\u9ad8\u901f\u6570\u636e\u4f20\u8f93\uff0c\u800cSPI\u5177\u6709\u4f4e\u5ef6\u8fdf\u3001\u9ad8\u901f\u5ea6\u548c\u9ad8\u5e26\u5bbd\u7279\u6027\uff0c\u53ef\u4ee5\u5728\u6781\u4f4e\u7684\u529f\u8017\u4e0b\u5b9e\u73b0\u9ad8\u901f\u6570\u636e\u4f20\u8f93\u3002\u6839\u636e\u60a8\u7684\u5e94\u7528\u9700\u6c42\uff0c\u53ef\u4ee5\u9009\u62e9\u5408\u9002\u7684\u534f\u8bae\u6765\u5b9e\u73b0\u6700\u4f73\u6027\u80fd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" I2C\u548cSPI\u662f\u4e24\u79cd\u5e7f\u6cdb\u5e94\u7528\u7684\u901a\u4fe1\u534f\u8bae\uff0c\u5b83\u4eec\u90fd\u53ef\u4ee5\u7528\u4e8e\u8fde\u63a5\u591a\u4e2a\u7cfb\u7edf\u7ec4\u4ef6\uff0c\u4ee5\u5b9e\u73b0\u6570\u636e\u4f20\u8f93\u3002\u5b83\u4eec\u4e4b\u95f4\u5b58\u5728\u4e00\u4e9b\u5173\u952e\u7684\u4e0d\u540c\uff0c\u8fd9\u4e9b\u4e0d\u540c\u53ef\u80fd\u4f1a\u5f71\u54cd\u7cfb\u7edf\u8bbe\u8ba1\u548c\u6027\u80fd\u3002\u672c\u6587\u5c06\u6df1\u5165\u63a2\u8ba8I2C<\/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-44071","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-i2c","tag-spitx"],"_links":{"self":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/44071"}],"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=44071"}],"version-history":[{"count":0,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/44071\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media?parent=44071"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/categories?post=44071"},{"taxonomy":"post_tag","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/tags?post=44071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}