{"id":40656,"date":"2023-09-30T08:32:40","date_gmt":"2023-09-30T00:32:40","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=40656"},"modified":"2023-09-30T08:32:40","modified_gmt":"2023-09-30T00:32:40","slug":"sckpz","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/40656.html","title":{"rendered":"STM32F103C8T6\u4e32\u53e33\u914d\u7f6e"},"content":{"rendered":"

  STM32F103C8T6\u662f\u4e00\u6b3e\u57fa\u4e8eARM Cortex-M3\u5185\u6838\u7684\u5fae\u63a7\u5236\u5668\uff0c\u8be5\u5fae\u63a7\u5236\u5668\u5177\u670964KB\u7684Flash\u5b58\u50a8\u5668\uff0c20KB\u7684RAM\uff0c\u591a\u79cd\u5916\u8bbe\uff0c\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u5e76\u53ef\u4ee5\u901a\u8fc7\u4e32\u53e33\u8fdb\u884c\u914d\u7f6e\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecdSTM32F103C8T6\u4e32\u53e33\u7684\u914d\u7f6e\uff0c\u5305\u62ec\u4e32\u53e33\u7684\u7269\u7406\u8fde\u63a5\u3001\u914d\u7f6e\u8f6f\u4ef6\u3001\u7f16\u7a0b\u8bed\u8a00\u548c\u5e94\u7528\u7b49\u3002<\/p>\n

\u4e32\u53e33\u7684\u7269\u7406\u8fde\u63a5<\/h2>\n

  STM32F103C8T6\u7684\u4e32\u53e33\u4f4d\u4e8e\u6a21\u5757\u7684\u4e0b\u65b9\uff0c\u9700\u8981\u4f7f\u75284\u6839\u7ebf\u5c06\u5176\u8fde\u63a5\u5230\u5916\u90e8\u8bbe\u5907\uff0c\u5177\u4f53\u5982\u4e0b\uff1a<\/p>\n

  1.RX\uff1a<\/h3>\n

  RX\u7ebf\u8d1f\u8d23\u63a5\u6536\u5916\u90e8\u8bbe\u5907\u53d1\u9001\u7684\u4fe1\u53f7\uff0c\u8fde\u63a5\u5230STM32F103C8T6\u7684RX\u5f15\u811a\uff08PA10\uff09\u3002<\/p>\n

  2.TX\uff1a<\/h3>\n

  TX\u7ebf\u8d1f\u8d23\u5411\u5916\u90e8\u8bbe\u5907\u53d1\u9001\u4fe1\u53f7\uff0c\u8fde\u63a5\u5230STM32F103C8T6\u7684TX\u5f15\u811a\uff08PA9\uff09\u3002<\/p>\n

  3.GND\uff1a<\/h3>\n

  GND\u7ebf\u8d1f\u8d23\u8fde\u63a5STM32F103C8T6\u4e0e\u5916\u90e8\u8bbe\u5907\u7684\u5730\uff0c\u8fde\u63a5\u5230STM32F103C8T6\u7684GND\u5f15\u811a\uff08PA8\uff09\u3002<\/p>\n

  4.VCC\uff1a<\/h3>\n

  VCC\u7ebf\u8d1f\u8d23\u8fde\u63a5STM32F103C8T6\u4e0e\u5916\u90e8\u8bbe\u5907\u7684\u7535\u6e90\uff0c\u8fde\u63a5\u5230STM32F103C8T6\u7684VCC\u5f15\u811a\uff08PA7\uff09\u3002<\/p>\n

\u914d\u7f6e\u8f6f\u4ef6<\/h2>\n

  STM32F103C8T6\u4e32\u53e33\u7684\u914d\u7f6e\u9700\u8981\u4f7f\u7528\u4e13\u7528\u7684\u8f6f\u4ef6\uff0c\u6bd4\u5982STM32CubeMX\uff0c\u5b83\u80fd\u591f\u5e2e\u52a9\u7528\u6237\u5feb\u901f\u914d\u7f6eSTM32F103C8T6\u7684\u4e32\u53e33\u53c2\u6570\uff0c\u6bd4\u5982\u6ce2\u7279\u7387\u3001\u6570\u636e\u4f4d\u3001\u505c\u6b62\u4f4d\u548c\u6821\u9a8c\u4f4d\u7b49\u3002<\/p>\n

  1.\u6253\u5f00STM32CubeMX\uff1a<\/h3>\n

  \u9996\u5148\uff0c\u6253\u5f00STM32CubeMX\uff0c\u7136\u540e\u9009\u62e9STM32F103C8T6\u4f5c\u4e3a\u82af\u7247\uff0c\u63a5\u7740\u70b9\u51fb\u201cPinout & Configuration\u201d\uff0c\u8fdb\u5165\u4e0b\u4e00\u6b65\u3002<\/p>\n

  2.\u914d\u7f6eUART3\uff1a<\/h3>\n

  \u5728\u201cPinout & Configuration\u201d\u4e2d\uff0c\u627e\u5230UART3\uff0c\u70b9\u51fb\u201cUART3\u201d\uff0c\u8fdb\u5165UART3\u7684\u914d\u7f6e\u9875\u9762\uff0c\u5728\u8fd9\u91cc\u53ef\u4ee5\u8bbe\u7f6e\u4e32\u53e33\u7684\u53c2\u6570\uff0c\u5305\u62ec\u6ce2\u7279\u7387\u3001\u6570\u636e\u4f4d\u3001\u505c\u6b62\u4f4d\u548c\u6821\u9a8c\u4f4d\u7b49\u3002<\/p>\n

  3.\u751f\u6210\u914d\u7f6e\u6587\u4ef6\uff1a<\/h3>\n

  \u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u70b9\u51fb\u201cGenerate Code\u201d\uff0c\u5373\u53ef\u751f\u6210\u914d\u7f6e\u6587\u4ef6\uff0c\u7136\u540e\u5c06\u914d\u7f6e\u6587\u4ef6\u5bfc\u5165\u5230\u7f16\u7a0b\u73af\u5883\u4e2d\uff0c\u5373\u53ef\u5b8c\u6210STM32F103C8T6\u4e32\u53e33\u7684\u914d\u7f6e\u3002<\/p>\n

\u7f16\u7a0b\u8bed\u8a00\u548c\u5e94\u7528<\/h2>\n

  STM32F103C8T6\u4e32\u53e33\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\u8fdb\u884c\u7f16\u7a0b\uff0c\u6bd4\u5982C\u8bed\u8a00\u3001C++\u8bed\u8a00\u548cPython\u8bed\u8a00\u7b49\u3002\u53e6\u5916\uff0cSTM32F103C8T6\u4e32\u53e33\u8fd8\u53ef\u4ee5\u7528\u4e8e\u5b9e\u73b0\u591a\u79cd\u5e94\u7528\uff0c\u6bd4\u5982\u901a\u4fe1\u3001\u63a7\u5236\u3001\u6570\u636e\u91c7\u96c6\u548c\u6570\u636e\u4f20\u8f93\u7b49\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  \u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86STM32F103C8T6\u4e32\u53e33\u7684\u914d\u7f6e\uff0c\u5305\u62ec\u4e32\u53e33\u7684\u7269\u7406\u8fde\u63a5\u3001\u914d\u7f6e\u8f6f\u4ef6\u3001\u7f16\u7a0b\u8bed\u8a00\u548c\u5e94\u7528\u7b49\u3002\u901a\u8fc7\u6b63\u786e\u7684\u914d\u7f6e\uff0c\u53ef\u4ee5\u8ba9STM32F103C8T6\u4e32\u53e33\u53d1\u6325\u66f4\u597d\u7684\u6027\u80fd\uff0c\u4ece\u800c\u5b9e\u73b0\u66f4\u591a\u7684\u5e94\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

STM32F103C8T6\u662f\u4e00\u6b3e\u57fa\u4e8eARMCortex-M3\u5185\u6838\u7684\u5fae\u63a7\u5236\u5668\uff0c\u8be5\u5fae\u63a7\u5236\u5668\u5177\u670964KB\u7684Flash\u5b58\u50a8\u5668\uff0c20KB\u7684RAM\uff0c\u591a<\/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-40656","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\/40656","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=40656"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/40656\/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=40656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=40656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=40656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}