{"id":54089,"date":"2025-08-12T22:09:45","date_gmt":"2025-08-12T14:09:45","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/54089.html"},"modified":"2025-08-12T22:09:45","modified_gmt":"2025-08-12T14:09:45","slug":"%e5%9f%ba%e4%ba%8e%e5%8d%95%e7%89%87%e6%9c%ba%e6%99%ba%e8%83%bd%e8%87%aa%e5%8a%a8%e6%89%ab%e5%9c%b0%e6%9c%ba%e5%99%a8%e4%ba%ba%e6%8e%a7%e5%88%b6%e7%b3%bb%e7%bb%9fproteus%e4%bb%bf%e7%9c%9f%e5%90%ab","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/54089.html","title":{"rendered":"\u57fa\u4e8e\u5355\u7247\u673a\u667a\u80fd\u81ea\u52a8\u626b\u5730\u673a\u5668\u4eba\u63a7\u5236\u7cfb\u7edfProteus\u4eff\u771f(\u542b\u5168\u90e8\u8d44\u6599)"},"content":{"rendered":"<p>\u00a0\u00a0\u00a0\u00a0\u5168\u5957\u8d44\u6599\u5305\u542b&#xff1a;Proteus\u4eff\u771f\u6e90\u6587\u4ef6&#043;keil C\u8bed\u8a00\u6e90\u7a0b\u5e8f&#043;AD\u539f\u7406\u56fe&#043;\u6d41\u7a0b\u56fe&#043;\u5143\u5668\u4ef6\u6e05\u5355&#043;\u8bf4\u660e\u4e66\u7b49<\/p>\n<p id=\"%E8%B5%84%E6%96%99%E4%B8%8B%E8%BD%BD%EF%BC%9A\">\u8d44\u6599\u4e0b\u8f7d&#xff1a;<\/p>\n<p>\u901a\u8fc7\u7f51\u76d8\u5206\u4eab\u7684\u6587\u4ef6&#xff1a;\u8d44\u6599\u5206\u4eab \u94fe\u63a5: <span>\u767e\u5ea6\u7f51\u76d8 \u8bf7\u8f93\u5165\u63d0\u53d6\u7801<\/span> \u63d0\u53d6\u7801: tgnu<\/p>\n<hr \/>\n<h3 id=\"Proteus%E4%BB%BF%E7%9C%9F%E5%8A%9F%E8%83%BD\">\u76ee\u5f55<\/h3>\n<p id=\"%E8%B5%84%E6%96%99%E4%B8%8B%E8%BD%BD%EF%BC%9A-toc\">\u8d44\u6599\u4e0b\u8f7d&#xff1a;<\/p>\n<p id=\"Proteus%E4%BB%BF%E7%9C%9F%E5%8A%9F%E8%83%BD-toc\">Proteus\u4eff\u771f\u529f\u80fd<\/p>\n<p id=\"%E9%A1%B9%E7%9B%AE%E6%96%87%E4%BB%B6%E8%B5%84%E6%96%99%EF%BC%9A-toc\">\u9879\u76ee\u6587\u4ef6\u8d44\u6599&#xff1a;<\/p>\n<p id=\"%E4%B8%80%E3%80%81Proteus%E4%BB%BF%E7%9C%9F%E6%BA%90%E6%96%87%E4%BB%B6-toc\">\u4e00\u3001Proteus\u4eff\u771f\u6e90\u6587\u4ef6<\/p>\n<p id=\"%E4%BA%8C%E3%80%81AD%E5%8E%9F%E7%90%86%E5%9B%BE%E6%96%87%E4%BB%B6-toc\">\u4e8c\u3001AD\u539f\u7406\u56fe\u6587\u4ef6<\/p>\n<p id=\"%E4%BA%8C%E3%80%81%E6%8A%A5%E5%91%8A%E8%AF%B4%E6%98%8E%E4%B9%A6-toc\">\u4e8c\u3001\u62a5\u544a\u8bf4\u660e\u4e66<\/p>\n<p id=\"%E4%B8%89%E3%80%81%E7%B3%BB%E7%BB%9F%E6%B5%81%E7%A8%8B%E5%9B%BE-toc\">\u4e09\u3001\u7cfb\u7edf\u6d41\u7a0b\u56fe<\/p>\n<p id=\"%E5%9B%9B%E3%80%81Keil%20c%E8%AF%AD%E8%A8%80%E7%A8%8B%E5%BA%8F%E6%BA%90%E4%BB%A3%E7%A0%81-toc\">\u56db\u3001Keil c\u8bed\u8a00\u7a0b\u5e8f\u6e90\u4ee3\u7801<\/p>\n<hr id=\"hr-toc\" \/>\n<h2>\u9879\u76ee\u529f\u80fd&#xff1a;<\/h2>\n<p>\u7cfb\u7edf\u7531\u5355\u7247\u673a&#043;\u907f\u969c&#043;\u7535\u673a\u9a71\u52a8\u6a21\u5757&#043;\u7535\u673a&#043;\u6309\u952e\u6a21\u5757&#043;LED\u3002 \u529f\u80fd&#xff1a; 1\u3001\u53ef\u4ee5\u6839\u636e\u7ea2\u5916\u81ea\u52a8\u7684\u8eb2\u907f\u969c\u788d 2\u3001LED\u4e0a\u663e\u793a\u8fd0\u884c\u65f6\u95f4 3\u3001\u901a\u8fc7\u5dee\u901f\u6765\u5b9e\u73b0\u8f6c\u5f2f 4\u3001\u901a\u8fc7\u4e00\u4e2a\u7535\u673a\u7684\u8f6c\u52a8\u6765\u5b9e\u73b0\u626b\u5730\u7684\u529f\u80fd<\/p>\n<hr \/>\n<h2 id=\"%E9%A1%B9%E7%9B%AE%E6%96%87%E4%BB%B6%E8%B5%84%E6%96%99%EF%BC%9A\">\u9879\u76ee\u6587\u4ef6&#xff1a;<\/h2>\n<h3>\u4e00\u3001Proteus\u4eff\u771f\u6e90\u6587\u4ef6<\/h3>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812140938-689b4b224e0a8.png\" \/>\u200b<\/p>\n<h3 id=\"%E4%BA%8C%E3%80%81AD%E5%8E%9F%E7%90%86%E5%9B%BE%E6%96%87%E4%BB%B6\">\u4e8c\u3001AD\u539f\u7406\u56fe\u6587\u4ef6<\/h3>\n<p>\u200b<img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812140939-689b4b23b738e.png\" \/><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812140940-689b4b246b2d3.png\" \/><\/p>\n<h3 id=\"%E4%BA%8C%E3%80%81%E6%8A%A5%E5%91%8A%E8%AF%B4%E6%98%8E%E4%B9%A6\">\u4e8c\u3001\u62a5\u544a\u8bf4\u660e\u4e66<\/h3>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812140941-689b4b259e494.jpg\" \/><\/p>\n<\/p>\n<h3 id=\"%E4%B8%89%E3%80%81%E7%B3%BB%E7%BB%9F%E6%B5%81%E7%A8%8B%E5%9B%BE\">\u4e09\u3001\u7cfb\u7edf\u6d41\u7a0b\u56fe<\/h3>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812140942-689b4b26e93c0.png\" \/>\u200b<\/p>\n<h3>\u56db\u3001\u5668\u4ef6\u6e05\u5355<\/h3>\n<h3><\/h3>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">2\u3001STC89C51\u5355\u7247\u673a<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">3\u300140P\u82af\u7247\u5ea7<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">4\u3001L293D\u82af\u7247&#xff08;D7-2-2-5L&#xff09;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">5\u300116\u811aIC\u5ea7<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">6\u300130P\u74f7\u7247\u7535\u5bb9 *2<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">7\u300110uF\u7535\u89e3\u7535\u5bb9<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">8\u3001100uF\u7535\u89e3\u7535\u5bb9<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">9\u3001470uF\u7535\u89e3\u7535\u5bb9<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">10\u300110K\u7535\u963b<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">11\u30011K\u7535\u963b*6<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">12\u30015v\u6709\u6e90\u8702\u9e23\u5668<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">13\u30019012\u4e09\u6781\u7ba1*2<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">14\u3001L7805<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">15\u300111.0592M\u6676\u632f<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">16\u30018*8\u81ea\u9501\u5f00\u5173<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">17\u3001104\u72ec\u77f3\u7535\u5bb9*4<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">18\u3001XH2.54-2p\u76f4\u9488\u5ea7*3<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">19\u3001XH2.54-3p\u76f4\u9488\u5ea7*2<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">20\u30016*6*5\u8f7b\u89e6\u5f00\u5173*2<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">21\u3001E18-D50NK\u7ea2\u5916\u4f20\u611f\u5668*2&#xff08;\u7ebf\u957f10cm&#xff0c;\u5e2e\u505a\u597d3p\u7aef\u5b50&#xff09;<\/p>\n<h3 id=\"%E5%9B%9B%E3%80%81Keil%20c%E8%AF%AD%E8%A8%80%E7%A8%8B%E5%BA%8F%E6%BA%90%E4%BB%A3%E7%A0%81\">\u4e94\u3001Keil c\u8bed\u8a00\u7a0b\u5e8f\u6e90\u4ee3\u7801(\u90e8\u5206)<\/h3>\n<p>#include &lt;reg52.h&gt;     \/\/\u5305\u542b52\u7cfb\u7edf\u5934\u6587\u4ef6<br \/>\n#include &#034;bst_car.h&#034; \/\/\u5305\u542bbst_car.h\u667a\u80fd\u5c0f\u8f66\u5934\u6587\u4ef6<\/p>\n<p>#define uc unsigned char<br \/>\n#define ui unsigned int \/\/\u5b8f\u5b9a\u4e49<\/p>\n<p>uc pwm_val_left  &#061;0;\/\/\u53d8\u91cf\u5b9a\u4e49<br \/>\nuc pwm_val_right &#061;0;<br \/>\nuc push_val_left &#061;9;\/\/ \u5de6\u7535\u673a\u5360\u7a7a\u6bd4N\/20\/\/\u901f\u5ea6\u8c03\u8282\u53d8\u91cf 0-20\u3002\u3002\u30020\u6700\u5c0f&#xff0c;20\u6700\u5927<br \/>\nuc push_val_right&#061;9;\/\/ \u53f3\u7535\u673a\u5360\u7a7a\u6bd4N\/20<\/p>\n<p>bit Right_PWM_ON&#061;1;           \/\/\u53f3\u7535\u673aPWM\u5f00\u5173<br \/>\nbit Left_PWM_ON &#061;1;   \/\/\u5de6\u7535\u673aPWM\u5f00\u5173<\/p>\n<p>bit kaishi,jishi;  \/\/\u5f00\u59cb\u8fd0\u884c\u6807\u5fd7\u4f4d \u8ba1\u65f6\u5f00\u59cb\u6807\u5fd7\u4f4d<br \/>\nuc sec,min,xiuxi,flag2;  \/\/\u79d2\u3001\u5206\u949f\u3001\u4f11\u606f\u3001\u8c03\u65f6\u6309\u952e\u5b9a\u4e49<\/p>\n<p>\/\/\u5ef6\u65f6\u51fd\u6570<br \/>\nvoid delay(unsigned int xms)<br \/>\n{<br \/>\n    unsigned int i,j;<br \/>\nfor(i&#061;xms;i&gt;0;i&#8211;)      \/\/i&#061;xms\u5373\u5ef6\u65f6\u7ea6xms\u6beb\u79d2<br \/>\n    for(j&#061;112;j&gt;0;j&#8211;);<br \/>\n}<\/p>\n<p>\/\/\u8bbe\u7f6e\u65f6\u95f4\u51fd\u6570<br \/>\nvoid settime(void)<br \/>\n{<br \/>\nif(kset&#061;&#061;0)\/\/\u6309\u952e\u6309\u4e0b<br \/>\n{<br \/>\ndelay(20);\/\/\u5ef6\u65f6\u53bb\u6296<br \/>\nif((kset&#061;&#061;0)&amp;&amp;(flag2&#061;&#061;0))\/\/\u518d\u6b21\u5224\u65ad\u6309\u952e\u6309\u4e0b\u5e76\u4e14\u8ba1\u65f6\u6a21\u5f0f\u4e3a0\u65f6<br \/>\n{<br \/>\nFM&#061;0;\/\/\u8702\u9e23\u5668\u54cd<br \/>\nshiwu&#061;0;\/\/\u5341\u4e94\u5206\u949f\u706f\u4eae<br \/>\nsanshi&#061;1;<br \/>\nliushi&#061;1;<br \/>\nxiuxi&#061;15;\/\/\u8ba1\u65f6\u65f6\u95f4\u8d4b\u503c15<br \/>\nflag2&#043;&#043;;\/\/\u8ba1\u65f6\u6a21\u5f0f\u52a0<br \/>\nwhile(kset&#061;&#061;0);\/\/\u6309\u952e\u91ca\u653e<br \/>\nFM&#061;1;               \/\/\u8702\u9e23\u5668\u505c\u6b62<br \/>\n}<br \/>\nif((kset&#061;&#061;0)&amp;&amp;(flag2&#061;&#061;1))\/\/\u6309\u952e\u6309\u4e0b&#xff0c;\u8ba1\u65f6\u6a21\u5f0f\u4e3a1\u65f6<br \/>\n{<br \/>\nFM&#061;0;\/\/\u8702\u9e23\u5668\u54cd<br \/>\nshiwu&#061;1;<br \/>\nsanshi&#061;0;\/\/\u4e09\u5341\u5206\u949f\u706f\u4eae<br \/>\nliushi&#061;1;<br \/>\nxiuxi&#061;30;\/\/\u8ba1\u65f6\u65f6\u95f4\u8d4b\u503c30<br \/>\n flag2&#043;&#043;;<br \/>\nwhile(kset&#061;&#061;0);<br \/>\nFM&#061;1;               \/\/\u8702\u9e23\u5668\u505c\u6b62<br \/>\n}<br \/>\nif((kset&#061;&#061;0)&amp;&amp;(flag2&#061;&#061;2))<br \/>\n{<br \/>\nFM&#061;0;\/\/\u8702\u9e23\u5668\u54cd<br \/>\nshiwu&#061;0;\/\/\u5341\u4e94\u548c\u4e09\u5341\u5206\u949f\u706f\u4eae<br \/>\nsanshi&#061;0;<br \/>\nliushi&#061;1;<br \/>\nxiuxi&#061;45;\/\/\u8ba1\u65f6\u65f6\u95f4\u8d4b\u503c45\u5206\u949f<br \/>\n flag2&#043;&#043;;<br \/>\nwhile(kset&#061;&#061;0);<br \/>\nFM&#061;1;               \/\/\u8702\u9e23\u5668\u505c\u6b62<br \/>\n}<br \/>\nif((kset&#061;&#061;0)&amp;&amp;(flag2&#061;&#061;3))<br \/>\n{<br \/>\nFM&#061;0;\/\/\u8702\u9e23\u5668\u54cd<br \/>\nshiwu&#061;1;<br \/>\nsanshi&#061;1;<br \/>\nliushi&#061;0;\/\/\u516d\u5341\u5206\u949f\u706f\u4eae<br \/>\nxiuxi&#061;60;\/\/\u8ba1\u65f6\u65f6\u95f4\u8d4b\u503c60<br \/>\n flag2&#043;&#043;;<br \/>\nwhile(kset&#061;&#061;0);<br \/>\nFM&#061;1;               \/\/\u8702\u9e23\u5668\u505c\u6b62<br \/>\n}<br \/>\nif((kset&#061;&#061;0)&amp;&amp;(flag2&#061;&#061;4))<br \/>\n{<br \/>\nFM&#061;0;\/\/\u8702\u9e23\u5668\u54cd<br \/>\nshiwu&#061;0;\/\/\u5341\u4e94\u548c60\u5206\u949f\u706f\u4eae<br \/>\nsanshi&#061;1;<br \/>\nliushi&#061;0;<br \/>\nxiuxi&#061;75;\/\/\u8ba1\u65f6\u65f6\u95f4\u8d4b\u503c75\u5206\u949f<br \/>\n flag2&#043;&#043;;<br \/>\nwhile(kset&#061;&#061;0);<br \/>\nFM&#061;1;               \/\/\u8702\u9e23\u5668\u505c\u6b62<br \/>\n}<br \/>\nif((kset&#061;&#061;0)&amp;&amp;(flag2&#061;&#061;5))<br \/>\n{<br \/>\nFM&#061;0;\/\/\u8702\u9e23\u5668\u54cd<br \/>\nshiwu&#061;1;<br \/>\nsanshi&#061;0;<br \/>\nliushi&#061;0;\/\/\u4e09\u5341\u548c\u516d\u5341\u706f\u4eae<br \/>\nxiuxi&#061;90;\/\/\u8ba1\u65f6\u65f6\u95f4\u8d4b\u503c90\u5206\u949f<br \/>\n flag2&#061;0;<br \/>\nwhile(kset&#061;&#061;0);<br \/>\nFM&#061;1;               \/\/\u8702\u9e23\u5668\u505c\u6b62<br \/>\n}<br \/>\n}<br \/>\n}<\/p>\n<p>\/\/\u505c\u8f6c<br \/>\nvoid stop(void)<br \/>\n{<br \/>\n  Right_moto_Stop  ;   \/\/\u505c\u8f6c<br \/>\n  Left_moto_Stop   ;   \/\/<br \/>\n}<\/p>\n<p>\/\/\u524d\u8fdb<br \/>\n void run(void)<br \/>\n{<br \/>\n    \/\/push_val_left&#061;5; \/\/\u901f\u5ea6\u8c03\u8282\u53d8\u91cf 0-20\u3002\u3002\u30020\u6700\u5c0f&#xff0c;20\u6700\u5927<br \/>\n\/\/push_val_right&#061;5;<br \/>\nLeft_moto_go ;   \/\/\u5de6\u7535\u673a\u5f80\u524d\u8d70<br \/>\nRight_moto_go ;  \/\/\u53f3\u7535\u673a\u5f80\u524d\u8d70<br \/>\n}<\/p>\n<p>\/\/\u540e\u9000<br \/>\nvoid backrun(void)<br \/>\n{<br \/>\nLeft_moto_back;   \/\/\u5de6\u7535\u673a\u5f80\u540e\u8d70<br \/>\nRight_moto_back;   \/\/\u53f3\u7535\u673a\u5f80\u540e\u8d70<br \/>\n}<\/p>\n<p>\/\/\u5411\u53f3\u539f\u5730\u6253\u8f6c&#xff08;\u6389\u5934&#xff09;<br \/>\nvoid  rightspin(void)<br \/>\n{<br \/>\n \/\/push_val_left&#061;5;<br \/>\n \/\/push_val_right&#061;5;<br \/>\n     Left_moto_go  ;   \/\/\u5de6\u7535\u673a\u5f80\u524d\u8d70<br \/>\n Right_moto_back   ;  \/\/\u53f3\u7535\u673a\u5f80\u524d\u8d70<br \/>\n}<\/p>\n<p>\/\/\u5411\u5de6\u539f\u5730\u6253\u8f6c&#xff08;\u6389\u5934&#xff09;<br \/>\nvoid  leftspin(void)<br \/>\n{<br \/>\n \/\/push_val_left&#061;5;<br \/>\n \/\/push_val_right&#061;5;<br \/>\n     Right_moto_go  ;   \/\/\u5de6\u7535\u673a\u5f80\u524d\u8d70<br \/>\n Left_moto_back   ;  \/\/\u53f3\u7535\u673a\u5f80\u524d\u8d70<br \/>\n}<br \/>\n\/************************************************************************\/<br \/>\n\/\/                   PWM\u8c03\u5236\u7535\u673a\u8f6c\u901f                                   <\/p>\n<p>\/\/                   \u5de6\u7535\u673a\u8c03\u901f<br \/>\n\/*\u8c03\u8282push_val_left\u7684\u503c\u6539\u53d8\u7535\u673a\u8f6c\u901f,\u5360\u7a7a\u6bd4*\/<br \/>\nvoid pwm_out_left_moto(void)<br \/>\n{<br \/>\n     if(Left_PWM_ON)<br \/>\n     {<br \/>\n          if(pwm_val_left&lt;&#061;push_val_left)<br \/>\n      {<br \/>\n           EN1&#061;1;<br \/>\n      }<br \/>\n      else<br \/>\n      {<br \/>\n           EN1&#061;0;<br \/>\n          }<br \/>\n          if(pwm_val_left&gt;&#061;20)<br \/>\n      pwm_val_left&#061;0;<br \/>\n     }<br \/>\n     else<br \/>\n     {<br \/>\n          EN1&#061;0;   \/\/\u82e5\u672a\u5f00\u542fPWM\u5219EN1&#061;0 \u5de6\u7535\u673a \u505c\u6b62<br \/>\n     }<br \/>\n}<br \/>\n\/******************************************************************\/<br \/>\n\/*                    \u53f3\u7535\u673a\u8c03\u901f                                  *\/<br \/>\nvoid pwm_out_right_moto(void)<br \/>\n{<br \/>\n    if(Right_PWM_ON)<br \/>\n    {<br \/>\n        if(pwm_val_right&lt;&#061;push_val_right)\/\/20ms\u5185\u7535\u5e73\u4fe1\u53f7 111 111 0000 0000 0000 00<br \/>\n    {<br \/>\n        EN2&#061;1; \/\/\u5360\u7a7a\u6bd46:20<br \/>\n        }<br \/>\n    else<br \/>\n    {<br \/>\n        EN2&#061;0;<br \/>\n        }<br \/>\n    if(pwm_val_right&gt;&#061;20)<br \/>\n    pwm_val_right&#061;0;<br \/>\n    }<br \/>\n    else<br \/>\n    {<br \/>\n        EN2&#061;0;  \/\/\u82e5\u672a\u5f00\u542fPWM\u5219EN2&#061;0 \u53f3\u7535\u673a \u505c\u6b62<br \/>\n    }<br \/>\n}<\/p>\n<p>\/\/TIMER0\u4e2d\u65ad\u670d\u52a1\u5b50\u51fd\u6570\u4ea7\u751fPWM\u4fe1\u53f7<br \/>\nvoid timer0()interrupt 1 using 2<br \/>\n{<br \/>\n     ui m;<br \/>\n TH0&#061;0XFC;  \/\/1Ms\u5b9a\u65f6<br \/>\n TL0&#061;0X66;<br \/>\n m&#043;&#043;;<br \/>\n pwm_val_left&#043;&#043;;<br \/>\n pwm_val_right&#043;&#043;;<br \/>\n pwm_out_left_moto();<br \/>\n pwm_out_right_moto();<br \/>\n if(m&#061;&#061;100&amp;&amp;jishi&#061;&#061;1)\/\/\u52a0\u52301000\u6b21\u4e3a1s  &#xff08;\u628a100\u6539\u62101000&#xff0c;\u8fd8\u6709\u5f80\u4e0b4\u884c\u768410\u6539\u621060&#xff0c;\u5c31\u662f\u6b63\u5e38\u7684\u79d2\u4e86&#xff0c;\u73b0\u5728\u662f15\u5206\u949f\u5176\u5b9e\u5c31\u8d70\u4e8615\u79d2&#xff0c;\u4e3a\u4e86\u65b9\u4fbf\u6f14\u793a&#xff09;<br \/>\n{<br \/>\nm&#061;0;   \/\/\u6e05\u96f6<br \/>\nsec&#043;&#043;;   \/\/\u79d2\u52a0<br \/>\nif(sec&#061;&#061;10)   \/\/\u8ba1\u65f6\u523060\u79d2<br \/>\n{<br \/>\nsec&#061;0;   \/\/\u79d2\u6e05\u96f6<br \/>\nmin&#043;&#043;;   \/\/\u5206\u52a0<br \/>\nif(min&gt;&#061;xiuxi) \/\/\u65f6\u95f4\u662f\u5426\u5230\u8fbe\u8bbe\u5b9a\u65f6\u95f4<br \/>\n{<br \/>\nmin&#061;0;<br \/>\nkaishi&#061;0;\/\/\u5f00\u59cb\u6682\u505c\u7684\u53d8\u91cf\u5173<br \/>\nEN1&#061;0;<br \/>\nEN2&#061;0;  \/\/\u4e24\u4e2a\u7535\u673a\u90fd\u505c\u6b62\u4e00\u4e0b<br \/>\njishi&#061;0;   \/\/\u8ba1\u65f6\u53d8\u91cf\u4e5f\u5173\u95ed<br \/>\nFS&#061;1;\/\/\u98ce\u6247\u5173<br \/>\nTR0&#061;0;\/\/\u5f00\u5173pwm\u5b9a\u65f6\u5668\u4e2d\u65ad\u5173<br \/>\n}<br \/>\n}<br \/>\n}<br \/>\n }<\/p>\n<p>void keyscan(void)              \/\/\u5f00\u59cb\u6309\u952e\u626b\u63cf\u51fd\u6570<br \/>\n{<br \/>\n    if(K4&#061;&#061;0)\/\/\u5224\u65ad\u662f\u5426\u6709\u6309\u4e0b\u4fe1\u53f7<br \/>\n{<br \/>\n    delay(20);  \/\/\u5ef6\u65f610ms<br \/>\nif(K4&#061;&#061;0)\/\/\u518d\u6b21\u5224\u65ad\u662f\u5426\u6309\u4e0b<br \/>\n {<br \/>\n    FM&#061;0;               \/\/\u8702\u9e23\u5668\u54cd<br \/>\n    while(K4&#061;&#061;0);\/\/\u5224\u65ad\u662f\u5426\u677e\u5f00\u6309\u952e<br \/>\ndelay(200);\/\/\u5ef6\u65f6200ms\u7b49\u5f85\u624b\u62ff\u8d70<br \/>\nTR0&#061;!TR0;\/\/\u5f00\u5173pwm\u5b9a\u65f6\u5668\u4e2d\u65ad<br \/>\nkaishi&#061;!kaishi;\/\/\u5f00\u59cb\u6682\u505c\u7684\u53d8\u91cf\u53d6\u53cd<br \/>\nEN1&#061;0;<br \/>\nEN2&#061;0;  \/\/\u4e24\u4e2a\u7535\u673a\u90fd\u505c\u6b62\u4e00\u4e0b<br \/>\njishi&#061;!jishi;<br \/>\nFS&#061;!FS;\/\/\u98ce\u6247\u53d6\u53cd<br \/>\nsec&#061;0;\/\/\u79d2\u6e05\u96f6<br \/>\nmin&#061;0;\/\/\u5206\u949f\u6e05\u96f6<br \/>\n    FM&#061;1;               \/\/\u8702\u9e23\u5668\u505c\u6b62<br \/>\n  }<br \/>\n}<br \/>\n}<\/p>\n<p>\/\/\u4e3b\u51fd\u6570<br \/>\nvoid main(void)<br \/>\n{<br \/>\nTMOD&#061;0X01;<br \/>\n    TH0&#061; 0XFC;  \/\/1ms\u5b9a\u65f6<br \/>\n    TL0&#061; 0X66;<br \/>\n    TR0&#061; 0;<br \/>\n    ET0&#061; 1;<br \/>\nEA &#061; 1;    \/\/\u5f00\u603b\u4e2d\u65ad<br \/>\nkaishi&#061;0;\/\/\u5f00\u59cb\u6682\u505c\u7684\u53d8\u91cf \u4e3a0<br \/>\nshiwu&#061;0;<br \/>\nsanshi&#061;0; \/\/\u9ed8\u8ba4\u5f00\u673a45\u5206\u949f<br \/>\nliushi&#061;1;<br \/>\nxiuxi&#061;45;<br \/>\nflag2&#061;0;  \/\/\u6a21\u5f0f0<br \/>\njishi&#061;0;  \/\/\u8ba1\u65f6\u4e3a0<br \/>\nFS&#061;1;   \/\/\u5173\u95ed\u98ce\u6247<br \/>\nkset&#061;1;   \/\/\u8bbe\u7f6e\u65f6\u95f4\u6309\u952e\u62c9\u9ad8&#xff1b;<\/p>\n<p>while(1)\/\/\u65e0\u9650\u5faa\u73af<br \/>\n{<br \/>\nkeyscan();\/\/\u6309\u952e\u542f\u52a8\u505c\u6b62\u68c0\u6d4b<br \/>\nsettime();\/\/\u8bbe\u7f6e\u65f6\u95f4\u68c0\u6d4b<br \/>\n\/\/\u6709\u4fe1\u53f7\u4e3a0  \u6ca1\u6709\u4fe1\u53f7\u4e3a1<br \/>\n        if(Left_2_led&#061;&#061;1&amp;&amp;Right_2_led&#061;&#061;1&amp;&amp;kaishi&#061;&#061;1)<br \/>\n{<br \/>\n run();   \/\/\u8c03\u7528\u524d\u8fdb\u51fd\u6570<br \/>\n}<\/p>\n<p>if(Left_2_led&#061;&#061;0&amp;&amp;Right_2_led&#061;&#061;1&amp;&amp;kaishi&#061;&#061;1)    \/\/\u5de6\u8fb9\u68c0\u6d4b\u5230\u969c\u788d\u7269<br \/>\n{<br \/>\n stop();<br \/>\n delay(300);<br \/>\n rightspin();\/\/\u8c03\u7528\u5c0f\u8f66\u53f3\u65cb\u8f6c\u51fd\u6570<br \/>\n delay(300);\/\/\u65cb\u8f6c450\u6beb\u79d2<br \/>\n}<br \/>\nif(Right_2_led&#061;&#061;0&amp;&amp;Left_2_led&#061;&#061;1&amp;&amp;kaishi&#061;&#061;1)\/\/\u53f3\u8fb9\u68c0\u6d4b\u5230\u969c\u788d\u7269<br \/>\n{<br \/>\nstop();<br \/>\n delay(300);<br \/>\n leftspin();                    \/\/\u8c03\u7528\u5c0f\u8f66\u5de6\u8f6c\u51fd\u6570<br \/>\n delay(300);\/\/\u65cb\u8f6c450\u6beb\u79d2<br \/>\n}<br \/>\nif(Right_2_led&#061;&#061;0&amp;&amp;Left_2_led&#061;&#061;0&amp;&amp;kaishi&#061;&#061;1)\/\/\u4e24\u8fb9\u4f20\u611f\u5668\u540c\u65f6\u68c0\u6d4b\u5230\u969c\u788d\u7269<br \/>\n    {<br \/>\nstop();<br \/>\n delay(200);<br \/>\n    backrun();\/\/\u8c03\u7528\u7535\u673a\u540e\u9000\u51fd\u6570<br \/>\ndelay(300);\/\/\u540e\u9000450\u6beb\u79d2<\/p>\n<p>}<br \/>\n }<br \/>\n}<\/p>\n<h3>\u516d\u3001\u5168\u5957\u8d44\u6599\u5305\u542b<\/h3>\n<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812140943-689b4b27e222a.png\" \/>\u200b<\/p>\n<h3>\u4e03&#xff1a;\u9879\u76ee\u8d44\u6e90\u83b7\u53d6<\/h3>\n<h4 id=\"%E9%9C%80%E8%A6%81%E5%AE%8C%E6%95%B4%E7%9A%84%E8%B5%84%E6%96%99%E5%8F%AF%E4%BB%A5%E7%82%B9%E5%87%BB%E4%B8%8B%E9%9D%A2%E7%9A%84%E5%90%8D%E7%89%87%E5%8A%A0%E4%B8%8B%E6%88%91%EF%BC%8C%E6%89%BE%E6%88%91%E8%A6%81%E8%B5%84%E6%BA%90%E5%8E%8B%E7%BC%A9%E5%8C%85%E7%9A%84%E7%99%BE%E5%BA%A6%E7%BD%91%E7%9B%98%E4%B8%8B%E8%BD%BD%E5%9C%B0%E5%9D%80%E5%8F%8A%E6%8F%90%E5%8F%96%E7%A0%81%E3%80%82\">\u9700\u8981\u5b8c\u6574\u7684\u8d44\u6599\u53ef\u4ee5\u70b9\u51fb\u4e0b\u9762\u7684\u540d\u7247\u5173\u6ce8&#xff0c;\u56de\u590d\u201c\u8d44\u6599\u201d&#xff01;<\/h4>\n<p>\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193\u2193<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb390\u6b21\uff0c\u70b9\u8d5e18\u6b21\uff0c\u6536\u85cf4\u6b21\u3002\u6458\u8981\uff1a\u672c\u8d44\u6599\u63d0\u4f9b\u4e86\u4e00\u5957\u5b8c\u6574\u7684\u667a\u80fd\u5c0f\u8f66\u63a7\u5236\u7cfb\u7edf\u89e3\u51b3\u65b9\u6848\uff0c\u5305\u542bProteus\u4eff\u771f\u6587\u4ef6\u3001Keil C\u7a0b\u5e8f\u6e90\u7801\u3001AD\u539f\u7406\u56fe\u3001\u6d41\u7a0b\u56fe\u53ca\u5143\u5668\u4ef6\u6e05\u5355\u7b49\u3002\u7cfb\u7edf\u57fa\u4e8eSTC89C51\u5355\u7247\u673a\uff0c\u901a\u8fc7\u7ea2\u5916\u907f\u969c\u3001\u7535\u673a\u5dee\u901f\u8f6c\u5411\u5b9e\u73b0\u81ea\u52a8\u907f\u969c\u529f\u80fd\uff0cLED\u663e\u793a\u8fd0\u884c\u65f6\u95f4\uff0c\u5e76\u5177\u5907\u626b\u5730\u529f\u80fd\u3002\u786c\u4ef6\u5305\u62ecL293D\u7535\u673a\u9a71\u52a8\u3001E18-D50NK\u7ea2\u5916\u4f20\u611f\u5668\u7b49\u7ec4\u4ef6\uff0c\u8f6f\u4ef6\u91c7\u7528PWM\u8c03\u901f\u63a7\u5236\u7535\u673a\u8f6c\u901f\u3002\u8d44\u6599\u5df2\u6574\u7406\u4e3a\u7f51\u76d8\u6587\u4ef6\uff0c\u63d0\u53d6\u7801\uff0c\u63d0\u4f9b\u5b8c\u6574\u7684\u9879\u76ee\u5f00\u53d1\u53c2\u8003\u3002 \uff08\u6ce8\uff1a\u6458\u8981\u4e25\u683c\u63a7\u5236\u5728150\u5b57\u4ee5\u5185\uff0c\u6db5\u76d6\u4e86\u9879\u76ee\u529f\u80fd\u3001\u786c\u4ef6\u7ec4\u6210\u3001\u8f6f\u4ef6\u7279\u70b9\u53ca\u8d44\u6599\u83b7\u53d6\u65b9\u5f0f\u7b49\u5173\u952e\u4fe1\u606f\uff09<\/p>\n","protected":false},"author":2,"featured_media":54083,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2489,174,5084,5083,270,269],"topic":[],"class_list":{"0":"post-54089","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-server","8":"tag-2489","9":"tag-c","10":"tag-proteus","12":"tag-270","13":"tag-269"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u57fa\u4e8e\u5355\u7247\u673a\u667a\u80fd\u81ea\u52a8\u626b\u5730\u673a\u5668\u4eba\u63a7\u5236\u7cfb\u7edfProteus\u4eff\u771f(\u542b\u5168\u90e8\u8d44\u6599) - \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\/54089.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u57fa\u4e8e\u5355\u7247\u673a\u667a\u80fd\u81ea\u52a8\u626b\u5730\u673a\u5668\u4eba\u63a7\u5236\u7cfb\u7edfProteus\u4eff\u771f(\u542b\u5168\u90e8\u8d44\u6599) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb390\u6b21\uff0c\u70b9\u8d5e18\u6b21\uff0c\u6536\u85cf4\u6b21\u3002\u6458\u8981\uff1a\u672c\u8d44\u6599\u63d0\u4f9b\u4e86\u4e00\u5957\u5b8c\u6574\u7684\u667a\u80fd\u5c0f\u8f66\u63a7\u5236\u7cfb\u7edf\u89e3\u51b3\u65b9\u6848\uff0c\u5305\u542bProteus\u4eff\u771f\u6587\u4ef6\u3001Keil C\u7a0b\u5e8f\u6e90\u7801\u3001AD\u539f\u7406\u56fe\u3001\u6d41\u7a0b\u56fe\u53ca\u5143\u5668\u4ef6\u6e05\u5355\u7b49\u3002\u7cfb\u7edf\u57fa\u4e8eSTC89C51\u5355\u7247\u673a\uff0c\u901a\u8fc7\u7ea2\u5916\u907f\u969c\u3001\u7535\u673a\u5dee\u901f\u8f6c\u5411\u5b9e\u73b0\u81ea\u52a8\u907f\u969c\u529f\u80fd\uff0cLED\u663e\u793a\u8fd0\u884c\u65f6\u95f4\uff0c\u5e76\u5177\u5907\u626b\u5730\u529f\u80fd\u3002\u786c\u4ef6\u5305\u62ecL293D\u7535\u673a\u9a71\u52a8\u3001E18-D50NK\u7ea2\u5916\u4f20\u611f\u5668\u7b49\u7ec4\u4ef6\uff0c\u8f6f\u4ef6\u91c7\u7528PWM\u8c03\u901f\u63a7\u5236\u7535\u673a\u8f6c\u901f\u3002\u8d44\u6599\u5df2\u6574\u7406\u4e3a\u7f51\u76d8\u6587\u4ef6\uff0c\u63d0\u53d6\u7801\uff0c\u63d0\u4f9b\u5b8c\u6574\u7684\u9879\u76ee\u5f00\u53d1\u53c2\u8003\u3002 \uff08\u6ce8\uff1a\u6458\u8981\u4e25\u683c\u63a7\u5236\u5728150\u5b57\u4ee5\u5185\uff0c\u6db5\u76d6\u4e86\u9879\u76ee\u529f\u80fd\u3001\u786c\u4ef6\u7ec4\u6210\u3001\u8f6f\u4ef6\u7279\u70b9\u53ca\u8d44\u6599\u83b7\u53d6\u65b9\u5f0f\u7b49\u5173\u952e\u4fe1\u606f\uff09\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/54089.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-12T14:09:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812140938-689b4b224e0a8.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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/54089.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/54089.html\",\"name\":\"\u57fa\u4e8e\u5355\u7247\u673a\u667a\u80fd\u81ea\u52a8\u626b\u5730\u673a\u5668\u4eba\u63a7\u5236\u7cfb\u7edfProteus\u4eff\u771f(\u542b\u5168\u90e8\u8d44\u6599) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-12T14:09:45+00:00\",\"dateModified\":\"2025-08-12T14:09:45+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/54089.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/54089.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/54089.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u57fa\u4e8e\u5355\u7247\u673a\u667a\u80fd\u81ea\u52a8\u626b\u5730\u673a\u5668\u4eba\u63a7\u5236\u7cfb\u7edfProteus\u4eff\u771f(\u542b\u5168\u90e8\u8d44\u6599)\"}]},{\"@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":"\u57fa\u4e8e\u5355\u7247\u673a\u667a\u80fd\u81ea\u52a8\u626b\u5730\u673a\u5668\u4eba\u63a7\u5236\u7cfb\u7edfProteus\u4eff\u771f(\u542b\u5168\u90e8\u8d44\u6599) - \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\/54089.html","og_locale":"zh_CN","og_type":"article","og_title":"\u57fa\u4e8e\u5355\u7247\u673a\u667a\u80fd\u81ea\u52a8\u626b\u5730\u673a\u5668\u4eba\u63a7\u5236\u7cfb\u7edfProteus\u4eff\u771f(\u542b\u5168\u90e8\u8d44\u6599) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb390\u6b21\uff0c\u70b9\u8d5e18\u6b21\uff0c\u6536\u85cf4\u6b21\u3002\u6458\u8981\uff1a\u672c\u8d44\u6599\u63d0\u4f9b\u4e86\u4e00\u5957\u5b8c\u6574\u7684\u667a\u80fd\u5c0f\u8f66\u63a7\u5236\u7cfb\u7edf\u89e3\u51b3\u65b9\u6848\uff0c\u5305\u542bProteus\u4eff\u771f\u6587\u4ef6\u3001Keil C\u7a0b\u5e8f\u6e90\u7801\u3001AD\u539f\u7406\u56fe\u3001\u6d41\u7a0b\u56fe\u53ca\u5143\u5668\u4ef6\u6e05\u5355\u7b49\u3002\u7cfb\u7edf\u57fa\u4e8eSTC89C51\u5355\u7247\u673a\uff0c\u901a\u8fc7\u7ea2\u5916\u907f\u969c\u3001\u7535\u673a\u5dee\u901f\u8f6c\u5411\u5b9e\u73b0\u81ea\u52a8\u907f\u969c\u529f\u80fd\uff0cLED\u663e\u793a\u8fd0\u884c\u65f6\u95f4\uff0c\u5e76\u5177\u5907\u626b\u5730\u529f\u80fd\u3002\u786c\u4ef6\u5305\u62ecL293D\u7535\u673a\u9a71\u52a8\u3001E18-D50NK\u7ea2\u5916\u4f20\u611f\u5668\u7b49\u7ec4\u4ef6\uff0c\u8f6f\u4ef6\u91c7\u7528PWM\u8c03\u901f\u63a7\u5236\u7535\u673a\u8f6c\u901f\u3002\u8d44\u6599\u5df2\u6574\u7406\u4e3a\u7f51\u76d8\u6587\u4ef6\uff0c\u63d0\u53d6\u7801\uff0c\u63d0\u4f9b\u5b8c\u6574\u7684\u9879\u76ee\u5f00\u53d1\u53c2\u8003\u3002 \uff08\u6ce8\uff1a\u6458\u8981\u4e25\u683c\u63a7\u5236\u5728150\u5b57\u4ee5\u5185\uff0c\u6db5\u76d6\u4e86\u9879\u76ee\u529f\u80fd\u3001\u786c\u4ef6\u7ec4\u6210\u3001\u8f6f\u4ef6\u7279\u70b9\u53ca\u8d44\u6599\u83b7\u53d6\u65b9\u5f0f\u7b49\u5173\u952e\u4fe1\u606f\uff09","og_url":"https:\/\/www.wsisp.com\/helps\/54089.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-12T14:09:45+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812140938-689b4b224e0a8.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/54089.html","url":"https:\/\/www.wsisp.com\/helps\/54089.html","name":"\u57fa\u4e8e\u5355\u7247\u673a\u667a\u80fd\u81ea\u52a8\u626b\u5730\u673a\u5668\u4eba\u63a7\u5236\u7cfb\u7edfProteus\u4eff\u771f(\u542b\u5168\u90e8\u8d44\u6599) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-12T14:09:45+00:00","dateModified":"2025-08-12T14:09:45+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/54089.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/54089.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/54089.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u57fa\u4e8e\u5355\u7247\u673a\u667a\u80fd\u81ea\u52a8\u626b\u5730\u673a\u5668\u4eba\u63a7\u5236\u7cfb\u7edfProteus\u4eff\u771f(\u542b\u5168\u90e8\u8d44\u6599)"}]},{"@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\/54089","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=54089"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/54089\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/54083"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=54089"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=54089"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=54089"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=54089"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}