{"id":39089,"date":"2023-10-02T20:10:16","date_gmt":"2023-10-02T12:10:16","guid":{"rendered":"\/\/www.viralrail.com\/?p=39089"},"modified":"2023-10-02T20:10:16","modified_gmt":"2023-10-02T12:10:16","slug":"ufsdszzdds","status":"publish","type":"post","link":"\/\/www.viralrail.com\/blog\/39089.html","title":{"rendered":"UART\u53d1\u9001\u7684\u6570\u5b57\u6700\u5927\u591a\u5c11"},"content":{"rendered":"

  UART\uff08Universal Asynchronous Receiver\/Transmitter\uff09\u662f\u4e00\u79cd\u53ef\u4ee5\u540c\u6b65\u53d1\u9001\u548c\u63a5\u6536\u6570\u636e\u7684\u5f02\u6b65\u901a\u4fe1\u6280\u672f\uff0c\u5b83\u80fd\u591f\u5728\u4e24\u4e2a\u8bbe\u5907\u4e4b\u95f4\u8fdb\u884c\u53cc\u5411\u6570\u636e\u4f20\u8f93\u3002UART\u53ef\u4ee5\u53d1\u9001\u548c\u63a5\u6536ASCII\u7801\uff0c\u4e5f\u53ef\u4ee5\u53d1\u9001\u548c\u63a5\u6536\u4e8c\u8fdb\u5236\u7801\u3002UART\u53d1\u9001\u7684\u6570\u5b57\u6700\u5927\u591a\u5c11\u53d6\u51b3\u4e8eUART\u7684\u4f20\u8f93\u901f\u7387\uff0c\u4ee5\u53caUART\u53d1\u9001\u548c\u63a5\u6536\u7684\u6570\u636e\u4f4d\u6570\u3002<\/strong>\u672c\u6587\u5c06\u4ecb\u7ecdUART\u53d1\u9001\u7684\u6570\u5b57\u6700\u5927\u591a\u5c11\uff0c\u4ee5\u53ca\u5982\u4f55\u901a\u8fc7UART\u53d1\u9001\u548c\u63a5\u6536\u6570\u636e\u3002<\/p>\n

UART\u53d1\u9001\u7684\u6570\u5b57\u6700\u5927\u591a\u5c11\u53d6\u51b3\u4e8e\u4f20\u8f93\u901f\u7387\u548c\u6570\u636e\u4f4d\u6570<\/h2>\n

  UART\u53d1\u9001\u7684\u6570\u5b57\u6700\u5927\u591a\u5c11\u53d6\u51b3\u4e8eUART\u7684\u4f20\u8f93\u901f\u7387\uff0c\u4ee5\u53caUART\u53d1\u9001\u548c\u63a5\u6536\u7684\u6570\u636e\u4f4d\u6570\u3002<\/strong>UART\u7684\u4f20\u8f93\u901f\u7387\u4e00\u822c\u67094800\u30019600\u300119200\u300138400\u300157600\u3001115200\u3001230400\u3001460800\u3001921600\u7b49\uff0c\u5176\u4e2d\uff0c4800\u662f\u6700\u6162\u7684\uff0c921600\u662f\u6700\u5feb\u7684\u3002UART\u53d1\u9001\u548c\u63a5\u6536\u6570\u636e\u4f4d\u6570\u4e00\u822c\u67095\u4f4d\u30016\u4f4d\u30017\u4f4d\u30018\u4f4d\uff0c\u5176\u4e2d\uff0c5\u4f4d\u662f\u6700\u5c11\u7684\uff0c8\u4f4d\u662f\u6700\u591a\u7684\u3002<\/p>\n

  UART\u4f20\u8f93\u901f\u7387\u4e3a4800\u7684\u6700\u5927\u53d1\u9001\u6570\u5b57<\/h3>\n

  UART\u4f20\u8f93\u901f\u7387\u4e3a4800\u65f6\uff0cUART\u53d1\u9001\u7684\u6570\u5b57\u6700\u5927\u591a\u5c11\u53d6\u51b3\u4e8eUART\u53d1\u9001\u548c\u63a5\u6536\u7684\u6570\u636e\u4f4d\u6570\u3002\u5982\u679cUART\u53d1\u9001\u548c\u63a5\u6536\u7684\u6570\u636e\u4f4d\u6570\u90fd\u662f5\u4f4d\uff0c\u5219UART\u53d1\u9001\u7684\u6570\u5b57\u6700\u5927\u503c\u4e3a31\uff1b\u5982\u679cUART\u53d1\u9001\u548c\u63a5\u6536\u7684\u6570\u636e\u4f4d\u6570\u90fd\u662f6\u4f4d\uff0c\u5219UART\u53d1\u9001\u7684\u6570\u5b57\u6700\u5927\u503c\u4e3a63\uff1b\u5982\u679cUART\u53d1\u9001\u548c\u63a5\u6536\u7684\u6570\u636e\u4f4d\u6570\u90fd\u662f7\u4f4d\uff0c\u5219UART\u53d1\u9001\u7684\u6570\u5b57\u6700\u5927\u503c\u4e3a127\uff1b\u5982\u679cUART\u53d1\u9001\u548c\u63a5\u6536\u7684\u6570\u636e\u4f4d\u6570\u90fd\u662f8\u4f4d\uff0c\u5219UART\u53d1\u9001\u7684\u6570\u5b57\u6700\u5927\u503c\u4e3a255\u3002<\/p>\n

  UART\u4f20\u8f93\u901f\u7387\u4e3a921600\u7684\u6700\u5927\u53d1\u9001\u6570\u5b57<\/h3>\n

  UART\u4f20\u8f93\u901f\u7387\u4e3a921600\u65f6\uff0cUART\u53d1\u9001\u7684\u6570\u5b57\u6700\u5927\u591a\u5c11\u53d6\u51b3\u4e8eUART\u53d1\u9001\u548c\u63a5\u6536\u7684\u6570\u636e\u4f4d\u6570\u3002\u5982\u679cUART\u53d1\u9001\u548c\u63a5\u6536\u7684\u6570\u636e\u4f4d\u6570\u90fd\u662f5\u4f4d\uff0c\u5219UART\u53d1\u9001\u7684\u6570\u5b57\u6700\u5927\u503c\u4e3a255\uff1b\u5982\u679cUART\u53d1\u9001\u548c\u63a5\u6536\u7684\u6570\u636e\u4f4d\u6570\u90fd\u662f6\u4f4d\uff0c\u5219UART\u53d1\u9001\u7684\u6570\u5b57\u6700\u5927\u503c\u4e3a511\uff1b\u5982\u679cUART\u53d1\u9001\u548c\u63a5\u6536\u7684\u6570\u636e\u4f4d\u6570\u90fd\u662f7\u4f4d\uff0c\u5219UART\u53d1\u9001\u7684\u6570\u5b57\u6700\u5927\u503c\u4e3a1023\uff1b\u5982\u679cUART\u53d1\u9001\u548c\u63a5\u6536\u7684\u6570\u636e\u4f4d\u6570\u90fd\u662f8\u4f4d\uff0c\u5219UART\u53d1\u9001\u7684\u6570\u5b57\u6700\u5927\u503c\u4e3a2047\u3002<\/p>\n

\u5982\u4f55\u901a\u8fc7UART\u53d1\u9001\u548c\u63a5\u6536\u6570\u636e<\/h2>\n

  \u8981\u4f7f\u7528UART\u53d1\u9001\u548c\u63a5\u6536\u6570\u636e\uff0c\u9996\u5148\u9700\u8981\u51c6\u5907UART\u63a5\u53e3\uff0cUART\u63a5\u53e3\u4e00\u822c\u6709RX\uff08\u63a5\u6536\uff09\u548cTX\uff08\u53d1\u9001\uff09\u4e24\u4e2a\u7aef\u53e3\uff0cRX\u7aef\u53e3\u7528\u4e8e\u63a5\u6536\u6570\u636e\uff0cTX\u7aef\u53e3\u7528\u4e8e\u53d1\u9001\u6570\u636e\u3002<\/p>\n

  UART\u53d1\u9001\u6570\u636e<\/h3>\n

  \u5f53\u51c6\u5907\u597dUART\u63a5\u53e3\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528UART\u53d1\u9001\u6570\u636e\u3002UART\u53d1\u9001\u6570\u636e\u7684\u8fc7\u7a0b\u4e00\u822c\u5206\u4e3a\u4e09\u6b65\uff1a\u9996\u5148\uff0c\u5c06\u8981\u53d1\u9001\u7684\u6570\u636e\u5199\u5165UART\u53d1\u9001\u7f13\u51b2\u533a\uff1b\u5176\u6b21\uff0c\u8bbe\u7f6eUART\u53d1\u9001\u4f7f\u80fd\u4f4d\uff0c\u4f7fUART\u53d1\u9001\u7f13\u51b2\u533a\u7684\u6570\u636e\u53ef\u4ee5\u53d1\u9001\u51fa\u53bb\uff1b\u6700\u540e\uff0c\u7b49\u5f85\u53d1\u9001\u5b8c\u6210\uff0c\u5e76\u6e05\u9664UART\u53d1\u9001\u4f7f\u80fd\u4f4d\uff0c\u91ca\u653eUART\u53d1\u9001\u7f13\u51b2\u533a\u3002<\/p>\n

  UART\u63a5\u6536\u6570\u636e<\/h3>\n

  \u5f53\u51c6\u5907\u597dUART\u63a5\u53e3\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528UART\u63a5\u6536\u6570\u636e\u3002UART\u63a5\u6536\u6570\u636e\u7684\u8fc7\u7a0b\u4e00\u822c\u5206\u4e3a\u4e09\u6b65\uff1a\u9996\u5148\uff0c\u8bbe\u7f6eUART\u63a5\u6536\u4f7f\u80fd\u4f4d\uff0c\u4f7fUART\u63a5\u6536\u7f13\u51b2\u533a\u53ef\u4ee5\u63a5\u6536\u6570\u636e\uff1b\u5176\u6b21\uff0c\u7b49\u5f85\u63a5\u6536\u5b8c\u6210\uff0c\u5e76\u6e05\u9664UART\u63a5\u6536\u4f7f\u80fd\u4f4d\uff0c\u91ca\u653eUART\u63a5\u6536\u7f13\u51b2\u533a\uff1b\u6700\u540e\uff0c\u4eceUART\u63a5\u6536\u7f13\u51b2\u533a\u8bfb\u53d6\u63a5\u6536\u5230\u7684\u6570\u636e\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  UART\u53d1\u9001\u7684\u6570\u5b57\u6700\u5927\u591a\u5c11\u53d6\u51b3\u4e8eUART\u7684\u4f20\u8f93\u901f\u7387\uff0c\u4ee5\u53caUART\u53d1\u9001\u548c\u63a5\u6536\u7684\u6570\u636e\u4f4d\u6570\u3002<\/strong>UART\u4f20\u8f93\u901f\u7387\u4e3a4800\u65f6\uff0cUART\u53d1\u9001\u7684\u6570\u5b57\u6700\u5927\u503c\u4e3a31~255\uff1bUART\u4f20\u8f93\u901f\u7387\u4e3a921600\u65f6\uff0cUART\u53d1\u9001\u7684\u6570\u5b57\u6700\u5927\u503c\u4e3a255~2047\u3002\u8981\u4f7f\u7528UART\u53d1\u9001\u548c\u63a5\u6536\u6570\u636e\uff0c\u9996\u5148\u9700\u8981\u51c6\u5907UART\u63a5\u53e3\uff0cUART\u53d1\u9001\u6570\u636e\u7684\u8fc7\u7a0b\u4e00\u822c\u5206\u4e3a\u4e09\u6b65\uff0cUART\u63a5\u6536\u6570\u636e\u7684\u8fc7\u7a0b\u4e00\u822c\u5206\u4e3a\u4e09\u6b65\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

UART\uff08UniversalAsynchronousReceiver\/Transmitter\uff09\u662f\u4e00\u79cd\u53ef\u4ee5\u540c\u6b65\u53d1\u9001\u548c\u63a5\u6536\u6570\u636e\u7684\u5f02\u6b65\u901a\u4fe1\u6280\u672f\uff0c\u5b83\u80fd\u591f\u5728\u4e24\u4e2a\u8bbe\u5907\u4e4b\u95f4\u8fdb\u884c\u53cc\u5411<\/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-39089","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-uart"],"_links":{"self":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/39089"}],"collection":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/comments?post=39089"}],"version-history":[{"count":0,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/39089\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media?parent=39089"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/categories?post=39089"},{"taxonomy":"post_tag","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/tags?post=39089"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}