{"id":2741,"date":"2019-07-29T08:42:35","date_gmt":"2019-07-29T08:42:35","guid":{"rendered":""},"modified":"2019-07-29T16:42:55","modified_gmt":"2019-07-29T08:42:55","slug":"%e5%a6%82%e4%bd%95%e8%a7%a3%e5%86%b3pic%e5%8d%95%e7%89%87%e6%9c%ba%e7%9a%84%e5%8a%9f%e8%80%97%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=2741","title":{"rendered":"\u5982\u4f55\u89e3\u51b3pic\u5355\u7247\u673a\u7684\u529f\u8017\u95ee\u9898"},"content":{"rendered":"

\n\t\u6700\u8fd1\u4e00\u5468\u4e00\u76f4\u5728\u505api<\/u>c\u5355\u7247\u673a<\/u>\u529f\u8017\u95ee\u9898\u3002\u7531\u4e8e\u9879\u76ee\u4f7f\u7528\u7535\u6c60<\/u>\u4f9b\u7535\uff0c\u6240\u4ee5\u529f\u8017\u95ee\u9898\u663e\u5f97\u975e\u5e38\u91cd\u8981\u3002\u6839\u636e\u6570\u636e\u624b\u518c\u4ee5\u53ca\u7f51\u7edc\u4e0a\u7684\u8d44\u6599\uff0c\u5f71\u54cd\u5355\u7247\u673a\u529f\u8017\u4e3b\u8981\u7531\u4ee5\u4e0b\u51e0\u4e2a\u56e0\u7d20\uff1a<\/p>\n

\n\t1\uff1a\u6240\u6709I\/O<\/u>\u5f15\u811a\u4fdd\u6301\u4e3a\u9ad8\u963b\u8f93\u5165\u9ad8\u70b9\u5e73\u6216\u4f4e\u7535\u5e73<\/p>\n

\n\t <\/div>\n

\n\t2\uff1a\u5173\u95ed\u6bd4\u8f83\u5668<\/u>\u548cCVr<\/u>ef\uff08\u53ef\u7f16\u7a0b\u504f\u4e0a\u53c2\u8003\u7535\u538b\uff09\u3001WTD\u3001T1OSC\u3001BOR\uff08\u6b20\u538b\u590d\u4f4d\uff09\u7b49<\/p>\n

\n\t3\uff1aPORTB\u7247\u5185\u5f31\u4e0a\u62c9<\/p>\n

\n\t4\uff1a\u6240\u6709\u4e0d\u7528\u7684\u6a21\u5757\u5168\u90e8\u5173\u95ed\uff0c\u5728\u7528\u5230\u65f6\u518d\u6253\u5f00<\/p>\n

\n\t5\uff1aMCLR\u5f15\u811a\u5fc5\u987b\u5904\u4e8e\u903b\u8f91\u9ad8\u7535\u5e73<\/p>\n

\n\tPIC\u5355\u7247\u673a\u5728\u6267\u884cSLEEP\u6307\u4ee4\u540e\u8fdb\u5165\u7761\u7720\u7701\u7535\u6a21\u5f0f\u3002\u8fdb\u5165SLEEP\u6a21\u5f0f\u540e\uff0c\u4e3b\u632f\u8361\u505c\u6b62\uff0c\u5982\u679c\u770b\u95e8\u72d7<\/u>\u5728\u70e7\u5199\u65f6\u6253\u5f00\u4e86\uff0c\u770b\u95e8\u72d7\u5b9a\u65f6\u5668<\/u>\u5c06\u88ab\u6e05\u5e76\u4fdd\u6301\u8fd0\u884c\u3002I\/O\u53e3\uff0c\u5468\u8fb9\u6a21\u5757\u548c\u5185\u90e8RAM<\/u>\u5c06\u4fdd\u6301\u539f\u6765\u72b6\u6001\uff0c\u6240\u4ee5\u5982\u679c\u8981\u6c42\u7761\u7720\u540e\u6709\u5f88\u4f4e\u529f\u8017\uff0c\u5e94\u8be5\u5728\u8fdb\u5165SLEEP\u524d\u628aIO\u53e3\u7f6e\u4e3a\u9ad8\u963b\u6297<\/u>\u7684\u8f93\u5165\u72b6\u6001\uff0c\u4e0d\u7528\u7684\u6a21\u5757\u4e5f\u8981\u5173\u95ed\u3002\u53e6\u6709\u4e9b\u5468\u8fb9\u6a21\u5757\u4e0e\u4e3b\u65f6\u949f<\/u>\u6709\u5173\uff0c\u5982\u5728\u5f02\u6b65\u6a21\u5f0f\u4e0b\u7684USART\uff0c\u5c06\u4e0d\u5de5\u4f5c\u3002<\/p>\n

\n\t\"\u5982\u4f55\u89e3\u51b3pic\u5355\u7247\u673a\u7684\u529f\u8017\u95ee\u9898\"<\/p>\n

\n\t\u5524\u9192SLEEP\u7684\u6761\u4ef6\u6709\u5f88\u591a\uff0c\u5982IO\u53e3\u7535\u5e73\u53d8\u5316\uff0cAD\u8f6c\u6362\u7ed3\u675f\uff0c\u5916\u90e8\u590d\u4f4d\u3001\u770b\u95e8\u72d7\u6ea2\u51fa\u7b49\uff0c\u5177\u4f53\u8bf7\u53c2\u8003\u6570\u636e\u624b\u518c\u3002<\/p>\n

\n\t\u5f53\u6267\u884cSLEEP\u6307\u4ee4\u65f6\uff0cPC+1\u7684\u6307\u4ee4\u88ab\u9884\u53d6\u6307\uff0c\u5f53\u5668\u4ef6\u88ab\u4e00\u4e2a\u4e2d\u65ad\u6761\u4ef6\u5524\u9192\u65f6\uff08\u8fd9\u4e2a\u4e2d\u65ad\u7684\u5e94\u662f\u5df2\u4f7f\u80fd\u7684\uff09\uff0c\u5982\u679cGIE\uff08\u5168\u5c40\u4e2d\u65ad\u4f7f\u80fd\u4f4d\uff09\u4e3a0\uff0c\u5668\u4ef6\u5c06\u7ee7\u7eed\u6267\u884cSLEEP\u6307\u4ee4\u4e0b\u9762\u7684\u6307\u4ee4\u3002\u5982\u679cGIE\u4e3a1\uff0c\u5668\u4ef6\u5c06\u6267\u884c\u5df2\u9884\u53d6\u7684PC+1\u6307\u4ee4\u540e\u8df3\u52300004H\u7684\u4e2d\u65ad\u5165\u53e3\u3002\u6240\u4ee5\u5efa\u8baeSLEEP\u540e\u9762\u7d27\u8ddf\u7740\u7684\u4e00\u6761\u6307\u4ee4\u6700\u597d\u662f\u4e2aNOP\u3002<\/p>\n

\n\t\u5916\u90e8\u624b\u52a8\u590d\u4f4dMCLR\u5c06\u5524\u9192\u5668\u4ef6\u5e76RESET\uff0c\u8868\u793a\u72b6\u6001\u7684\u6807\u5fd7\u4f4d\u542b\u4e49\u8be6\u89c1\u6570\u636e\u624b\u518c\u3002<\/p>\n

\n\t\u770b\u95e8\u72d7\u5b9a\u65f6\u5668\u5728SLEEP\u4e0b\u6ea2\u51fa\u5c06\u5524\u9192\u5668\u4ef6\uff0c\u7136\u540e\u6267\u884cSLEEP\u4e0b\u9762\u7684\u6307\u4ee4\uff0c\u4e5f\u6709\u6807\u5fd7\u4f4d\u6307\u793a\u72b6\u6001\u3002<\/p>\n

\n\t\u8fdb\u5165SLEEP\u540e\uff0c\u4e3b\u632f\u8361\u505c\u632f\uff0c\u548c\u4e3b\u632f\u8361\u76f8\u5173\u7684\u6a21\u5757\u90fd\u4f1a\u505c\u6b62\u5de5\u4f5c\uff0cA\/D \u3002\u6db2\u6676\u9a71\u52a8\u3002\u770b\u95e8\u72d7\u7b49\u6a21\u5757\u8fd8\u662f\u8981\u5728SLEEP\u6307\u4ee4\u6267\u884c\u4e4b\u524d\u5173\u95ed\u7684\u3002\u8fd9\u6837\u529f\u8017\u624d\u4f1a\u6700\u4f4e\u3002<\/p>\n

\n\t\u5173\u4e8eI.O\u53e3\u3002\u572816C926\u7684DATA SHEET\u91cc\uff0c\u8fd8\u662f\u8bf4\u5230\u4e86\u4e00\u4e9b\u3002\u6240\u6709\u7684I\/O\u53e3\uff0c\u90fd\u6709\u786e\u5b9a\u7684\u63a5VDD\u6216\u8005VSS\uff0c\u800c\u4e0d\u80fd\u60ac\u7a7a\u3002\u8fdb\u5165SLEEP\u524d\uff0c\u6240\u6709\u7684I\/O\u5e94\u8be5\u7f6e\u4e3a\u8f93\u5165\u53e3\uff0c\u63a5\u4e0a\u62c9\u6216\u4e0b\u62c9\u3002<\/p>\n

\n\t\u5bf9\u4e8ePORTB\u53e3\u6709\u5185\u90e8\u4e0a\u62c9\u529f\u80fd\u7684\u5e94\u8be5\u9009\u62e9\u4e0d\u4e0a\u62c9\u3002<\/p>\n

\n\t\u8fd9\u4e2a\u9879\u76ee\u5c31\u662f\u56e0\u4e3a\u6ca1\u6709\u5173\u95edBOR\u5728\u4f11\u7720\u65f6\u7535\u6d41<\/u>\u8fbe\u523050UA\u800c\u641e\u4e86\u8fd1\u4e00\u5468\u7684\u65f6\u95f4\u624d\u53d1\u73b0\u95ee\u9898\u3002<\/p>\n

\n\t\u4e0b\u9762\u662f\u4e00\u4f4d\u7f51\u53cb\u7684\u6d4b\u8bd5<\/u>\u6570\u636e\uff1a<\/p>\n

\n\t\u6d4b\u8bd5\u6761\u4ef6\uff1aPIC16F676\u4f7f\u7528\u5185\u90e84MHzRC\u632f\u8361\uff0c\u7535\u6e90\u7535\u538b5V\uff0c\u6d4b\u8bd5\u5728\u7761\u7720\u4e0b\u7684\u6d88\u8017\u7535\u6d41<\/p>\n

\n\t\u5355\u7247\u673a\u5728\u5916\u90e8IO\u53e3\u8bbe\u7f6e\u6210\u8f93\u5165\u5e76\u6709\u56fa\u5b9a\u7535\u5e73\u7684\u60c5\u51b5\u4e0b\uff0c\u7a0b\u5e8f\u8fdb\u5165\u4e00\u4e2aNOP\u6307\u4ee4\u548c\u8df3\u8f6c\u6307\u4ee4\u7684\u6b7b\u5faa\u73af\u540e\u8017\u7535\u7ea61.26mA<\/p>\n

\n\t1.SLEEP\u4e4b\u540e\uff1aWDT\u5f00\u5e76256\u5206\u9891\uff0c\u6bcf2.3\u79d2\u5de6\u53f3\u5524\u9192\u4e00\u6b21\uff0c\u6240\u6709IO\u53e3\u4e3a\u6570\u5b57\u8f93\u5165\u53e3\uff0c\u76f4\u63a5\u63a5\u9ad8\u7535\u5e73\u6216\u4f4e\u7535\u5e73\u30025V\uff0c0.159mA\uff0c\u4e3b\u8981\u914d\u7f6e\uff1a_INTRC_OSC_NOCLKOUT & _WDT_ON & _PWRTE<\/u>_ON & _MCLRE_OFF & _BODEN<\/p>\n

\n\t2.\u4e0a\u9762\u7684\u7a0b\u5e8f\u6ca1\u52a8\uff0c\u53ea\u662f\u914d\u7f6e& _BODEN_OFF\uff0c\u7535\u6d41\u964d\u4e3a8.5μA\uff0c\u5176\u5b83\u914d\u7f6e\u53d8\u5316\u5bf9\u7535\u6d41\u6d88\u8017\u5f71\u54cd\u4e0d\u5927\uff0cWDT\u5f00\u4e0e\u4e0d\u5f00\u53ea\u5dee0.1μA\uff0c\u53ef\u89c1BROWN OUT DOWN\u529f\u80fd\u662f\u4e2a\u8017\u7535\u5927\u6237\u3002<\/p>\n

\n\t3.\u4e0a\u9762\u7684\u914d\u7f6e\u3001\u7a0b\u5e8f\u6ca1\u52a8\uff0c\u6240\u6709IO\u8f93\u5165\u53e3\u60ac\u7a7a\uff0c\u7ed3\u679c\u7535\u6d41\u53d8\u4e3a0.8-1mA\uff0c\u4ee5\u4e0a\u5747\u6ca1\u5f00\u7535\u5e73\u53d8\u5316\u4e2d\u65ad\uff0c\u800c\u4e14\u624b\u63a5\u8fd1\u5355\u7247\u673a\u7535\u6d41\u53d8\u7684\u66f4\u5927\u3002\u53ef\u89c1\u867d\u7136IO\u53e3\u770b\u4f3c\u6ca1\u6709\u5438\u6536\u7535\u6d41\uff0c\u4f46\u5e72\u6270\u7535\u5e73\u5f15\u8d77\u5355\u7247\u673a\u5185\u90e8\u6bd4\u8f83\u5668\u9891\u7e41\u7ffb\u8f6c\u7684\u7535\u6d41\u53ef\u4ee5\u8bf4\u5f88\u60ca\u4eba\u3002<\/p>\n

\n\t4.\u4ee5\u4e0a\u914d\u7f6e\uff0c\u4ec5\u5c06WDT\u5206\u9891\u6bd4\u6539\u4e3a1:1\uff0c\u5404IO\u53e3\u4ecd\u7136\u63a5\u56fa\u5b9a\u7535\u5e73\uff0c\u6b64\u65f6\u5355\u7247\u673aWDT\u7ea6\u6bcf1.8mS\u5524\u9192\u4e00\u6b21\uff0c\u7535\u6d41\u4e3a8.8μA\uff0c\u53ef\u89c1RC\u7684\u5524\u9192\u5f88\u7701\u7535\u3002<\/p>\n

\n\t5.\u4ee5\u4e0a\u914d\u7f6e\uff0cWDT1:256\u5206\u9891\uff0c\u5c06\u6240\u6709IO\u53e3\u8bbe\u7f6e\u6210\u8f93\u51fa\uff0c\u5e76\u8f93\u51fa\u4f4e\u7535\u5e73\uff0cIO\u53e3\u4e0d\u63a5\u4efb\u4f55\u8d1f\u8f7d\uff0c\u7ed3\u679c\u7535\u6d41\u4e3a9.5μA\uff0c\u4e0e\u8f93\u5165\u76f8\u6bd4\u591a\u4e861μA\u3002\u53ef\u89c1IO\u53e3\u7684\u9a71\u52a8\u4e5f\u662f\u8981\u80fd\u91cf\u7684\u3002<\/p>\n

\n\t6.\u4ee5\u4e0a\u914d\u7f6e\uff0cWDT1:256\uff0c\u5404AD\u8f93\u5165\u53e3\u8bbe\u7f6e\u6210AD\u8f93\u5165\uff0c\u5176\u5b83\u8bbe\u7f6e\u6210IO\u8f93\u5165\uff0c\u5747\u63a5\u56fa\u5b9a\u7535\u5e73\uff0cADON\u7f6e1\uff0cGO\u4e3a\u96f6\uff0c\u6b64\u65f6AD\u6a21\u5757\u5f00\u542f\uff0c\u8f6c\u6362\u672a\u5f00\u59cb\uff0c\u8f6c\u6362\u65f6\u949f\u91c7\u7528\u7cfb\u7edf\u65f6\u949f\u76841\/8\uff0c\u7535\u6d418.8μA\u57fa\u672c\u65e0\u53d8\u5316\uff0c\u8f6c\u6362\u65f6\u949f\u91c7\u7528AD\u72ec\u7acbRC\u632f\u8361\uff0c\u7535\u6d41\u4ecd\u4e3a8.8μA\uff0c\u72ec\u7acbRC\u632f\u8361\uff0cGO\u7f6e1\uff0c\u8f6c\u6362\u5b8c\u6210\u540e\u7ee7\u7eedAD\u8f6c\u6362\uff0c\u7535\u6d41\u4e3a9.2μA\uff0c\u671f\u95f4\u6ca1\u6709\u7a7a\u4f59\u91c7\u6837\u7535\u5bb9<\/u>\u7684\u5145\u7535\u65f6\u95f4\uff0c\u53ef\u89c1AD\u8f6c\u6362\u5e76\u4e0d\u600e\u4e48\u8017\u7535\u3002<\/p>\n

\n\t7.\u5173\u95edAD\uff0c\u5f00\u542fRA\u53e3\u7684\u5f31\u4e0a\u62c9\uff0c\u6709\u5f31\u4e0a\u62c9\u7684IO\u60ac\u7a7a\uff0cWDT 1:1\uff0c\u7535\u6d418.8μA\uff0c\u5c06\u5f31\u4e0a\u62c9\u7684IO\u53e3\u5176\u4e2d\u4e00\u811a\u63a5\u5730\uff0c\u7535\u6d41\u731b\u589e\u81f3212.4μA\uff0c\u6362\u7b97\u4e0b\u6765\u4e00\u4e2a\u5f31\u4e0a\u62c9\u76f8\u5f53\u4e8e\u4e00\u4e2a24KΩ\u5de6\u53f3\u7684\u7535\u963b<\/u>\u3002<\/p>\n

\n\t\u7efc\u4e0a\u6240\u8ff0\uff0c\u8017\u7535\u5927\u6237\u6709\u4e24\u4e2a\uff1a\u7b2c\u4e00\u5927\u6237\u662f\u60ac\u7a7a\u7684\u8f93\u5165\u811a\uff0c\u7b2c\u4e8c\u5927\u6237\u4e3a\u5f31\u4e0a\u62c9\u65f6IO\u53e3\u63a5\u5730\u3002\u7b2c\u4e09\u5927\u6237\u4e3aBROWN OUT DOWN RESET\uff08\u7535\u538b\u8fc7\u4f4e\u590d\u4f4d\uff09\u3002\u82e5\u8981\u7701\u7535\u7684\u8bdd\u4e0d\u59a8\u4ee5\u6b64\u53c2\u8003\u3002\u6b64\u6b21\u8bd5\u9a8c\u662f\u5355\u7247\u673a\u6ca1\u6709\u4efb\u4f55\u5916\u56f4\u7535\u8def<\/u>\u7684\u60c5\u51b5\u4e0b\u6d4b\u5f97\uff0c\u5f53\u7136\u5916\u56f4\u7535\u8def\u6bd4\u8f83\u590d\u6742\uff0c\u8bbe\u8ba1\u7701\u7535\u6a21\u5f0f\u5176\u5b83\u7535\u8def\u7684\u8017\u7535\u4e5f\u8981\u8003\u8651\u3002\u82e5\u8981\u975e\u5e38\u7701\u7535\uff0c\u90a3\u4e48\u6bcf\u4e2a\u529f\u80fd\u662f\u5426\u5f00\u542f\u90fd\u662f\u9531\u73e0\u5fc5\u8f83\u7684\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u6700\u8fd1\u4e00\u5468\u4e00\u76f4\u5728\u505a pi c \u5355\u7247\u673a \u529f\u8017\u95ee\u9898\u3002\u7531\u4e8e\u9879\u76ee\u4f7f\u7528 \u7535\u6c60 \u4f9b\u7535\uff0c\u6240\u4ee5\u529f\u8017\u95ee\u9898\u663e\u5f97\u975e\u5e38\u91cd\u8981\u3002\u6839\u636e\u6570\u636e\u624b\u518c\u4ee5\u53ca\u7f51\u7edc\u4e0a\u7684\u8d44\u6599\uff0c\u5f71\u54cd\u5355\u7247\u673a\u529f\u8017\u4e3b\u8981\u7531\u4ee5\u4e0b\u51e0\u4e2a\u56e0\u7d20\uff1a 1\uff1a\u6240\u6709 I\/O<\/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\/2741"}],"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=2741"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2741\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2741"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2741"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2741"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}