{"id":41500,"date":"2023-10-02T07:13:04","date_gmt":"2023-10-01T23:13:04","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=41500"},"modified":"2023-10-02T07:13:04","modified_gmt":"2023-10-01T23:13:04","slug":"uhsdzyqb","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/41500.html","title":{"rendered":"UART\u548cSPI\u7684\u4e3b\u8981\u533a\u522b"},"content":{"rendered":"

  UART\uff08Universal Asynchronous Receiver \/ Transmitter\uff09\u548cSPI\uff08Serial Peripheral Interface\uff09\u90fd\u662f\u7528\u4e8e\u5904\u7406\u4e32\u884c\u6570\u636e\u4f20\u8f93\u7684\u63a5\u53e3\uff0c\u5b83\u4eec\u90fd\u5177\u6709\u9ad8\u6548\u7387\uff0c\u4f4e\u6210\u672c\uff0c\u53ef\u9760\u6027\u9ad8\u7b49\u4f18\u70b9\uff0c\u4f46UART\u548cSPI\u4e4b\u95f4\u4e5f\u5b58\u5728\u4e00\u4e9b\u91cd\u8981\u7684\u533a\u522b\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecdUART\u548cSPI\u7684\u4e3b\u8981\u533a\u522b\uff0c\u4ee5\u4fbf\u8bfb\u8005\u66f4\u597d\u5730\u7406\u89e3\u5b83\u4eec\u3002<\/p>\n

UART\u4e0eSPI\u7684\u57fa\u672c\u6982\u5ff5<\/h2>\n

  UART\uff08Universal Asynchronous Receiver \/ Transmitter\uff09\u662f\u4e00\u79cd\u7528\u4e8e\u5904\u7406\u4e32\u884c\u6570\u636e\u4f20\u8f93\u7684\u63a5\u53e3\uff0c\u5b83\u53ef\u4ee5\u5c06\u6570\u636e\u4ece\u4e00\u4e2a\u8bbe\u5907\u4f20\u8f93\u5230\u53e6\u4e00\u4e2a\u8bbe\u5907\uff0c\u6216\u8005\u4ece\u4e00\u4e2a\u8bbe\u5907\u63a5\u6536\u5230\u53e6\u4e00\u4e2a\u8bbe\u5907\u3002UART\u4f7f\u7528\u5f02\u6b65\u4f20\u8f93\uff0c\u8fd9\u610f\u5473\u7740\u5b83\u53ef\u4ee5\u4e0d\u9700\u8981\u4efb\u4f55\u65f6\u949f\u4fe1\u53f7\u5c31\u53ef\u4ee5\u4f20\u8f93\u6570\u636e\u3002\u6b64\u5916\uff0cUART\u8fd8\u53ef\u4ee5\u4f7f\u7528\u8f6f\u4ef6\u6216\u786c\u4ef6\u6765\u5b9e\u73b0\u6d41\u63a7\u5236\uff0c\u4ee5\u786e\u4fdd\u6570\u636e\u7684\u53ef\u9760\u6027\u548c\u5b8c\u6574\u6027\u3002<\/p>\n

  SPI\uff08Serial Peripheral Interface\uff09\u662f\u4e00\u79cd\u7528\u4e8e\u5904\u7406\u4e32\u884c\u6570\u636e\u4f20\u8f93\u7684\u63a5\u53e3\uff0c\u5b83\u53ef\u4ee5\u5c06\u6570\u636e\u4ece\u4e00\u4e2a\u8bbe\u5907\u4f20\u8f93\u5230\u53e6\u4e00\u4e2a\u8bbe\u5907\uff0c\u6216\u8005\u4ece\u4e00\u4e2a\u8bbe\u5907\u63a5\u6536\u5230\u53e6\u4e00\u4e2a\u8bbe\u5907\u3002SPI\u4f7f\u7528\u540c\u6b65\u4f20\u8f93\uff0c\u8fd9\u610f\u5473\u7740\u5b83\u9700\u8981\u4e00\u4e2a\u65f6\u949f\u4fe1\u53f7\u6765\u540c\u6b65\u6570\u636e\u7684\u4f20\u8f93\u3002\u6b64\u5916\uff0cSPI\u8fd8\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u534f\u8bae\u6765\u5b9e\u73b0\u6d41\u63a7\u5236\uff0c\u4ee5\u786e\u4fdd\u6570\u636e\u7684\u53ef\u9760\u6027\u548c\u5b8c\u6574\u6027\u3002<\/p>\n

UART\u548cSPI\u7684\u4e3b\u8981\u533a\u522b<\/h2>\n

  1.\u4f20\u8f93\u6a21\u5f0f<\/h3>\n

  UART\u4f7f\u7528\u5f02\u6b65\u4f20\u8f93\uff0c\u800cSPI\u4f7f\u7528\u540c\u6b65\u4f20\u8f93\u3002\u5f02\u6b65\u4f20\u8f93\u4e0d\u9700\u8981\u65f6\u949f\u4fe1\u53f7\uff0c\u800c\u540c\u6b65\u4f20\u8f93\u9700\u8981\u65f6\u949f\u4fe1\u53f7\u6765\u540c\u6b65\u6570\u636e\u7684\u4f20\u8f93\u3002<\/p>\n

  2.\u4f20\u8f93\u901f\u5ea6<\/h3>\n

  UART\u7684\u4f20\u8f93\u901f\u5ea6\u6bd4SPI\u7684\u4f20\u8f93\u901f\u5ea6\u8981\u6162\uff0c\u56e0\u4e3aUART\u4f7f\u7528\u7684\u662f\u5f02\u6b65\u4f20\u8f93\uff0c\u800cSPI\u4f7f\u7528\u7684\u662f\u540c\u6b65\u4f20\u8f93\u3002<\/p>\n

  3.\u4f20\u8f93\u8ddd\u79bb<\/h3>\n

  UART\u7684\u4f20\u8f93\u8ddd\u79bb\u6bd4SPI\u7684\u4f20\u8f93\u8ddd\u79bb\u8981\u957f\uff0c\u56e0\u4e3aUART\u4f7f\u7528\u7684\u662f\u5f02\u6b65\u4f20\u8f93\uff0c\u800cSPI\u4f7f\u7528\u7684\u662f\u540c\u6b65\u4f20\u8f93\u3002<\/p>\n

  4.\u4f20\u8f93\u6570\u636e\u5bb9\u91cf<\/h3>\n

  UART\u7684\u4f20\u8f93\u6570\u636e\u5bb9\u91cf\u6bd4SPI\u7684\u4f20\u8f93\u6570\u636e\u5bb9\u91cf\u8981\u5c0f\uff0c\u56e0\u4e3aUART\u4f7f\u7528\u7684\u662f\u5f02\u6b65\u4f20\u8f93\uff0c\u800cSPI\u4f7f\u7528\u7684\u662f\u540c\u6b65\u4f20\u8f93\u3002<\/p>\n

  5.\u6d41\u63a7\u5236<\/h3>\n

  UART\u53ef\u4ee5\u4f7f\u7528\u8f6f\u4ef6\u6216\u786c\u4ef6\u6765\u5b9e\u73b0\u6d41\u63a7\u5236\uff0c\u800cSPI\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u534f\u8bae\u6765\u5b9e\u73b0\u6d41\u63a7\u5236\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  UART\u548cSPI\u90fd\u662f\u7528\u4e8e\u5904\u7406\u4e32\u884c\u6570\u636e\u4f20\u8f93\u7684\u63a5\u53e3\uff0c\u5b83\u4eec\u90fd\u5177\u6709\u9ad8\u6548\u7387\uff0c\u4f4e\u6210\u672c\uff0c\u53ef\u9760\u6027\u9ad8\u7b49\u4f18\u70b9\uff0c\u4f46UART\u548cSPI\u4e4b\u95f4\u4e5f\u5b58\u5728\u4e00\u4e9b\u91cd\u8981\u7684\u533a\u522b\u3002<\/strong>UART\u4f7f\u7528\u5f02\u6b65\u4f20\u8f93\uff0c\u800cSPI\u4f7f\u7528\u540c\u6b65\u4f20\u8f93\uff1bUART\u7684\u4f20\u8f93\u901f\u5ea6\u6bd4SPI\u7684\u4f20\u8f93\u901f\u5ea6\u8981\u6162\uff0cUART\u7684\u4f20\u8f93\u8ddd\u79bb\u6bd4SPI\u7684\u4f20\u8f93\u8ddd\u79bb\u8981\u957f\uff0cUART\u7684\u4f20\u8f93\u6570\u636e\u5bb9\u91cf\u6bd4SPI\u7684\u4f20\u8f93\u6570\u636e\u5bb9\u91cf\u8981\u5c0f\uff1bUART\u53ef\u4ee5\u4f7f\u7528\u8f6f\u4ef6\u6216\u786c\u4ef6\u6765\u5b9e\u73b0\u6d41\u63a7\u5236\uff0c\u800cSPI\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u534f\u8bae\u6765\u5b9e\u73b0\u6d41\u63a7\u5236\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

UART\uff08UniversalAsynchronousReceiver\/Transmitter\uff09\u548cSPI\uff08SerialPeripheralInterface\uff09\u90fd<\/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":[145],"class_list":["post-41500","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-uart"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/41500","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=41500"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/41500\/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=41500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=41500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=41500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}