{"id":47418,"date":"2023-09-28T20:21:05","date_gmt":"2023-09-28T12:21:05","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=47418"},"modified":"2023-09-28T20:21:20","modified_gmt":"2023-09-28T12:21:20","slug":"ucxzxyzsydsjcsfs","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/47418.html","title":{"rendered":"UART\u4e32\u884c\u603b\u7ebf\uff1a\u4e00\u79cd\u5b9e\u7528\u7684\u6570\u636e\u4f20\u8f93\u65b9\u5f0f"},"content":{"rendered":"

  UART\u4e32\u884c\u603b\u7ebf\uff08Universal Asynchronous Receiver-Transmitter\uff09\u662f\u4e00\u79cd\u7528\u4e8e\u5728\u4e24\u4e2a\u8bbe\u5907\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\u7684\u901a\u7528\u6280\u672f\u3002\u5b83\u7684\u5de5\u4f5c\u65b9\u5f0f\u662f\uff0c\u4e00\u4e2a\u8bbe\u5907\uff08\u79f0\u4e3a\u53d1\u9001\u65b9\uff09\u5c06\u6570\u636e\u53d1\u9001\u5230\u53e6\u4e00\u4e2a\u8bbe\u5907\uff08\u79f0\u4e3a\u63a5\u6536\u65b9\uff09\uff0c\u800c\u4e0d\u9700\u8981\u8fdb\u884c\u5b9e\u65f6\u6821\u6b63\u3002\u5b83\u662f\u4e00\u79cd\u7b80\u5355\u800c\u6709\u6548\u7684\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\uff0c\u7528\u4e8e\u5728\u5404\u79cd\u8ba1\u7b97\u673a\u7cfb\u7edf\u4e2d\u4f20\u8f93\u6570\u636e\u3002<\/p>\n

UART\u7684\u5de5\u4f5c\u539f\u7406<\/h2>\n

  UART\u7684\u5de5\u4f5c\u539f\u7406\u662f\uff0c\u53d1\u9001\u65b9\u53d1\u9001\u4e00\u4e2a\u5b57\u8282\u7684\u6570\u636e\uff0c\u63a5\u6536\u65b9\u63a5\u6536\u5e76\u5904\u7406\u8be5\u5b57\u8282\u7684\u6570\u636e\u3002\u5728\u53d1\u9001\u6570\u636e\u65f6\uff0c\u53d1\u9001\u65b9\u5c06\u53d1\u9001\u4e00\u4e2a\u5b57\u8282\u7684\u6570\u636e\uff0c\u7136\u540e\u53d1\u9001\u4e00\u4e2a\u505c\u6b62\u4f4d\uff0c\u4ee5\u8868\u660e\u53d1\u9001\u7684\u6570\u636e\u5df2\u7ecf\u5b8c\u6210\u3002\u63a5\u6536\u65b9\u63a5\u6536\u5230\u6570\u636e\u540e\uff0c\u5c06\u5176\u5b58\u50a8\u5728\u5185\u90e8\u7f13\u51b2\u5668\u4e2d\uff0c\u7136\u540e\u68c0\u67e5\u505c\u6b62\u4f4d\uff0c\u4ee5\u786e\u8ba4\u6570\u636e\u662f\u5426\u63a5\u6536\u5b8c\u6574\u3002\u4e00\u65e6\u63a5\u6536\u5b8c\u6574\uff0c\u63a5\u6536\u65b9\u5c31\u4f1a\u5904\u7406\u63a5\u6536\u5230\u7684\u6570\u636e\u3002<\/p>\n

  UART\u7684\u4f18\u70b9<\/h3>\n

  UART\u4e32\u884c\u603b\u7ebf\u5177\u6709\u8bb8\u591a\u4f18\u70b9\uff0c\u5176\u4e2d\u6700\u91cd\u8981\u7684\u662f\uff0c\u5b83\u53ef\u4ee5\u5b9e\u73b0\u9ad8\u901f\u3001\u53ef\u9760\u7684\u6570\u636e\u4f20\u8f93\u3002UART\u53ef\u4ee5\u5728\u4e0d\u6539\u53d8\u786c\u4ef6\u7ed3\u6784\u7684\u60c5\u51b5\u4e0b\uff0c\u5b9e\u73b0\u9ad8\u901f\u6570\u636e\u4f20\u8f93\uff0c\u8fd9\u662f\u5b83\u7684\u4e00\u4e2a\u6700\u5927\u4f18\u52bf\u3002\u6b64\u5916\uff0cUART\u4e5f\u53ef\u4ee5\u5b9e\u73b0\u53ef\u9760\u7684\u6570\u636e\u4f20\u8f93\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u901a\u8fc7\u68c0\u67e5\u505c\u6b62\u4f4d\u6765\u786e\u4fdd\u6570\u636e\u7684\u5b8c\u6574\u6027\u3002<\/p>\n

  UART\u7684\u7f3a\u70b9<\/h3>\n

  UART\u4e32\u884c\u603b\u7ebf\u4e5f\u6709\u4e00\u4e9b\u7f3a\u70b9\u3002\u9996\u5148\uff0c\u7531\u4e8eUART\u4f7f\u7528\u7684\u662f\u5f02\u6b65\u4f20\u8f93\uff0c\u56e0\u6b64\u9700\u8981\u989d\u5916\u7684\u65f6\u95f4\u6765\u5904\u7406\u505c\u6b62\u4f4d\uff0c\u8fd9\u4f1a\u5bfc\u81f4\u4f20\u8f93\u6548\u7387\u964d\u4f4e\u3002\u5176\u6b21\uff0cUART\u7684\u4f20\u8f93\u901f\u5ea6\u4e5f\u6709\u9650\u5236\uff0c\u6700\u9ad8\u53ea\u80fd\u8fbe\u5230115200 bps\uff0c\u8fd9\u5728\u4eca\u5929\u7684\u7f51\u7edc\u73af\u5883\u4e2d\u663e\u5f97\u6709\u4e9b\u7f13\u6162\u3002<\/p>\n

UART\u7684\u5e94\u7528<\/h2>\n

  UART\u4e32\u884c\u603b\u7ebf\u5728\u8ba1\u7b97\u673a\u7cfb\u7edf\u4e2d\u6709\u7740\u5e7f\u6cdb\u7684\u5e94\u7528\u3002\u5b83\u53ef\u4ee5\u7528\u4e8e\u5728\u8ba1\u7b97\u673a\u7cfb\u7edf\u4e2d\u4f20\u8f93\u6570\u636e\uff0c\u4e5f\u53ef\u4ee5\u7528\u4e8e\u5728\u5916\u8bbe\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\uff0c\u4f8b\u5982\u786c\u76d8\u3001\u6253\u5370\u673a\u3001\u5916\u56f4\u8bbe\u5907\u7b49\u3002\u6b64\u5916\uff0cUART\u8fd8\u53ef\u4ee5\u7528\u4e8e\u5b9e\u73b0\u8ba1\u7b97\u673a\u4e0e\u5916\u90e8\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u4fe1\uff0c\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528UART\u5b9e\u73b0\u8ba1\u7b97\u673a\u548c\u5916\u90e8\u8bbe\u5907\u4e4b\u95f4\u7684\u6570\u636e\u4ea4\u6362\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  UART\u4e32\u884c\u603b\u7ebf\u662f\u4e00\u79cd\u5b9e\u7528\u7684\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\uff0c\u5b83\u53ef\u4ee5\u7528\u4e8e\u5728\u8ba1\u7b97\u673a\u7cfb\u7edf\u4e2d\u4f20\u8f93\u6570\u636e\uff0c\u4e5f\u53ef\u4ee5\u7528\u4e8e\u5728\u5916\u8bbe\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\u3002<\/strong>\u5b83\u5177\u6709\u9ad8\u901f\u3001\u53ef\u9760\u7684\u4f20\u8f93\u7279\u6027\uff0c\u4f46\u4e5f\u5b58\u5728\u4e00\u4e9b\u7f3a\u70b9\uff0c\u4f8b\u5982\u4f20\u8f93\u901f\u5ea6\u6709\u9650\u5236\uff0c\u6548\u7387\u4e5f\u4f1a\u53d7\u5230\u5f71\u54cd\u3002\u5c3d\u7ba1\u5982\u6b64\uff0cUART\u4e32\u884c\u603b\u7ebf\u4ecd\u7136\u662f\u4e00\u79cd\u5b9e\u7528\u7684\u6570\u636e\u4f20\u8f93\u65b9\u5f0f\uff0c\u5e76\u4e14\u5728\u8ba1\u7b97\u673a\u7cfb\u7edf\u4e2d\u6709\u7740\u5e7f\u6cdb\u7684\u5e94\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

UART\u4e32\u884c\u603b\u7ebf\uff08UniversalAsynchronousReceiver-Transmitter\uff09\u662f\u4e00\u79cd\u7528\u4e8e\u5728\u4e24\u4e2a\u8bbe\u5907\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\u7684\u901a\u7528\u6280\u672f\u3002\u5b83\u7684\u5de5\u4f5c\u65b9\u5f0f\u662f\uff0c\u4e00\u4e2a<\/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-47418","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\/47418","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=47418"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/47418\/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=47418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=47418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=47418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}