{"id":89,"date":"2024-09-13T14:36:14","date_gmt":"2024-09-13T06:36:14","guid":{"rendered":"https:\/\/temp.armfun.cn\/?p=89"},"modified":"2024-10-10T17:49:37","modified_gmt":"2024-10-10T09:49:37","slug":"%ef%bc%88%e4%b8%89%ef%bc%89protues%e4%bb%bf%e7%9c%9fstm32%e5%8d%95%e7%89%87%e6%9c%ba%e6%8e%a7%e5%88%b6led%e7%81%af%e7%a8%8b%e5%ba%8f%e8%ae%be%e8%ae%a1","status":"publish","type":"post","link":"https:\/\/www.armfun.cn\/?p=89","title":{"rendered":"\uff08\u4e09\uff09Proteus\u4eff\u771fSTM32\u5355\u7247\u673a\u63a7\u5236LED\u706f\u7a0b\u5e8f\u8bbe\u8ba1"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">1\uff0c\u6253\u5f00STM32CubeMX,\u70b9\u51fbACCESS TO MCU SELECTOR<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2\uff0c\u641c\u7d22\u5e76\u627e\u5230STM32F103C8<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"719\" src=\"https:\/\/temp.armfun.cn\/wp-content\/uploads\/2024\/09\/image-7-1024x719.png\" alt=\"\" class=\"wp-image-90\" srcset=\"https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-7-1024x719.png 1024w, https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-7-300x211.png 300w, https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-7-768x539.png 768w, https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-7-670x471.png 670w, https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-7.png 1381w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">3\uff0c\u53cc\u51fb\u53f3\u4e0b\u89d2\u641c\u5230\u7684\u5355\u7247\u673a\uff0c\u8fdb\u5165\u914d\u7f6e\u754c\u9762<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"695\" src=\"https:\/\/temp.armfun.cn\/wp-content\/uploads\/2024\/09\/image-8-1024x695.png\" alt=\"\" class=\"wp-image-91\" srcset=\"https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-8-1024x695.png 1024w, https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-8-300x204.png 300w, https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-8-768x521.png 768w, https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-8-670x455.png 670w, https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-8.png 1536w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">4 \uff0c\u5982\u4e0b\u56fe\u70b9\u51fbPB0\uff0c\u4fee\u6539\u4e3aGPIO_Output<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"709\" src=\"https:\/\/temp.armfun.cn\/wp-content\/uploads\/2024\/09\/image-9-1024x709.png\" alt=\"\" class=\"wp-image-92\" srcset=\"https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-9-1024x709.png 1024w, https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-9-300x208.png 300w, https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-9-768x532.png 768w, https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-9-670x464.png 670w, https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-9.png 1536w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">5\uff0c\u9009\u62e9\u53f3\u4fa7System Core\u2192GPIO\uff0c\u4e2d\u95f4\u627e\u5230PB0\u914d\u7f6e\uff0c\u5c06\u6700\u540eUserLabel ,\u6539\u6210\u201dLED0\u201d<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"692\" src=\"https:\/\/temp.armfun.cn\/wp-content\/uploads\/2024\/09\/image-10-1024x692.png\" alt=\"\" class=\"wp-image-93\" srcset=\"https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-10-1024x692.png 1024w, https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-10-300x203.png 300w, https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-10-768x519.png 768w, https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-10-670x453.png 670w, https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-10.png 1536w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">6\uff0c\u6ce8\u610f\uff0c\u5982\u679c\u7a0b\u5e8f\u9700\u8981\u5728\u5b9e\u7269\u5f00\u53d1\u677f\u4e0a\u8fd0\u884c\uff0c\u4e00\u5b9a\u8981\u6253\u5f00\u8c03\u8bd5\u53e3\uff01\uff01\uff01\uff0c\u53f3\u4fa7\u627e\u5230GPIO\u4e0b\u7684SYS,\u4e2d\u95f4Mode\u4e0b\u7684Debug\u9009\u62e9Serial Wire,\u5982\u4e0b\u56fe<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"694\" src=\"https:\/\/temp.armfun.cn\/wp-content\/uploads\/2024\/09\/image-11-1024x694.png\" alt=\"\" class=\"wp-image-94\" srcset=\"https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-11-1024x694.png 1024w, https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-11-300x203.png 300w, https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-11-768x521.png 768w, https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-11-670x454.png 670w, https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-11.png 1536w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">7\uff0c\u914d\u7f6e\u4ee3\u7801\u8f93\u51fa\u4fe1\u606f\uff0c\u70b9\u51fbProject Manager\uff0c\u8bbe\u7f6e\u9879\u76ee\u540d\u79f0\uff0c\u5b58\u50a8\u8def\u5f84\uff0cToolchain\/IDE\u9009\u62e9Keil MDK-ARM\uff0c\u70b9\u51fbGENERATE CODE \u751f\u6210\u4ee3\u7801<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"693\" src=\"https:\/\/temp.armfun.cn\/wp-content\/uploads\/2024\/09\/image-12-1024x693.png\" alt=\"\" class=\"wp-image-95\" srcset=\"https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-12-1024x693.png 1024w, https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-12-300x203.png 300w, https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-12-768x520.png 768w, https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-12-670x453.png 670w, https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/image-12.png 1536w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">8\uff0c\u4f7f\u7528keil\u6253\u5f00\u9879\u76ee\u4ee3\u7801\uff0c\u5728main.c\u6587\u4ef6\u589e\u52a04\u884c\u5982\u4e0b\u4ee3\u7801\uff0c\u6ce8\u610f\u4e2a\u4eba\u4ee3\u7801\u653e\u5165USER CODE BEGIN\u548cUSER CODE END\u4e4b\u95f4\u53ef\u4ee5\u8ba9CubeMX\u91cd\u65b0\u751f\u6210\u4ee3\u7801\u65f6\u4fdd\u7559\uff0c\u7f16\u8bd1\u5373\u53ef\u751f\u6210hex\u53ef\u6267\u884c\u6587\u4ef6<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* Infinite loop *\/\n\/* USER CODE BEGIN WHILE *\/\nwhile (1)\n{\n  HAL_Delay(100);\n  HAL_GPIO_WritePin(LED0_GPIO_Port, LED0_Pin, GPIO_PIN_RESET);\n  HAL_Delay(100);\n  HAL_GPIO_WritePin(LED0_GPIO_Port, LED0_Pin, GPIO_PIN_SET);\n\/* USER CODE END WHILE *\/\n\/* USER CODE BEGIN 3 *\/\n}\n\/* USER CODE END 3 *\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd0\u884c\u6548\u679c\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/www.armfun.cn\/wp-content\/uploads\/2024\/09\/lesson1.mp4\"><\/video><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">git\u6e90\u7801\uff1a<a href=\"https:\/\/gitee.com\/armfun\/stm32_proteus\">https:\/\/gitee.com\/armfun\/stm32_proteus<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\uff0c\u6253\u5f00STM32CubeMX,\u70b9\u51fbACCESS TO MCU SELE&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-89","post","type-post","status-publish","format-standard","hentry","category-arm"],"views":933,"_links":{"self":[{"href":"https:\/\/www.armfun.cn\/index.php?rest_route=\/wp\/v2\/posts\/89","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.armfun.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.armfun.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.armfun.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.armfun.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=89"}],"version-history":[{"count":6,"href":"https:\/\/www.armfun.cn\/index.php?rest_route=\/wp\/v2\/posts\/89\/revisions"}],"predecessor-version":[{"id":322,"href":"https:\/\/www.armfun.cn\/index.php?rest_route=\/wp\/v2\/posts\/89\/revisions\/322"}],"wp:attachment":[{"href":"https:\/\/www.armfun.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.armfun.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.armfun.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}