{"id":39379,"date":"2023-09-29T09:07:38","date_gmt":"2023-09-29T01:07:38","guid":{"rendered":"\/\/www.viralrail.com\/?p=39379"},"modified":"2023-09-29T09:07:38","modified_gmt":"2023-09-29T01:07:38","slug":"stxbj","status":"publish","type":"post","link":"\/\/www.viralrail.com\/blog\/39379.html","title":{"rendered":"Stm32\u901a\u4fe1\u6bd4\u8f83"},"content":{"rendered":"
\u5f53\u4f60\u9700\u8981\u5728\u4f60\u7684\u9879\u76ee\u4e2d\u4f7f\u7528STM32\u5fae\u63a7\u5236\u5668\u65f6\uff0c\u4f60\u9700\u8981\u8003\u8651\u5982\u4f55\u5728\u5fae\u63a7\u5236\u5668\u4e4b\u95f4\u8fdb\u884c\u901a\u4fe1\u3002\u672c\u6587\u5c06\u4ecb\u7ecdSTM32\u901a\u4fe1\u65b9\u5f0f\u7684\u6bd4\u8f83\uff0c\u4ee5\u5e2e\u52a9\u60a8\u66f4\u597d\u5730\u9009\u62e9\u6700\u9002\u5408\u60a8\u9879\u76ee\u7684\u901a\u4fe1\u65b9\u5f0f\u3002<\/p>\n
\u4e32\u884c\u901a\u4fe1\u662fSTM32\u6700\u5e38\u7528\u7684\u901a\u4fe1\u65b9\u5f0f\u4e4b\u4e00\uff0c\u5b83\u53ef\u4ee5\u901a\u8fc7\u4e24\u79cd\u65b9\u5f0f\u8fdb\u884c\uff0c\u5206\u522b\u662fUART\u548cSPI\u3002UART\u662f\u901a\u7528\u5f02\u6b65\u6536\u53d1\u5668\uff0c\u5b83\u53ef\u4ee5\u5c06\u6570\u636e\u4ee5\u5b57\u8282\u4e3a\u5355\u4f4d\u4ece\u4e00\u4e2a\u7aef\u53e3\u53d1\u9001\u5230\u53e6\u4e00\u4e2a\u7aef\u53e3\u3002\u5b83\u53ef\u4ee5\u7528\u4e8e\u8fde\u63a5\u5916\u90e8\u8bbe\u5907\uff0c\u5982GPS\u6a21\u5757\u3001\u4e32\u53e3\u6253\u5370\u673a\u7b49\u3002SPI\u662f\u4e32\u884c\u5916\u8bbe\u63a5\u53e3\uff0c\u5b83\u53ef\u4ee5\u5c06\u6570\u636e\u4ee5\u5b57\u8282\u4e3a\u5355\u4f4d\u4ece\u4e00\u4e2a\u7aef\u53e3\u53d1\u9001\u5230\u53e6\u4e00\u4e2a\u7aef\u53e3\uff0c\u4f46\u662f\u5b83\u901f\u5ea6\u6bd4UART\u5feb\u5f97\u591a\uff0c\u5e76\u4e14\u53ef\u4ee5\u8fde\u63a5\u591a\u4e2a\u8bbe\u5907\u3002<\/p>\n
UART\u662f\u4e00\u79cd\u5e38\u7528\u7684\u4e32\u884c\u901a\u4fe1\u65b9\u5f0f\uff0c\u5b83\u53ef\u4ee5\u5c06\u6570\u636e\u4ee5\u5b57\u8282\u4e3a\u5355\u4f4d\u4ece\u4e00\u4e2a\u7aef\u53e3\u53d1\u9001\u5230\u53e6\u4e00\u4e2a\u7aef\u53e3\u3002\u5b83\u53ef\u4ee5\u7528\u4e8e\u8fde\u63a5\u5916\u90e8\u8bbe\u5907\uff0c\u5982GPS\u6a21\u5757\u3001\u4e32\u53e3\u6253\u5370\u673a\u7b49\u3002UART\u7684\u4f18\u70b9\u662f\u5b83\u7684\u7b80\u5355\u6613\u7528\uff0c\u5b83\u4e0d\u9700\u8981\u590d\u6742\u7684\u786c\u4ef6\u8bbe\u7f6e\uff0c\u53ea\u9700\u8981\u63a5\u7ebf\u5c31\u53ef\u4ee5\u4f7f\u7528\u3002\u4f46\u662fUART\u7684\u7f3a\u70b9\u4e5f\u5f88\u660e\u663e\uff0c\u5b83\u7684\u4f20\u8f93\u901f\u5ea6\u6bd4\u8f83\u6162\uff0c\u6700\u591a\u53ea\u80fd\u8fbe\u5230115200bps\uff0c\u8fd9\u5728\u4eca\u5929\u7684\u9ad8\u901f\u7f51\u7edc\u73af\u5883\u4e0b\u663e\u5f97\u6709\u4e9b\u6162\u3002<\/p>\n
SPI\u662f\u53e6\u4e00\u79cd\u5e38\u7528\u7684\u4e32\u884c\u901a\u4fe1\u65b9\u5f0f\uff0c\u5b83\u53ef\u4ee5\u5c06\u6570\u636e\u4ee5\u5b57\u8282\u4e3a\u5355\u4f4d\u4ece\u4e00\u4e2a\u7aef\u53e3\u53d1\u9001\u5230\u53e6\u4e00\u4e2a\u7aef\u53e3\uff0c\u4f46\u662f\u5b83\u901f\u5ea6\u6bd4UART\u5feb\u5f97\u591a\uff0c\u6700\u9ad8\u53ef\u4ee5\u8fbe\u523010Mbits\/s\u3002SPI\u7684\u4f18\u70b9\u662f\u5b83\u7684\u4f20\u8f93\u901f\u5ea6\u5feb\uff0c\u53ef\u4ee5\u6ee1\u8db3\u9ad8\u901f\u7f51\u7edc\u73af\u5883\u7684\u9700\u6c42\uff0c\u800c\u4e14\u5b83\u53ef\u4ee5\u8fde\u63a5\u591a\u4e2a\u8bbe\u5907\uff0c\u56e0\u6b64\u53ef\u4ee5\u63d0\u9ad8\u6574\u4f53\u7cfb\u7edf\u7684\u6027\u80fd\u3002\u4f46\u662fSPI\u7684\u7f3a\u70b9\u4e5f\u5f88\u660e\u663e\uff0c\u5b83\u9700\u8981\u590d\u6742\u7684\u786c\u4ef6\u8bbe\u7f6e\uff0c\u56e0\u6b64\u5b83\u7684\u4f7f\u7528\u8d77\u6765\u6bd4\u8f83\u9ebb\u70e6\u3002<\/p>\n
\u65e0\u7ebf\u901a\u4fe1\u4e5f\u662fSTM32\u5e38\u7528\u7684\u901a\u4fe1\u65b9\u5f0f\u4e4b\u4e00\uff0c\u5b83\u53ef\u4ee5\u901a\u8fc7\u4e24\u79cd\u65b9\u5f0f\u8fdb\u884c\uff0c\u5206\u522b\u662f\u84dd\u7259\u548cWi-Fi\u3002\u84dd\u7259\u53ef\u4ee5\u7528\u4e8e\u8fde\u63a5\u79fb\u52a8\u8bbe\u5907\uff0c\u5982\u667a\u80fd\u624b\u673a\u3001\u5e73\u677f\u7535\u8111\u7b49\uff0c\u800cWi-Fi\u53ef\u4ee5\u5c06STM32\u8fde\u63a5\u5230\u4e92\u8054\u7f51\uff0c\u4ece\u800c\u5b9e\u73b0\u8fdc\u7a0b\u63a7\u5236\u3002<\/p>\n
\u84dd\u7259\u662f\u4e00\u79cd\u5e38\u7528\u7684\u65e0\u7ebf\u901a\u4fe1\u65b9\u5f0f\uff0c\u5b83\u53ef\u4ee5\u7528\u4e8e\u8fde\u63a5\u79fb\u52a8\u8bbe\u5907\uff0c\u5982\u667a\u80fd\u624b\u673a\u3001\u5e73\u677f\u7535\u8111\u7b49\u3002\u84dd\u7259\u7684\u4f18\u70b9\u662f\u5b83\u7684\u4f20\u8f93\u901f\u5ea6\u5feb\uff0c\u6700\u9ad8\u53ef\u4ee5\u8fbe\u52302.1Mbits\/s\uff0c\u800c\u4e14\u5b83\u53ef\u4ee5\u8fde\u63a5\u591a\u4e2a\u8bbe\u5907\uff0c\u56e0\u6b64\u53ef\u4ee5\u63d0\u9ad8\u6574\u4f53\u7cfb\u7edf\u7684\u6027\u80fd\u3002\u4f46\u662f\u84dd\u7259\u7684\u7f3a\u70b9\u4e5f\u5f88\u660e\u663e\uff0c\u5b83\u7684\u4f20\u8f93\u8ddd\u79bb\u6709\u9650\uff0c\u4e00\u822c\u53ea\u670910\u7c73\u4ee5\u5185\uff0c\u800c\u4e14\u5b83\u7684\u529f\u8017\u6bd4\u8f83\u9ad8\uff0c\u56e0\u6b64\u5b83\u7684\u4f7f\u7528\u5bff\u547d\u4e5f\u6bd4\u8f83\u77ed\u3002<\/p>\n
Wi-Fi\u662f\u53e6\u4e00\u79cd\u5e38\u7528\u7684\u65e0\u7ebf\u901a\u4fe1\u65b9\u5f0f\uff0c\u5b83\u53ef\u4ee5\u5c06STM32\u8fde\u63a5\u5230\u4e92\u8054\u7f51\uff0c\u4ece\u800c\u5b9e\u73b0\u8fdc\u7a0b\u63a7\u5236\u3002Wi-Fi\u7684\u4f18\u70b9\u662f\u5b83\u7684\u4f20\u8f93\u901f\u5ea6\u5feb\uff0c\u6700\u9ad8\u53ef\u4ee5\u8fbe\u5230150Mbits\/s\uff0c\u800c\u4e14\u5b83\u7684\u4f20\u8f93\u8ddd\u79bb\u4e5f\u6bd4\u8f83\u8fdc\uff0c\u4e00\u822c\u53ef\u4ee5\u8fbe\u5230100\u7c73\u4ee5\u4e0a\uff0c\u56e0\u6b64\u53ef\u4ee5\u6ee1\u8db3\u5927\u591a\u6570\u7f51\u7edc\u73af\u5883\u7684\u9700\u6c42\u3002\u4f46\u662fWi-Fi\u7684\u7f3a\u70b9\u4e5f\u5f88\u660e\u663e\uff0c\u5b83\u7684\u529f\u8017\u6bd4\u8f83\u9ad8\uff0c\u56e0\u6b64\u5b83\u7684\u4f7f\u7528\u5bff\u547d\u4e5f\u6bd4\u8f83\u77ed\u3002<\/p>\n
\u672c\u6587\u4ecb\u7ecd\u4e86STM32\u901a\u4fe1\u65b9\u5f0f\u7684\u6bd4\u8f83\uff0c\u4ee5\u5e2e\u52a9\u60a8\u66f4\u597d\u5730\u9009\u62e9\u6700\u9002\u5408\u60a8\u9879\u76ee\u7684\u901a\u4fe1\u65b9\u5f0f\u3002<\/strong>STM32\u53ef\u4ee5\u901a\u8fc7\u4e32\u884c\u901a\u4fe1\u548c\u65e0\u7ebf\u901a\u4fe1\u8fdb\u884c\u901a\u4fe1\uff0c\u4e32\u884c\u901a\u4fe1\u53ef\u4ee5\u901a\u8fc7UART\u548cSPI\u8fdb\u884c\uff0cUART\u7684\u4f18\u70b9\u662f\u5b83\u7684\u7b80\u5355\u6613\u7528\uff0c\u4f46\u662f\u5b83\u7684\u4f20\u8f93\u901f\u5ea6\u6bd4\u8f83\u6162\uff1b\u800cSPI\u7684\u4f18\u70b9\u662f\u5b83\u7684\u4f20\u8f93\u901f\u5ea6\u5feb\uff0c\u53ef\u4ee5\u6ee1\u8db3\u9ad8\u901f\u7f51\u7edc\u73af\u5883\u7684\u9700\u6c42\uff0c\u4f46\u662f\u5b83\u9700\u8981\u590d\u6742\u7684\u786c\u4ef6\u8bbe\u7f6e\u3002\u65e0\u7ebf\u901a\u4fe1\u53ef\u4ee5\u901a\u8fc7\u84dd\u7259\u548cWi-Fi\u8fdb\u884c\uff0c\u84dd\u7259\u7684\u4f18\u70b9\u662f\u5b83\u7684\u4f20\u8f93\u901f\u5ea6\u5feb\uff0c\u53ef\u4ee5\u8fde\u63a5\u591a\u4e2a\u8bbe\u5907\uff0c\u4f46\u662f\u5b83\u7684\u4f20\u8f93\u8ddd\u79bb\u6709\u9650\uff1b\u800cWi-Fi\u7684\u4f18\u70b9\u662f\u5b83\u7684\u4f20\u8f93\u901f\u5ea6\u5feb\uff0c\u4f20\u8f93\u8ddd\u79bb\u4e5f\u6bd4\u8f83\u8fdc\uff0c\u53ef\u4ee5\u6ee1\u8db3\u5927\u591a\u6570\u7f51\u7edc\u73af\u5883\u7684\u9700\u6c42\uff0c\u4f46\u662f\u5b83\u7684\u529f\u8017\u6bd4\u8f83\u9ad8\u3002\u56e0\u6b64\uff0c\u60a8\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u6765\u9009\u62e9\u6700\u9002\u5408\u60a8\u9879\u76ee\u7684\u901a\u4fe1\u65b9\u5f0f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" \u5f53\u4f60\u9700\u8981\u5728\u4f60\u7684\u9879\u76ee\u4e2d\u4f7f\u7528STM32\u5fae\u63a7\u5236\u5668\u65f6\uff0c\u4f60\u9700\u8981\u8003\u8651\u5982\u4f55\u5728\u5fae\u63a7\u5236\u5668\u4e4b\u95f4\u8fdb\u884c\u901a\u4fe1\u3002\u672c\u6587\u5c06\u4ecb\u7ecdSTM32\u901a\u4fe1\u65b9\u5f0f\u7684\u6bd4\u8f83\uff0c\u4ee5\u5e2e\u52a9\u60a8\u66f4\u597d\u5730\u9009\u62e9\u6700\u9002\u5408\u60a8\u9879\u76ee\u7684\u901a\u4fe1\u65b9\u5f0f\u3002<\/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-39379","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-stm32"],"_links":{"self":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/39379"}],"collection":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/comments?post=39379"}],"version-history":[{"count":0,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/39379\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media?parent=39379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/categories?post=39379"},{"taxonomy":"post_tag","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/tags?post=39379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}