{"id":44173,"date":"2023-10-03T17:28:34","date_gmt":"2023-10-03T09:28:34","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=44173"},"modified":"2023-10-03T17:28:34","modified_gmt":"2023-10-03T09:28:34","slug":"ckscsyzkskkdsjcsfs","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/44173.html","title":{"rendered":"1210\u4e32\u53e3\u8f93\u51faSPI\uff1a\u4e00\u79cd\u5feb\u901f\u3001\u53ef\u9760\u7684\u6570\u636e\u4f20\u8f93\u65b9\u5f0f"},"content":{"rendered":"

  1210\u4e32\u53e3\u8f93\u51faSPI\uff08Serial Peripheral Interface\uff09\u662f\u4e00\u79cd\u5feb\u901f\u3001\u53ef\u9760\u7684\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\uff0c\u53ef\u4ee5\u5b9e\u73b0\u8ba1\u7b97\u673a\u548c\u5916\u56f4\u8bbe\u5907\u4e4b\u95f4\u7684\u9ad8\u901f\u6570\u636e\u4f20\u8f93\u3002\u5b83\u4f7f\u7528\u56db\u6839\u7ebf\uff08MISO\uff0cMOSI\uff0cSCK\u548cSS\uff09\u8fde\u63a5\u8ba1\u7b97\u673a\u548c\u5916\u56f4\u8bbe\u5907\uff0c\u53ef\u4ee5\u5b9e\u73b0\u9ad8\u901f\u6570\u636e\u4f20\u8f93\uff0c\u5e76\u4e14\u80fd\u591f\u6709\u6548\u5730\u51cf\u5c11\u7535\u78c1\u5e72\u6270\u3002<\/p>\n

1210\u4e32\u53e3\u8f93\u51faSPI\u7684\u5de5\u4f5c\u539f\u7406<\/h2>\n

  1210\u4e32\u53e3\u8f93\u51faSPI\u7684\u5de5\u4f5c\u539f\u7406\u662f\uff0c\u6570\u636e\u4f20\u8f93\u7684\u4e3b\u673a\uff08\u5373\u8ba1\u7b97\u673a\uff09\u5c06\u6570\u636e\u53d1\u9001\u5230\u5916\u56f4\u8bbe\u5907\uff08\u5373SPI\u603b\u7ebf\u4e0a\u7684\u4ece\u673a\uff09\uff0c\u5916\u56f4\u8bbe\u5907\u63a5\u6536\u5230\u6570\u636e\u540e\uff0c\u5c06\u6570\u636e\u53d1\u9001\u56de\u7ed9\u4e3b\u673a\u3002\u6570\u636e\u4f20\u8f93\u7684\u8fc7\u7a0b\u4e2d\uff0c\u4e3b\u673a\u548c\u4ece\u673a\u4e4b\u95f4\u901a\u8fc7\u56db\u6839\u7ebf\uff08MISO\uff0cMOSI\uff0cSCK\u548cSS\uff09\u8fdb\u884c\u6570\u636e\u4f20\u8f93\uff0c\u5e76\u4e14\u4f7f\u7528SPI\u534f\u8bae\u8fdb\u884c\u6570\u636e\u4f20\u8f93\u3002<\/p>\n

  MISO\u548cMOSI<\/h3>\n

  MISO\uff08Master In Slave Out\uff09\u548cMOSI\uff08Master Out Slave In\uff09\u662fSPI\u603b\u7ebf\u4e0a\u7684\u4e24\u6761\u6570\u636e\u7ebf\uff0c\u5b83\u4eec\u5206\u522b\u7528\u4e8e\u4e3b\u673a\u548c\u4ece\u673a\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u3002MISO\u7528\u4e8e\u4ece\u673a\u5411\u4e3b\u673a\u53d1\u9001\u6570\u636e\uff0cMOSI\u7528\u4e8e\u4e3b\u673a\u5411\u4ece\u673a\u53d1\u9001\u6570\u636e\u3002<\/p>\n

  SCK\u548cSS<\/h3>\n

  SCK\uff08Serial Clock\uff09\u548cSS\uff08Slave Select\uff09\u662fSPI\u603b\u7ebf\u4e0a\u7684\u4e24\u6761\u63a7\u5236\u7ebf\uff0c\u5b83\u4eec\u5206\u522b\u7528\u4e8e\u63a7\u5236\u6570\u636e\u4f20\u8f93\u7684\u65f6\u95f4\u548c\u4ece\u673a\u7684\u9009\u62e9\u3002SCK\u7528\u4e8e\u63a7\u5236\u6570\u636e\u4f20\u8f93\u7684\u65f6\u95f4\uff0cSS\u7528\u4e8e\u63a7\u5236\u4ece\u673a\u7684\u9009\u62e9\u3002<\/p>\n

1210\u4e32\u53e3\u8f93\u51faSPI\u7684\u4f18\u52bf<\/h2>\n

  1210\u4e32\u53e3\u8f93\u51faSPI\u5177\u6709\u4ee5\u4e0b\u4f18\u52bf\uff1a<\/p>\n

  \u9ad8\u901f<\/h3>\n

  1210\u4e32\u53e3\u8f93\u51faSPI\u7684\u4f20\u8f93\u901f\u5ea6\u6bd4\u666e\u901a\u4e32\u53e3\u5feb\u5f97\u591a\uff0c\u53ef\u4ee5\u8fbe\u5230\u6bcf\u79d250M\u4f4d\u4ee5\u4e0a\u7684\u901f\u5ea6\uff0c\u53ef\u4ee5\u6ee1\u8db3\u5927\u591a\u6570\u5e94\u7528\u573a\u666f\u7684\u6570\u636e\u4f20\u8f93\u9700\u6c42\u3002<\/p>\n

  \u53ef\u9760<\/h3>\n

  1210\u4e32\u53e3\u8f93\u51faSPI\u91c7\u7528\u4e13\u7528\u7684SPI\u534f\u8bae\uff0c\u80fd\u591f\u6709\u6548\u5730\u51cf\u5c11\u7535\u78c1\u5e72\u6270\uff0c\u63d0\u9ad8\u4f20\u8f93\u7684\u53ef\u9760\u6027\u3002<\/p>\n

  \u7075\u6d3b<\/h3>\n

  1210\u4e32\u53e3\u8f93\u51faSPI\u53ef\u4ee5\u4f7f\u7528\u56db\u6839\u7ebf\uff08MISO\uff0cMOSI\uff0cSCK\u548cSS\uff09\u8fde\u63a5\u8ba1\u7b97\u673a\u548c\u5916\u56f4\u8bbe\u5907\uff0c\u53ef\u4ee5\u5b9e\u73b0\u9ad8\u901f\u6570\u636e\u4f20\u8f93\uff0c\u5e76\u4e14\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u8c03\u6574SPI\u603b\u7ebf\u7684\u901f\u5ea6\u3001\u6570\u636e\u683c\u5f0f\u7b49\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  1210\u4e32\u53e3\u8f93\u51faSPI\u662f\u4e00\u79cd\u5feb\u901f\u3001\u53ef\u9760\u7684\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\uff0c\u5b83\u4f7f\u7528\u56db\u6839\u7ebf\uff08MISO\uff0cMOSI\uff0cSCK\u548cSS\uff09\u8fde\u63a5\u8ba1\u7b97\u673a\u548c\u5916\u56f4\u8bbe\u5907\uff0c\u53ef\u4ee5\u5b9e\u73b0\u9ad8\u901f\u6570\u636e\u4f20\u8f93\uff0c\u5e76\u4e14\u80fd\u591f\u6709\u6548\u5730\u51cf\u5c11\u7535\u78c1\u5e72\u6270\u3002<\/strong>\u5b83\u5177\u6709\u9ad8\u901f\u3001\u53ef\u9760\u3001\u7075\u6d3b\u7b49\u4f18\u52bf\uff0c\u53ef\u4ee5\u6ee1\u8db3\u5927\u591a\u6570\u5e94\u7528\u573a\u666f\u7684\u6570\u636e\u4f20\u8f93\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

1210\u4e32\u53e3\u8f93\u51faSPI\uff08SerialPeripheralInterface\uff09\u662f\u4e00\u79cd\u5feb\u901f\u3001\u53ef\u9760\u7684\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\uff0c\u53ef\u4ee5\u5b9e\u73b0\u8ba1\u7b97\u673a\u548c\u5916\u56f4\u8bbe\u5907\u4e4b\u95f4\u7684\u9ad8\u901f\u6570\u636e\u4f20\u8f93\u3002\u5b83\u4f7f\u7528\u56db\u6839\u7ebf\uff08<\/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":[69],"class_list":["post-44173","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-cktx"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/44173","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=44173"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/44173\/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=44173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=44173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=44173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}