{"id":42390,"date":"2023-09-29T21:31:43","date_gmt":"2023-09-29T13:31:43","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=42390"},"modified":"2023-09-29T21:31:43","modified_gmt":"2023-09-29T13:31:43","slug":"uhstxxydbj","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/42390.html","title":{"rendered":"UART\u548cSPI\uff1a\u901a\u4fe1\u534f\u8bae\u7684\u6bd4\u8f83"},"content":{"rendered":"

  UART\u548cSPI\u662f\u4e24\u79cd\u7ecf\u5e38\u7528\u4e8e\u8ba1\u7b97\u673a\u548c\u7cfb\u7edf\u4e4b\u95f4\u7684\u901a\u4fe1\u534f\u8bae\u3002\u5b83\u4eec\u90fd\u662f\u4e32\u884c\u901a\u4fe1\u534f\u8bae\uff0c\u7528\u4e8e\u5728\u4e24\u4e2a\u8bbe\u5907\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\u3002UART\u548cSPI\u90fd\u6709\u5176\u4f18\u70b9\u548c\u7f3a\u70b9\uff0c\u56e0\u6b64\u5728\u9009\u62e9\u4f7f\u7528\u54ea\u79cd\u534f\u8bae\u65f6\uff0c\u5e94\u8be5\u6839\u636e\u8bbe\u5907\u7684\u8981\u6c42\u6765\u51b3\u5b9a\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecdUART\u548cSPI\u7684\u4e0d\u540c\u4e4b\u5904\uff0c\u4ee5\u5e2e\u52a9\u8bfb\u8005\u66f4\u597d\u5730\u7406\u89e3\u5b83\u4eec\u3002<\/p>\n

UART<\/h2>\n

  UART\uff08Universal Asynchronous Receiver\/Transmitter\uff09\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u4e32\u884c\u901a\u4fe1\u534f\u8bae\uff0c\u5b83\u901a\u5e38\u7528\u4e8e\u5728\u8ba1\u7b97\u673a\u548c\u5176\u4ed6\u8bbe\u5907\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\u3002UART\u7684\u4f18\u70b9\u662f\u5b83\u53ef\u4ee5\u4f7f\u7528\u7b80\u5355\u7684\u786c\u4ef6\u548c\u8f6f\u4ef6\u6765\u5b9e\u73b0\uff0c\u56e0\u6b64\u5b83\u7684\u6210\u672c\u4f4e\u5ec9\u3002\u5b83\u8fd8\u53ef\u4ee5\u901a\u8fc7\u4f20\u8f93\u7ebf\u8fdb\u884c\u957f\u8ddd\u79bb\u901a\u4fe1\uff0c\u5e76\u4e14\u53ef\u4ee5\u4f7f\u7528\u73b0\u6709\u7684\u786c\u4ef6\u548c\u8f6f\u4ef6\u6765\u5b9e\u73b0\u3002\u4f46\u662f\uff0cUART\u7684\u7f3a\u70b9\u662f\u5b83\u7684\u4f20\u8f93\u901f\u7387\u8f83\u6162\uff0c\u56e0\u6b64\u5b83\u4e0d\u9002\u5408\u5927\u91cf\u6570\u636e\u7684\u4f20\u8f93\u3002<\/p>\n

  UART\u7684\u786c\u4ef6\u8981\u6c42<\/h3>\n

  UART\u4f7f\u7528\u4e24\u79cd\u7c7b\u578b\u7684\u786c\u4ef6\uff1a\u53d1\u9001\u5668\u548c\u63a5\u6536\u5668\u3002\u53d1\u9001\u5668\u7528\u4e8e\u5c06\u6570\u636e\u53d1\u9001\u5230\u63a5\u6536\u5668\uff0c\u800c\u63a5\u6536\u5668\u5219\u7528\u4e8e\u63a5\u6536\u6570\u636e\u3002\u53d1\u9001\u5668\u548c\u63a5\u6536\u5668\u901a\u5e38\u7531\u4e00\u4e2a\u4e13\u7528\u7684UART\u82af\u7247\u63a7\u5236\uff0c\u8be5\u82af\u7247\u5177\u6709\u4e00\u4e2a\u6216\u591a\u4e2aUART\u63a5\u53e3\uff0c\u7528\u4e8e\u8fde\u63a5\u53d1\u9001\u5668\u548c\u63a5\u6536\u5668\u3002<\/p>\n

  UART\u7684\u8f6f\u4ef6\u8981\u6c42<\/h3>\n

  UART\u7684\u8f6f\u4ef6\u8981\u6c42\u76f8\u5bf9\u7b80\u5355\uff0c\u4e3b\u8981\u662f\u5b9e\u73b0UART\u7684\u9a71\u52a8\u7a0b\u5e8f\u3002UART\u7684\u9a71\u52a8\u7a0b\u5e8f\u8d1f\u8d23\u5904\u7406UART\u82af\u7247\u7684\u6570\u636e\u4f20\u8f93\uff0c\u4ee5\u53ca\u5c06\u6570\u636e\u4ece\u53d1\u9001\u5668\u53d1\u9001\u5230\u63a5\u6536\u5668\u3002<\/p>\n

SPI<\/h2>\n

  SPI\uff08Serial Peripheral Interface\uff09\u662f\u4e00\u79cd\u9ad8\u901f\u4e32\u884c\u901a\u4fe1\u534f\u8bae\uff0c\u5b83\u7528\u4e8e\u5728\u4e24\u4e2a\u8bbe\u5907\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\u3002SPI\u7684\u4f18\u70b9\u662f\u5b83\u53ef\u4ee5\u4ee5\u9ad8\u901f\u4f20\u8f93\u6570\u636e\uff0c\u56e0\u6b64\u5b83\u9002\u7528\u4e8e\u5927\u91cf\u6570\u636e\u7684\u4f20\u8f93\u3002\u6b64\u5916\uff0cSPI\u53ef\u4ee5\u4f7f\u7528\u7b80\u5355\u7684\u786c\u4ef6\u548c\u8f6f\u4ef6\u6765\u5b9e\u73b0\uff0c\u56e0\u6b64\u5b83\u7684\u6210\u672c\u4f4e\u5ec9\u3002\u4f46\u662f\uff0cSPI\u7684\u7f3a\u70b9\u662f\u5b83\u53ea\u80fd\u5728\u77ed\u8ddd\u79bb\u4e4b\u95f4\u8fdb\u884c\u901a\u4fe1\uff0c\u800c\u4e14\u5b83\u4e0d\u80fd\u4f7f\u7528\u73b0\u6709\u7684\u786c\u4ef6\u548c\u8f6f\u4ef6\u6765\u5b9e\u73b0\u3002<\/p>\n

  SPI\u7684\u786c\u4ef6\u8981\u6c42<\/h3>\n

  SPI\u4f7f\u7528\u4e09\u79cd\u7c7b\u578b\u7684\u786c\u4ef6\uff1a\u4e3b\u673a\u3001\u4ece\u673a\u548c\u603b\u7ebf\u3002\u4e3b\u673a\u7528\u4e8e\u53d1\u9001\u548c\u63a5\u6536\u6570\u636e\uff0c\u4ece\u673a\u7528\u4e8e\u63a5\u6536\u6570\u636e\uff0c\u800c\u603b\u7ebf\u5219\u7528\u4e8e\u8fde\u63a5\u4e3b\u673a\u548c\u4ece\u673a\u3002SPI\u7684\u786c\u4ef6\u901a\u5e38\u7531\u4e00\u4e2a\u4e13\u7528\u7684SPI\u82af\u7247\u63a7\u5236\uff0c\u8be5\u82af\u7247\u5177\u6709\u4e00\u4e2a\u6216\u591a\u4e2aSPI\u63a5\u53e3\uff0c\u7528\u4e8e\u8fde\u63a5\u4e3b\u673a\u3001\u4ece\u673a\u548c\u603b\u7ebf\u3002<\/p>\n

  SPI\u7684\u8f6f\u4ef6\u8981\u6c42<\/h3>\n

  SPI\u7684\u8f6f\u4ef6\u8981\u6c42\u4e5f\u76f8\u5bf9\u7b80\u5355\uff0c\u4e3b\u8981\u662f\u5b9e\u73b0SPI\u7684\u9a71\u52a8\u7a0b\u5e8f\u3002SPI\u7684\u9a71\u52a8\u7a0b\u5e8f\u8d1f\u8d23\u5904\u7406SPI\u82af\u7247\u7684\u6570\u636e\u4f20\u8f93\uff0c\u4ee5\u53ca\u5c06\u6570\u636e\u4ece\u4e3b\u673a\u53d1\u9001\u5230\u4ece\u673a\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  UART\u548cSPI\u90fd\u662f\u4e32\u884c\u901a\u4fe1\u534f\u8bae\uff0c\u5b83\u4eec\u90fd\u53ef\u4ee5\u4f7f\u7528\u7b80\u5355\u7684\u786c\u4ef6\u548c\u8f6f\u4ef6\u6765\u5b9e\u73b0\u3002\u4f46\u662f\uff0cUART\u7684\u4f20\u8f93\u901f\u7387\u8f83\u6162\uff0c\u56e0\u6b64\u5b83\u4e0d\u9002\u5408\u5927\u91cf\u6570\u636e\u7684\u4f20\u8f93\uff0c\u800cSPI\u5219\u53ef\u4ee5\u4ee5\u9ad8\u901f\u4f20\u8f93\u6570\u636e\uff0c\u4f46\u5b83\u53ea\u80fd\u5728\u77ed\u8ddd\u79bb\u4e4b\u95f4\u8fdb\u884c\u901a\u4fe1\u3002\u56e0\u6b64\uff0c\u5728\u9009\u62e9\u4f7f\u7528UART\u6216SPI\u534f\u8bae\u65f6\uff0c\u5e94\u8be5\u6839\u636e\u8bbe\u5907\u7684\u8981\u6c42\u6765\u51b3\u5b9a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u4ecb\u7ecdUART\u548cSPI\u662f\u4e24\u79cd\u7ecf\u5e38\u7528\u4e8e\u8ba1\u7b97\u673a\u548c\u7cfb\u7edf\u4e4b\u95f4\u7684\u901a\u4fe1\u534f\u8bae\u3002\u5b83\u4eec\u90fd\u662f\u4e32\u884c\u901a\u4fe1\u534f\u8bae\uff0c\u7528\u4e8e\u5728\u4e24\u4e2a\u8bbe\u5907\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\u3002UART\u548cSPI\u90fd\u6709\u5176\u4f18\u70b9\u548c\u7f3a\u70b9\uff0c\u56e0\u6b64\u5728\u9009\u62e9\u4f7f\u7528\u54ea<\/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-42390","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\/42390","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=42390"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/42390\/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=42390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=42390"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=42390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}