{"id":58960,"date":"2023-10-22T03:55:46","date_gmt":"2023-10-21T19:55:46","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=58960"},"modified":"2023-10-22T03:55:46","modified_gmt":"2023-10-21T19:55:46","slug":"ezdyzd","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/58960.html","title":{"rendered":"ESP32 UART \u81ea\u5b9a\u4e49\u4e2d\u65ad"},"content":{"rendered":"

  ESP32 UART \u81ea\u5b9a\u4e49\u4e2d\u65ad\u662f\u4e00\u79cd\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u5b83\u5141\u8bb8\u5f00\u53d1\u8005\u8f7b\u677e\u5730\u8bbf\u95ee\u548c\u63a7\u5236ESP32\u7684\u4e32\u884cUART\u8bbe\u5907\u3002\u4f7f\u7528\u8fd9\u79cd\u6280\u672f\uff0c\u53ef\u4ee5\u5728\u4e0d\u4e2d\u65ad\u4e3b\u5faa\u73af\u7684\u60c5\u51b5\u4e0b\u5904\u7406UART\u6570\u636e\uff0c\u8fd9\u6709\u52a9\u4e8e\u63d0\u9ad8\u7cfb\u7edf\u6027\u80fd\u548c\u51cf\u5c11\u5ef6\u8fdf\u3002<\/p>\n

\u4ec0\u4e48\u662fESP32 UART\u81ea\u5b9a\u4e49\u4e2d\u65ad\uff1f<\/h2>\n

  ESP32 UART\u81ea\u5b9a\u4e49\u4e2d\u65ad\u662f\u4e00\u79cd\u7279\u6b8a\u7684\u4e2d\u65ad\uff0c\u5b83\u5141\u8bb8\u5f00\u53d1\u4eba\u5458\u5728\u4e0d\u4e2d\u65ad\u4e3b\u5faa\u73af\u7684\u60c5\u51b5\u4e0b\u5904\u7406UART\u6570\u636e\u3002\u8fd9\u79cd\u4e2d\u65ad\u662f\u7531ESP32\u7684\u5185\u90e8\u786c\u4ef6\u5b9e\u73b0\u7684\uff0c\u5f53UART\u6536\u5230\u6570\u636e\u65f6\uff0c\u5b83\u4f1a\u81ea\u52a8\u89e6\u53d1\u4e2d\u65ad\uff0c\u4ece\u800c\u5141\u8bb8\u5f00\u53d1\u8005\u5904\u7406\u63a5\u6536\u5230\u7684\u6570\u636e\u800c\u4e0d\u4f1a\u4e2d\u65ad\u4e3b\u5faa\u73af\u3002<\/p>\n

\u5982\u4f55\u4f7f\u7528ESP32 UART\u81ea\u5b9a\u4e49\u4e2d\u65ad\uff1f<\/h2>\n

  \u4f7f\u7528ESP32 UART\u81ea\u5b9a\u4e49\u4e2d\u65ad\u53ef\u4ee5\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u4e00\u4e2a\u51fd\u6570\u5373\u53ef\u5b8c\u6210\uff1a<\/p>\n

  1.\u8bbe\u7f6e\u81ea\u5b9a\u4e49\u4e2d\u65ad\u56de\u8c03\u51fd\u6570<\/h3>\n

  \u9996\u5148\uff0c\u60a8\u9700\u8981\u8bbe\u7f6e\u81ea\u5b9a\u4e49\u4e2d\u65ad\u56de\u8c03\u51fd\u6570\uff0c\u8be5\u51fd\u6570\u5c06\u5728\u6bcf\u6b21\u63a5\u6536\u5230UART\u6570\u636e\u65f6\u88ab\u8c03\u7528\u3002\u8be5\u51fd\u6570\u53ef\u4ee5\u7528\u6765\u5904\u7406\u63a5\u6536\u5230\u7684\u6570\u636e\uff0c\u4f8b\u5982\u5c06\u6570\u636e\u7f13\u5b58\u5230\u7f13\u51b2\u533a\uff0c\u6216\u8005\u5c06\u6570\u636e\u53d1\u9001\u5230\u5176\u4ed6\u8bbe\u5907\u3002<\/p>\n

  2.\u542f\u7528\u81ea\u5b9a\u4e49\u4e2d\u65ad<\/h3>\n

  \u63a5\u4e0b\u6765\uff0c\u60a8\u9700\u8981\u542f\u7528\u81ea\u5b9a\u4e49\u4e2d\u65ad\uff0c\u8fd9\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528esp_intr_alloc_intrstatus\u51fd\u6570\u6765\u5b8c\u6210\uff0c\u8be5\u51fd\u6570\u5141\u8bb8\u60a8\u8bbe\u7f6e\u81ea\u5b9a\u4e49\u4e2d\u65ad\u7684\u7c7b\u578b\u3001\u4f18\u5148\u7ea7\u548c\u56de\u8c03\u51fd\u6570\uff0c\u5e76\u5c06\u5176\u542f\u7528\u3002<\/p>\n

  3.\u5904\u7406\u6570\u636e<\/h3>\n

  \u6700\u540e\uff0c\u60a8\u53ef\u4ee5\u5728\u81ea\u5b9a\u4e49\u4e2d\u65ad\u56de\u8c03\u51fd\u6570\u4e2d\u5904\u7406\u63a5\u6536\u5230\u7684\u6570\u636e\uff0c\u4f8b\u5982\u5c06\u6570\u636e\u7f13\u5b58\u5230\u7f13\u51b2\u533a\uff0c\u6216\u8005\u5c06\u6570\u636e\u53d1\u9001\u5230\u5176\u4ed6\u8bbe\u5907\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  ESP32 UART\u81ea\u5b9a\u4e49\u4e2d\u65ad\u662f\u4e00\u79cd\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u5b83\u5141\u8bb8\u5f00\u53d1\u8005\u8f7b\u677e\u5730\u8bbf\u95ee\u548c\u63a7\u5236ESP32\u7684\u4e32\u884cUART\u8bbe\u5907\u3002<\/strong>\u4f7f\u7528\u8fd9\u79cd\u6280\u672f\uff0c\u53ef\u4ee5\u5728\u4e0d\u4e2d\u65ad\u4e3b\u5faa\u73af\u7684\u60c5\u51b5\u4e0b\u5904\u7406UART\u6570\u636e\uff0c\u8fd9\u6709\u52a9\u4e8e\u63d0\u9ad8\u7cfb\u7edf\u6027\u80fd\u548c\u51cf\u5c11\u5ef6\u8fdf\u3002\u4f7f\u7528ESP32 UART\u81ea\u5b9a\u4e49\u4e2d\u65ad\u53ef\u4ee5\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u8bbe\u7f6e\u81ea\u5b9a\u4e49\u4e2d\u65ad\u56de\u8c03\u51fd\u6570\u3001\u542f\u7528\u81ea\u5b9a\u4e49\u4e2d\u65ad\u548c\u5904\u7406\u6570\u636e\uff0c\u5c31\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0UART\u6570\u636e\u5904\u7406\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

ESP32UART\u81ea\u5b9a\u4e49\u4e2d\u65ad\u662f\u4e00\u79cd\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u5b83\u5141\u8bb8\u5f00\u53d1\u8005\u8f7b\u677e\u5730\u8bbf\u95ee\u548c\u63a7\u5236ESP32\u7684\u4e32\u884cUART\u8bbe\u5907\u3002\u4f7f\u7528\u8fd9\u79cd\u6280\u672f\uff0c\u53ef\u4ee5\u5728\u4e0d\u4e2d\u65ad\u4e3b\u5faa\u73af\u7684\u60c5\u51b5\u4e0b\u5904\u7406UART\u6570\u636e\uff0c\u8fd9\u6709<\/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-58960","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\/58960","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=58960"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/58960\/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=58960"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=58960"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=58960"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}