{"id":56447,"date":"2023-10-23T13:21:49","date_gmt":"2023-10-23T05:21:49","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=56447"},"modified":"2023-10-23T13:21:49","modified_gmt":"2023-10-23T05:21:49","slug":"bhjydutx","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/56447.html","title":{"rendered":"\u5305\u542b\u6821\u9a8c\u7684UART\u901a\u4fe1"},"content":{"rendered":"

  UART\uff08Universal Asynchronous Receiver \/ Transmitter\uff09\u662f\u4e00\u79cd\u5f02\u6b65\u6536\u53d1\u5668\uff0c\u53ef\u4ee5\u5b9e\u73b0\u4e24\u4e2a\u8bbe\u5907\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u3002UART\u7684\u6821\u9a8c\u662f\u6307\u5728\u6570\u636e\u4f20\u8f93\u8fc7\u7a0b\u4e2d\uff0c\u4f7f\u7528\u7279\u5b9a\u7684\u6280\u672f\u6765\u68c0\u67e5\u6570\u636e\u7684\u6b63\u786e\u6027\u3002\u901a\u8fc7\u6b64\u65b9\u5f0f\uff0c\u53ef\u4ee5\u786e\u4fdd\u6570\u636e\u5728\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u6ca1\u6709\u88ab\u7834\u574f\uff0c\u4ece\u800c\u4fdd\u8bc1\u4e86UART\u901a\u4fe1\u7684\u53ef\u9760\u6027\u3002<\/p>\n

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

  UART\u6821\u9a8c\u7684\u5de5\u4f5c\u539f\u7406\u662f\uff0c\u5728\u6570\u636e\u4f20\u8f93\u8fc7\u7a0b\u4e2d\uff0c\u53d1\u9001\u7aef\u4f1a\u5728\u53d1\u9001\u7684\u6570\u636e\u5e27\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u6821\u9a8c\u5b57\u6bb5\uff0c\u63a5\u6536\u7aef\u6536\u5230\u6570\u636e\u5e27\u540e\uff0c\u4f1a\u5bf9\u6536\u5230\u7684\u6570\u636e\u5e27\u7684\u6821\u9a8c\u5b57\u6bb5\u8fdb\u884c\u6821\u9a8c\uff0c\u5982\u679c\u6821\u9a8c\u901a\u8fc7\uff0c\u5219\u8bf4\u660e\u6570\u636e\u6ca1\u6709\u88ab\u7834\u574f\uff0c\u5982\u679c\u6821\u9a8c\u5931\u8d25\uff0c\u5219\u8bf4\u660e\u6570\u636e\u53d1\u751f\u4e86\u7834\u574f\u3002<\/p>\n

  UART\u6821\u9a8c\u7684\u5e38\u7528\u7b97\u6cd5<\/h3>\n

  UART\u6821\u9a8c\u7684\u5e38\u7528\u7b97\u6cd5\u6709CRC\u6821\u9a8c\u3001\u6821\u9a8c\u548c\u6821\u9a8c\u3001\u5947\u5076\u6821\u9a8c\u7b49\u3002\u5176\u4e2d\uff0cCRC\u6821\u9a8c\u662f\u4e00\u79cd\u5e38\u7528\u7684\u6570\u636e\u6821\u9a8c\u7b97\u6cd5\uff0c\u5b83\u7684\u7279\u70b9\u662f\u53ef\u4ee5\u68c0\u6d4b\u51fa\u5927\u90e8\u5206\u7684\u6570\u636e\u4f20\u8f93\u9519\u8bef\uff0c\u4f46\u662f\u5b83\u7684\u8ba1\u7b97\u91cf\u8f83\u5927\uff0c\u901f\u5ea6\u8f83\u6162\uff1b\u6821\u9a8c\u548c\u6821\u9a8c\u662f\u4e00\u79cd\u7b80\u5355\u7684\u6821\u9a8c\u7b97\u6cd5\uff0c\u5b83\u7684\u7279\u70b9\u662f\u8ba1\u7b97\u91cf\u5c0f\uff0c\u901f\u5ea6\u5feb\uff0c\u4f46\u662f\u53ea\u80fd\u68c0\u6d4b\u51fa\u4e00\u90e8\u5206\u6570\u636e\u4f20\u8f93\u9519\u8bef\uff1b\u5947\u5076\u6821\u9a8c\u4e5f\u662f\u4e00\u79cd\u7b80\u5355\u7684\u6821\u9a8c\u7b97\u6cd5\uff0c\u5b83\u7684\u7279\u70b9\u662f\u53ef\u4ee5\u68c0\u6d4b\u51fa\u5927\u90e8\u5206\u7684\u6570\u636e\u4f20\u8f93\u9519\u8bef\uff0c\u4f46\u662f\u5b83\u7684\u8ba1\u7b97\u91cf\u8f83\u5c0f\uff0c\u901f\u5ea6\u8f83\u6162\u3002<\/p>\n

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

  UART\u6821\u9a8c\u5728\u901a\u4fe1\u9886\u57df\u6709\u7740\u5e7f\u6cdb\u7684\u5e94\u7528\uff0c\u5b83\u53ef\u4ee5\u7528\u4e8e\u68c0\u6d4b\u6570\u636e\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u7684\u9519\u8bef\uff0c\u4ece\u800c\u786e\u4fdd\u6570\u636e\u7684\u53ef\u9760\u6027\u3002\u4f8b\u5982\uff0c\u5728\u8ba1\u7b97\u673a\u7f51\u7edc\u4e2d\uff0cUART\u6821\u9a8c\u53ef\u4ee5\u7528\u4e8e\u68c0\u6d4b\u6570\u636e\u5e27\u4e2d\u7684\u9519\u8bef\uff0c\u4ece\u800c\u4fdd\u8bc1\u7f51\u7edc\u6570\u636e\u7684\u53ef\u9760\u6027\uff1b\u5728\u6c7d\u8f66\u7535\u5b50\u7cfb\u7edf\u4e2d\uff0cUART\u6821\u9a8c\u53ef\u4ee5\u7528\u4e8e\u68c0\u6d4b\u63a5\u6536\u5230\u7684\u6570\u636e\u662f\u5426\u6709\u9519\u8bef\uff0c\u4ece\u800c\u786e\u4fdd\u6c7d\u8f66\u6b63\u5e38\u884c\u9a76\uff1b\u5728\u5de5\u4e1a\u63a7\u5236\u7cfb\u7edf\u4e2d\uff0cUART\u6821\u9a8c\u53ef\u4ee5\u7528\u4e8e\u68c0\u6d4b\u6570\u636e\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u7684\u9519\u8bef\uff0c\u4ece\u800c\u786e\u4fdd\u5de5\u4e1a\u8bbe\u5907\u7684\u5b89\u5168\u6027\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  UART\u6821\u9a8c\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u6570\u636e\u6821\u9a8c\u6280\u672f\uff0c\u5b83\u53ef\u4ee5\u7528\u4e8e\u68c0\u6d4b\u6570\u636e\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u7684\u9519\u8bef\uff0c\u4ece\u800c\u786e\u4fdd\u6570\u636e\u7684\u53ef\u9760\u6027\u3002<\/strong>\u5b83\u7684\u5de5\u4f5c\u539f\u7406\u662f\uff0c\u53d1\u9001\u7aef\u4f1a\u5728\u53d1\u9001\u7684\u6570\u636e\u5e27\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u6821\u9a8c\u5b57\u6bb5\uff0c\u63a5\u6536\u7aef\u6536\u5230\u6570\u636e\u5e27\u540e\uff0c\u4f1a\u5bf9\u6536\u5230\u7684\u6570\u636e\u5e27\u7684\u6821\u9a8c\u5b57\u6bb5\u8fdb\u884c\u6821\u9a8c\uff0c\u6765\u68c0\u6d4b\u6570\u636e\u662f\u5426\u6709\u9519\u8bef\u3002UART\u6821\u9a8c\u5728\u901a\u4fe1\u9886\u57df\u6709\u7740\u5e7f\u6cdb\u7684\u5e94\u7528\uff0c\u53ef\u4ee5\u7528\u4e8e\u68c0\u6d4b\u6570\u636e\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u7684\u9519\u8bef\uff0c\u4ece\u800c\u786e\u4fdd\u6570\u636e\u7684\u53ef\u9760\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

UART\uff08UniversalAsynchronousReceiver\/Transmitter\uff09\u662f\u4e00\u79cd\u5f02\u6b65\u6536\u53d1\u5668\uff0c\u53ef\u4ee5\u5b9e\u73b0\u4e24\u4e2a\u8bbe\u5907\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u3002UART\u7684\u6821\u9a8c\u662f\u6307<\/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-56447","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\/56447","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=56447"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/56447\/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=56447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=56447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=56447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}