{"id":40346,"date":"2023-10-01T17:22:05","date_gmt":"2023-10-01T09:22:05","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=40346"},"modified":"2023-10-01T17:22:05","modified_gmt":"2023-10-01T09:22:05","slug":"szujj","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/40346.html","title":{"rendered":"STM32\u4e2dUSART\u7b80\u4ecb"},"content":{"rendered":"
USART\uff08Universal Synchronous and Asynchronous Receiver and Transmitter\uff09\u662fSTM32\u5355\u7247\u673a\u4e2d\u4e00\u79cd\u5e38\u7528\u7684\u4e32\u53e3\u901a\u4fe1\u63a5\u53e3\uff0c\u5b83\u53ef\u4ee5\u901a\u8fc7\u540c\u6b65\u548c\u5f02\u6b65\u65b9\u5f0f\u8fdb\u884c\u6570\u636e\u4f20\u8f93\uff0c\u5177\u6709\u8f83\u9ad8\u7684\u901f\u7387\u548c\u7075\u6d3b\u6027\u3002\u672c\u6587\u5c06\u4ecb\u7ecdSTM32\u4e2dUSART\u7684\u57fa\u672c\u539f\u7406\u3001\u7279\u6027\u53ca\u5176\u5e94\u7528\u573a\u666f\u3002<\/p>\n
USART\u662f\u4e00\u79cd\u53ef\u4ee5\u901a\u8fc7\u7535\u7f06\u8fde\u63a5\u4e24\u4e2a\u4e0d\u540c\u8bbe\u5907\u7684\u901a\u4fe1\u63a5\u53e3\uff0c\u5b83\u53ef\u4ee5\u901a\u8fc7\u540c\u6b65\u548c\u5f02\u6b65\u65b9\u5f0f\u8fdb\u884c\u6570\u636e\u4f20\u8f93\uff0c\u5176\u4f20\u8f93\u901f\u7387\u53ef\u4ee5\u8fbe\u5230\u6bcf\u79d2\u51e0\u5341\u4e07\u6bd4\u7279\u3002USART\u7684\u4f20\u8f93\u4fe1\u53f7\u7531\u4e24\u4e2a\u7ebf\u7ec4\u6210\uff0c\u5176\u4e2d\u4e00\u6761\u7ebf\u7528\u4e8e\u53d1\u9001\u6570\u636e\uff0c\u53e6\u4e00\u6761\u7ebf\u7528\u4e8e\u63a5\u6536\u6570\u636e\uff0c\u8fd9\u4e24\u6761\u7ebf\u4e4b\u95f4\u7531\u4e00\u4e2a\u5171\u540c\u7684\u5730\u7ebf\u76f8\u8fde\uff0c\u4ee5\u4fdd\u8bc1\u6570\u636e\u4f20\u8f93\u7684\u7a33\u5b9a\u6027\u3002<\/p>\n
\u5728\u540c\u6b65\u4f20\u8f93\u6a21\u5f0f\u4e0b\uff0c\u63a5\u6536\u7aef\u548c\u53d1\u9001\u7aef\u90fd\u9700\u8981\u7ecf\u8fc7\u65f6\u949f\u540c\u6b65\uff0c\u4ee5\u786e\u4fdd\u6570\u636e\u4f20\u8f93\u7684\u51c6\u786e\u6027\uff0c\u540c\u65f6\u53d1\u9001\u7aef\u548c\u63a5\u6536\u7aef\u4e4b\u95f4\u5fc5\u987b\u5171\u4eab\u4e00\u4e2a\u65f6\u949f\u4fe1\u53f7\uff0c\u4ee5\u4fbf\u53cc\u65b9\u80fd\u591f\u6309\u7167\u76f8\u540c\u7684\u901f\u7387\u8fdb\u884c\u6570\u636e\u4f20\u8f93\u3002<\/p>\n
\u5728\u5f02\u6b65\u4f20\u8f93\u6a21\u5f0f\u4e0b\uff0c\u53d1\u9001\u7aef\u548c\u63a5\u6536\u7aef\u4e4b\u95f4\u4e0d\u9700\u8981\u5171\u4eab\u65f6\u949f\u4fe1\u53f7\uff0c\u800c\u662f\u901a\u8fc7\u4e00\u4e2a\u7279\u6b8a\u7684\u5b57\u7b26\uff08\u79f0\u4e3a\u201c\u542f\u52a8\u5b57\u7b26\u201d\uff09\u6765\u540c\u6b65\u53d1\u9001\u7aef\u548c\u63a5\u6536\u7aef\u7684\u65f6\u949f\uff0c\u8fd9\u6837\u53d1\u9001\u7aef\u548c\u63a5\u6536\u7aef\u5c31\u53ef\u4ee5\u6309\u7167\u4e0d\u540c\u7684\u901f\u7387\u8fdb\u884c\u6570\u636e\u4f20\u8f93\u3002<\/p>\n
USART\u7684\u7279\u6027\u4e3b\u8981\u6709\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n
USART\u7684\u4f20\u8f93\u901f\u7387\u53ef\u4ee5\u8fbe\u5230\u6bcf\u79d2\u51e0\u5341\u4e07\u6bd4\u7279\uff0c\u6bd4\u5176\u4ed6\u4e32\u53e3\u63a5\u53e3\u7684\u4f20\u8f93\u901f\u7387\u8981\u5feb\u5f97\u591a\uff0c\u56e0\u6b64\u53ef\u4ee5\u6ee1\u8db3\u9ad8\u901f\u4f20\u8f93\u7684\u9700\u6c42\u3002<\/p>\n
USART\u652f\u6301\u540c\u6b65\u548c\u5f02\u6b65\u4e24\u79cd\u4f20\u8f93\u6a21\u5f0f\uff0c\u56e0\u6b64\u53ef\u4ee5\u6ee1\u8db3\u4e0d\u540c\u7684\u4f20\u8f93\u9700\u6c42\uff0c\u53ef\u4ee5\u6709\u6548\u63d0\u9ad8\u4f20\u8f93\u6548\u7387\u3002<\/p>\n
USART\u7684\u7075\u6d3b\u6027\u975e\u5e38\u9ad8\uff0c\u5b83\u53ef\u4ee5\u6839\u636e\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u8c03\u6574\u4f20\u8f93\u53c2\u6570\uff0c\u4ee5\u6ee1\u8db3\u4e0d\u540c\u7684\u4f20\u8f93\u9700\u6c42\uff0c\u53ef\u4ee5\u6709\u6548\u63d0\u9ad8\u4f20\u8f93\u6548\u7387\u3002<\/p>\n
USART\u5177\u6709\u8f83\u9ad8\u7684\u4f20\u8f93\u901f\u7387\u548c\u7075\u6d3b\u6027\uff0c\u56e0\u6b64\u53ef\u4ee5\u5e94\u7528\u4e8e\u5404\u79cd\u9ad8\u901f\u4f20\u8f93\u7684\u573a\u666f\uff0c\u5982\uff1a<\/p>\n
USART\u53ef\u4ee5\u7528\u4e8e\u6570\u636e\u91c7\u96c6\uff0c\u4f8b\u5982\u6c14\u8c61\u7ad9\u3001\u6e29\u5ea6\u8ba1\u7b49\u8bbe\u5907\uff0c\u53ef\u4ee5\u901a\u8fc7USART\u5c06\u91c7\u96c6\u5230\u7684\u6570\u636e\u4f20\u8f93\u5230\u8fdc\u7a0b\u8ba1\u7b97\u673a\u4e0a\u3002<\/p>\n
USART\u53ef\u4ee5\u7528\u4e8e\u63a7\u5236\u8bbe\u5907\uff0c\u4f8b\u5982\u673a\u5668\u4eba\u3001\u5de5\u4e1a\u81ea\u52a8\u5316\u8bbe\u5907\u7b49\uff0c\u53ef\u4ee5\u901a\u8fc7USART\u5c06\u63a7\u5236\u4fe1\u53f7\u4f20\u8f93\u5230\u8fdc\u7a0b\u8bbe\u5907\u4e0a\uff0c\u4ee5\u5b9e\u73b0\u8fdc\u7a0b\u63a7\u5236\u3002<\/p>\n
USART\u53ef\u4ee5\u7528\u4e8e\u901a\u4fe1\u8bbe\u5907\uff0c\u4f8b\u5982\u624b\u673a\u3001\u7f51\u7edc\u8bbe\u5907\u7b49\uff0c\u53ef\u4ee5\u901a\u8fc7USART\u5c06\u6570\u636e\u4f20\u8f93\u5230\u8fdc\u7a0b\u8bbe\u5907\u4e0a\uff0c\u4ee5\u5b9e\u73b0\u8fdc\u7a0b\u901a\u4fe1\u3002<\/p>\n
\u672c\u6587\u4ecb\u7ecd\u4e86STM32\u4e2dUSART\u7684\u57fa\u672c\u539f\u7406\u3001\u7279\u6027\u53ca\u5176\u5e94\u7528\u573a\u666f\uff0cUSART\u5177\u6709\u8f83\u9ad8\u7684\u4f20\u8f93\u901f\u7387\u548c\u7075\u6d3b\u6027\uff0c\u53ef\u4ee5\u5e94\u7528\u4e8e\u5404\u79cd\u9ad8\u901f\u4f20\u8f93\u7684\u573a\u666f\uff0c\u5982\u6570\u636e\u91c7\u96c6\u3001\u63a7\u5236\u8bbe\u5907\u3001\u901a\u4fe1\u8bbe\u5907\u7b49\u3002<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":" USART\uff08UniversalSynchronousandAsynchronousReceiverandTransmitter\uff09\u662fSTM32\u5355\u7247\u673a\u4e2d\u4e00\u79cd\u5e38\u7528\u7684<\/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":[287],"class_list":["post-40346","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\/40346","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=40346"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/40346\/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=40346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=40346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=40346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}