{"id":77015,"date":"2024-01-06T08:50:01","date_gmt":"2024-01-06T00:50:01","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=77015"},"modified":"2024-01-06T08:50:01","modified_gmt":"2024-01-06T00:50:01","slug":"sdzdcssl","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/77015.html","title":{"rendered":"SPI\u7684\u6700\u5927\u4f20\u8f93\u901f\u7387"},"content":{"rendered":"

  \u4eca\u5929\u6211\u4eec\u5c06\u4ecb\u7ecdSPI\u7684\u6700\u5927\u4f20\u8f93\u901f\u7387\uff0c\u5e2e\u52a9\u8bfb\u8005\u4e86\u89e3SPI\u534f\u8bae\u7684\u6027\u80fd\u7279\u70b9\u4ee5\u53ca\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u7684\u76f8\u5173\u8003\u91cf\u3002<\/p>\n

SPI\u534f\u8bae\u7b80\u4ecb<\/h2>\n

  SPI\uff08Serial Peripheral Interface\uff09\u662f\u4e00\u79cd\u540c\u6b65\u4e32\u884c\u6570\u636e\u63a5\u53e3\u6807\u51c6\uff0c\u7528\u4e8e\u5728\u5d4c\u5165\u5f0f<\/a>\u7cfb\u7edf\u4e2d\u5b9e\u73b0\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u4fe1\u3002SPI\u63a5\u53e3<\/a>\u7531\u56db\u6839\u7ebf\u6784\u6210\uff1a\u65f6\u949f\u7ebf\uff08SCLK\uff09\u3001\u4e3b\u8bbe\u5907\u8f93\u51fa\u4ece\u8bbe\u5907\u8f93\u5165\u7ebf\uff08MOSI\uff09\u3001\u4e3b\u8bbe\u5907\u8f93\u5165\u4ece\u8bbe\u5907\u8f93\u51fa\u7ebf\uff08MISO\uff09\u548c\u7247\u9009\u7ebf\uff08SS\uff09\u3002<\/p>\n

  SPI\u7684\u5de5\u4f5c\u539f\u7406<\/h3>\n

  SPI\u901a\u8fc7\u4e3b\u4ece\u65b9\u5f0f\u5de5\u4f5c\uff0c\u4e3b\u8bbe\u5907\u4ea7\u751f\u65f6\u949f\u4fe1\u53f7\uff0c\u5e76\u901a\u8fc7MOSI\u7ebf\u53d1\u9001\u6570\u636e\u81f3\u4ece\u8bbe\u5907\uff0c\u540c\u65f6\u4ece\u8bbe\u5907\u901a\u8fc7MISO\u7ebf\u5c06\u6570\u636e\u4f20\u56de\u4e3b\u8bbe\u5907\u3002\u7247\u9009\u7ebf\u7528\u4e8e\u9009\u62e9\u901a\u8baf\u4e2d\u7684\u4ece\u8bbe\u5907\u3002SPI\u534f\u8bae\u7684\u5de5\u4f5c\u65b9\u5f0f\u7b80\u5355\u9ad8\u6548\uff0c\u9002\u7528\u4e8e\u9700\u8981\u9ad8\u901f\u6570\u636e\u4f20\u8f93\u7684\u573a\u666f\u3002<\/p>\n

SPI\u7684\u6700\u5927\u4f20\u8f93\u901f\u7387<\/h2>\n

  SPI\u7684\u6700\u5927\u4f20\u8f93\u901f\u7387<\/a>\u53d6\u51b3\u4e8e\u65f6\u949f\u9891\u7387\u4ee5\u53ca\u6570\u636e\u4f20\u8f93\u7684\u683c\u5f0f\u548c\u534f\u8bae\u3002\u6839\u636eSPI\u7684\u5de5\u4f5c\u7279\u70b9\uff0c\u53ef\u4ee5\u901a\u8fc7\u8c03\u8282\u65f6\u949f\u9891\u7387\u6765\u5b9e\u73b0\u4e0d\u540c\u7684\u4f20\u8f93\u901f\u7387\u3002<\/p>\n

  \u8ba1\u7b97\u6700\u5927\u4f20\u8f93\u901f\u7387<\/h3>\n

  \u5728SPI\u901a\u8baf\u4e2d\uff0c\u6700\u5927\u4f20\u8f93\u901f\u7387\u53ef\u901a\u8fc7\u4ee5\u4e0b\u516c\u5f0f\u8ba1\u7b97\u5f97\u5230\uff1a<\/p>\n

  \u6700\u5927\u4f20\u8f93\u901f\u7387 = \u65f6\u949f\u9891\u7387 \/ \u4f20\u8f93\u7684\u4f4d\u6570<\/p>\n

  \u8fd9\u610f\u5473\u7740\uff0c\u901a\u8fc7\u63d0\u9ad8\u65f6\u949f\u9891\u7387\u6216\u51cf\u5c11\u4f20\u8f93\u7684\u4f4d\u6570\uff0c\u53ef\u4ee5\u5b9e\u73b0\u66f4\u9ad8\u7684\u6700\u5927\u4f20\u8f93\u901f\u7387\u3002<\/p>\n

  \u5b9e\u9645\u5e94\u7528\u4e2d\u7684\u8003\u91cf<\/h3>\n

  \u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0cSPI\u7684\u6700\u5927\u4f20\u8f93\u901f\u7387\u9700\u8981\u8003\u8651\u786c\u4ef6\u7684\u652f\u6301\u80fd\u529b\u3001\u7535\u6c14\u7279\u6027\u4ee5\u53ca\u4fe1\u53f7\u5b8c\u6574\u6027\u7b49\u56e0\u7d20\u3002\u6b64\u5916\uff0c\u5916\u8bbe\u8bbe\u5907\u7684\u89c4\u683c\u548c\u8981\u6c42\u4e5f\u4f1a\u5f71\u54cd\u6700\u5927\u4f20\u8f93\u901f\u7387\u7684\u9009\u62e9\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  \u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u6211\u4eec\u4e86\u89e3\u4e86SPI\u534f\u8bae\u7684\u5de5\u4f5c\u539f\u7406\u4ee5\u53ca\u5982\u4f55\u8ba1\u7b97\u548c\u8003\u8651\u5176\u6700\u5927\u4f20\u8f93\u901f\u7387\u3002<\/strong>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u4ed4\u7ec6\u5206\u6790\u8bbe\u5907\u7684\u8981\u6c42\u548c\u7279\u6027\uff0c\u9009\u62e9\u5408\u9002\u7684\u65f6\u949f\u9891\u7387\u548c\u4f20\u8f93\u4f4d\u6570\uff0c\u53ef\u4ee5\u5145\u5206\u53d1\u6325SPI\u7684\u901a\u8baf\u6027\u80fd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u672c\u6587\u5c06\u4ecb\u7ecdSPI\u7684\u6700\u5927\u4f20\u8f93\u901f\u7387\uff0c\u5e2e\u52a9\u8bfb\u8005\u4e86\u89e3SPI\u534f\u8bae\u7684\u6027\u80fd\u7279\u70b9\u4ee5\u53ca\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u7684\u76f8\u5173\u8003\u91cf\u3002SPI\u534f\u8bae\u7b80\u4ecbSPI\uff08SerialPeripheralInterf<\/p>\n","protected":false},"author":1,"featured_media":64183,"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":[275],"class_list":["post-77015","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-cssl"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/77015","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=77015"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/77015\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/64183"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=77015"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=77015"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=77015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}