{"id":2099,"date":"2019-01-17T13:25:25","date_gmt":"2019-01-17T13:25:25","guid":{"rendered":""},"modified":"2019-01-17T21:25:42","modified_gmt":"2019-01-17T13:25:42","slug":"stm32%e5%8d%95%e7%89%87%e6%9c%ba%e6%8c%89%e9%94%ae%e7%94%b5%e8%b7%af%e8%ae%be%e8%ae%a1","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=2099","title":{"rendered":"STM32\u5355\u7247\u673a\u6309\u952e\u7535\u8def\u8bbe\u8ba1"},"content":{"rendered":"

\n\t\u4ee5\u524dGPI<\/u>O\u4e0a\u63a5\u7684\u7535\u8def\u90fd\u662f\u4f4e\u7535\u5e73\u89e6\u53d1\u7684\u90a3\u79cd\uff0c\u65b0\u753b\u4e86\u4e2a\u677f\u5b50\u6709\u4e00\u4e2a\u6309\u952e\u8bbe\u8ba1\u7684\u662f\u9ad8\u7535\u5e73\u89e6\u53d1\uff0c\u7ed3\u679cIO\u53e3\u8bbe\u7f6e\u6210\u4e0a\u62c9\u8f93\u5165\u540e\uff0c\u600e\u4e48\u8bfb\u90fd\u4e0d\u6b63\u786e\uff0c\u6309\u952e\u7535\u8def\u5982\u56fe1\u3002\u65e0\u5948\u53ea\u80fd\u53bb\u8c03\u8bd5\u4e00\u4e0b\uff0c\u53d1\u73b0\u5f53\u8bbe\u7f6e\u4e3a\u4e0a\u62c9\u8f93\u5165\u540e\uff0c\u5176ODR\uff08GPIO\u8f93\u51fa\u6570\u636e\u5bc4\u5b58\u5668<\/u>\uff09\u76f8\u5e94\u7684\u4e5f\u7f6e\u4e3a1\uff0c\u767e\u601d\u4e0d\u5f97\u5176\u89e3\u3002<\/p>\n

\n\t\"STM32\u5355\u7247\u673a\u6309\u952e\u7535\u8def\u8bbe\u8ba1\"<\/p>\n

\n\t <\/div>\n

\n\t\u56fe1 \u6309\u952e\u7535\u8def<\/p>\n

\n\t\u4e8e\u662f\u53bb\u770b\u4e00\u4e0bGPIO\u7684\u7ed3\u6784\u56fe\uff1a<\/p>\n

\n\t\"STM32\u5355\u7247\u673a\u6309\u952e\u7535\u8def\u8bbe\u8ba1\"<\/p>\n

\n\tI\/O\u5f15\u811a\u7ed3\u6784\u56fe<\/p>\n

\n\t\u7531\u56fe\u53ef\u4ee5\u53d1\u73b0\u5176\u5b9e\u8f93\u51fa\u5bc4\u5b58\u5668\u4e0e\u8f93\u5165\u5bc4\u5b58\u5668\u4e4b\u95f4\u5728I\/O\u5f15\u811a\u5904\u662f\u7ebf\u4e0e\u72b6\u6001\uff0c\u5728GPIO\u8bbe\u7f6e\u6210\u4e0a\u4f4d\u8f93\u5165\u65f6\uff0c\u5176\u4e0a\u62c9\u7535\u963b\u95ed\u5408\uff0c\u8fd9\u65f6\u5982\u679c\u8f93\u51fa\u5bc4\u5b58\u5668\u8bbe\u7f6e\u4e3a0\u90a3\u4e48\u5728IO\u53e3\u5185\u90e8\u5c31\u4f1a\u81ea\u5df1\u635f\u8017\u7535\u6d41<\/u>\uff0c\u800c\u8fd9\u4e9b\u7535\u6d41\u7684\u635f\u8017\u662f\u4f1a\u589e\u52a0\u529f\u8017\u7684\u3002\u56e0\u6b64\u5f53GPIO\u8bbe\u7f6e\u6210\u4e0a\u62c9\u8f93\u5165\u65f6\uff0c\u76f8\u5e94\u7684\u8f93\u51fa\u5bc4\u5b58\u5668\u4e5f\u8bbe\u7f6e\u4e3a1.<\/p>\n

\n\t\u5c06\u6309\u952e\u7535\u8def\u4e0eI\/O\u5f15\u811a\u7ed3\u6784\u56fe\u8fde\u8d77\u6765\u770b\uff0c\u5c31\u6e05\u6670\u591a\u4e86\uff0c\u5f53GPIO\u8bbe\u7f6e\u4e3a\u4e0a\u4f4d\u8f93\u5165\u65f6\uff0c\u4e0a\u62c9\u7535\u963b\u4e0e\u6309\u952e\u7684330\u6b27\u3001220K\u6b27\u4e32\u8054\uff0c\u8fd9\u65f6IO\u53e3\u6240\u8bfb\u5230\u7684\u7535\u5e73\u5c31\u662f330\u6b27\u4e0e220K\u6b27\u7535\u963b\u5206\u538b\u7684\u603b\u5408\uff0c\u7531\u4e8e\u8fd9\u4e24\u4e2a\u7535\u963b\u963b\u503c\u8fc7\u5927\uff0c\u56e0\u5f15\u8bfb\u51fa\u7684\u7535\u538b\u5927\u4e8e\u903b\u8f91‘1’\u7684\u9600\u503c\u3002OK\u95ee\u9898\u627e\u5230\u4e86\uff0c\u4e8e\u662f\u5c06IO\u8bbe\u7f6e\u6210\u4e0b\u62c9\u8f93\u5165\uff0c\u95ee\u9898\u5c31\u89e3\u51b3\u4e86\u3002\u56e0\u6b64\u8fd9\u91cc\u5f97\u51fa\u4e00\u4e2a\u7ed3\u8bba\uff0cIO\u53e3\u662f\u4e0a\u62c9\u8fd8\u662f\u4e0b\u62c9\u8981\u6839\u636e\uff0cIO\u53e3\u5916\u90e8\u63a5\u7684\u7a7a\u95f2\u7535\u5e73\u6709\u5173\uff0c\u5982\u6309\u952e\u4e0d\u6309\u4e0b\u65f6\u662f\u4f4e\u7535\u5e73\uff0c\u5219\u5e94\u8be5\u8bbe\u7f6e\u4e3a\u4e0b\u62c9\u8f93\u5165\u3002<\/p>\n

\n\t\u5728\u8c03\u8bd5\u65f6\u8fd8\u53d1\u73b0\u53e6\u4e00\u79cd\u65b9\u6cd5\u53ef\u4ee5\u8ba9\u4ee3\u7801\u6b63\u5e38\u8fd0\u884c\uff0c\u5c31\u662f\u5f53\u8bbe\u7f6e\u4e0a\u62c9\u8f93\u5165\u65f6\uff0c\u5c06\u5176\u8f93\u51fa\u503c\u8bbe\u7f6e\u4e3a0\uff0c\u8fd9\u6837\u7535\u5e73\u5c31\u88ab\u76f4\u63a5\u62c9\u4f4e\u4e86\uff0c\u6309\u952e\u7684\u63a5\u5730\u7535\u8def\u57fa\u672c\u5c31\u4e0d\u8d77\u4f5c\u7528\u4e86\uff0c\u4f46\u8fd9\u6837\u505a\u6709\u4e00\u4e2a\u574f\u5904\uff0c\u524d\u9762\u5df2\u7ecf\u8bf4\u8fc7\u4e86\uff0c\u8fd9\u79cd\u60c5\u51b5\u4f1a\u5bfc\u81f4\u4e0a\u62c9\u7535\u963b\u76f4\u63a5\u63a5\u5730\u4e86\uff0c\u589e\u52a0\u4e86\u4e0d\u5fc5\u8981\u529f\u8017\uff0c\u800c\u4e14\u5c063.3V\u7535\u538b\u76f4\u63a5\u52a0\u5728\u4e86\u8f93\u51fa\u9a71\u52a8\u5668\u7684N-MOS\u4e0a\uff0c\u65f6\u95f4\u957f\u4e86\u4e4b\u540e\u53ef\u80fd\u4f1a\u9020\u6210\u82af\u7247\u635f\u574f\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"

\u4ee5\u524dG PI O\u4e0a\u63a5\u7684\u7535\u8def\u90fd\u662f\u4f4e\u7535\u5e73\u89e6\u53d1\u7684\u90a3\u79cd\uff0c\u65b0\u753b\u4e86\u4e2a\u677f\u5b50\u6709\u4e00\u4e2a\u6309\u952e\u8bbe\u8ba1\u7684\u662f\u9ad8\u7535\u5e73\u89e6\u53d1\uff0c\u7ed3\u679cIO\u53e3\u8bbe\u7f6e\u6210\u4e0a\u62c9\u8f93\u5165\u540e\uff0c\u600e\u4e48\u8bfb\u90fd\u4e0d\u6b63\u786e\uff0c\u6309\u952e\u7535\u8def\u5982\u56fe1\u3002\u65e0\u5948\u53ea\u80fd\u53bb\u8c03\u8bd5\u4e00\u4e0b\uff0c\u53d1\u73b0<\/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\/2099"}],"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=2099"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2099\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2099"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2099"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2099"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}