{"id":1423,"date":"2024-03-15T16:07:53","date_gmt":"2024-03-15T08:07:53","guid":{"rendered":"https:\/\/www.forillusion.com\/?p=1423"},"modified":"2025-06-18T16:23:23","modified_gmt":"2025-06-18T08:23:23","slug":"ch582m-gpio-operate","status":"publish","type":"post","link":"https:\/\/www.forillusion.com\/index.php\/ch582m-gpio-operate\/","title":{"rendered":"CH582M GPIO\u64cd\u4f5c"},"content":{"rendered":"\n<p><div class=\"has-toc have-toc\"><\/div><\/p>\n\n\n\n<p>\u51fd\u6570\u524d\u7684GPIOA\u8868\u793a\u64cd\u4f5cGPIOA\u7ec4\u5f15\u811a\uff0c\u51fd\u6570\u524d\u7684GPIOB\u8868\u793a\u64cd\u4f5cGPIOB\u7ec4\u5f15\u811a\u3002<\/p>\n\n\n\n<p>\u521d\u59cb\u5316\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>GPIOA_ModeCfg(GPIO_Pin_8, GPIO_ModeOut_PP_5mA);\/\/\u521d\u59cb\u5316A8\u5f15\u811a\n\nGPIO_ModeIN_Floating, \/\/\u6d6e\u7a7a\u8f93\u5165\nGPIO_ModeIN_PU,       \/\/\u4e0a\u62c9\u8f93\u5165                                           \u3001\nGPIO_ModeIN_PD,       \/\/\u4e0b\u62c9\u8f93\u5165\nGPIO_ModeOut_PP_5mA,  \/\/\u63a8\u633d\u8f93\u51fa\u6700\u59275mA\nGPIO_ModeOut_PP_20mA, \/\/\u63a8\u633d\u8f93\u51fa\u6700\u592720mA\n\nGPIOA_ResetBits(GPIO_Pin_8);  \/\/\u62c9\u9ad8\u5f15\u811a\nGPIOA_SetBits(GPIO_Pin_8);  \/\/\u62c9\u4f4e\u5f15\u811a\nGPIOA_InverseBits(GPIO_Pin_8);  \/\/\u7ffb\u8f6c\u5f15\u811a\nGPIOA_ReadPortPin(GPIO_Pin_4);  \/\/\u8bfb\u53d6\u5f15\u811a\u8f93\u5165<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u51fd\u6570\u524d\u7684GPIOA\u8868\u793a\u64cd\u4f5cGPIOA\u7ec4\u5f15\u811a\uff0c\u51fd\u6570\u524d\u7684GPIOB\u8868\u793a\u64cd\u4f5cGPIOB\u7ec4\u5f15\u811a\u3002 \u521d\u59cb\u5316\uff1a<\/p>\n","protected":false},"author":1,"featured_media":1419,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38,3],"tags":[47,26,12,22],"class_list":["post-1423","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-38","category-3","tag-ch582m","tag-26","tag-12","tag-22"],"_links":{"self":[{"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/posts\/1423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/comments?post=1423"}],"version-history":[{"count":2,"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/posts\/1423\/revisions"}],"predecessor-version":[{"id":1933,"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/posts\/1423\/revisions\/1933"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/media\/1419"}],"wp:attachment":[{"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/media?parent=1423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/categories?post=1423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.forillusion.com\/index.php\/wp-json\/wp\/v2\/tags?post=1423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}