{"id":77545,"date":"2024-01-06T21:42:22","date_gmt":"2024-01-06T13:42:22","guid":{"rendered":"\/\/www.dealsbon.com\/?p=77545"},"modified":"2024-01-06T21:42:22","modified_gmt":"2024-01-06T13:42:22","slug":"syjdyyyy","status":"publish","type":"post","link":"\/\/www.dealsbon.com\/blog\/77545.html","title":{"rendered":"STM32F411CEU6\u5f15\u811a\u5b9a\u4e49\u4e0e\u5e94\u7528"},"content":{"rendered":"

  STM32F411CEU6\u662f\u4e00\u6b3e\u5e38\u7528\u7684\u5fae\u63a7\u5236\u5668\uff0c\u5176\u5f15\u811a\u5b9a\u4e49\u5bf9\u4e8e\u786c\u4ef6\u8bbe\u8ba1\u548c\u8f6f\u4ef6\u5f00\u53d1\u81f3\u5173\u91cd\u8981\u3002\u672c\u6587\u5c06\u6df1\u5165\u89e3\u6790STM32F411CEU6\u5f15\u811a\u5b9a\u4e49\u53ca\u5176\u5e94\u7528\u3002<\/p>\n

STM32F411CEU6\u5f15\u811a\u529f\u80fd\u6982\u8ff0<\/h2>\n

  STM32F411CEU6\u5fae\u63a7\u5236\u5668\u62e5\u6709\u4e30\u5bcc\u7684\u5916\u8bbe\uff0c\u5305\u62ec\u591a\u4e2a\u901a\u7528IO\u5f15\u811a\u3001SPI\u3001I2C\u3001UART<\/a>\u7b49\u63a5\u53e3\u3002\u901a\u8fc7\u5408\u7406\u7684\u5f15\u811a\u5b9a\u4e49\uff0c\u53ef\u4ee5\u5145\u5206\u53d1\u6325\u5176\u529f\u80fd\uff0c\u5b9e\u73b0\u5404\u79cd\u5e94\u7528\u573a\u666f\u3002<\/p>\n

  \u901a\u7528IO\u5f15\u811a<\/h3>\n

  STM32F411CEU6\u62e5\u6709\u4e30\u5bcc\u7684\u901a\u7528IO\u5f15\u811a\uff0c\u53ef\u4ee5\u7528\u4e8e\u8fde\u63a5\u5916\u90e8\u8bbe\u5907\uff0c\u5b9e\u73b0\u6570\u5b57\u8f93\u5165\u8f93\u51fa\u3001\u6a21\u62df\u8f93\u5165\u8f93\u51fa\u7b49\u529f\u80fd\u3002\u4e0d\u540c\u7684\u5f15\u811a\u5b9a\u4e49\u53ef\u4ee5\u6ee1\u8db3\u4e0d\u540c\u7684\u5916\u8bbe\u8fde\u63a5\u9700\u6c42\u3002<\/p>\n

  \u6570\u5b57\u8f93\u5165\u8f93\u51fa<\/h4>\n

  \u901a\u8fc7\u5c06\u7279\u5b9a\u5f15\u811a\u5b9a\u4e49\u4e3a\u6570\u5b57\u8f93\u5165\u8f93\u51fa\uff0c\u53ef\u4ee5\u5b9e\u73b0\u4e0e\u5916\u90e8\u6570\u5b57\u8bbe\u5907\u7684\u901a\u4fe1\uff0c\u4f8b\u5982LED\u3001\u6309\u952e\u7b49\u3002<\/p>\n

  \u6a21\u62df\u8f93\u5165\u8f93\u51fa<\/h4>\n

  \u67d0\u4e9b\u5f15\u811a\u53ef\u4ee5\u5b9a\u4e49\u4e3a\u6a21\u62df\u8f93\u5165\u8f93\u51fa\uff0c\u7528\u4e8e\u8fde\u63a5\u6a21\u62df\u8bbe\u5907\uff0c\u5982\u4f20\u611f\u5668\u3001\u7535\u8def\u7b49\u3002<\/p>\n

  SPI\u4e0eI2C\u63a5\u53e3<\/h3>\n

  \u9664\u4e86\u901a\u7528IO\u5f15\u811a\uff0cSTM32F411CEU6\u8fd8\u5185\u7f6e\u4e86\u591a\u4e2aSPI\u548cI2C\u63a5\u53e3\uff0c\u53ef\u4ee5\u5b9e\u73b0\u9ad8\u901f\u6570\u636e\u901a\u4fe1\uff0c\u9002\u7528\u4e8e\u5404\u79cd\u5916\u8bbe\u8fde\u63a5\u3002<\/p>\n

  SPI\u63a5\u53e3<\/a><\/h4>\n

  SPI\u63a5\u53e3\u901a\u8fc7\u5f15\u811a\u5b9a\u4e49\u53ef\u4ee5\u5b9e\u73b0\u4e0e\u5916\u90e8SPI\u8bbe\u5907\u7684\u8fde\u63a5\uff0c\u652f\u6301\u5168\u53cc\u5de5\u901a\u4fe1\uff0c\u9002\u7528\u4e8e\u9ad8\u901f\u6570\u636e\u4f20\u8f93\u3002<\/p>\n

  I2C\u63a5\u53e3<\/h4>\n

  I2C\u63a5\u53e3\u901a\u8fc7\u5f15\u811a\u5b9a\u4e49\u53ef\u4ee5\u5b9e\u73b0\u4e0e\u5916\u90e8I2C\u8bbe\u5907\u7684\u8fde\u63a5\uff0c\u9002\u7528\u4e8e\u591a\u4e2a\u8bbe\u5907\u4e4b\u95f4\u7684\u4e32\u884c\u901a\u4fe1\u3002<\/p>\n

STM32F411CEU6\u5f15\u811a\u914d\u7f6e\u65b9\u6cd5<\/h2>\n

  \u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5408\u7406\u7684STM32F411CEU6\u5f15\u811a\u914d\u7f6e\u975e\u5e38\u5173\u952e\u3002\u5408\u7406\u7684\u914d\u7f6e\u53ef\u4ee5\u6709\u6548\u5730\u63d0\u9ad8\u7cfb\u7edf\u7684\u7a33\u5b9a\u6027\u548c\u53ef\u9760\u6027\uff0c\u63d0\u9ad8\u4ea7\u54c1\u7684\u6027\u80fd\u548c\u53ef\u7ef4\u62a4\u6027\u3002<\/p>\n

  \u5f15\u811a\u5b9a\u4e49\u793a\u4f8b<\/h3>\n

  \u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528\u5b8f\u5b9a\u4e49\u6765\u5bf9\u7279\u5b9a\u5f15\u811a\u8fdb\u884c\u5b9a\u4e49\uff1a<\/p>\n

  #define LED_PIN GPIO<\/a>_Pin_8<\/p>

  #define BUTTON_PIN GPIO_Pin_5<\/p><\/pre>\n

  \u5f15\u811a\u914d\u7f6e\u6ce8\u610f\u4e8b\u9879<\/h3>\n

  \u5728\u8fdb\u884c\u5f15\u811a\u914d\u7f6e\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u4e8b\u9879\uff1a<\/p>\n

  \u7535\u6c14\u7279\u6027<\/h4>\n

  \u4e86\u89e3\u5f15\u811a\u7684\u6700\u5927\u7535\u538b\u3001\u6700\u5927\u7535\u6d41\u7b49\u7535\u6c14\u7279\u6027\u53c2\u6570\uff0c\u786e\u4fdd\u5f15\u811a\u914d\u7f6e\u7b26\u5408\u8bbe\u5907\u7684\u89c4\u683c\u8981\u6c42\u3002<\/p>\n

  \u529f\u80fd\u9009\u62e9<\/h4>\n

  \u6839\u636e\u5916\u8bbe\u8fde\u63a5\u9700\u6c42\uff0c\u9009\u62e9\u5408\u9002\u7684\u5f15\u811a\u529f\u80fd\uff0c\u786e\u4fdd\u80fd\u591f\u6ee1\u8db3\u7cfb\u7edf\u7684\u901a\u4fe1\u548c\u63a7\u5236\u9700\u6c42\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  STM32F411CEU6\u5f15\u811a\u5b9a\u4e49\u5bf9\u4e8e\u786c\u4ef6\u8bbe\u8ba1\u548c\u8f6f\u4ef6\u5f00\u53d1\u81f3\u5173\u91cd\u8981\u3002<\/strong>\u5408\u7406\u7684\u5f15\u811a\u5b9a\u4e49\u53ef\u4ee5\u5145\u5206\u53d1\u6325\u5fae\u63a7\u5236\u5668\u7684\u529f\u80fd\uff0c\u5b9e\u73b0\u5404\u79cd\u5e94\u7528\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u9700\u8981\u6839\u636e\u5177\u4f53\u9700\u6c42\u8fdb\u884c\u5f15\u811a\u914d\u7f6e\uff0c\u5e76\u6ce8\u610f\u7535\u6c14\u7279\u6027\u548c\u529f\u80fd\u9009\u62e9\u7b49\u65b9\u9762\u7684\u6ce8\u610f\u4e8b\u9879\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

STM32F411CEU6\u662f\u4e00\u6b3e\u5e38\u7528\u7684\u5fae\u63a7\u5236\u5668\uff0c\u5176\u5f15\u811a\u5b9a\u4e49\u5bf9\u4e8e\u786c\u4ef6\u8bbe\u8ba1\u548c\u8f6f\u4ef6\u5f00\u53d1\u81f3\u5173\u91cd\u8981\u3002\u672c\u6587\u5c06\u6df1\u5165\u89e3\u6790STM32F411CEU6\u5f15\u811a\u5b9a\u4e49\u53ca\u5176\u5e94\u7528\u3002STM32F411<\/p>\n","protected":false},"author":1,"featured_media":64183,"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-77545","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-stm32"],"_links":{"self":[{"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/posts\/77545"}],"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=77545"}],"version-history":[{"count":0,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/posts\/77545\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/media\/64183"}],"wp:attachment":[{"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/media?parent=77545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/categories?post=77545"},{"taxonomy":"post_tag","embeddable":true,"href":"\/\/www.dealsbon.com\/wp-json\/wp\/v2\/tags?post=77545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}