{"id":255,"date":"2019-09-05T17:43:45","date_gmt":"2019-09-05T09:43:45","guid":{"rendered":"https:\/\/www.book11111.com\/?p=255"},"modified":"2019-09-05T18:34:52","modified_gmt":"2019-09-05T10:34:52","slug":"%e8%a7%a3%e5%86%b3stm32f103%e5%8d%95%e7%89%87%e6%9c%bapb4%e6%97%a0%e6%b3%95%e6%8b%89%e4%bd%8e%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/116.62.123.213\/index.php\/2019\/09\/05\/%e8%a7%a3%e5%86%b3stm32f103%e5%8d%95%e7%89%87%e6%9c%bapb4%e6%97%a0%e6%b3%95%e6%8b%89%e4%bd%8e%e7%9a%84%e9%97%ae%e9%a2%98\/","title":{"rendered":"\u89e3\u51b3STM32F103\u5355\u7247\u673aPB4\u65e0\u6cd5\u62c9\u4f4e\u7684\u95ee\u9898"},"content":{"rendered":"\n<p>\u6700\u8fd1\u4f7f\u7528STM32F103\u7684\u5355\u7247\u673a\uff0cPB4\u63a5\u4e86\u4e00\u4e2aLED\u706f\uff0c\u4f4e\u7535\u5e73\u70b9\u4eae\uff0c\u53d1\u73b0\u7a0b\u5e8f\u6ca1\u6709\u529e\u6cd5\u62c9\u4f4ePB4\u3002\u800c\u540c\u6837\u7535\u8def\u7684PB5 \u5c31\u80fd\u8f93\u51fa\u4f4e\u7535\u5e73\u3002<br>\u901a\u8fc7\u67e5\u770b\u6570\u636e\u624b\u518c\uff0c\u53d1\u73b0PB4\u9ed8\u8ba4\u662fJTAG\u5f15\u811a\uff0c\u5e76\u7f6e\u4e8e\u4e0a\u62c9\u6a21\u5f0f\uff0c\u6240\u4ee5\u6ca1\u6cd5\u76f4\u63a5\u5f53\u505a\u666e\u901a\u7684IO\u53e3\u62c9\u4f4e\u3002<\/p>\n\n\n\n<p>\u89e3\u51b3\u529e\u6cd5\uff1a\u5c06\u4e0b\u8f7d\u65b9\u5f0f\u6539\u4e3aSWD <br>                    \u518d\u914d\u7f6ePB4\u4e3a\u666e\u901aIO\u53e3<br><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>RCC_APB2PeriphClockCmd(RCC_APB2Periph_AFIO,ENABLE);\nGPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable, ENABLE);<\/code><\/pre>\n\n\n\n<p>\u51fd\u6570\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>void LED_Init(void)\n{\n \n GPIO_InitTypeDef  GPIO_InitStructure;\n \t\n RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB, ENABLE);\t \/\/\u4f7f\u80fdPB\u7aef\u53e3\u65f6\u949f\n RCC_APB2PeriphClockCmd(RCC_APB2Periph_AFIO,ENABLE);\n GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable, ENABLE);\n GPIO_InitStructure.GPIO_Pin = GPIO_Pin_4 | GPIO_Pin_5;\t\n GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP; \n GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;\n GPIO_Init(GPIOB, &amp;GPIO_InitStructure);\t\t\t\t\t \n GPIO_SetBits(GPIOB,GPIO_Pin_4 | GPIO_Pin_5);\t\t\t\t\t\t \n}\n\u5982\u679c\u4f7f\u7528HAL\u5e93\u51fd\u6570\uff0c\u5219\u6dfb\u52a0\u5982\u4e0b\u51fd\u6570\uff1a\n__HAL_RCC_AFIO_CLK_ENABLE();\n__HAL_AFIO_REMAP_SWJ_NOJTAG();<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u4f7f\u7528STM32F103\u7684\u5355\u7247\u673a\uff0cPB4\u63a5\u4e86\u4e00\u4e2aLED\u706f\uff0c\u4f4e\u7535\u5e73\u70b9\u4eae\uff0c\u53d1\u73b0\u7a0b\u5e8f\u6ca1\u6709\u529e\u6cd5\u62c9\u4f4ePB4\u3002\u800c\u540c\u6837\u7535\u8def [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[3],"class_list":["post-255","post","type-post","status-publish","format-standard","hentry","category-electr","tag-3"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u89e3\u51b3STM32F103\u5355\u7247\u673aPB4\u65e0\u6cd5\u62c9\u4f4e\u7684\u95ee\u9898 - \u6c88\u8d85\u7684\u535a\u5ba2<\/title>\n<meta name=\"description\" content=\"arm,dsp,pcb,fpga,zynq,\u5e38\u7528\u8f6f\u4ef6altium designed,\u7b97\u6cd5\" \/>\n<link rel=\"canonical\" href=\"http:\/\/116.62.123.213\/index.php\/2019\/09\/05\/\u89e3\u51b3stm32f103\u5355\u7247\u673apb4\u65e0\u6cd5\u62c9\u4f4e\u7684\u95ee\u9898\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u89e3\u51b3STM32F103\u5355\u7247\u673aPB4\u65e0\u6cd5\u62c9\u4f4e\u7684\u95ee\u9898 - \u6c88\u8d85\u7684\u535a\u5ba2\" \/>\n<meta property=\"og:description\" content=\"arm,dsp,pcb,fpga,zynq,\u5e38\u7528\u8f6f\u4ef6altium designed,\u7b97\u6cd5\" \/>\n<meta property=\"og:url\" content=\"http:\/\/116.62.123.213\/index.php\/2019\/09\/05\/\u89e3\u51b3stm32f103\u5355\u7247\u673apb4\u65e0\u6cd5\u62c9\u4f4e\u7684\u95ee\u9898\/\" \/>\n<meta property=\"og:site_name\" content=\"\u6c88\u8d85\u7684\u535a\u5ba2\" \/>\n<meta property=\"article:published_time\" content=\"2019-09-05T09:43:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-09-05T10:34:52+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\">\n\t<meta name=\"twitter:data1\" content=\"1 \u5206\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/116.62.123.213\/#website\",\"url\":\"http:\/\/116.62.123.213\/\",\"name\":\"\\u6c88\\u8d85\\u7684\\u535a\\u5ba2\",\"description\":\"arm,dsp,pcb,fpga,zynq,\\u5e38\\u7528\\u8f6f\\u4ef6altium designed,\\u7b97\\u6cd5\",\"publisher\":{\"@id\":\"http:\/\/116.62.123.213\/#\/schema\/person\/686c7e95d9da5350921994bb9575417c\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"http:\/\/116.62.123.213\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/09\/05\/%e8%a7%a3%e5%86%b3stm32f103%e5%8d%95%e7%89%87%e6%9c%bapb4%e6%97%a0%e6%b3%95%e6%8b%89%e4%bd%8e%e7%9a%84%e9%97%ae%e9%a2%98\/#webpage\",\"url\":\"http:\/\/116.62.123.213\/index.php\/2019\/09\/05\/%e8%a7%a3%e5%86%b3stm32f103%e5%8d%95%e7%89%87%e6%9c%bapb4%e6%97%a0%e6%b3%95%e6%8b%89%e4%bd%8e%e7%9a%84%e9%97%ae%e9%a2%98\/\",\"name\":\"\\u89e3\\u51b3STM32F103\\u5355\\u7247\\u673aPB4\\u65e0\\u6cd5\\u62c9\\u4f4e\\u7684\\u95ee\\u9898 - \\u6c88\\u8d85\\u7684\\u535a\\u5ba2\",\"isPartOf\":{\"@id\":\"http:\/\/116.62.123.213\/#website\"},\"datePublished\":\"2019-09-05T09:43:45+00:00\",\"dateModified\":\"2019-09-05T10:34:52+00:00\",\"description\":\"arm,dsp,pcb,fpga,zynq,\\u5e38\\u7528\\u8f6f\\u4ef6altium designed,\\u7b97\\u6cd5\",\"breadcrumb\":{\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/09\/05\/%e8%a7%a3%e5%86%b3stm32f103%e5%8d%95%e7%89%87%e6%9c%bapb4%e6%97%a0%e6%b3%95%e6%8b%89%e4%bd%8e%e7%9a%84%e9%97%ae%e9%a2%98\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/116.62.123.213\/index.php\/2019\/09\/05\/%e8%a7%a3%e5%86%b3stm32f103%e5%8d%95%e7%89%87%e6%9c%bapb4%e6%97%a0%e6%b3%95%e6%8b%89%e4%bd%8e%e7%9a%84%e9%97%ae%e9%a2%98\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/09\/05\/%e8%a7%a3%e5%86%b3stm32f103%e5%8d%95%e7%89%87%e6%9c%bapb4%e6%97%a0%e6%b3%95%e6%8b%89%e4%bd%8e%e7%9a%84%e9%97%ae%e9%a2%98\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"http:\/\/116.62.123.213\/\",\"url\":\"http:\/\/116.62.123.213\/\",\"name\":\"\\u9996\\u9875\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/09\/05\/%e8%a7%a3%e5%86%b3stm32f103%e5%8d%95%e7%89%87%e6%9c%bapb4%e6%97%a0%e6%b3%95%e6%8b%89%e4%bd%8e%e7%9a%84%e9%97%ae%e9%a2%98\/\",\"url\":\"http:\/\/116.62.123.213\/index.php\/2019\/09\/05\/%e8%a7%a3%e5%86%b3stm32f103%e5%8d%95%e7%89%87%e6%9c%bapb4%e6%97%a0%e6%b3%95%e6%8b%89%e4%bd%8e%e7%9a%84%e9%97%ae%e9%a2%98\/\",\"name\":\"\\u89e3\\u51b3STM32F103\\u5355\\u7247\\u673aPB4\\u65e0\\u6cd5\\u62c9\\u4f4e\\u7684\\u95ee\\u9898\"}}]},{\"@type\":\"Article\",\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/09\/05\/%e8%a7%a3%e5%86%b3stm32f103%e5%8d%95%e7%89%87%e6%9c%bapb4%e6%97%a0%e6%b3%95%e6%8b%89%e4%bd%8e%e7%9a%84%e9%97%ae%e9%a2%98\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/09\/05\/%e8%a7%a3%e5%86%b3stm32f103%e5%8d%95%e7%89%87%e6%9c%bapb4%e6%97%a0%e6%b3%95%e6%8b%89%e4%bd%8e%e7%9a%84%e9%97%ae%e9%a2%98\/#webpage\"},\"author\":{\"@id\":\"http:\/\/116.62.123.213\/#\/schema\/person\/686c7e95d9da5350921994bb9575417c\"},\"headline\":\"\\u89e3\\u51b3STM32F103\\u5355\\u7247\\u673aPB4\\u65e0\\u6cd5\\u62c9\\u4f4e\\u7684\\u95ee\\u9898\",\"datePublished\":\"2019-09-05T09:43:45+00:00\",\"dateModified\":\"2019-09-05T10:34:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/116.62.123.213\/index.php\/2019\/09\/05\/%e8%a7%a3%e5%86%b3stm32f103%e5%8d%95%e7%89%87%e6%9c%bapb4%e6%97%a0%e6%b3%95%e6%8b%89%e4%bd%8e%e7%9a%84%e9%97%ae%e9%a2%98\/#webpage\"},\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/116.62.123.213\/#\/schema\/person\/686c7e95d9da5350921994bb9575417c\"},\"keywords\":\"\\u7535\\u5b50\",\"articleSection\":\"\\u7535\\u5b50\",\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/116.62.123.213\/index.php\/2019\/09\/05\/%e8%a7%a3%e5%86%b3stm32f103%e5%8d%95%e7%89%87%e6%9c%bapb4%e6%97%a0%e6%b3%95%e6%8b%89%e4%bd%8e%e7%9a%84%e9%97%ae%e9%a2%98\/#respond\"]}]},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/116.62.123.213\/#\/schema\/person\/686c7e95d9da5350921994bb9575417c\",\"name\":\"\\u6c88\\u8d85\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\/\/116.62.123.213\/#personlogo\",\"inLanguage\":\"zh-Hans\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/40261dfac05f2d465bb2abf96c1c4e8ceaf45876aec9d52e6b86ef40372d06f0?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/40261dfac05f2d465bb2abf96c1c4e8ceaf45876aec9d52e6b86ef40372d06f0?s=96&d=identicon&r=g\",\"caption\":\"\\u6c88\\u8d85\"},\"logo\":{\"@id\":\"http:\/\/116.62.123.213\/#personlogo\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/posts\/255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/comments?post=255"}],"version-history":[{"count":2,"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/posts\/255\/revisions"}],"predecessor-version":[{"id":259,"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/posts\/255\/revisions\/259"}],"wp:attachment":[{"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/media?parent=255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/categories?post=255"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/116.62.123.213\/index.php\/wp-json\/wp\/v2\/tags?post=255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}