{"id":39640,"date":"2023-10-04T07:44:36","date_gmt":"2023-10-03T23:44:36","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=39640"},"modified":"2023-10-04T07:44:36","modified_gmt":"2023-10-03T23:44:36","slug":"uxhdy","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/39640.html","title":{"rendered":"UART\u4fe1\u53f7\u7535\u538b"},"content":{"rendered":"

  UART\uff08Universal Asynchronous Receiver\/Transmitter\uff09\u662f\u4e00\u79cd\u5f02\u6b65\u6536\u53d1\u5668\uff0c\u5b83\u662f\u4e00\u79cd\u53ef\u4ee5\u5904\u7406\u4e32\u884c\u6570\u636e\u6d41\u7684\u901a\u7528\u8bbe\u5907\uff0c\u5b83\u53ef\u4ee5\u5728\u4e24\u4e2a\u8bbe\u5907\u4e4b\u95f4\u63a5\u6536\u548c\u53d1\u9001\u6570\u636e\u3002UART\u4fe1\u53f7\u7535\u538b\u662fUART\u8bbe\u5907\u63a5\u53e3\u7684\u57fa\u7840\uff0c\u5b83\u6307\u7684\u662fUART\u8bbe\u5907\u4e4b\u95f4\u7684\u7535\u538b\u4fe1\u53f7\u3002<\/strong>\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecdUART\u4fe1\u53f7\u7535\u538b\u7684\u6982\u5ff5\u3001\u7279\u6027\u3001\u6807\u51c6\u548c\u5e94\u7528\u573a\u666f\u3002<\/p>\n

\u4ec0\u4e48\u662fUART\u4fe1\u53f7\u7535\u538b<\/h2>\n

  UART\u4fe1\u53f7\u7535\u538b\u662fUART\u8bbe\u5907\u4e4b\u95f4\u7684\u7535\u538b\u4fe1\u53f7\uff0c\u5b83\u662fUART\u8bbe\u5907\u63a5\u53e3\u7684\u57fa\u7840\u3002UART\u4fe1\u53f7\u7535\u538b\u662f\u7531UART\u8bbe\u5907\u53d1\u51fa\u7684\u4fe1\u53f7\uff0c\u5b83\u7531\u4e00\u4e2aTX\u4fe1\u53f7\u548c\u4e00\u4e2aRX\u4fe1\u53f7\u7ec4\u6210\uff0c\u8fd9\u4e24\u4e2a\u4fe1\u53f7\u5206\u522b\u7528\u4e8e\u53d1\u9001\u548c\u63a5\u6536\u6570\u636e\u3002<\/p>\n

UART\u4fe1\u53f7\u7535\u538b\u7684\u7279\u6027<\/h2>\n

  UART\u4fe1\u53f7\u7535\u538b\u7684\u4e3b\u8981\u7279\u6027\u6709\uff1a<\/p>\n

  1.\u9ad8\u901f\u4f20\u8f93<\/h3>\n

  UART\u4fe1\u53f7\u7535\u538b\u5177\u6709\u9ad8\u901f\u4f20\u8f93\u7279\u6027\uff0c\u5b83\u53ef\u4ee5\u5728\u4f4e\u5ef6\u8fdf\u7684\u60c5\u51b5\u4e0b\u8fdb\u884c\u9ad8\u901f\u6570\u636e\u4f20\u8f93\uff0c\u8fd9\u662fUART\u8bbe\u5907\u7684\u4e00\u4e2a\u91cd\u8981\u4f18\u52bf\u3002<\/p>\n

  2.\u53ef\u9760\u6027<\/h3>\n

  UART\u4fe1\u53f7\u7535\u538b\u5177\u6709\u53ef\u9760\u6027\uff0c\u5b83\u53ef\u4ee5\u5728\u4f4e\u9519\u8bef\u7387\u7684\u60c5\u51b5\u4e0b\u8fdb\u884c\u9ad8\u901f\u6570\u636e\u4f20\u8f93\uff0c\u8fd9\u4e5f\u662fUART\u8bbe\u5907\u7684\u4e00\u4e2a\u91cd\u8981\u4f18\u52bf\u3002<\/p>\n

  3.\u4f4e\u6210\u672c<\/h3>\n

  UART\u4fe1\u53f7\u7535\u538b\u7684\u6210\u672c\u6bd4\u5176\u4ed6\u7c7b\u578b\u7684\u4fe1\u53f7\u7535\u538b\u4f4e\uff0c\u5b83\u53ef\u4ee5\u6ee1\u8db3\u8bbe\u5907\u7684\u5927\u591a\u6570\u9700\u6c42\uff0c\u540c\u65f6\u4e5f\u53ef\u4ee5\u63d0\u4f9b\u8f83\u4f4e\u7684\u6210\u672c\u3002<\/p>\n

UART\u4fe1\u53f7\u7535\u538b\u7684\u6807\u51c6<\/h2>\n

  UART\u4fe1\u53f7\u7535\u538b\u7684\u6807\u51c6\u4e3b\u8981\u6709RS-232\u3001RS-485\u548cRS-422\u7b49\uff0c\u5b83\u4eec\u7684\u4e3b\u8981\u7279\u70b9\u5982\u4e0b\uff1a<\/p>\n

  1.RS-232<\/h3>\n

  RS-232\u662f\u4e00\u79cd\u5e38\u7528\u7684UART\u4fe1\u53f7\u7535\u538b\u6807\u51c6\uff0c\u5b83\u662f\u4e00\u79cd\u4f4e\u901f\u3001\u4f4e\u6210\u672c\u7684UART\u4fe1\u53f7\u7535\u538b\u6807\u51c6\uff0c\u5b83\u53ef\u4ee5\u652f\u6301\u6700\u9ad8\u4f20\u8f93\u901f\u7387\u4e3a20Kbps\u7684UART\u8bbe\u5907\u3002<\/p>\n

  2.RS-485<\/h3>\n

  RS-485\u662f\u4e00\u79cd\u9ad8\u901f\u3001\u9ad8\u53ef\u9760\u6027\u7684UART\u4fe1\u53f7\u7535\u538b\u6807\u51c6\uff0c\u5b83\u53ef\u4ee5\u652f\u6301\u6700\u9ad8\u4f20\u8f93\u901f\u7387\u4e3a10Mbps\u7684UART\u8bbe\u5907\uff0c\u5e76\u4e14\u53ef\u4ee5\u652f\u6301\u591a\u4e2a\u8bbe\u5907\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u3002<\/p>\n

  3.RS-422<\/h3>\n

  RS-422\u662f\u4e00\u79cd\u9ad8\u901f\u3001\u9ad8\u53ef\u9760\u6027\u7684UART\u4fe1\u53f7\u7535\u538b\u6807\u51c6\uff0c\u5b83\u53ef\u4ee5\u652f\u6301\u6700\u9ad8\u4f20\u8f93\u901f\u7387\u4e3a10Mbps\u7684UART\u8bbe\u5907\uff0c\u5e76\u4e14\u53ef\u4ee5\u652f\u6301\u591a\u4e2a\u8bbe\u5907\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u3002<\/p>\n

UART\u4fe1\u53f7\u7535\u538b\u7684\u5e94\u7528\u573a\u666f<\/h2>\n

  UART\u4fe1\u53f7\u7535\u538b\u4e3b\u8981\u7528\u4e8e\u8ba1\u7b97\u673a\u7f51\u7edc\u3001\u5de5\u4e1a\u63a7\u5236\u3001\u81ea\u52a8\u5316\u63a7\u5236\u7b49\u9886\u57df\uff0c\u5b83\u53ef\u4ee5\u5b9e\u73b0\u8bbe\u5907\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\uff0c\u4e5f\u53ef\u4ee5\u7528\u4e8e\u8fdc\u7a0b\u63a7\u5236\u7b49\u5e94\u7528\u573a\u666f\u3002<\/p>\n

  UART\u4fe1\u53f7\u7535\u538b\u4e5f\u53ef\u4ee5\u7528\u4e8e\u667a\u80fd\u5bb6\u5c45\u3001\u667a\u80fd\u5b89\u9632\u3001\u667a\u80fd\u4ea4\u901a\u7b49\u9886\u57df\uff0c\u5b83\u53ef\u4ee5\u652f\u6301\u8bbe\u5907\u4e4b\u95f4\u7684\u8fdc\u7a0b\u63a7\u5236\uff0c\u4e5f\u53ef\u4ee5\u5b9e\u73b0\u8bbe\u5907\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u3002<\/p>\n

  \u6b64\u5916\uff0cUART\u4fe1\u53f7\u7535\u538b\u8fd8\u53ef\u4ee5\u7528\u4e8e\u667a\u80fd\u533b\u7597\u3001\u667a\u80fd\u5b89\u5168\u3001\u667a\u80fd\u80fd\u6e90\u7b49\u9886\u57df\uff0c\u5b83\u53ef\u4ee5\u5b9e\u73b0\u8bbe\u5907\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\uff0c\u4e5f\u53ef\u4ee5\u652f\u6301\u8bbe\u5907\u4e4b\u95f4\u7684\u8fdc\u7a0b\u63a7\u5236\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  UART\u4fe1\u53f7\u7535\u538b\u662fUART\u8bbe\u5907\u63a5\u53e3\u7684\u57fa\u7840\uff0c\u5b83\u6307\u7684\u662fUART\u8bbe\u5907\u4e4b\u95f4\u7684\u7535\u538b\u4fe1\u53f7\u3002<\/strong>UART\u4fe1\u53f7\u7535\u538b\u5177\u6709\u9ad8\u901f\u4f20\u8f93\u3001\u53ef\u9760\u6027\u548c\u4f4e\u6210\u672c\u7b49\u4f18\u52bf\uff0c\u5b83\u53ef\u4ee5\u7528\u4e8e\u8ba1\u7b97\u673a\u7f51\u7edc\u3001\u5de5\u4e1a\u63a7\u5236\u3001\u81ea\u52a8\u5316\u63a7\u5236\u7b49\u9886\u57df\uff0c\u4e5f\u53ef\u4ee5\u7528\u4e8e\u667a\u80fd\u5bb6\u5c45\u3001\u667a\u80fd\u5b89\u9632\u3001\u667a\u80fd\u4ea4\u901a\u7b49\u9886\u57df\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

UART\uff08UniversalAsynchronousReceiver\/Transmitter\uff09\u662f\u4e00\u79cd\u5f02\u6b65\u6536\u53d1\u5668\uff0c\u5b83\u662f\u4e00\u79cd\u53ef\u4ee5\u5904\u7406\u4e32\u884c\u6570\u636e\u6d41\u7684\u901a\u7528\u8bbe\u5907\uff0c\u5b83\u53ef\u4ee5\u5728\u4e24\u4e2a\u8bbe\u5907<\/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-39640","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\/39640","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=39640"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/39640\/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=39640"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=39640"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=39640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}