{"id":61117,"date":"2023-10-29T08:12:59","date_gmt":"2023-10-29T00:12:59","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=61117"},"modified":"2023-10-29T08:12:59","modified_gmt":"2023-10-29T00:12:59","slug":"sckjss","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/61117.html","title":{"rendered":"STM32F103C8T6\u4e32\u53e3\u63a5\u6536scanf"},"content":{"rendered":"
STM32F103C8T6\u662fSTMicroelectronics\u516c\u53f8\u63a8\u51fa\u7684\u4e00\u6b3e\u57fa\u4e8eARM Cortex-M3\u5185\u6838\u7684\u5fae\u63a7\u5236\u5668\uff0c\u91c7\u752832\u4f4d\u5904\u7406\u5668\uff0c\u670964KB\u7684Flash\u5b58\u50a8\u5668\uff0c20KB\u7684SRAM\uff0c\u4ee5\u53ca\u8bb8\u591a\u5916\u8bbe\uff0c\u5982ADC\uff0cUSART\uff0cI2C\uff0cSPI\u7b49\u3002\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u5c06\u8ba8\u8bba\u5982\u4f55\u4f7f\u7528STM32F103C8T6\u7684\u4e32\u53e3\u63a5\u6536scanf\u51fd\u6570\uff0c\u4ee5\u53ca\u5982\u4f55\u5728STM32F103C8T6\u4e0a\u5b9e\u73b0\u5b83\u3002<\/p>\n
scanf\u51fd\u6570\u662f\u4e00\u4e2aC\u8bed\u8a00\u5e93\u51fd\u6570\uff0c\u5b83\u5141\u8bb8\u7a0b\u5e8f\u5458\u4ece\u6807\u51c6\u8f93\u5165\u8bbe\u5907\uff08\u4f8b\u5982\u952e\u76d8\uff09\u8bfb\u53d6\u4e00\u884c\u6587\u672c\uff0c\u5e76\u5c06\u5176\u89e3\u6790\u4e3a\u4e00\u4e2a\u6216\u591a\u4e2a\u53d8\u91cf\u3002\u5b83\u5141\u8bb8\u7a0b\u5e8f\u5458\u8f93\u5165\u4e00\u4e9b\u6570\u636e\uff0c\u7136\u540e\u5c06\u5176\u5b58\u50a8\u5728\u53d8\u91cf\u4e2d\uff0c\u4ee5\u4fbf\u5728\u7a0b\u5e8f\u4e2d\u4f7f\u7528\u3002<\/p>\n
\u5728STM32F103C8T6\u4e0a\uff0c\u4e32\u53e3\u63a5\u6536scanf\u51fd\u6570\u7684\u5b9e\u73b0\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u51e0\u884c\u4ee3\u7801\u5373\u53ef\u5b8c\u6210\u3002\u9996\u5148\uff0c\u9700\u8981\u5728STM32F103C8T6\u4e0a\u914d\u7f6eUSART\uff0c\u4ee5\u4f7f\u7528\u4e32\u53e3\u8fdb\u884c\u901a\u4fe1\u3002\u53ef\u4ee5\u4f7f\u7528STM32CubeMX\u8f6f\u4ef6\u914d\u7f6eUSART\uff0c\u5e76\u751f\u6210\u5bf9\u5e94\u7684\u4ee3\u7801\u3002<\/p>\n
\u7136\u540e\uff0c\u9700\u8981\u5728STM32F103C8T6\u4e0a\u5b9e\u73b0scanf\u51fd\u6570\uff0c\u53ef\u4ee5\u4f7f\u7528stdio.h\u4e2d\u63d0\u4f9b\u7684scanf\u51fd\u6570\uff0c\u4e5f\u53ef\u4ee5\u81ea\u5b9a\u4e49scanf\u51fd\u6570\u3002\u81ea\u5b9a\u4e49scanf\u51fd\u6570\u9700\u8981\u4f7f\u7528USART\u7684\u63a5\u6536\u51fd\u6570\uff0c\u4ee5\u53ca\u4e00\u4e9bC\u8bed\u8a00\u7f16\u7a0b\u6280\u5de7\uff0c\u53ef\u4ee5\u5b9e\u73b0\u81ea\u5b9a\u4e49\u7684scanf\u51fd\u6570\u3002<\/p>\n
\u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728STM32F103C8T6\u4e0a\u4f7f\u7528\u4e32\u53e3\u63a5\u6536scanf\u51fd\u6570\uff0c\u4ee5\u53ca\u5982\u4f55\u5b9e\u73b0\u5b83\u3002<\/strong>\u9996\u5148\uff0c\u9700\u8981\u5728STM32F103C8T6\u4e0a\u914d\u7f6eUSART\uff0c\u4ee5\u4f7f\u7528\u4e32\u53e3\u8fdb\u884c\u901a\u4fe1\u3002\u7136\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528stdio.h\u4e2d\u63d0\u4f9b\u7684scanf\u51fd\u6570\uff0c\u4e5f\u53ef\u4ee5\u81ea\u5b9a\u4e49scanf\u51fd\u6570\uff0c\u4ee5\u5b9e\u73b0\u4e32\u53e3\u63a5\u6536scanf\u51fd\u6570\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" STM32F103C8T6\u662fSTMicroelectronics\u516c\u53f8\u63a8\u51fa\u7684\u4e00\u6b3e\u57fa\u4e8eARMCortex-M3\u5185\u6838\u7684\u5fae\u63a7\u5236\u5668\uff0c\u91c7\u752832\u4f4d\u5904\u7406\u5668\uff0c\u670964KB\u7684Fl<\/p>\n","protected":false},"author":1,"featured_media":1839,"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-61117","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\/61117","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=61117"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/61117\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/1839"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=61117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=61117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=61117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}