{"id":39723,"date":"2023-09-27T02:09:13","date_gmt":"2023-09-26T18:09:13","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=39723"},"modified":"2023-09-27T02:09:13","modified_gmt":"2023-09-26T18:09:13","slug":"udyycxy","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/39723.html","title":{"rendered":"UART\u7684\u5e94\u7528\u5c42\u534f\u8bae"},"content":{"rendered":"

  UART\uff08Universal Asynchronous Receiver \/ Transmitter\uff09\u662f\u4e00\u79cd\u901a\u7528\u5f02\u6b65\u6536\u53d1\u5668\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u5728\u8ba1\u7b97\u673a\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\u3002UART\u7684\u5e94\u7528\u5c42\u534f\u8bae\u662f\u4e00\u79cd\u7528\u4e8e\u63a7\u5236UART\u4f20\u8f93\u7684\u534f\u8bae\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u66f4\u597d\u5730\u63a7\u5236UART\u4f20\u8f93\u7684\u6570\u636e\u3002<\/strong>\u672c\u6587\u5c06\u4ecb\u7ecdUART\u7684\u5e94\u7528\u5c42\u534f\u8bae\u7684\u57fa\u672c\u6982\u5ff5\uff0c\u4ee5\u53ca\u5982\u4f55\u4f7f\u7528\u5b83\u6765\u63a7\u5236UART\u4f20\u8f93\u7684\u6570\u636e\u3002<\/p>\n

UART\u5e94\u7528\u5c42\u534f\u8bae\u7684\u57fa\u672c\u6982\u5ff5<\/h2>\n

  UART\u7684\u5e94\u7528\u5c42\u534f\u8bae\u662f\u4e00\u79cd\u7528\u4e8e\u63a7\u5236UART\u4f20\u8f93\u7684\u534f\u8bae\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u66f4\u597d\u5730\u63a7\u5236UART\u4f20\u8f93\u7684\u6570\u636e\u3002<\/strong>\u5b83\u7684\u57fa\u672c\u539f\u7406\u662f\uff0c\u5728UART\u4f20\u8f93\u4e4b\u524d\uff0c\u5c06\u6570\u636e\u8fdb\u884c\u7f16\u7801\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u63a7\u5236UART\u4f20\u8f93\u7684\u6570\u636e\u3002<\/p>\n

  UART\u5e94\u7528\u5c42\u534f\u8bae\u7684\u7f16\u7801\u8fc7\u7a0b\u53ef\u4ee5\u5206\u4e3a\u4e09\u4e2a\u6b65\u9aa4\uff1a<\/p>\n

  1. \u5c06\u6570\u636e\u8fdb\u884c\u7f16\u7801<\/h3>\n

  \u5728UART\u4f20\u8f93\u4e4b\u524d\uff0c\u5c06\u6570\u636e\u8fdb\u884c\u7f16\u7801\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u63a7\u5236UART\u4f20\u8f93\u7684\u6570\u636e\u3002\u7f16\u7801\u7684\u8fc7\u7a0b\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u7f16\u7801\u65b9\u5f0f\uff0c\u6bd4\u5982ASCII\u7f16\u7801\u3001utf-8\u7f16\u7801\u3001Base64\u7f16\u7801\u7b49\u3002<\/p>\n

  2. \u5c06\u7f16\u7801\u540e\u7684\u6570\u636e\u5c01\u88c5\u6210\u5e27<\/h3>\n

  \u5c06\u7f16\u7801\u540e\u7684\u6570\u636e\u5c01\u88c5\u6210\u5e27\uff0c\u4ee5\u4fbf\u5728UART\u4f20\u8f93\u65f6\uff0c\u53ef\u4ee5\u66f4\u597d\u5730\u63a7\u5236UART\u4f20\u8f93\u7684\u6570\u636e\u3002\u5e27\u7684\u683c\u5f0f\u53ef\u4ee5\u6839\u636e\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u8fdb\u884c\u8bbe\u8ba1\uff0c\u6bd4\u5982\u6dfb\u52a0\u5e27\u5934\u3001\u5e27\u5c3e\u7b49\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u63a7\u5236UART\u4f20\u8f93\u7684\u6570\u636e\u3002<\/p>\n

  3. \u5c06\u5c01\u88c5\u540e\u7684\u5e27\u53d1\u9001\u51fa\u53bb<\/h3>\n

  \u5c06\u5c01\u88c5\u540e\u7684\u5e27\u53d1\u9001\u51fa\u53bb\uff0c\u4ee5\u4fbf\u5728UART\u4f20\u8f93\u65f6\uff0c\u53ef\u4ee5\u66f4\u597d\u5730\u63a7\u5236UART\u4f20\u8f93\u7684\u6570\u636e\u3002\u5728\u53d1\u9001\u8fc7\u7a0b\u4e2d\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e9b\u6280\u672f\u6765\u63d0\u9ad8UART\u4f20\u8f93\u7684\u6548\u7387\uff0c\u6bd4\u5982\u4f7f\u7528\u6d41\u63a7\u5236\u3001\u786c\u4ef6\u52a0\u901f\u7b49\u3002<\/p>\n

\u5982\u4f55\u4f7f\u7528UART\u7684\u5e94\u7528\u5c42\u534f\u8bae\u6765\u63a7\u5236UART\u4f20\u8f93\u7684\u6570\u636e<\/h2>\n

  \u4f7f\u7528UART\u7684\u5e94\u7528\u5c42\u534f\u8bae\u6765\u63a7\u5236UART\u4f20\u8f93\u7684\u6570\u636e\uff0c\u9700\u8981\u9075\u5faa\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n

  1. \u5b9a\u4e49UART\u4f20\u8f93\u7684\u6570\u636e\u683c\u5f0f<\/h3>\n

  \u9996\u5148\uff0c\u9700\u8981\u5b9a\u4e49UART\u4f20\u8f93\u7684\u6570\u636e\u683c\u5f0f\uff0c\u5305\u62ec\u6570\u636e\u7684\u7f16\u7801\u683c\u5f0f\u3001\u5e27\u683c\u5f0f\u7b49\u3002\u8fd9\u4e9b\u683c\u5f0f\u53ef\u4ee5\u6839\u636e\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u8fdb\u884c\u8bbe\u8ba1\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u63a7\u5236UART\u4f20\u8f93\u7684\u6570\u636e\u3002<\/p>\n

  2. \u7f16\u5199\u7a0b\u5e8f\u6765\u63a7\u5236UART\u4f20\u8f93\u7684\u6570\u636e<\/h3>\n

  \u63a5\u7740\uff0c\u9700\u8981\u7f16\u5199\u7a0b\u5e8f\u6765\u63a7\u5236UART\u4f20\u8f93\u7684\u6570\u636e\uff0c\u5305\u62ec\u5c06\u6570\u636e\u8fdb\u884c\u7f16\u7801\u3001\u5c01\u88c5\u6210\u5e27\u3001\u53d1\u9001\u51fa\u53bb\u7b49\u3002\u8fd9\u4e9b\u7a0b\u5e8f\u53ef\u4ee5\u6839\u636e\u5b9a\u4e49\u7684\u6570\u636e\u683c\u5f0f\u8fdb\u884c\u7f16\u5199\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u63a7\u5236UART\u4f20\u8f93\u7684\u6570\u636e\u3002<\/p>\n

  3. \u6d4b\u8bd5UART\u4f20\u8f93\u7684\u6570\u636e<\/h3>\n

  \u6700\u540e\uff0c\u9700\u8981\u5bf9UART\u4f20\u8f93\u7684\u6570\u636e\u8fdb\u884c\u6d4b\u8bd5\uff0c\u4ee5\u786e\u4fddUART\u4f20\u8f93\u7684\u6570\u636e\u662f\u6b63\u786e\u7684\u3001\u6709\u6548\u7684\u3002\u5982\u679c\u53d1\u73b0UART\u4f20\u8f93\u7684\u6570\u636e\u6709\u95ee\u9898\uff0c\u53ef\u4ee5\u6839\u636e\u6d4b\u8bd5\u7ed3\u679c\u6765\u8c03\u6574\u7a0b\u5e8f\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u63a7\u5236UART\u4f20\u8f93\u7684\u6570\u636e\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  UART\u7684\u5e94\u7528\u5c42\u534f\u8bae\u662f\u4e00\u79cd\u7528\u4e8e\u63a7\u5236UART\u4f20\u8f93\u7684\u534f\u8bae\uff0c\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u66f4\u597d\u5730\u63a7\u5236UART\u4f20\u8f93\u7684\u6570\u636e\u3002<\/strong>UART\u7684\u5e94\u7528\u5c42\u534f\u8bae\u7684\u7f16\u7801\u8fc7\u7a0b\u53ef\u4ee5\u5206\u4e3a\u4e09\u4e2a\u6b65\u9aa4\uff1a\u5c06\u6570\u636e\u8fdb\u884c\u7f16\u7801\u3001\u5c06\u7f16\u7801\u540e\u7684\u6570\u636e\u5c01\u88c5\u6210\u5e27\u3001\u5c06\u5c01\u88c5\u540e\u7684\u5e27\u53d1\u9001\u51fa\u53bb\u3002\u4f7f\u7528UART\u7684\u5e94\u7528\u5c42\u534f\u8bae\u6765\u63a7\u5236UART\u4f20\u8f93\u7684\u6570\u636e\uff0c\u9700\u8981\u5b9a\u4e49UART\u4f20\u8f93\u7684\u6570\u636e\u683c\u5f0f\u3001\u7f16\u5199\u7a0b\u5e8f\u6765\u63a7\u5236UART\u4f20\u8f93\u7684\u6570\u636e\u3001\u5bf9UART\u4f20\u8f93\u7684\u6570\u636e\u8fdb\u884c\u6d4b\u8bd5\u7b49\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

UART\uff08UniversalAsynchronousReceiver\/Transmitter\uff09\u662f\u4e00\u79cd\u901a\u7528\u5f02\u6b65\u6536\u53d1\u5668\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u5728\u8ba1\u7b97\u673a\u4e4b\u95f4\u4f20\u8f93\u6570\u636e\u3002\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-39723","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\/39723","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=39723"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/39723\/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=39723"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=39723"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=39723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}