{"id":68505,"date":"2023-12-23T23:19:48","date_gmt":"2023-12-23T15:19:48","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=68505"},"modified":"2023-12-23T23:19:48","modified_gmt":"2023-12-23T15:19:48","slug":"syuqb","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/68505.html","title":{"rendered":"STM32 UART\u4e0eUSART\u533a\u522b"},"content":{"rendered":"

  STM32\u7cfb\u5217\u5fae\u63a7\u5236\u5668\u662f\u5e7f\u53d7\u6b22\u8fce\u7684\u5d4c\u5165\u5f0f\u7cfb\u7edf\u89e3\u51b3\u65b9\u6848\uff0c\u800cUART\u548cUSART\u4f5c\u4e3a\u4e32\u884c\u901a\u4fe1\u6a21\u5757<\/a>\uff0c\u5728STM32\u5f00\u53d1\u4e2d\u626e\u6f14\u7740\u91cd\u8981\u7684\u89d2\u8272\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u63a2\u8ba8STM32\u4e2dUART\u4e0eUSART\u7684\u5dee\u5f02\uff0c\u5e2e\u52a9\u8bfb\u8005\u66f4\u597d\u5730\u7406\u89e3\u548c\u5e94\u7528\u8fd9\u4e24\u79cd\u4e32\u884c\u901a\u4fe1\u65b9\u5f0f\u3002<\/p>\n

UART\u4e0eUSART\u6982\u8ff0<\/h2>\n

  UART\uff08\u901a\u7528\u5f02\u6b65\u6536\u53d1\u5668\uff09\u662f\u4e00\u79cd\u5f02\u6b65\u4e32\u884c\u901a\u4fe1\u534f\u8bae\uff0c\u5e38\u89c1\u4e8e\u5fae\u63a7\u5236\u5668\u548c\u5916\u56f4\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u8baf\u3002USART\uff08\u901a\u7528\u540c\u6b65\u5f02\u6b65\u6536\u53d1\u5668\uff09\u5219\u662f\u4e00\u79cd\u53ef\u4ee5\u652f\u6301\u540c\u6b65\u548c\u5f02\u6b65\u4e32\u884c\u901a\u4fe1\u7684\u901a\u7528\u63a5\u53e3\uff0c\u5177\u6709\u66f4\u591a\u7684\u529f\u80fd\u548c\u7075\u6d3b\u6027\u3002<\/p>\n

  UART\u5de5\u4f5c\u539f\u7406<\/h3>\n

  UART\u4e3b\u8981\u901a\u8fc7\u53d1\u9001\u548c\u63a5\u6536\u6570\u636e\u4f4d\u6765\u8fdb\u884c\u901a\u8baf\uff0c\u901a\u5e38\u91c7\u7528\u4e00\u6839\u4f20\u8f93\u7ebf\uff0c\u4e0d\u9700\u8981\u65f6\u949f\u4fe1\u53f7\u3002\u5b83\u9002\u7528\u4e8e\u7b80\u5355\u7684\u4e32\u884c\u901a\u4fe1\u9700\u6c42\uff0c\u6bd4\u5982\u4e0e\u4f20\u611f\u5668\u3001GPS\u6a21\u5757\u7b49\u5916\u8bbe\u901a\u8baf\u3002<\/p>\n

  USART\u5de5\u4f5c\u539f\u7406<\/h3>\n

  USART\u5219\u652f\u6301\u5168\u53cc\u5de5<\/a>\u901a\u8baf\uff0c\u80fd\u591f\u540c\u65f6\u53d1\u9001\u548c\u63a5\u6536\u6570\u636e\uff0c\u5e76\u4e14\u53ef\u4ee5\u9009\u62e9\u540c\u6b65\u6a21\u5f0f\u6216\u8005\u5f02\u6b65\u6a21\u5f0f\u8fdb\u884c\u901a\u8baf\u3002\u56e0\u6b64\uff0c\u5b83\u66f4\u9002\u7528\u4e8e\u590d\u6742\u7684\u901a\u8baf\u9700\u6c42\uff0c\u6bd4\u5982\u4e0e\u8ba1\u7b97\u673a\u3001LCD\u663e\u793a\u5c4f\u7b49\u8bbe\u5907\u4e4b\u95f4\u7684\u901a\u8baf\u3002<\/p>\n

STM32\u4e2d\u7684UART\u4e0eUSART<\/h2>\n

  \u5728STM32\u7cfb\u5217\u5fae\u63a7\u5236\u5668\u4e2d\uff0cUART\u548cUSART\u90fd\u6709\u81ea\u5df1\u7684\u786c\u4ef6\u5b9e\u73b0\uff0c\u5206\u522b\u5728\u4e0d\u540c\u7684\u901a\u7528\u4e32\u884c\u63a5\u53e3\uff08USART1\u3001USART2\u7b49\uff09\u4e2d\u4f7f\u7528\u3002\u56e0\u6b64\uff0c\u5728\u9009\u62e9\u4f7f\u7528\u54ea\u79cd\u901a\u4fe1\u65b9\u5f0f\u65f6\uff0c\u9700\u8981\u6839\u636e\u5177\u4f53\u7684\u901a\u8baf\u9700\u6c42\u548c\u5916\u8bbe\u7684\u7279\u6027\u6765\u51b3\u5b9a\u3002<\/p>\n

  UART\u4e0eUSART\u5728STM32\u4e2d\u7684\u533a\u522b<\/h3>\n

  \u5728STM32<\/a>\u4e2d\uff0cUART\u548cUSART\u7684\u533a\u522b\u4e3b\u8981\u4f53\u73b0\u5728\u5b83\u4eec\u7684\u529f\u80fd\u548c\u901a\u8baf\u65b9\u5f0f\u4e0a\u3002\u5bf9\u4e8e\u7b80\u5355\u7684\u4e32\u884c\u901a\u8baf\uff0c\u6bd4\u5982\u548c\u4f20\u611f\u5668\u7b49\u8bbe\u5907\u7684\u901a\u8baf\uff0c\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528UART\uff1b\u800c\u5bf9\u4e8e\u9700\u8981\u66f4\u591a\u529f\u80fd\u548c\u7075\u6d3b\u6027\u7684\u901a\u8baf\uff0c\u6bd4\u5982\u4e0e\u8ba1\u7b97\u673a\u6216\u663e\u793a\u5c4f\u7684\u901a\u8baf\uff0c\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528USART\u3002<\/p>\n

  \u4f7f\u7528\u5efa\u8bae<\/h3>\n

  \u5728\u5b9e\u9645\u5f00\u53d1\u4e2d\uff0c\u9700\u8981\u6839\u636e\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\u548c\u901a\u8baf\u9700\u6c42\u6765\u9009\u62e9\u5408\u9002\u7684\u4e32\u884c\u901a\u4fe1\u65b9\u5f0f\u3002\u5728\u4f7f\u7528STM32\u5f00\u53d1\u65f6\uff0c\u52a1\u5fc5\u6df1\u5165\u4e86\u89e3UART\u548cUSART\u7684\u7279\u70b9\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u53d1\u6325\u5b83\u4eec\u5728\u4e32\u884c\u901a\u8baf\u4e2d\u7684\u4f5c\u7528\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  \u672c\u6587\u4ecb\u7ecd\u4e86STM32\u4e2dUART\u4e0eUSART\u7684\u533a\u522b\uff0c\u4ece\u5de5\u4f5c\u539f\u7406\u548c\u5728STM32\u4e2d\u7684\u5e94\u7528\u7b49\u65b9\u9762\u8fdb\u884c\u4e86\u8be6\u7ec6\u89e3\u91ca\u3002<\/strong>\u901a\u8fc7\u6df1\u5165\u4e86\u89e3\u8fd9\u4e24\u79cd\u4e32\u884c\u901a\u4fe1\u65b9\u5f0f\u7684\u7279\u70b9\uff0c\u6211\u4eec\u53ef\u4ee5\u66f4\u597d\u5730\u9009\u62e9\u9002\u5408\u81ea\u5df1\u5e94\u7528\u573a\u666f\u7684\u901a\u8baf\u65b9\u5f0f\uff0c\u4ece\u800c\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u548c\u7cfb\u7edf\u6027\u80fd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

STM32\u7cfb\u5217\u5fae\u63a7\u5236\u5668\u662f\u5e7f\u53d7\u6b22\u8fce\u7684\u5d4c\u5165\u5f0f\u7cfb\u7edf\u89e3\u51b3\u65b9\u6848\uff0c\u800cUART\u548cUSART\u4f5c\u4e3a\u4e32\u884c\u901a\u4fe1\u6a21\u5757\uff0c\u5728STM32\u5f00\u53d1\u4e2d\u626e\u6f14\u7740\u91cd\u8981\u7684\u89d2\u8272\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u63a2\u8ba8STM32\u4e2dUART\u4e0eUS<\/p>\n","protected":false},"author":1,"featured_media":64231,"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":[287],"class_list":["post-68505","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-stm32"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/68505","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=68505"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/68505\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/64231"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=68505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=68505"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=68505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}