{"id":122406,"date":"2026-11-04T21:49:20","date_gmt":"2026-11-04T13:49:20","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/122406.html"},"modified":"2026-11-04T21:49:20","modified_gmt":"2026-11-04T13:49:20","slug":"4-1%e9%9d%99%e6%80%81%e6%95%b0%e7%a0%81%e7%ae%a1%e6%98%be%e7%a4%ba","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/122406.html","title":{"rendered":"4-1\u9759\u6001\u6570\u7801\u7ba1\u663e\u793a"},"content":{"rendered":"<p>\u672c\u6b21\u5b66\u4e60\u6709\u5f88\u591a\u77e5\u8bc6\u70b9&#xff0c;\u6211\u5c06\u5206\u6761\u603b\u7ed3<br \/>\n\u4e00.\u5355\u4e2a\u6570\u7801\u7ba1<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104134915-6aeb37db3f029.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u5355\u4e2a\u6570\u7801\u7ba1\u5206\u4e3a\u5171\u9634\u6781\u548c\u5171\u9633\u6781&#xff0c;\u7b2c\u4e00\u4e2a\u7535\u8def\u662f\u5171\u9634\u6781\u6570\u7801\u7ba1&#xff0c;\u82e5\u4f7f\u8fd9\u4e2a\u6570\u7801\u7ba1\u53ef\u4f7f\u7528&#xff0c;3.8\u90a3\u8fb9\u5e94\u8be5\u63a5\u9634\u6781&#xff0c;\u7b2c\u4e8c\u5f20\u56fe\u662f\u5171\u9633\u6781\u6570\u7801\u7ba1&#xff0c;\u82e5\u4f7f\u6570\u7801\u7ba1\u53ef\u7528\u5e94\u57283.8\u90a3\u8fb9\u63a5\u9633\u6781\u3002<br \/>\n\u4e8c.\u591a\u4e2a\u6570\u7801\u7ba1<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104134916-6aeb37dc0ea49.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u591a\u4e2a\u6570\u7801\u7ba1\u548c\u5355\u4e2a\u6570\u7801\u7ba1\u5f88\u76f8\u4f3c&#xff0c;\u533a\u522b\u662f\u5171\u9634\u6781\u7684\u6570\u7801\u7ba1&#xff0c;\u9633\u6781\u548c\u5176\u4ed6\u6570\u7801\u7ba1\u9633\u6781\u76f8\u8fde&#xff0c;\u5171\u9633\u6781\u7684\u540c\u4e0a\u3002\u6bcf\u4e2a\u6570\u7801\u7ba1\u7684\u5171\u6781\u53e6\u4e00\u7aef\u90fd\u548c\u5176\u4ed6\u6570\u7801\u7ba1\u5bf9\u5e94\u76f8\u8fde&#xff0c;\u6bd4\u5982A\u8fde\u63a5A&#xff0c;B\u8fde\u63a5B&#xff0c;\u8fd9\u4e5f\u4f7f\u5f97\u6ca1\u6709\u529e\u6cd5\u8ba9\u6240\u6709\u6570\u7801\u7ba1\u540c\u65f6\u663e\u793a\u4e0d\u540c\u7684\u4fe1\u606f&#xff0c;\u6bd4\u5982\u6211\u9009\u4e2d\u4e86LED1\u548cLED2&#xff0c;\u6211\u8ba9LED1\u663e\u793a5\u5c31\u4e0d\u80fd\u540c\u65f6\u8ba9LED2\u663e\u793a6&#xff0c;\u6700\u591a\u8ba9LED1\u4e0eLED2\u540c\u65f6\u663e\u793a5.<br \/>\n\u5f53\u7136&#xff0c;\u5982\u679c\u6211\u4eec\u7ed911\u7ebf\u4e0a\u7535&#xff0c;\u6240\u6709\u7684\u6570\u7801\u7ba1A\u7ebf\u90fd\u4f1a\u4e0a\u7535&#xff0c;\u5982\u679c\u6211\u4eec\u53ea\u60f3\u8ba9\u67d0\u4e00\u4e2a\u6570\u7801\u7ba1\u4eae&#xff0c;\u6211\u4eec\u5c31\u53ef\u4ee5\u9009\u62e9\u4ed6\u4eec\u5171\u6781\u90a3\u6bb5\u662f\u5426\u7ed9\u76f8\u5e94\u7684\u7535&#xff0c;\u6bd4\u5982\u6211\u4eec\u9009\u7684\u662f\u5171\u9634\u6781\u6570\u7801\u7ba1&#xff0c;\u90a3\u6211\u4eec\u53ea\u9700\u8981\u5728\u6211\u4eec\u60f3\u8981\u7684\u90a3\u4e2a\u6570\u7801\u7ba1\u5171\u6781\u63a5\u4e0a\u4f4e\u7535\u5e73\u5176\u4ed6\u6570\u7801\u7ba1\u63a5\u9ad8\u7535\u5e73\u5373\u53ef\u5b9e\u73b0\u53ea\u8ba9\u9009\u5b9a\u6570\u7801\u7ba1\u4eae\u7684\u7ed3\u679c\u3002<br \/>\n\u4e09.\u6570\u7801\u7ba1\u539f\u7406\u56fe<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104134916-6aeb37dcc8164.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u6570\u7801\u7ba1\u5de6\u8fb9\u768474HC245\u82af\u7247\u6709\u4e09\u4e2a\u4f5c\u7528&#xff1a;1.\u589e\u5f3a\u9a71\u52a8\u80fd\u529b&#xff08;\u7535\u6d41\u653e\u5927&#xff09;2.\u7f13\u51b2\u9694\u79bb 3.\u53cc\u5411\u603b\u7ebf\u6536\u53d1\u3002\u5728\u8fd9\u4e2a\u5b9e\u9a8c\u4e3b\u8981\u4f5c\u7528\u662f\u589e\u5f3a\u9a71\u52a8\u80fd\u529b&#xff0c;\u5355\u7247\u673a\u7684\u9a71\u52a8\u80fd\u529b\u5f31&#xff0c;\u7535\u6d41\u5c0f&#xff0c;\u5982\u679c\u76f4\u63a5\u8fde\u63a5LED&#xff0c;LED\u4e0d\u4f1a\u5f88\u4eae&#xff0c;\u4f46\u662f\u7ecf\u8fc774HC245\u540eLED\u4eae\u5ea6\u589e\u5f3a&#xff0c;\u662f\u56e0\u4e3a74HC245\u7528\u5916\u90e8\u7535\u6e90\u53bb\u4f9b\u7535&#xff0c;\u7535\u6d41\u8db3\u4ee5\u4f7fLED\u4eae\u3002<\/p>\n<p>74HC245\u82af\u7247\u7684DIR\u5f15\u811a\u662f\u65b9\u5411\u63a7\u5236\u5f15\u811a &#xff1a;<br \/>\nDIR&#061;1&#xff1a;A \u2192 B \u65b9\u5411&#xff08;P0 \u53e3\u7684\u6570\u636e&#xff0c;\u9001\u5230 B \u4fa7&#xff0c;\u4e5f\u5c31\u662f\u6570\u7801\u7ba1\u6bb5\u5f15\u811a&#xff09;DIR&#061;0&#xff1a;B \u2192 A \u65b9\u5411&#xff08;\u53cd\u8fc7\u6765&#xff0c;\u4ece\u6570\u7801\u7ba1\u4fa7\u8bfb\u56de\u6570\u636e\u5230 P0&#xff09;<br \/>\nOE\u5f15\u811a\u662f\u8f93\u51fa\u4f7f\u80fd\u5f15\u811a&#xff0c;\u4f4e\u7535\u5e73\u6709\u6548<br \/>\nOE&#061;0&#xff1a;\u82af\u7247\u5f00\u542f&#xff0c;\u603b\u7ebf\u8fde\u901a&#xff0c;\u53ef\u4ee5\u4f20\u8f93\u6570\u636e<br \/>\nOE&#061;1&#xff1a;\u82af\u7247\u9ad8\u963b\u6001&#xff0c;\u4e24\u8fb9\u65ad\u5f00<br \/>\n\u5355\u7247\u673a\u4ece\u5de6\u8fb9\u8f93\u5165\u4fe1\u53f7\u7ed974HC245&#xff0c;\u7136\u540e\u4fe1\u53f7\u88ab\u653e\u5927\u8f93\u5165\u7ed9LED<\/p>\n<p>RP5\u662f\u9650\u6d41\u7535\u963b&#xff0c;\u4fdd\u62a4\u7535\u8def<br \/>\nJ21\u662f3\u9488\u8df3\u7ebf\u5e3d-<br \/>\n1 \u811a&#xff1a;VCC<br \/>\n2 \u811a&#xff1a;LE&#xff08;74HC245 \u7684 DIR \u65b9\u5411\u63a7\u5236\u811a&#xff09;<br \/>\n3 \u811a&#xff1a;P1_0&#xff08;\u5355\u7247\u673a P10 IO \u53e3&#xff09;<br \/>\n\u4f5c\u7528<br \/>\n1.\u77ed\u63a5 1 \u811a\u548c 2 \u811a\u2192 LE \u76f4\u63a5\u63a5\u5230 VCC&#xff08;\u56fa\u5b9a\u9ad8\u7535\u5e73&#xff09;\u2192 74HC245 \u65b9\u5411\u6c38\u4e45\u56fa\u5b9a A\u2192B&#xff0c;P0 \u7684\u6570\u636e\u4e00\u76f4\u8f93\u51fa\u5230\u6570\u7801\u7ba1\u6bb5&#xff0c;\u4e0d\u9700\u8981\u5355\u7247\u673a\u63a7\u5236\u65b9\u5411<br \/>\n2.\u77ed\u63a5 2 \u811a\u548c 3 \u811a \u2192 LE \u63a5\u5230\u5355\u7247\u673a P1.0\u2192 \u7531\u5355\u7247\u673a\u7a0b\u5e8f&#xff0c;\u7528 P1_0 \u8f6f\u4ef6\u63a7\u5236 DIR \u65b9\u5411&#xff0c;\u53ef\u5207\u6362\u4f20\u8f93\u65b9\u5411<\/p>\n<p>\u56db.138\u8bd1\u7801\u5668<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104134917-6aeb37dd02b97.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u4e3b\u8981\u4f5c\u7528\u662f\u53ef\u4ee5\u8ba9\u7aef\u53e3\u53d8\u5c11&#xff0c;\u7528\u5de6\u8fb9(P22,P23,P24)\u4e09\u4e2a\u7aef\u53e3\u63a7\u5236\u53f3\u8fb9&#xff08;Y0,Y1,Y2,Y3,Y4,Y5,Y6,Y7)8\u4e2a\u7aef\u53e3\u3002\u4f8b\u5982\u5de6\u8fb9\u7aef\u53e3\u662f100&#xff0c;\u5219\u4f1a\u63a7\u5236\u53f3\u8fb9Y0&#xff08;LED1&#xff09;&#xff0c;\u6b64\u5904\u7528\u5230\u4e8c\u8fdb\u5236<br \/>\nG1,G2A,G2B\u662f\u4f7f\u80fd\u811a\u53ea\u6709G1\u63a5VCC&#xff0c;G2A,G2BV\u63a5GND\u65f6\u5019\u82af\u7247\u53ef\u4ee5\u6b63\u5e38\u8bd1\u7801\u5de5\u4f5c\u3002<br \/>\n\u6574\u4f53\u8fc7\u7a0b\u5c31\u662f\u5355\u7247\u673a\u5411 74LS138 \u8f93\u5165 3 \u4f4d\u8bd1\u7801\u4fe1\u53f7&#xff0c;138 \u8bd1\u7801\u540e\u8f93\u51fa\u4f4e\u7535\u5e73\u9009\u901a\u4fe1\u53f7&#xff0c;\u9001\u5230\u6570\u7801\u7ba1\u516c\u5171\u7aef&#xff08;COM \u4f4d\u9009\u7aef&#xff09;&#xff0c;\u9009\u62e9\u5f53\u524d\u9700\u8981\u70b9\u4eae\u7684\u662f\u54ea\u4e00\u4f4d\u6570\u7801\u7ba1&#xff08;\u4f4d\u9009&#xff09;&#xff1b;\u540c\u65f6\u5355\u7247\u673a P0 \u53e3\u8f93\u51fa\u6bb5\u7801&#xff0c;\u7ecf\u8fc7 74HC245 \u589e\u5f3a\u9a71\u52a8\u80fd\u529b\u540e\u9001\u5230\u6570\u7801\u7ba1 a~dp \u6bb5\u5f15\u811a&#xff0c;\u63a7\u5236\u8be5\u4f4d\u6570\u7801\u7ba1\u663e\u793a\u7684\u6570\u5b57 \/ \u5b57\u7b26&#xff08;\u6bb5\u9009&#xff09;\u3002\u52a8\u6001\u626b\u63cf\u65f6\u8f6e\u6d41\u9009\u901a\u6bcf\u4e00\u4f4d&#xff0c;\u5229\u7528\u4eba\u773c\u89c6\u89c9\u6682\u7559&#xff0c;\u5b9e\u73b0\u591a\u4f4d\u6570\u7801\u7ba1\u540c\u65f6\u7a33\u5b9a\u663e\u793a\u3002<\/p>\n<p>\u4e94.\u6570\u7ec4<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104134917-6aeb37dd1142e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u8fd9\u91cc\u91cd\u70b9\u662fx[0]\u6307\u7684\u662f\u7b2c\u4e00\u4e2a\u5143\u7d20&#xff0c;x[1]\u6307\u7684\u662f\u7b2c\u4e8c\u4e2a\u5143\u7d20&#xff0c;x[2]\u6307\u7684\u662f\u7b2c\u4e09\u4e2a\u5143\u7d20<\/p>\n<p>\u516d.\u5b50\u51fd\u6570<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104134917-6aeb37dd636e7.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u4ee3\u7801\u5c55\u793a<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104134917-6aeb37ddaf793.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u8fc7\u7a0b\u4e2d\u9047\u5230\u7684\u95ee\u9898<br \/>\n1.\u4e3a\u4ec0\u4e48\u5728seitch&#xff08;Location&#xff09;\u91cc\u9762case1\u540e\u9762\u7684\u4ee3\u7801\u662f000\u800c\u4e0d\u662f001&#xff1f;<br \/>\n\u56e0\u4e3a\u4ed6\u4fe9\u6ca1\u6709\u5fc5\u7136\u8054\u7cfb&#xff0c;\u4e0d\u80fd\u56e0\u4e3acase1\u5c31\u8ba9\u540e\u9762\u4f4d001&#xff0c;\u524d\u9762case&#xff0b;\u6570\u5b57\u53ea\u662f\u56e0\u4e3aswitch\u51fd\u6570\u7684\u6392\u5e8f&#xff0c;\u800c\u540e\u9762\u7684\u4ee3\u7801\u662f\u4e8c\u8fdb\u5236&#xff0c;\u4ece000\u5230111\u4e00\u51718\u4e2a\u6570&#xff0c;\u5bf9\u5e948\u4e2aLED<br \/>\n2.\u4e3a\u4ec0\u4e48\u4ee3\u7801\u4e3a000\u6307\u7684\u662f\u7b2c\u4e00\u4e2aLED&#xff0c;\u4e3a\u4ec0\u4e48001\u4e0d\u662f\u6307\u7b2c\u4e00\u4e2aLED&#xff1f;<br \/>\n\u540c\u6837\u7684&#xff0c;\u4ed6\u4eec\u6ca1\u6709\u5fc5\u7136\u8054\u7cfb&#xff0c;\u53ea\u662f\u6392\u5e8f\u3002\u4ed6\u4eec\u4e4b\u95f4\u5bf9\u5e94\u5173\u7cfb\u5982\u4e0b\u56fe<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104134918-6aeb37de242b3.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>3.\u5b50\u51fd\u6570\u77e5\u8bc6\u638c\u63e1\u4e0d\u7262<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104134918-6aeb37de36b03.png\" alt=\"\u9519\u8bef\u5199\u6cd5\" \/><br \/>\n\u8fd9\u662f\u9519\u8bef\u4ee3\u7801<\/p>\n<p>\u5b50\u51fd\u6570\u7684\u5f62\u5f0f\u662f<br \/>\n\u8fd4\u56de\u503c\u7c7b\u578b  \u51fd\u6570\u540d(\u5f62\u53c2\u5217\u8868)<br \/>\n{<br \/>\n\u51fd\u6570\u5185\u90e8\u4ee3\u7801;<br \/>\nreturn \u8fd4\u56de\u503c;  \/\/ \u5982\u679c\u8fd4\u56de\u503c\u662fvoid&#xff0c;\u8fd9\u4e00\u53e5\u53ef\u4ee5\u7701\u7565<br \/>\n}<br \/>\n\u5148\u5199\u8fd4\u56de\u503c\u7c7b\u578b&#xff0c;\u5373char int\u7b49\u7b49&#xff0c;\u518d\u5199\u5b9a\u4e49\u7684\u51fd\u6570\u540d\u5b57&#xff0c;\u518d\u5199\u62ec\u53f7\u91cc\u9762\u7684\u5f62\u53c2\u5217\u8868&#xff0c;\u5f62\u53c2\u8981\u5b9a\u4e49\u7c7b\u578b&#xff01;&#xff01;&#xff01;<br \/>\n1&#xff09;.\u6211\u5199\u4ee3\u7801\u65f6\u5019\u8fd4\u56de\u503c\u7c7b\u578b\u5199\u9519\u4e86&#xff0c;\u5e94\u8be5\u5199void&#xff0c;\u56e0\u4e3a\u6211\u4eec\u5728\u4e0b\u9762\u4f7f\u7528\u8fd9\u4e2a\u5b50\u51fd\u6570\u540e\u4e0d\u9700\u8981\u8fd4\u56de\u503c<br \/>\n2&#xff09;.\u6211\u7684\u5f62\u53c2\u6ca1\u6709\u5b9a\u4e49\u7c7b\u578b<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104134918-6aeb37de85a11.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u5e94\u8be5\u4e3a\u8fd9\u6837<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104134918-6aeb37de91551.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>4.\u6211\u628a\u5b50\u51fd\u6570\u5199\u5165\u4e86void main&#xff0c;\u8fd9\u6837\u4f1a\u5d4c\u5957\u4f7f\u7528&#xff0c;C51 \u4e2d\u51fd\u6570\u4e0d\u80fd\u5728 main \u51fd\u6570\u5185\u90e8\u8fdb\u884c\u5d4c\u5957\u5b9a\u4e49&#xff0c;main \u51fd\u6570\u4e0e\u5b50\u51fd\u6570\u5c5e\u4e8e\u5e73\u7ea7\u5173\u7cfb&#xff1b;main \u51fd\u6570\u5185\u90e8\u53ea\u53ef\u4ee5\u5bf9\u5b50\u51fd\u6570\u8fdb\u884c\u8c03\u7528&#xff0c;\u4e0d\u80fd\u628a\u5b50\u51fd\u6570\u7684\u5b9a\u4e49\u5199\u8fdb main \u7684\u5927\u62ec\u53f7\u91cc\u9762\u3002<br \/>\n\u5e94\u8be5\u662f\u8fd9\u6837<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104134918-6aeb37dea1ab4.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>5.\u5fd8\u8bb0\u5199while\u5faa\u73af<br \/>\n\u5931\u8bef\u70b9&#xff1a;\u4e3b\u51fd\u6570\u5fd8\u8bb0\u6dfb\u52a0 while(1) \u6b7b\u5faa\u73af\u3002\u82e5\u4e0d\u52a0\u8be5\u5faa\u73af&#xff0c;main \u51fd\u6570\u6267\u884c\u5b8c\u4e00\u904d\u4ee3\u7801\u540e\u5c31\u4f1a\u9000\u51fa\u4e3b\u51fd\u6570&#xff0c;\u7a0b\u5e8f\u505c\u6b62\u8fd0\u884c&#xff1b;while(1) \u9700\u8981\u653e\u7f6e\u5728 main \u51fd\u6570\u5185\u90e8\u672b\u5c3e&#xff0c;\u8ba9\u7a0b\u5e8f\u6301\u7eed\u5faa\u73af\u626b\u63cf\u6570\u7801\u7ba1&#xff0c;\u5b9e\u73b0\u6570\u7801\u7ba1\u7a33\u5b9a\u52a8\u6001\u663e\u793a\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104134918-6aeb37dee63cd.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n6.\u628a138\u8bd1\u7801\u5668\u4e0eLED\u5173\u7cfb\u641e\u53cd<br \/>\n\u5931\u8bef\u70b9&#xff1a;\u6df7\u6dc6 74HC138 \u8bd1\u7801\u5668\u8f93\u51fa\u4e0e\u6570\u7801\u7ba1\u4f4d\u5e8f\u5bf9\u5e94\u5173\u7cfb\u3002\u5f00\u53d1\u677f\u6570\u7801\u7ba1\u7f16\u53f7\u662f\u4ece\u53f3\u5f80\u5de6\u4f9d\u6b21\u4e3a LED1~LED8&#xff0c;\u4e4b\u524d\u8bef\u6309\u4ece\u5de6\u5230\u53f3\u7406\u89e3&#xff0c;\u5bfc\u81f4 switch \u4f4d\u9009\u7f16\u7801\u5199\u53cd&#xff0c;\u6700\u7ec8\u663e\u793a\u7684\u6570\u5b57\u51fa\u73b0\u5728\u9519\u8bef\u7684\u6570\u7801\u7ba1\u4f4d\u7f6e&#xff0c;\u4fee\u6b63 case \u8bd1\u7801\u7f16\u7801\u987a\u5e8f\u540e\u663e\u793a\u4f4d\u7f6e\u6062\u590d\u6b63\u5e38\u3002<br \/>\n138\u8f93\u5165P22,P23,P24    \u8bd1\u7801\u8f93\u51fa  \u5bf9\u5e94\u7684\u6570\u7801\u7ba1     \u4f4d\u7f6e<br \/>\n000                             Y0         LED8                \u6700\u5de6\u4fa7<br \/>\n001   Y1        LED7                \u5de6\u6570\u7b2c\u4e8c\u4f4d<br \/>\n010 Y2 LED6\u5de6\u6570\u7b2c\u4e09\u4f4d<br \/>\n011 Y3 LED5\u5de6\u6570\u7b2c\u56db\u4f4d<br \/>\n100 Y4 LED4\u5de6\u6570\u7b2c\u4e94\u4f4d<br \/>\n101 Y5 LED3\u5de6\u6570\u7b2c\u516d\u4f4d<br \/>\n110 Y6 LED2\u5de6\u6570\u7b2c\u4e03\u4f4d<br \/>\n111  Y7 LED1\u6700\u53f3\u4fa7<\/p>\n<p>\u6700\u540e\u6210\u679c\u5c55\u793a<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104134919-6aeb37df03fcd.jpg\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6b21\u5b66\u4e60\u6709\u5f88\u591a\u77e5\u8bc6\u70b9&#xff0c;\u6211\u5c06\u5206\u6761\u603b\u7ed3<br \/>\n\u4e00.\u5355\u4e2a\u6570\u7801\u7ba1\u5355\u4e2a\u6570\u7801\u7ba1\u5206\u4e3a\u5171\u9634\u6781\u548c\u5171\u9633\u6781&#xff0c;\u7b2c\u4e00\u4e2a\u7535\u8def\u662f\u5171\u9634\u6781\u6570\u7801\u7ba1&#xff0c;\u82e5\u4f7f\u8fd9\u4e2a\u6570\u7801\u7ba1\u53ef\u4f7f\u7528&#xff0c;3.8\u90a3\u8fb9\u5e94\u8be5\u63a5\u9634\u6781&#xff0c;\u7b2c\u4e8c\u5f20\u56fe\u662f\u5171\u9633\u6781\u6570\u7801\u7ba1&#xff0c;\u82e5\u4f7f\u6570\u7801\u7ba1\u53ef\u7528\u5e94\u57283.8\u90a3\u8fb9\u63a5\u9633\u6781\u3002<br \/>\n\u4e8c.\u591a\u4e2a\u6570\u7801\u7ba1\u591a\u4e2a\u6570\u7801\u7ba1\u548c\u5355\u4e2a\u6570\u7801\u7ba1\u5f88\u76f8\u4f3c&#xff0c;\u533a\u522b\u662f\u5171\u9634\u6781\u7684\u6570\u7801\u7ba1&#xff0c;\u9633\u6781\u548c\u5176\u4ed6\u6570\u7801\u7ba1\u9633\u6781\u76f8\u8fde&#xff0c;\u5171\u9633\u6781\u7684\u540c\u4e0a\u3002\u6bcf\u4e2a\u6570\u7801\u7ba1\u7684\u5171\u6781\u53e6\u4e00\u7aef\u90fd\u548c\u5176\u4ed6\u6570\u7801\u7ba1<\/p>\n","protected":false},"author":2,"featured_media":122392,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2489,270,371,269],"topic":[],"class_list":["post-122406","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-2489","tag-270","tag-371","tag-269"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>4-1\u9759\u6001\u6570\u7801\u7ba1\u663e\u793a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/122406.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"4-1\u9759\u6001\u6570\u7801\u7ba1\u663e\u793a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6b21\u5b66\u4e60\u6709\u5f88\u591a\u77e5\u8bc6\u70b9&#xff0c;\u6211\u5c06\u5206\u6761\u603b\u7ed3 \u4e00.\u5355\u4e2a\u6570\u7801\u7ba1\u5355\u4e2a\u6570\u7801\u7ba1\u5206\u4e3a\u5171\u9634\u6781\u548c\u5171\u9633\u6781&#xff0c;\u7b2c\u4e00\u4e2a\u7535\u8def\u662f\u5171\u9634\u6781\u6570\u7801\u7ba1&#xff0c;\u82e5\u4f7f\u8fd9\u4e2a\u6570\u7801\u7ba1\u53ef\u4f7f\u7528&#xff0c;3.8\u90a3\u8fb9\u5e94\u8be5\u63a5\u9634\u6781&#xff0c;\u7b2c\u4e8c\u5f20\u56fe\u662f\u5171\u9633\u6781\u6570\u7801\u7ba1&#xff0c;\u82e5\u4f7f\u6570\u7801\u7ba1\u53ef\u7528\u5e94\u57283.8\u90a3\u8fb9\u63a5\u9633\u6781\u3002 \u4e8c.\u591a\u4e2a\u6570\u7801\u7ba1\u591a\u4e2a\u6570\u7801\u7ba1\u548c\u5355\u4e2a\u6570\u7801\u7ba1\u5f88\u76f8\u4f3c&#xff0c;\u533a\u522b\u662f\u5171\u9634\u6781\u7684\u6570\u7801\u7ba1&#xff0c;\u9633\u6781\u548c\u5176\u4ed6\u6570\u7801\u7ba1\u9633\u6781\u76f8\u8fde&#xff0c;\u5171\u9633\u6781\u7684\u540c\u4e0a\u3002\u6bcf\u4e2a\u6570\u7801\u7ba1\u7684\u5171\u6781\u53e6\u4e00\u7aef\u90fd\u548c\u5176\u4ed6\u6570\u7801\u7ba1\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/122406.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-04T13:49:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104134915-6aeb37db3f029.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/122406.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/122406.html\",\"name\":\"4-1\u9759\u6001\u6570\u7801\u7ba1\u663e\u793a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-11-04T13:49:20+00:00\",\"dateModified\":\"2026-11-04T13:49:20+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/122406.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/122406.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/122406.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"4-1\u9759\u6001\u6570\u7801\u7ba1\u663e\u793a\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"4-1\u9759\u6001\u6570\u7801\u7ba1\u663e\u793a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/122406.html","og_locale":"zh_CN","og_type":"article","og_title":"4-1\u9759\u6001\u6570\u7801\u7ba1\u663e\u793a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u672c\u6b21\u5b66\u4e60\u6709\u5f88\u591a\u77e5\u8bc6\u70b9&#xff0c;\u6211\u5c06\u5206\u6761\u603b\u7ed3 \u4e00.\u5355\u4e2a\u6570\u7801\u7ba1\u5355\u4e2a\u6570\u7801\u7ba1\u5206\u4e3a\u5171\u9634\u6781\u548c\u5171\u9633\u6781&#xff0c;\u7b2c\u4e00\u4e2a\u7535\u8def\u662f\u5171\u9634\u6781\u6570\u7801\u7ba1&#xff0c;\u82e5\u4f7f\u8fd9\u4e2a\u6570\u7801\u7ba1\u53ef\u4f7f\u7528&#xff0c;3.8\u90a3\u8fb9\u5e94\u8be5\u63a5\u9634\u6781&#xff0c;\u7b2c\u4e8c\u5f20\u56fe\u662f\u5171\u9633\u6781\u6570\u7801\u7ba1&#xff0c;\u82e5\u4f7f\u6570\u7801\u7ba1\u53ef\u7528\u5e94\u57283.8\u90a3\u8fb9\u63a5\u9633\u6781\u3002 \u4e8c.\u591a\u4e2a\u6570\u7801\u7ba1\u591a\u4e2a\u6570\u7801\u7ba1\u548c\u5355\u4e2a\u6570\u7801\u7ba1\u5f88\u76f8\u4f3c&#xff0c;\u533a\u522b\u662f\u5171\u9634\u6781\u7684\u6570\u7801\u7ba1&#xff0c;\u9633\u6781\u548c\u5176\u4ed6\u6570\u7801\u7ba1\u9633\u6781\u76f8\u8fde&#xff0c;\u5171\u9633\u6781\u7684\u540c\u4e0a\u3002\u6bcf\u4e2a\u6570\u7801\u7ba1\u7684\u5171\u6781\u53e6\u4e00\u7aef\u90fd\u548c\u5176\u4ed6\u6570\u7801\u7ba1","og_url":"https:\/\/www.wsisp.com\/helps\/122406.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-11-04T13:49:20+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/11\/20261104134915-6aeb37db3f029.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/122406.html","url":"https:\/\/www.wsisp.com\/helps\/122406.html","name":"4-1\u9759\u6001\u6570\u7801\u7ba1\u663e\u793a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-11-04T13:49:20+00:00","dateModified":"2026-11-04T13:49:20+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/122406.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/122406.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/122406.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"4-1\u9759\u6001\u6570\u7801\u7ba1\u663e\u793a"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/122406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=122406"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/122406\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/122392"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=122406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=122406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=122406"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=122406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}