{"id":40104,"date":"2023-10-05T05:43:06","date_gmt":"2023-10-04T21:43:06","guid":{"rendered":"\/\/www.dealsbon.com\/?p=40104"},"modified":"2023-10-05T05:43:06","modified_gmt":"2023-10-04T21:43:06","slug":"rhsymduljly","status":"publish","type":"post","link":"\/\/www.dealsbon.com\/blog\/40104.html","title":{"rendered":"\u5982\u4f55\u4f7f\u7528MSP430\u7684UART\u8fde\u63a5\u84dd\u7259"},"content":{"rendered":"

  \u84dd\u7259\u662f\u4e00\u79cd\u65e0\u7ebf\u6280\u672f\uff0c\u5b83\u5141\u8bb8\u7528\u6237\u5728\u77ed\u8ddd\u79bb\u5185\u65e0\u7ebf\u4f20\u8f93\u6570\u636e\u3002\u5b83\u53ef\u4ee5\u7528\u4e8e\u8fde\u63a5\u667a\u80fd\u624b\u673a\u3001\u7535\u8111\u3001\u5e73\u677f\u7535\u8111\u7b49\u8bbe\u5907\uff0c\u4ee5\u53ca\u63a7\u5236\u5bb6\u5ead\u8bbe\u5907\u3001\u81ea\u52a8\u5316\u7cfb\u7edf\u7b49\u3002MSP430\u7684UART\u662f\u4e00\u79cd\u4e32\u884c\u901a\u4fe1\u63a5\u53e3\uff0c\u5b83\u53ef\u4ee5\u7528\u4e8e\u8fde\u63a5\u84dd\u7259\u8bbe\u5907\uff0c\u4ee5\u5b9e\u73b0\u65e0\u7ebf\u4f20\u8f93\u6570\u636e\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528MSP430\u7684UART\u8fde\u63a5\u84dd\u7259\u3002<\/p>\n

UART\u7684\u57fa\u672c\u6982\u5ff5<\/h2>\n

  UART\uff08Universal Asynchronous Receiver Transmitter\uff09\u662f\u4e00\u79cd\u4e32\u884c\u901a\u4fe1\u63a5\u53e3\uff0c\u5b83\u53ef\u4ee5\u7528\u4e8e\u5728\u4e24\u53f0\u8bbe\u5907\u4e4b\u95f4\u8fdb\u884c\u6570\u636e\u4f20\u8f93\u3002UART\u6709\u4e24\u4e2a\u4e3b\u8981\u7ec4\u4ef6\uff1a\u53d1\u9001\u5668\u548c\u63a5\u6536\u5668\u3002\u53d1\u9001\u5668\u7528\u4e8e\u5c06\u6570\u636e\u4ece\u4e00\u53f0\u8bbe\u5907\u53d1\u9001\u5230\u53e6\u4e00\u53f0\u8bbe\u5907\uff0c\u800c\u63a5\u6536\u5668\u5219\u7528\u4e8e\u63a5\u6536\u53e6\u4e00\u53f0\u8bbe\u5907\u53d1\u9001\u7684\u6570\u636e\u3002<\/p>\n

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

  UART\u7684\u5de5\u4f5c\u539f\u7406\u975e\u5e38\u7b80\u5355\uff0c\u5b83\u4f7f\u7528\u4e24\u6761\u7ebf\u6765\u8fdb\u884c\u6570\u636e\u4f20\u8f93\uff0c\u4e00\u6761\u7ebf\u7528\u4e8e\u53d1\u9001\u6570\u636e\uff0c\u53e6\u4e00\u6761\u7ebf\u7528\u4e8e\u63a5\u6536\u6570\u636e\u3002\u5f53\u53d1\u9001\u8bbe\u5907\u53d1\u9001\u6570\u636e\u65f6\uff0c\u63a5\u6536\u8bbe\u5907\u5c31\u4f1a\u63a5\u6536\u5230\u6570\u636e\u3002UART\u4e5f\u53ef\u4ee5\u7528\u4e8e\u8fde\u63a5\u84dd\u7259\u8bbe\u5907\uff0c\u4ee5\u5b9e\u73b0\u65e0\u7ebf\u4f20\u8f93\u6570\u636e\u3002<\/p>\n

  MSP430\u7684UART\u63a5\u53e3<\/h3>\n

  MSP430\u662f\u4e00\u6b3e\u5fae\u63a7\u5236\u5668\uff0c\u5b83\u62e5\u6709\u4e00\u4e2aUART\u63a5\u53e3\uff0c\u53ef\u4ee5\u7528\u4e8e\u8fde\u63a5\u84dd\u7259\u8bbe\u5907\u3002MSP430\u7684UART\u63a5\u53e3\u53ef\u4ee5\u652f\u6301\u9ad8\u8fbe115200bps\u7684\u4f20\u8f93\u901f\u7387\uff0c\u5e76\u4e14\u53ef\u4ee5\u652f\u6301\u591a\u79cd\u6570\u636e\u683c\u5f0f\uff0c\u59828\u4f4d\u30017\u4f4d\u3001\u5076\u6821\u9a8c\u548c\u5947\u6821\u9a8c\u7b49\u3002<\/p>\n

\u5982\u4f55\u4f7f\u7528MSP430\u7684UART\u8fde\u63a5\u84dd\u7259<\/h2>\n

  MSP430\u7684UART\u63a5\u53e3\u53ef\u4ee5\u7528\u4e8e\u8fde\u63a5\u84dd\u7259\u8bbe\u5907\uff0c\u4ee5\u5b9e\u73b0\u65e0\u7ebf\u4f20\u8f93\u6570\u636e\u3002\u4e0b\u9762\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528MSP430\u7684UART\u8fde\u63a5\u84dd\u7259\uff1a<\/p>\n

  \u7b2c\u4e00\u6b65\uff1a\u51c6\u5907\u84dd\u7259\u8bbe\u5907<\/h3>\n

  \u9996\u5148\uff0c\u4f60\u9700\u8981\u51c6\u5907\u4e00\u4e2a\u84dd\u7259\u8bbe\u5907\uff0c\u53ef\u4ee5\u662f\u4e00\u4e2a\u84dd\u7259\u6a21\u5757\uff0c\u4e5f\u53ef\u4ee5\u662f\u4e00\u4e2a\u84dd\u7259\u624b\u673a\u3002\u84dd\u7259\u8bbe\u5907\u5fc5\u987b\u652f\u6301SPP\uff08Serial Port Profile\uff09\u534f\u8bae\uff0c\u4ee5\u4fbf\u652f\u6301UART\u901a\u4fe1\u3002<\/p>\n

  \u7b2c\u4e8c\u6b65\uff1a\u8fde\u63a5\u84dd\u7259\u8bbe\u5907<\/h3>\n

  \u63a5\u4e0b\u6765\uff0c\u4f60\u9700\u8981\u8fde\u63a5\u84dd\u7259\u8bbe\u5907\uff0c\u53ef\u4ee5\u4f7f\u7528\u84dd\u7259\u8bbe\u5907\u7684\u7ba1\u7406\u8f6f\u4ef6\u6765\u8fde\u63a5\u84dd\u7259\u8bbe\u5907\u3002\u8fde\u63a5\u6210\u529f\u540e\uff0c\u4f60\u53ef\u4ee5\u67e5\u770b\u84dd\u7259\u8bbe\u5907\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u6bd4\u5982\u84dd\u7259\u5730\u5740\u3001\u8bbe\u5907\u540d\u79f0\u7b49\u3002<\/p>\n

  \u7b2c\u4e09\u6b65\uff1a\u8bbe\u7f6eUART\u53c2\u6570<\/h3>\n

  \u63a5\u4e0b\u6765\uff0c\u4f60\u9700\u8981\u8bbe\u7f6eMSP430\u7684UART\u53c2\u6570\uff0c\u6bd4\u5982\u6ce2\u7279\u7387\u3001\u6570\u636e\u4f4d\u3001\u6821\u9a8c\u4f4d\u3001\u505c\u6b62\u4f4d\u7b49\uff0c\u8fd9\u4e9b\u53c2\u6570\u5fc5\u987b\u4e0e\u84dd\u7259\u8bbe\u5907\u7684\u53c2\u6570\u4fdd\u6301\u4e00\u81f4\uff0c\u4ee5\u786e\u4fdd\u6570\u636e\u4f20\u8f93\u6b63\u786e\u3002<\/p>\n

  \u7b2c\u56db\u6b65\uff1a\u53d1\u9001\u548c\u63a5\u6536\u6570\u636e<\/h3>\n

  \u6700\u540e\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528MSP430\u7684UART\u63a5\u53e3\u6765\u53d1\u9001\u548c\u63a5\u6536\u6570\u636e\uff0c\u4ee5\u5b9e\u73b0\u65e0\u7ebf\u4f20\u8f93\u6570\u636e\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528MSP430\u7684UART\u5e93\u51fd\u6570\u6765\u5b9e\u73b0\u6570\u636e\u53d1\u9001\u548c\u63a5\u6536\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528\u786c\u4ef6\u5bc4\u5b58\u5668\u6765\u5b9e\u73b0\u6570\u636e\u53d1\u9001\u548c\u63a5\u6536\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  \u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u4f7f\u7528MSP430\u7684UART\u8fde\u63a5\u84dd\u7259\uff0cMSP430\u7684UART\u63a5\u53e3\u53ef\u4ee5\u652f\u6301\u9ad8\u8fbe115200bps\u7684\u4f20\u8f93\u901f\u7387\uff0c\u5e76\u4e14\u53ef\u4ee5\u652f\u6301\u591a\u79cd\u6570\u636e\u683c\u5f0f\uff0c\u59828\u4f4d\u30017\u4f4d\u3001\u5076\u6821\u9a8c\u548c\u5947\u6821\u9a8c\u7b49\u3002<\/strong>\u8981\u4f7f\u7528MSP430\u7684UART\u8fde\u63a5\u84dd\u7259\uff0c\u9700\u8981\u51c6\u5907\u4e00\u4e2a\u84dd\u7259\u8bbe\u5907\uff0c\u7136\u540e\u8fde\u63a5\u84dd\u7259\u8bbe\u5907\uff0c\u8bbe\u7f6eUART\u53c2\u6570\uff0c\u6700\u540e\u4f7f\u7528MSP430\u7684UART\u53d1\u9001\u548c\u63a5\u6536\u6570\u636e\uff0c\u4ee5\u5b9e\u73b0\u65e0\u7ebf\u4f20\u8f93\u6570\u636e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u84dd\u7259\u662f\u4e00\u79cd\u65e0\u7ebf\u6280\u672f\uff0c\u5b83\u5141\u8bb8\u7528\u6237\u5728\u77ed\u8ddd\u79bb\u5185\u65e0\u7ebf\u4f20\u8f93\u6570\u636e\u3002\u5b83\u53ef\u4ee5\u7528\u4e8e\u8fde\u63a5\u667a\u80fd\u624b\u673a\u3001\u7535\u8111\u3001\u5e73\u677f\u7535\u8111\u7b49\u8bbe\u5907\uff0c\u4ee5\u53ca\u63a7\u5236\u5bb6\u5ead\u8bbe\u5907\u3001\u81ea\u52a8\u5316\u7cfb\u7edf\u7b49\u3002MSP430\u7684UART\u662f\u4e00\u79cd\u4e32\u884c\u901a\u4fe1\u63a5<\/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-40104","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-uart"],"_links":{"self":[{"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/posts\/40104"}],"collection":[{"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/comments?post=40104"}],"version-history":[{"count":0,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/posts\/40104\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/media?parent=40104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/categories?post=40104"},{"taxonomy":"post_tag","embeddable":true,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/tags?post=40104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}