{"id":39813,"date":"2023-10-04T16:53:17","date_gmt":"2023-10-04T08:53:17","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=39813"},"modified":"2023-10-04T16:53:17","modified_gmt":"2023-10-04T08:53:17","slug":"ucktxbx","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/39813.html","title":{"rendered":"UART\u4e32\u53e3\u901a\u4fe1\u6ce2\u5f62"},"content":{"rendered":"

  UART\uff08Universal Asynchronous Receiver \/ Transmitter\uff09\u662f\u4e00\u79cd\u57fa\u4e8e\u4e32\u884c\u7684\u5f02\u6b65\u6536\u53d1\u5668\uff0c\u5b83\u901a\u8fc7\u4e24\u79cd\u4fe1\u53f7\uff08\u63a5\u6536\uff08RX\uff09\u548c\u53d1\u9001\uff08TX\uff09\uff09\u6765\u8fdb\u884c\u6570\u636e\u4f20\u8f93\u3002\u5b83\u901a\u5e38\u88ab\u7528\u6765\u8fde\u63a5\u4e00\u4e2a\u4e3b\u673a\u548c\u4e00\u4e2a\u5916\u90e8\u8bbe\u5907\uff0c\u5982\u6253\u5370\u673a\u6216\u6570\u636e\u91c7\u96c6\u4eea\u3002UART\u4e32\u884c\u901a\u4fe1\u6ce2\u5f62\u662f\u7528\u6765\u8868\u793aUART\u4e32\u884c\u901a\u4fe1\u7684\u4e00\u79cd\u56fe\u5f62\u8868\u793a\u6cd5\uff0c\u5b83\u7528\u6765\u63cf\u8ff0UART\u7684\u4fe1\u53f7\uff0c\u4ece\u800c\u5e2e\u52a9\u8bbe\u8ba1\u8005\u66f4\u597d\u5730\u7406\u89e3UART\u7684\u529f\u80fd\u548c\u7279\u6027\u3002<\/p>\n

UART\u4fe1\u53f7\u683c\u5f0f<\/h2>\n

  UART\u4e32\u53e3\u901a\u4fe1\u6ce2\u5f62\u662f\u4e00\u79cd\u65f6\u5e8f\u56fe\uff0c\u7528\u6765\u63cf\u8ff0UART\u4e32\u53e3\u7684\u4fe1\u53f7\u683c\u5f0f\u3002\u5b83\u7531\u4e00\u7cfb\u5217\u7684\u9ad8\u4f4e\u7535\u5e73\u6784\u6210\uff0c\u4ee5\u53ca\u4e00\u7cfb\u5217\u7684\u65f6\u95f4\u95f4\u9694\u3002UART\u4fe1\u53f7\u683c\u5f0f\u7531\u4ee5\u4e0b\u90e8\u5206\u7ec4\u6210\uff1a\u8d77\u59cb\u4f4d\uff08start bit\uff09\u3001\u6570\u636e\u4f4d\uff08data bits\uff09\u3001\u6821\u9a8c\u4f4d\uff08parity bit\uff09\u3001\u505c\u6b62\u4f4d\uff08stop bit\uff09\u4ee5\u53ca\u6d41\u63a7\u4f4d\uff08flow control bit\uff09\u3002<\/p>\n

  \u8d77\u59cb\u4f4d<\/h3>\n

  \u8d77\u59cb\u4f4d\u662fUART\u4fe1\u53f7\u683c\u5f0f\u4e2d\u7684\u7b2c\u4e00\u4e2a\u4f4d\uff0c\u7528\u6765\u8868\u793a\u4e00\u4e2a\u5b57\u8282\u7684\u5f00\u59cb\u3002\u5b83\u662f\u4e00\u4e2a\u4f4e\u7535\u5e73\u4fe1\u53f7\uff0c\u6301\u7eed\u4e00\u4e2abit\u65f6\u95f4\u3002<\/p>\n

  \u6570\u636e\u4f4d<\/h3>\n

  \u6570\u636e\u4f4d\u662fUART\u4fe1\u53f7\u683c\u5f0f\u4e2d\u7684\u7b2c\u4e8c\u90e8\u5206\uff0c\u5b83\u7528\u6765\u4f20\u8f93\u6570\u636e\u3002\u6570\u636e\u4f4d\u7684\u957f\u5ea6\u53ef\u4ee5\u662f5\u4f4d\u30016\u4f4d\u30017\u4f4d\u62168\u4f4d\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n

  \u6821\u9a8c\u4f4d<\/h3>\n

  \u6821\u9a8c\u4f4d\u662fUART\u4fe1\u53f7\u683c\u5f0f\u4e2d\u7684\u7b2c\u4e09\u90e8\u5206\uff0c\u5b83\u7528\u6765\u68c0\u67e5\u6570\u636e\u4f4d\u662f\u5426\u6709\u9519\u8bef\u3002\u6821\u9a8c\u4f4d\u53ef\u4ee5\u662f\u5947\u6821\u9a8c\u4f4d\uff08odd parity\uff09\u3001\u5076\u6821\u9a8c\u4f4d\uff08even parity\uff09\u6216\u65e0\u6821\u9a8c\u4f4d\uff08no parity\uff09\u3002<\/p>\n

  \u505c\u6b62\u4f4d<\/h3>\n

  \u505c\u6b62\u4f4d\u662fUART\u4fe1\u53f7\u683c\u5f0f\u4e2d\u7684\u6700\u540e\u4e00\u90e8\u5206\uff0c\u5b83\u7528\u6765\u8868\u793a\u4e00\u4e2a\u5b57\u8282\u7684\u7ed3\u675f\u3002\u5b83\u662f\u4e00\u4e2a\u9ad8\u7535\u5e73\u4fe1\u53f7\uff0c\u6301\u7eed\u4e00\u4e2abit\u65f6\u95f4\u3002<\/p>\n

  \u6d41\u63a7\u4f4d<\/h3>\n

  \u6d41\u63a7\u4f4d\u662fUART\u4fe1\u53f7\u683c\u5f0f\u4e2d\u7684\u53ef\u9009\u90e8\u5206\uff0c\u5b83\u7528\u6765\u63a7\u5236\u6570\u636e\u7684\u53d1\u9001\u548c\u63a5\u6536\u3002\u5b83\u662f\u4e00\u4e2a\u9ad8\u7535\u5e73\u4fe1\u53f7\uff0c\u6301\u7eed\u4e00\u4e2abit\u65f6\u95f4\uff0c\u53ea\u6709\u5728\u53d1\u9001\u7aef\u6216\u63a5\u6536\u7aef\u51c6\u5907\u597d\u63a5\u6536\u6570\u636e\u65f6\uff0c\u624d\u4f1a\u53d1\u9001\u6d41\u63a7\u4f4d\u3002<\/p>\n

UART\u6ce2\u5f62\u7279\u5f81<\/h2>\n

  UART\u4e32\u53e3\u901a\u4fe1\u6ce2\u5f62\u5177\u6709\u4e00\u4e9b\u7279\u6b8a\u7684\u7279\u5f81\uff0c\u53ef\u4ee5\u5e2e\u52a9\u8bbe\u8ba1\u8005\u66f4\u597d\u5730\u7406\u89e3UART\u7684\u529f\u80fd\u548c\u7279\u6027\u3002<\/p>\n

  \u65f6\u5e8f<\/h3>\n

  UART\u4e32\u53e3\u901a\u4fe1\u6ce2\u5f62\u7684\u65f6\u5e8f\u662f\u7531\u4e00\u7cfb\u5217\u7684\u9ad8\u4f4e\u7535\u5e73\u548c\u65f6\u95f4\u95f4\u9694\u7ec4\u6210\u7684\uff0c\u5b83\u4eec\u7528\u6765\u8868\u793aUART\u4fe1\u53f7\u683c\u5f0f\u7684\u5404\u4e2a\u90e8\u5206\uff0c\u5982\u8d77\u59cb\u4f4d\u3001\u6570\u636e\u4f4d\u3001\u6821\u9a8c\u4f4d\u3001\u505c\u6b62\u4f4d\u548c\u6d41\u63a7\u4f4d\u3002<\/p>\n

  \u4fe1\u53f7\u5bbd\u5ea6<\/h3>\n

  UART\u4e32\u53e3\u901a\u4fe1\u6ce2\u5f62\u7684\u4fe1\u53f7\u5bbd\u5ea6\u8868\u793a\u6bcf\u4e2aUART\u4fe1\u53f7\u683c\u5f0f\u90e8\u5206\u7684\u65f6\u95f4\u957f\u5ea6\uff0c\u5982\u8d77\u59cb\u4f4d\u3001\u6570\u636e\u4f4d\u3001\u6821\u9a8c\u4f4d\u3001\u505c\u6b62\u4f4d\u548c\u6d41\u63a7\u4f4d\u3002\u901a\u5e38\uff0cUART\u4fe1\u53f7\u683c\u5f0f\u7684\u4fe1\u53f7\u5bbd\u5ea6\u8d8a\u957f\uff0c\u4f20\u8f93\u7684\u6570\u636e\u5c31\u8d8a\u7cbe\u786e\u3002<\/p>\n

  \u4f20\u8f93\u901f\u7387<\/h3>\n

  UART\u4e32\u53e3\u901a\u4fe1\u6ce2\u5f62\u7684\u4f20\u8f93\u901f\u7387\u8868\u793a\u6bcf\u79d2\u4f20\u8f93\u7684\u5b57\u8282\u6570\u3002UART\u7684\u4f20\u8f93\u901f\u7387\u4e00\u822c\u572850bps\u52304Mbps\u4e4b\u95f4\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u5e94\u7528\u7a0b\u5e8f\u7684\u9700\u6c42\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  UART\u4e32\u53e3\u901a\u4fe1\u6ce2\u5f62\u662f\u4e00\u79cd\u65f6\u5e8f\u56fe\uff0c\u7528\u6765\u63cf\u8ff0UART\u4e32\u53e3\u7684\u4fe1\u53f7\u683c\u5f0f\uff0c\u5b83\u7531\u4e00\u7cfb\u5217\u7684\u9ad8\u4f4e\u7535\u5e73\u6784\u6210\uff0c\u4ee5\u53ca\u4e00\u7cfb\u5217\u7684\u65f6\u95f4\u95f4\u9694\u3002<\/strong>\u5b83\u7531\u8d77\u59cb\u4f4d\u3001\u6570\u636e\u4f4d\u3001\u6821\u9a8c\u4f4d\u3001\u505c\u6b62\u4f4d\u4ee5\u53ca\u6d41\u63a7\u4f4d\u7ec4\u6210\uff0c\u5b83\u4eec\u7684\u65f6\u95f4\u957f\u5ea6\u548c\u4f20\u8f93\u901f\u7387\u90fd\u4f1a\u5f71\u54cdUART\u4f20\u8f93\u7684\u7cbe\u786e\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

UART\uff08UniversalAsynchronousReceiver\/Transmitter\uff09\u662f\u4e00\u79cd\u57fa\u4e8e\u4e32\u884c\u7684\u5f02\u6b65\u6536\u53d1\u5668\uff0c\u5b83\u901a\u8fc7\u4e24\u79cd\u4fe1\u53f7\uff08\u63a5\u6536\uff08RX\uff09\u548c\u53d1\u9001\uff08TX<\/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":[69],"class_list":["post-39813","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-cktx"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/39813","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=39813"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/39813\/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=39813"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=39813"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=39813"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}