{"id":147,"date":"2016-04-14T13:49:01","date_gmt":"2016-04-14T13:49:01","guid":{"rendered":""},"modified":"2016-04-14T21:49:46","modified_gmt":"2016-04-14T13:49:46","slug":"%e7%82%b9%e9%98%b5led%e6%98%be%e7%a4%ba%e5%b1%8f%e7%9a%84%e5%8e%9f%e7%90%86%e4%b8%8e%e5%88%b6%e4%bd%9c","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=147","title":{"rendered":"\u70b9\u9635LED\u663e\u793a\u5c4f\u7684\u539f\u7406\u4e0e\u5236\u4f5c"},"content":{"rendered":"

\n\t    \u6c49\u5b57\u663e\u793a\u5c4f<\/span>\u5230\u5904\u53ef\u89c1\uff0c\u88ab\u5e7f\u6cdb\u5e94\u7528\u4e8e\u4e0e\u6c7d\u8f66\u62a5\u7ad9\u5668\uff0c\u5e7f\u544a\u5c4f\u7b49\u3002\u672c\u6587\u4e2d\u768416*16LED\u663e\u793a\u5c4f<\/font><\/span>\u662f\u91c7\u75284\u57578*8LED<\/font><\/span>\u5408\u5e76\u800c\u6210\u7684\u3002

\n\t

\n\t\u3000\u3000\u4e0b\u56fe\u662f4\u4e2a8*8LED\u7ec4\u6210\u7684\u663e\u793a\u5c4f\u3002<\/p>\n

\n\t\"\"

\n\t\uff08\u56fe1\uff09<\/p>\n

\n\t\u3000\u3000\u8fd9\u91cc\u6211\u628a\u70b9\u9635LED\u663e\u793a\u5c4f\u5236\u4f5c\u7684\u7535\u8def\u539f\u7406\u5206\u6210\u4e24\u4e2a\u90e8\u5206\u6765\u4ecb\u7ecd\u5373\u663e\u793a\u5c4f\u7535\u8def\u548c\u663e\u793a\u5c4f\u9a71\u52a8<\/span>\u7535\u8def\u3002

\n\t

\n\t\u3000\u3000\u4e00\u3001 \u663e\u793a\u5c4f\u7535\u8def

\n\t

\n\t\u3000\u3000\u672c\u4eba\u7528\u7684\u662f\u5171\u9634\u6781\u76848*8\u70b9\u9635\u5c4f<\/span>\uff0c\u5728\u5e02\u573a\u4e0a\u662f\u6bd4\u8f83\u5bb9\u6613\u4e70\u5230\uff0c\u4e0b\u56fe\u662f8*8\u70b9\u9635\u5c4f\u7684\u5b9e\u7269\u56fe\u3002<\/p>\n

\n\t\"\"

\n\t   

\n\t\uff08\u56fe2\uff09<\/p>\n

\n\t\u3000\u3000\u70b9\u9635\u5c4f\u6709\u4e24\u4e2a\u7c7b\u578b\uff0c\u4e00\u7c7b\u4e3a\u5171\u9634\u6781\uff08\u5de6\uff09\uff0c\u53e6\u4e00\u7c7b\u5219\u4e3a\u5171\u9633\u6781\uff08\u53f3\uff09\uff0c\u4e0b\u56fe\u7ed9\u51fa\u4e86\u4e24\u79cd\u7c7b\u578b\u7684\u5185\u90e8\u7535\u8def\u539f\u7406\u53ca\u76f8\u5e94\u7684\u7ba1\u811a\u56fe\u3002<\/p>\n

\n\t\"\"

\n\t      

\n\t\uff08\u56fe3\uff09<\/p>\n

\n\tLED\u9635\u5217\u7684\u663e\u793a<\/span>\u65b9\u5f0f\u662f\u6309\u663e\u793a\u7f16\u7801\u7684\u987a\u5e8f\uff0c\u4e00\u884c\u4e00\u884c\u5730\u663e\u793a\u3002\u6bcf\u4e00\u884c\u7684\u663e\u793a\u65f6\u95f4\u5927\u7ea6\u4e3a4ms,\u7531\u4e8e\u4eba\u7c7b\u7684\u89c6\u89c9\u6682\u7559\u73b0\u8c61\uff0c\u5c06\u611f\u89c9\u52308\u884cLED\u662f\u5728\u540c\u65f6\u663e\u793a\u7684\u3002\u82e5\u663e\u793a\u7684\u65f6\u95f4\u592a\u77ed\uff0c\u5219\u4eae\u5ea6<\/span>\u4e0d\u591f\uff0c\u82e5\u663e\u793a\u7684\u65f6\u95f4\u592a\u957f\uff0c\u5c06\u4f1a\u611f\u89c9\u5230\u95ea\u70c1\u3002\u672c\u6587\u91c7\u7528\u4f4e\u7535\u5e73\u9010\u884c\u626b\u63cf\uff0c\u9ad8\u7535\u5e73\u8f93\u51fa\u663e\u793a\u4fe1\u53f7\u3002\u5373\u8f6e\u6d41\u7ed9\u884c\u4fe1\u53f7\u8f93\u51fa\u4f4e\u7535\u5e73\uff0c\u5728\u4efb\u610f\u65f6\u523b\u53ea\u6709\u4e00\u884c\u53d1\u5149\u4e8c\u6781\u7ba1<\/font>\u662f\u5904\u4e8e\u53ef\u4ee5\u88ab\u70b9\u4eae\u7684\u72b6\u6001 \uff0c\u5176\u5b83\u884c\u90fd\u5904\u4e8e\u7184\u706d\u72b6\u6001\u3002

\n\t\u4e3a\u4e86\u65b9\u4fbf\u8c03\u8bd5\u672c\u6587\u628a4\u57578*8\u7ec4\u6210\u768416*16\u7684\u70b9\u9635\u5c4f\u7684\u884c\u4fe1\u53f7\u626b\u63cf\u8f93\u51fa\u7ba1\u811a\u548c\u5217\u4fe1\u53f7\u663e\u793a\u8f93\u51fa\u7ba1\u811a\u5206\u522b\u5f15\u5230\u663e\u793a\u5c4f\u7684\u4e24\u8fb9\u3002

\n\tProtEL<\/font>\u539f\u7406\u56fe\u5982\u4e0b\uff1a<\/p>\n

\n\t\"\"

\n\t(\u56fe4)   <\/p>\n

\n\t

\n\t\u3000\u3000\u5982\u56fe4 \u6240\u793a\u7684\u539f\u7406\u56fe\u4e2d\u7684Si(i=1\uff0c2\uff0c3,…,16) \u4ee3\u8868\u884c\u626b\u63cf\u4fe1\u53f7\u8f93\u51fa\uff0cDi(i=1\uff0c2\uff0c3,…,16)\u4ee3\u8868\u5217\u663e\u793a\u4fe1\u53f7\u8f93\u51fa\u3002<\/p>\n

\n\t \u5b9e\u7269\u7535\u8def\u56fe\u7684\u6b63\u53cd\u9762\u5982\u4e0b\uff1a<\/p>\n

\n\t

\n\t  \"\" 

\n\t\uff08\u56fe5\uff09<\/p>\n

\n\t\u3000\u4e8c\u3001 \u663e\u793a\u5c4f\u9a71\u52a8\u7535\u8def<\/p>\n

\n\t\u3000\u3000\u663e\u793a\u5c4f\u9a71\u52a8\u7535\u8def\u7684\u539f\u7406\u56fe\u5982\u4e0b\uff1a<\/p>\n

\n\t\u3000\u3000\u663e\u793a\u5c4f\u9a71\u52a8\u7535\u8def\u4e3b\u8981\u7531\u4e3b\u82af\u7247\u63a7\u5236\u7535\u8def\u3001\u7535\u6e90\u7535\u8def<\/span>\u3001\u63a7\u5236\u4fe1\u53f7\u653e\u5927\u7535\u8def\u7b49\u7ec4\u6210\u3002

\n\t

\n\t\u3000\u30001\u3001\u4e3b\u82af\u7247\u63a7\u5236\u7535\u8def

\n\t

\n\t\u3000\u3000\u8be5\u90e8\u5206\u7535\u8def\u4e3b\u8981\u7531AT89S52\u548c74LS154\u7ec4\u6210\u3002\u5355\u7247\u673a\u7684P0\u548cP2\u53f7\u63a7\u5236\u663e\u793a\u4fe1\u53f7\u7684\u8f93\u51fa\uff0cP1\u53f7\u7684\u4f4e4\u4f4d\u63a7\u523674LS154\u7684\u8bd1\u7801\u8f93\u5165\uff0c\u4ece\u800c\u63a7\u5236\u626b\u63cf\u4fe1\u53f7\u7684\u8f93\u51fa\u3002

\n\t

\n\t\u3000\u30002\u3001\u7535\u6e90\u7535\u8def

\n\t

\n\t\u3000\u3000\u6574\u4e2a\u7535\u8def\u7684\u4f9b\u7535\u7531USB<\/span>\u7535\u6e90<\/span>\u63d0\u4f9b\uff0c\u5229\u7528\u6211\u4eec\u7684\u7535\u8111\u4e3b\u673aUSB\u63a5\u53e3<\/span>\u53ef\u4ee5\u8f93\u51fa+5V\u7535\u538b\uff0c\u65b9\u4fbf\u6211\u4eec\u5728\u5b9e\u9a8c\u5ba4\u8c03\u8bd5

\n\t

\n\t\u3000\u30003\u3001\u63a7\u5236\u4fe1\u53f7\u653e\u5927\u7535\u8def

\n\t

\n\t\u3000\u3000\u4e3a\u63d0\u4f9b\u8d1f\u8f7d\u80fd\u529b\uff0c\u5728P0\u548cP2\u53e3\u63a516\u4e2a\u5e38\u75289013\u7684NPN\u4e09\u6781\u7ba1\u653e\u5927\u9a71\u52a8\u4fe1\u53f7\u3002\u7535\u8def\u4e2d\u5217\u65b9\u5411\u7531p0\u53e3\u548cp2\u53e3\u5b8c\u6210\u626b\u63cf\uff0c\u7531\u4e8ep0\u53e3\u6ca1\u6709\u4e0a\u62c9\u7535\u963b\uff0c\u56e0\u6b64\u63a5\u4e00\u4e2a1k*8\u7684\u6392\u963b\u4e0a\u62c9\u3002

\n\t

\n\t\u3000\u3000\u884c\u65b9\u5411\u5219\u75314—16\u8bd1\u7801\u566874LS154\u5b8c\u6210\u626b\u63cf\uff0c\u5b83\u753189C51\u7684P1.0---P1.3\u63a7\u5236\u3002\u540c\u6837\uff0c\u9a71\u52a8\u90e8\u5206\u5219\u662f16\u4e2a9015\u7684\u4e09\u6781\u7ba1\u5b8c\u6210\u7684\u3002<\/p>\n

\n\t\"\" 

\n\t\uff08\u56fe6\uff09<\/p>\n

\n\t   \u4e09\u3001 \u7a0b\u5e8f\u4e0e\u8f6f\u4ef6

\n\t

\n\t\u3000\u3000\u5728UCDOS\u4e2d\u6587\u5b8b\u4f53\u5b57\u5e93\u4e2d\uff0c\u6bcf\u4e00\u4e2a\u5b57\u753116\u884c16\u5217\u7684\u70b9\u9635\u7ec4\u6210\u663e\u793a\uff0c\u5373\u56fd\u6807\u6c49\u5b57\u5e93\u4e2d\u7684\u6bcf\u4e00\u4e2a\u5b57\u5747\u7531256\u70b9\u9635\u6765\u8868\u793a\u3002\u6211\u4eec\u53ef\u4ee5\u628a\u6bcf\u4e00\u4e2a\u70b9\u7406\u89e3\u4e3a\u4e00\u4e2a\u50cf\u7d20\uff0c\u800c\u628a\u6bcf\u4e00\u4e2a\u5b57\u7684\u5b57\u5f62\u7406\u89e3\u4e3a\u4e00\u5e45\u56fe\u50cf\u3002\u4e8b\u5b9e\u4e0a\u8fd9\u4e2a\u6c49\u5b57\u5c4f\u4e0d\u4ec5\u53ef\u4ee5\u663e\u793a\u6c49\u5b57\uff0c \u4e5f\u53ef\u4ee5\u663e\u793a\u5728256\u50cf\u7d20\u8303\u56f4\u5185\u7684\u4efb\u4f55\u56fe\u5f62\u3002\u75288\u4f4d\u7684AT89S52\u5355\u7247\u673a\u63a7\u5236\uff0c \u7531\u4e8e\u5355\u7247\u673a\u7684\u603b\u7ebf<\/span>\u4e3a8\u4f4d\uff0c\u4e00\u4e2a\u5b57\u9700\u8981\u62c6\u5206\u4e3a2\u4e2a\u90e8\u5206\u5982\u56fe9\u6240\u793a\u3002\u672c\u7535\u8def\u628a\u5b83\u62c6\u5206\u4e3a\u5de6\u90e8\u548c\u53f3\u90e8\uff0c\u5de6\u90e8\u753116\uff08\u884c\uff09*8\uff08\u5217\uff09\u70b9\u9635\u7ec4\u6210\uff0c \u4e0b\u90e8\u4e5f\u753116\uff08\u884c\uff09*8\uff08\u5217\uff09\u70b9\u9635\u7ec4\u6210\u3002<\/p>\n

\n\t\"\"

\n\t \u56fe\uff087\uff09<\/p>\n

\n\t\u3000\u3000\u4e3a\u4e86\u8ba9\u5927\u5bb6\u66f4\u6e05\u695a\u7684\u7406\u89e3\u70b9\u9635\u7684\u626b\u63cf\u8fc7\u7a0b\uff0c\u5728\u8fd9\u6211\u4eec\u4ee5\u663e\u793a\u6c49\u5b57“\u6211”\u4e3a\u4f8b\uff0c\u6765\u8bf4\u660e\u5176\u626b\u63cf\u539f\u7406\uff1a

\n\t\u3000\u3000\u5355\u7247\u673a\u9996\u5148\u7531P2\u53e3\u8f93\u51fa\u663e\u793a\u6570\u636e\u4fe1\u53f7\u7ed9\u53f3\u90e8\u5206\u7684\u7b2c\u4e00\u884c\u5982\u56fe9\u6240\u793a\uff0c\u5373\u7b2c\u4e00\u884c\u7684P20---P27\u53e3\u3002\u65b9\u5411\u4e3aP20\u5230P27 ,\u663e\u793a\u6c49\u5b57“\u6211”\u65f6\uff0cP21\u70b9\u4eae,\u7531\u5de6\u5230\u53f3\u6392\uff0c\u4e3aP20\u706d\uff0cP21\u4eae, P22\u706d\uff0cP23\u706d, P24\u706d, P25\u706d, P26\u706d, P27\u706d\u3002\u5373\u4e8c\u8fdb\u523600000010\uff0c\u8f6c\u6362\u4e3a16\u8fdb\u5236\u4e3a 0x02\u3002

\n\t

\n\t\u3000\u3000\u53f3\u90e8\u5206\u7684\u7b2c\u4e00\u884c\u5b8c\u6210\u540e\uff0c\u7ee7\u7eed\u626b\u63cf\u5de6\u534a\u90e8\u7684\u7b2c\u4e00\u884c\uff0c\u4e3a\u4e86\u63a5\u7ebf\u7684\u65b9\u4fbf\uff0c\u6211\u4eec\u4ecd\u8bbe\u8ba1\u6210\u7531\u5de6\u5f80\u53f3\u626b\u63cf\uff0c\u5373\u4eceP00\u5411P07\u65b9\u5411\u626b\u63cf\uff0c\u4ece\u4e0a\u56fe\u53ef\u4ee5\u770b\u5230\uff0c\u8fd9\u4e00\u884c\u53ea\u6709P05\u3001P06\u4eae\uff0c\u5176\u5b83\u706d\uff0c \u5373\u4e3a00000110\uff0c16\u8fdb\u5236\u5219\u4e3a0x60\u3002\u7136\u540e\u5355\u7247\u673a\u518d\u6b21\u8f6c\u5411\u53f3\u534a\u90e8\u7b2c\u4e8c\u884c\uff0c\u4ecd\u4e3aP21\u3001P23\u70b9\u4eae\uff0c\u4e3a01010000\uff0c\u537316\u8fdb\u52360x0A\u3002\u8fd9\u4e00\u884c\u5b8c\u6210\u540e\u7ee7\u7eed\u8fdb\u884c\u5de6\u534a\u90e8\u5206\u7684\u7b2c\u4e8c\u884c\u626b\u63cf\uff0cP02\u3001P03\u3001P04\u70b9\u4eae\uff0c\u4e3a\u4e8c\u8fdb\u523600111000\uff0c\u537316\u8fdb\u52360x1C\u3002

\n\t

\n\t    \u4f9d\u7167\u8fd9\u4e2a\u65b9\u6cd5\uff0c\u7ee7\u7eed\u8fdb\u884c\u4e0b\u9762\u7684\u626b\u63cf\uff0c\u4e00\u5171\u626b\u63cf32\u4e2a8\u4f4d\uff0c\u53ef\u4ee5\u5f97\u51fa\u6c49\u5b57“\u6211”\u7684\u626b\u63cf\u4ee3\u7801\u4e3a\uff1a

\n\t0x02,0x60,0x0A,0x1C,0x12,0x10,0x12,0x10,

\n\t0x02,0x10,0x7F,0xFF,0x02,0x10,0x12,0x10,

\n\t0x14,0x70,0x0C,0x1C,0x04,0x13,0x0A,0x10,

\n\t0x49,0x90,0x50,0x10,0x60,0x14,0x40,0x08

\n\t\u3000\u3000\u7531\u8fd9\u4e2a\u539f\u7406\u53ef\u4ee5\u770b\u51fa\uff0c \u65e0\u8bba\u663e\u793a\u4f55\u79cd\u5b57\u4f53\u6216\u56fe\u50cf\uff0c \u90fd\u53ef\u4ee5\u7528\u8fd9\u4e2a\u65b9\u6cd5\u6765\u5206\u6790\u51fa\u5b83\u7684\u626b\u63cf\u4ee3\u7801\u4ece\u800c\u663e\u793a\u5728\u5c4f\u5e55\u4e0a\u3002

\n\t

\n\t\u3000\u3000\u4e0d\u8fc7\u73b0\u5728\u6709\u5f88\u591a\u73b0\u6210\u7684\u6c49\u5b57\u5b57\u6a21\u751f\u6210\u8f6f\u4ef6\uff0c \u6211\u4eec\u5c31\u4e0d\u5fc5\u81ea\u5df1\u53bb\u753b\u8868\u683c\u7b97\u4ee3\u7801\u4e86\u3002

\n\t\u3000\u3000\u5728\u7f51\u4e0a\u6c49\u5b57\u5b57\u6a21\u751f\u6210\u8f6f\u4ef6\u6709\u5f88\u591a\u79cd\uff0c\u672c\u6587\u544a\u522b\u63a8\u8350\u4e00\u79cd\u6c49\u5b57\u5b57\u6a21\u751f\u6210\u8f6f\u4ef6\uff0cHZDotReader V3.0\uff0c\u6211\u4e2a\u4eba\u8ba4\u4e3a\u8fd9\u4e2a\u8f6f\u4ef6\u7684\u529f\u80fd\u76f8\u5f53\u5b8c\u7f8e\u3002\u6700\u4e3b\u8981\u7684\u4e00\u4e2a\u529f\u80fd\u662f\u53ef\u4ee5\u9009\u62e9\u6c49\u5b57\u7f16\u7801\u7684\u53d6\u6a21\u65b9\u5f0f\uff0c\u672c\u4f8b\u4e2d\u7684“\u6211”\u5b57\u7684\u53d6\u6a21\u65b9\u5f0f\u4e3a\u4ee5\u6a2a\u54118\u4e2a\u8fde\u7eed\u70b9\u6784\u6210\u4e00\u4e2a\u5b57\u8282,\u6700\u5de6\u8fb9\u7684\u70b9\u4e3a\u5b57\u8282\u7684\u6700\u4f4e\u4f4d,\u5373BIT0,\u6700\u53f3\u8fb9\u7684\u70b9\u4e3aBIT7\u3002\u5f88\u5c11\u6709\u5b57\u6a21\u8f6f\u4ef6\u53ef\u4ee5\u5b9e\u73b0\u8fd9\u4e00\u529f\u80fd\u3002

\n\t\u3000\u3000\u4e0b\u9762\u7ed9\u51fa\u4e00\u4e2a\u7b80\u5355\u7684\u9759\u6001\u663e\u793a“\u6211”\u5b57\u7684\u7a0b\u5e8f\u6e05\u5355\uff1a

\n\t\u3000\u3000#include<reg52.h>

\n\t\u3000\u3000#define  CCED2  0x0000  \/*\u6211  *\/

\n\t\u3000\u3000unsigned char code word_zai[16][2] = {\/*\u6211   CCED2 *\/

\n\t\u3000\u30000x02,0x60,0x0A,0x1C,0x12,0x10,0x12,0x10,

\n\t\u3000\u30000x02,0x10,0x7F,0xFF,0x02,0x10,0x12,0x10,

\n\t\u3000\u30000x14,0x70,0x0C,0x1C,0x04,0x13,0x0A,0x10,

\n\t\u3000\u30000x49,0x90,0x50,0x10,0x60,0x14,0x40,0x08};<\/p>\n

\n\tvoid main()

\n\t{  char scan<\/span>,i,j;

\n\t P0=0;P1=0;P2=0;

\n\twhile(1)

\n\t{   scan=0;

\n\t for(i=0;i<16;i++)

\n\t  { P1=scan;

\n\t for(j=0;j<50;j++)   \/\/\u663e\u793a\u4e94\u5341\u6b21

\n\t  { P2=word_zai[i][0] ;

\n\t    P0=word_zai[i][1]  ;

\n\t  }

\n\t P0=0;P2=0;

\n\t  scan++;

\n\t}

\n\t}

\n\t }<\/p>\n

\n\t\u3000\u56db\u3001 \u5b89\u88c5\u4e0e\u8c03\u8bd5

\n\t

\n\t\u3000\u3000\u628a\u663e\u793a\u5c4f\u7535\u8def\u548c\u663e\u793a\u5c4f\u9a71\u52a8\u7535\u8def\u5206\u522b\u505a\u5728\u4e24\u5757\u7535\u8def\u677f\u4e0a\uff0c\u663e\u793a\u5c4f\u7535\u8def\u7684\u884c\u626b\u63cf\u4fe1\u53f7\u8f93\u51fa\u7ba1\u811a\u548c\u5217\u663e\u793a\u4fe1\u53f7\u6570\u636e\u8f93\u51fa\u7ba1\u811a\u5206\u522b\u5f15\u7528\u4e24\u639216\u9488\u7684\u6392\u9488\u5f15\u51fa\uff0c\u6392\u9488\u957f\u7684\u90a3\u4e00\u5934\u63a5\u5230\u7535\u8def\u677f\u7684\u5e95\u5c42\uff0c\u4ee5\u65b9\u4fbf\u63d2\u5165\u9a71\u52a8\u7535\u8def\u7684\u63d2\u69fd\u4e2d\u3002\u540c\u6837\u5728\u9a71\u52a8\u7535\u8def\u7528\u4e24\u639216\u811a\u7684\u63d2\u69fd\u5c06\u884c\u626b\u63cf\u4fe1\u53f7\u8f93\u51fa\u7ba1\u811a\u548c\u5217\u663e\u793a\u4fe1\u53f7\u6570\u636e\u8f93\u51fa\u7ba1\u811a\u5f15\u51fa\uff0c\u5728\u753bPCB<\/span>\u65f6\u5e94\u5f53\u6ce8\u610f\u5c4f\u7535\u8defPCB\u4e2d\u4e24\u6392\u6392\u9488\u4e4b\u95f4\u7684\u8ddd\u79bb\u8981\u4e0e\u9a71\u52a8\u7535\u8defPCB\u4e2d\u4e24\u6392\u63d2\u69fd\u4e4b\u95f4\u7684\u8ddd\u79bb\u4e00\u6837\uff0c\u624d\u80fd\u4fdd\u8bc1\u80fd\u6b63\u786e\u5730\u5c06\u663e\u793a\u5c4f\u7535\u8def\u677f\u6392\u5230\u9a71\u52a8\u7535\u8def\u7535\u8def\u677f\u4e0a\u65b9\u3002\u4ee5\u4e0b\u4e3a\u8be5\u7535\u8def\u7684\u5b9e\u7269\u56fe\u4e0ePCB\u3002

\n\t  

\n\t\u3000\u3000\u5728\u753bPCB\u65f6\u6ce8\u610f\u53cc\u9762\u7535\u8def\u677f\u7684\u505a\u677f\u89c4\u5219\uff0c\u7279\u522b\u8981\u6ce8\u610f\u4ee5\u4e0b 

\n\t\u51e0\u4e2a\u65b9\u9762\uff1a

\n\t\u3000\u3000\u2460\u53cc\u9762\u7535\u8def\u677f\u7684\u8fc7\u5b54\u6bd4\u8f83\u5927\uff0c\u4e00\u822c\u572880mil\u4ee5\u4e0a\uff1b

\n\t\u3000\u3000\u2461\u5b9a\u4f4d\u5b54\u7684\u653e\u7f6e\uff1b

\n\t\u3000\u3000\u2462\u8981\u5728\u9876\u5c42\u710a\u63a5\u65f6\uff0c\u5e94\u6ce8\u610f\u5728\u9876\u5c42\u63d2\u4e0a\u5143\u5668\u4ef6\u540e\u662f\u5426\u4f1a\u5f71\u54cd\u5230\u710a\u63a5\uff0c\u5982\u82af\u7247\u7b49\u7ba1\u811a\u6bd4\u8f83\u77ed\u7684\u5143\u5668\u4ef6\uff0c\u5f53\u63d2\u5728\u7535\u8def\u677f\u540e\u8981\u5728\u9876\u5c42\u710a\u63a5\u5176\u7ba1\u811a\u662f\u6bd4\u8f83\u56f0\u96be\u7684\uff1b

\n\t\u5b89\u88c5\u5b89\u7535\u8def\u540e\uff0c\u53ef\u5c06\u4ee5\u4e0b\u7684\u6d4b\u8bd5<\/span>\u7a0b\u5e8f\u70e7\u5230AT89S52\u4e2d\uff0c\u5c06AT89S52\u63d2\u5165\u9a71\u52a8\u7535\u8def, \u82e5\u6bcf\u4e00\u4e2a\u53d1\u5149\u4e8c\u6781\u7ba1\u90fd\u80fd\u88ab\u70b9\u4eae\uff0c\u5219\u8bf4\u660e\u7535\u8def\u786c\u4ef6\u505a\u6210\u529f\u3002 \u4ee5\u4e0b\u4e3a\u6d4b\u8bd5\u7a0b\u5e8f\u6e05\u5355\uff1a

\n\t#include<reg52.h>

\n\tvoid main()

\n\t{  char scan,i;

\n\t P0=0;P1=0;P2=0;

\n\twhile(1)

\n\t{  scan=0;

\n\t  for(i=0;i<16;i++)

\n\t  {P1=scan;

\n\t  P0=0xff;

\n\t  P2=0xff;

\n\t scan++;

\n\t}

\n\t}

\n\t}

\n\t\u3000\u3000\u82e5\u53d1\u73b0\u4e8c\u6781\u7ba1\u4e0d\u662f\u5168\u88ab\u70b9\u4eae\u5219\u8981\u7528\u4e07\u7528\u8868\u6765\u4ed4\u7ec6\u5730\u68c0\u6d4b\u3002\u4e00\u822c\u4f1a\u51fa\u73b0\u7684\u95ee\u9898\u662f\u7535\u8def\u677f\u4e0a\u7684\u7ebf\u88ab\u77ed\u8def\uff0c\u65ad\u5f00\u7b49\u3002\u6839\u636e\u4e0d\u4eae\u7684\u4e8c\u6781\u7ba1\u6765\u627e\u7535\u8def\u51fa\u73b0\u7684\u95ee\u9898\u5e94\u8be5\u662f\u6bd4\u8f83\u5bb9\u6613\u7684\u3002\u6240\u4ee5\u672c\u7535\u8def\u7684\u8c03\u8bd5\u8fc7\u7a0b\u662f\u8f83\u7b80\u5355\u7684\u3002\u5f53\u7136\u8c03\u8bd5\u524d\u5fc5\u987b\u8981\u786e\u4fdd\u6240\u8d2d\u4e70\u7684\u6bcf\u4e00\u5757\u663e\u793a\u5c4f\u90fd\u662f\u5b8c\u597d\u7684\u3002

\n\t

\n\t\u3000\u3000\u4e94\u3001 \u603b\u7ed3

\n\t

\n\t\u3000\u30001\u3001\u4e3a\u65b9\u4fbf\u8c03\u8bd5\u5e94\u8be5\u7ed9\u8be5\u7535\u8def\u52a0\u4e0a\u4e00\u4e2a\u4e0b\u8f7d\u7535\u8def\u90e8\u5206\uff0c\u6bcf\u6b21\u70e7\u7a0b\u5e8f\u8c03\u8bd5\u90fd\u8981\u628a\u82af\u7247\u53d6\u51fa\u63d2\u5165\uff0c\u5bb9\u6613\u635f\u574f\u82af\u7247\u7684\u7ba1\u811a\u3002

\n\t\u3000\u30002\u3001\u4e3a\u4e86\u5408\u9002\u5927\u90e8\u5206\u7684\u53d6\u5b57\u6a21\u8f6f\u4ef6\uff0c\u5728\u753b\u539f\u7406\u56fe\u5e94\u5f53\u8003\u8651\u5217\u663e\u793a\u5c4f\u663e\u793a\u4fe1\u53f7\u8f93\u5165\u7ba1\u811a\u7531\u5de6\u5230\u53f3\u7684\u63a5\u6cd5\uff1b\u5927\u90e8\u5206\u7684\u53d6\u5b57\u6a21\u8f6f\u4ef6\u90fd\u662f\u4ece\u5de6\u5230\u53f3\u7684\u53d6\u6a21\u65b9\u5f0f\uff0c\u6240\u4ee5\u5e94\u5f53\u628a\u663e\u793a\u5c4f\u7684\u5217\u4fe1\u53f7\u663e\u793a\u8f93\u5165\u7ba1\u811a\u4ece\u5de6\u5230\u53f3\u63a5\u5730\u63a5\u5230\u5355\u7247\u673aP2,P0\u53e3\u65f6\u7531\u9ad8\u4f4d\u63a5\u5230\u4f4e\u4f4d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u6c49\u5b57 \u663e\u793a\u5c4f \u5230\u5904\u53ef\u89c1\uff0c\u88ab\u5e7f\u6cdb\u5e94\u7528\u4e8e\u4e0e\u6c7d\u8f66\u62a5\u7ad9\u5668\uff0c\u5e7f\u544a\u5c4f\u7b49\u3002\u672c\u6587\u4e2d\u768416*16 LED\u663e\u793a\u5c4f \u662f\u91c7\u75284\u57578*8 LED \u5408\u5e76\u800c\u6210\u7684\u3002 \u4e0b\u56fe\u662f4\u4e2a8*8LED\u7ec4\u6210\u7684\u663e\u793a\u5c4f\u3002 \uff08\u56fe1\uff09 \u8fd9\u91cc\u6211\u628a\u70b9\u9635LED\u663e\u793a\u5c4f\u5236<\/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\/147"}],"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=147"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/147\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=147"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}