{"id":39098,"date":"2023-09-29T09:28:13","date_gmt":"2023-09-29T01:28:13","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=39098"},"modified":"2023-09-29T09:28:13","modified_gmt":"2023-09-29T01:28:13","slug":"bjtxyujsysx","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/39098.html","title":{"rendered":"\u677f\u95f4\u901a\u4fe1\u7528UART\uff1a\u4ecb\u7ecd\u4e0e\u5b9e\u73b0"},"content":{"rendered":"
\u677f\u95f4\u901a\u4fe1\uff08Board-to-Board Communication\uff09\u662f\u6307\u5728\u591a\u5757\u7535\u8def\u677f\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u3002\u5b83\u662f\u7535\u5b50\u7cfb\u7edf\u4e2d\u4e00\u79cd\u91cd\u8981\u7684\u6280\u672f\uff0c\u53ef\u4ee5\u7528\u6765\u8fde\u63a5\u591a\u4e2a\u5904\u7406\u5668\uff0c\u4f7f\u5f97\u591a\u4e2a\u5904\u7406\u5668\u53ef\u4ee5\u5b9e\u73b0\u5171\u4eab\u4fe1\u606f\u3002\u800cUART\uff08Universal Asynchronous Receiver\/Transmitter\uff09\u662f\u4e00\u79cd\u5e38\u7528\u7684\u677f\u95f4\u901a\u4fe1\u6280\u672f\uff0c\u5b83\u53ef\u4ee5\u5b9e\u73b0\u4e24\u4e2a\u7cfb\u7edf\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\uff0c\u5e76\u4e14\u53ef\u4ee5\u4ee5\u5f02\u6b65\u65b9\u5f0f\u4f20\u8f93\u6570\u636e\u3002\u672c\u6587\u5c06\u4ecb\u7ecdUART\u7684\u539f\u7406\uff0c\u4ee5\u53ca\u5982\u4f55\u4f7f\u7528UART\u5b9e\u73b0\u677f\u95f4\u901a\u4fe1\u3002<\/p>\n
UART\u662f\u4e00\u79cd\u5168\u53cc\u5de5\u7684\u901a\u4fe1\u6280\u672f\uff0c\u5b83\u53ef\u4ee5\u540c\u65f6\u53d1\u9001\u548c\u63a5\u6536\u6570\u636e\uff0c\u53ef\u4ee5\u5728\u4e24\u4e2a\u7cfb\u7edf\u4e4b\u95f4\u5b9e\u73b0\u6570\u636e\u4f20\u8f93\u3002UART\u7684\u4e3b\u8981\u7ec4\u6210\u90e8\u5206\u662f\u4e00\u4e2a\u53d1\u9001\u5668\u548c\u4e00\u4e2a\u63a5\u6536\u5668\uff0c\u5b83\u4eec\u53ef\u4ee5\u4f7f\u7528\u4e0d\u540c\u7684\u6ce2\u7279\u7387\uff08baud rate\uff09\u8fdb\u884c\u6570\u636e\u4f20\u8f93\u3002UART\u53ef\u4ee5\u4f7f\u7528\u4e24\u79cd\u4e0d\u540c\u7684\u6a21\u5f0f\uff0c\u5373\u540c\u6b65\u6a21\u5f0f\u548c\u5f02\u6b65\u6a21\u5f0f\u3002\u5728\u540c\u6b65\u6a21\u5f0f\u4e0b\uff0c\u4e24\u4e2a\u7cfb\u7edf\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u662f\u7531\u4e00\u4e2a\u65f6\u949f\u4fe1\u53f7\u63a7\u5236\u7684\uff0c\u800c\u5728\u5f02\u6b65\u6a21\u5f0f\u4e0b\uff0c\u4e24\u4e2a\u7cfb\u7edf\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u662f\u7531\u53d1\u9001\u5668\u548c\u63a5\u6536\u5668\u4e4b\u95f4\u7684\u6ce2\u7279\u7387\u63a7\u5236\u7684\u3002<\/p>\n
UART\u7684\u5de5\u4f5c\u539f\u7406\u975e\u5e38\u7b80\u5355\uff0c\u5b83\u53ef\u4ee5\u5c06\u4e00\u4e2a\u7cfb\u7edf\u4e2d\u7684\u6570\u636e\u8f6c\u6362\u4e3a\u53e6\u4e00\u4e2a\u7cfb\u7edf\u53ef\u4ee5\u8bc6\u522b\u7684\u683c\u5f0f\uff0c\u4ece\u800c\u5b9e\u73b0\u4e24\u4e2a\u7cfb\u7edf\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u3002UART\u7684\u5de5\u4f5c\u539f\u7406\u5982\u4e0b\uff1a\u9996\u5148\uff0c\u53d1\u9001\u5668\u5c06\u8981\u53d1\u9001\u7684\u6570\u636e\u8f6c\u6362\u6210\u4e00\u79cd\u53ef\u4ee5\u88ab\u63a5\u6536\u5668\u8bc6\u522b\u7684\u683c\u5f0f\uff1b\u5176\u6b21\uff0c\u53d1\u9001\u5668\u5c06\u8f6c\u6362\u540e\u7684\u6570\u636e\u53d1\u9001\u51fa\u53bb\uff1b\u6700\u540e\uff0c\u63a5\u6536\u5668\u5c06\u63a5\u6536\u5230\u7684\u6570\u636e\u8f6c\u6362\u6210\u53ef\u4ee5\u88ab\u7cfb\u7edf\u8bc6\u522b\u7684\u683c\u5f0f\uff0c\u4ece\u800c\u5b9e\u73b0\u6570\u636e\u4f20\u8f93\u3002<\/p>\n
UART\u662f\u4e00\u79cd\u7b80\u5355\u9ad8\u6548\u7684\u677f\u95f4\u901a\u4fe1\u6280\u672f\uff0c\u5b83\u5177\u6709\u4ee5\u4e0b\u4f18\u70b9\uff1a<\/p>\n
UART\u662f\u4e00\u79cd\u5e38\u7528\u7684\u677f\u95f4\u901a\u4fe1\u6280\u672f\uff0c\u5b83\u53ef\u4ee5\u5b9e\u73b0\u4e24\u4e2a\u7cfb\u7edf\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\uff0c\u5e76\u4e14\u53ef\u4ee5\u4ee5\u5f02\u6b65\u65b9\u5f0f\u4f20\u8f93\u6570\u636e\u3002<\/strong>\u4f7f\u7528UART\u5b9e\u73b0\u677f\u95f4\u901a\u4fe1\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n \u9996\u5148\uff0c\u9700\u8981\u51c6\u5907UART\u7684\u786c\u4ef6\uff0c\u5305\u62ecUART\u63a5\u53e3\uff0cUART\u63a7\u5236\u5668\uff0cUART\u53d1\u9001\u5668\u548cUART\u63a5\u6536\u5668\u7b49\u3002UART\u63a5\u53e3\u662fUART\u7684\u8fde\u63a5\u63a5\u53e3\uff0c\u53ef\u4ee5\u5c06UART\u63a7\u5236\u5668\u3001UART\u53d1\u9001\u5668\u548cUART\u63a5\u6536\u5668\u8fde\u63a5\u5728\u4e00\u8d77\u3002UART\u63a7\u5236\u5668\u53ef\u4ee5\u63a7\u5236UART\u53d1\u9001\u5668\u548cUART\u63a5\u6536\u5668\u7684\u5de5\u4f5c\uff0c\u5e76\u4e14\u53ef\u4ee5\u8bbe\u7f6eUART\u7684\u6ce2\u7279\u7387\u3002UART\u53d1\u9001\u5668\u53ef\u4ee5\u5c06\u8981\u53d1\u9001\u7684\u6570\u636e\u8f6c\u6362\u6210\u53ef\u4ee5\u88ab\u63a5\u6536\u5668\u8bc6\u522b\u7684\u683c\u5f0f\uff0c\u7136\u540e\u53d1\u9001\u51fa\u53bb\u3002UART\u63a5\u6536\u5668\u53ef\u4ee5\u63a5\u6536\u5230\u53d1\u9001\u5668\u53d1\u9001\u7684\u6570\u636e\uff0c\u5e76\u4e14\u5c06\u63a5\u6536\u5230\u7684\u6570\u636e\u8f6c\u6362\u6210\u53ef\u4ee5\u88ab\u7cfb\u7edf\u8bc6\u522b\u7684\u683c\u5f0f\u3002<\/p>\n \u5176\u6b21\uff0c\u9700\u8981\u51c6\u5907UART\u7684\u8f6f\u4ef6\uff0c\u5305\u62ecUART\u9a71\u52a8\u7a0b\u5e8f\u3001UART\u914d\u7f6e\u7a0b\u5e8f\u548cUART\u6570\u636e\u4f20\u8f93\u7a0b\u5e8f\u7b49\u3002UART\u9a71\u52a8\u7a0b\u5e8f\u53ef\u4ee5\u63a7\u5236UART\u7684\u786c\u4ef6\uff0c\u5e76\u4e14\u53ef\u4ee5\u5b9e\u73b0UART\u7684\u914d\u7f6e\u3002UART\u914d\u7f6e\u7a0b\u5e8f\u53ef\u4ee5\u8bbe\u7f6eUART\u7684\u6ce2\u7279\u7387\u3001\u6570\u636e\u683c\u5f0f\u7b49\u53c2\u6570\uff0c\u4ee5\u4fbf\u5b9e\u73b0UART\u7684\u6b63\u786e\u5de5\u4f5c\u3002UART\u6570\u636e\u4f20\u8f93\u7a0b\u5e8f\u53ef\u4ee5\u5b9e\u73b0\u4e24\u4e2a\u7cfb\u7edf\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\uff0c\u5e76\u4e14\u53ef\u4ee5\u5b9e\u73b0\u6570\u636e\u7684\u53d1\u9001\u548c\u63a5\u6536\u3002<\/p>\n UART\u662f\u4e00\u79cd\u5e38\u7528\u7684\u677f\u95f4\u901a\u4fe1\u6280\u672f\uff0c\u5b83\u53ef\u4ee5\u5b9e\u73b0\u4e24\u4e2a\u7cfb\u7edf\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\uff0c\u5e76\u4e14\u53ef\u4ee5\u4ee5\u5f02\u6b65\u65b9\u5f0f\u4f20\u8f93\u6570\u636e\u3002<\/strong>UART\u5177\u6709\u7b80\u5355\u9ad8\u6548\u3001\u4f4e\u6210\u672c\u7b49\u4f18\u70b9\uff0c\u53ef\u4ee5\u5728\u4f4e\u6210\u672c\u7684\u786c\u4ef6\u4e0a\u5b9e\u73b0\u9ad8\u6548\u7684\u6570\u636e\u4f20\u8f93\u3002\u4f7f\u7528UART\u5b9e\u73b0\u677f\u95f4\u901a\u4fe1\u7684\u6b65\u9aa4\u662f\uff1a\u9996\u5148\u51c6\u5907UART\u7684\u786c\u4ef6\uff0c\u5176\u6b21\u51c6\u5907UART\u7684\u8f6f\u4ef6\uff0c\u6700\u540e\u5b9e\u73b0UART\u7684\u6b63\u786e\u5de5\u4f5c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" \u677f\u95f4\u901a\u4fe1\uff08Board-to-BoardCommunication\uff09\u662f\u6307\u5728\u591a\u5757\u7535\u8def\u677f\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u3002\u5b83\u662f\u7535\u5b50\u7cfb\u7edf\u4e2d\u4e00\u79cd\u91cd\u8981\u7684\u6280\u672f\uff0c\u53ef\u4ee5\u7528\u6765\u8fde\u63a5\u591a\u4e2a\u5904\u7406\u5668\uff0c\u4f7f\u5f97\u591a\u4e2a\u5904\u7406\u5668\u53ef<\/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-39098","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\/39098","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=39098"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/39098\/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=39098"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=39098"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=39098"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}} \u786c\u4ef6\u51c6\u5907<\/h3>\n
\u8f6f\u4ef6\u51c6\u5907<\/h3>\n
\u603b\u7ed3<\/h2>\n