{"id":2778,"date":"2019-08-29T06:36:20","date_gmt":"2019-08-29T06:36:20","guid":{"rendered":""},"modified":"2019-08-29T14:36:40","modified_gmt":"2019-08-29T06:36:40","slug":"stm32%e5%8d%95%e7%89%87%e6%9c%bagpio%e5%8f%a3%e7%9a%84%e5%85%ab%e7%a7%8d%e5%b7%a5%e4%bd%9c%e6%a8%a1%e5%bc%8f%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=2778","title":{"rendered":"STM32\u5355\u7247\u673aGPIO\u53e3\u7684\u516b\u79cd\u5de5\u4f5c\u6a21\u5f0f\u4ecb\u7ecd"},"content":{"rendered":"

\n\tSTM32<\/u>\u5355\u7247\u673a<\/u>\u7684\u6bcf\u7ec4IO\u53e3\u90fd\u67094\u4e2a32\u4f4d\u914d\u7f6e\u5bc4\u5b58\u5668<\/u>\u7528\u4e8e\u914d\u7f6eGPI<\/u>Ox_MODER\uff0c GPIOx_OTYPER\uff0c GPIOx_OSP<\/u>EEDR\u548cGPIOx_PUPDR\uff0c2\u4e2a32\u4f4d\u6570\u636e\u5bc4\u5b58\u5668\u7528\u4e8e\u914d\u7f6e\u8f93\u5165\u548c\u8f93\u51fa\u5bc4\u5b58\u5668GPIOx_IDR\u548cGPIOx_ODR\uff0c1\u4e2a32\u4f4d\u7f6e\u4f4d\u590d\u4f4d\u5bc4\u5b58\u5668GPIOx_BSRR\uff0c1\u4e2a32\u4f4d\u9501<\/u>\u5b9a\u5bc4\u5b58\u5668GPIOx_LCKR\u548c2\u4e2a32\u4f4d\u590d\u7528\u529f\u80fd\u9009\u62e9\u5bc4\u5b58\u5668GPIOx_AFRH\u548cGPIOx_AFRL\u3002<\/p>\n

\n\tGPIO\u7684\u8f93\u51fa\u72b6\u6001\u53ef\u4ee5\u914d\u7f6e\u4e3a\u63a8\u633d\u6216\u5f00\u6f0f\u52a0\u4e0a\u4e0a\u62c9\u6216\u4e0b\u62c9\u3002\u8f93\u51fa\u6570\u636e\u65e2\u53ef\u4ee5\u6765\u81ea\u8f93\u51fa\u6570\u636e\u5bc4\u5b58\u5668\uff0c\u4e5f\u53ef\u4ee5\u7531\u5176\u4ed6\u5916\u56f4\u5bc4\u5b58\u5668\u53d1\u51fa\u3002\u6bcf\u7ec4IO\u53e3\u7684\u901f\u5ea6\u90fd\u662f\u53ef\u4ee5\u914d\u7f6e\u7684\uff0c\u53ef\u4ee5\u914d\u7f6e\u4e3a25MHz\uff0c50MHz\u6216\u662f100Mhz\u3002\u6570\u636e\u8f93\u5165\u540c\u6837\u4e5f\u6709\u51e0\u79cd\u6a21\u5f0f\uff0c\u5b83\u4eec\u5206\u522b\u4e3a\u6d6e\u7a7a\uff0c\u4e0a\u4e0b\u62c9\u548c\u6a21\u62df\uff0c\u5e76\u4e14\u8f93\u5165\u6570\u636e\u540c\u6837\u53ef\u4ee5\u914d\u7f6e\u4e3a\u6765\u81ea\u8f93\u5165\u5bc4\u5b58\u5668\u6216\u662f\u5176\u4ed6\u7684\u5916\u56f4\u5bc4\u5b58\u5668\u3002\u7f6e\u4f4d\u590d\u4f4d\u5bc4\u5b58\u5668\u53ef\u4ee5\u65b9\u4fbf\u5730\u5bf9\u6bcf\u4e00\u4f4d\u8fdb\u884c\u5355\u72ec\u7684\u914d\u7f6e\uff0c\u8fd9\u5728\u8bb8\u591a\u60c5\u51b5\u4e0b\u975e\u5e38\u6709\u7528\u3002<\/p>\n

\n\t <\/div>\n

\n\t\u7ecf\u8fc7\u4e0a\u4e00\u6bb5\u5bf9GPIO\u53e3\u6a21\u5f0f\u7684\u8bf4\u660e\uff0c\u5728\u8fd9\u91cc\u5bf9\u5b83\u7684\u5de5\u4f5c\u6a21\u5f0f\u8fdb\u884c\u4e00\u4e2a\u5c0f\u7ed3\uff0c\u5b83\u4e00\u5171\u6709\u516b\u79cd\u7ec4\u5408\uff0c\u5373\u6709\u516b\u79cd\u53ef\u914d\u7f6e\u7684\u5de5\u4f5c\u6a21\u5f0f\uff0c\u5206\u522b\u662f\uff1a<\/p>\n

\n\t\u8f93\u5165\u6d6e\u7a7a<\/p>\n

\n\t\u8f93\u5165\u4e0a\u62c9<\/p>\n

\n\t\u8f93\u5165\u4e0b\u62c9<\/p>\n

\n\t\u6a21\u62df<\/p>\n

\n\t\u5e26\u4e0a\u62c9\u6216\u4e0b\u62c9\u7684\u5f00\u6f0f\u8f93\u51fa<\/p>\n

\n\t\u5e26\u4e0a\u62c9\u6216\u4e0b\u62c9\u7684\u63a8\u633d\u8f93\u51fa<\/p>\n

\n\t\u5e26\u4e0a\u62c9\u6216\u4e0b\u62c9\u7684\u590d\u7528\u529f\u80fd\u63a8\u633d<\/p>\n

\n\t\u5e26\u4e0a\u62c9\u6216\u4e0b\u62c9\u7684\u590d\u7528\u529f\u80fd\u5f00\u6f0f<\/p>\n

\n\tSTM32\u5355\u7247\u673aGPIO\u53e3\u7684\u5de5\u4f5c\u6a21\u5f0f\u89e3\u6790<\/p>\n

\n\t\"STM32\u5355\u7247\u673aGPIO\u53e3\u7684\u516b\u79cd\u5de5\u4f5c\u6a21\u5f0f\u4ecb\u7ecd\"<\/p>\n","protected":false},"excerpt":{"rendered":"

STM32 \u5355\u7247\u673a \u7684\u6bcf\u7ec4IO\u53e3\u90fd\u67094\u4e2a32\u4f4d\u914d\u7f6e \u5bc4\u5b58\u5668 \u7528\u4e8e\u914d\u7f6eG PI Ox_MODER\uff0c GPIOx_OTYPER\uff0c GPIOx_ OSP EEDR\u548cGPIOx_PUPDR\uff0c2\u4e2a32\u4f4d\u6570\u636e\u5bc4\u5b58\u5668\u7528\u4e8e\u914d\u7f6e\u8f93\u5165\u548c\u8f93\u51fa\u5bc4\u5b58\u5668GPIOx_IDR\u548cGPIOx_ODR\uff0c1\u4e2a32\u4f4d\u7f6e\u4f4d\u590d\u4f4d<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2778"}],"collection":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2778"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2778\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2778"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2778"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2778"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}