{"id":2199,"date":"2019-03-11T03:28:53","date_gmt":"2019-03-11T03:28:53","guid":{"rendered":""},"modified":"2019-03-11T11:29:19","modified_gmt":"2019-03-11T03:29:19","slug":"%e5%8d%8a%e5%af%bc%e4%bd%93%e6%8c%87%e7%ba%b9%e4%bc%a0%e6%84%9f%e5%99%a8%e5%90%af%e5%8a%a8%e4%b8%8e%e5%90%8c%e6%ad%a5%e7%9a%84%e6%94%b9%e8%bf%9b%e8%ae%be%e8%ae%a1","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=2199","title":{"rendered":"\u534a\u5bfc\u4f53\u6307\u7eb9\u4f20\u611f\u5668\u542f\u52a8\u4e0e\u540c\u6b65\u7684\u6539\u8fdb\u8bbe\u8ba1"},"content":{"rendered":"
\n\t\u76ee\u524d\u751f\u7269\u8bc6\u522b——\u6d3b\u4f53\u6307\u7eb9\u8bc6\u522b\u7cfb\u7edf\u7684\u5e94\u7528\u65e5\u76ca\u5e7f\u6cdb\uff0c\u5176\u4e2dVeridicon\u63a8\u51fa\u7684I-touch\u534a\u5bfc\u4f53\u6307\u7eb9\u4f20\u611f\u5668<\/u>\u662f\u4e00\u4e2a300×300\u70b9\u9635\u3001\u5206\u8fa8\u7387\u4e3a 500DPI<\/u>\u7684\u4f4e\u529f\u8017\u4f20\u611f\u5668\u4ef6\uff0c\u5185\u90e8\u96c6\u6210\u6709\u6e29\u5ea6\u4f20\u611f\u5668<\/u>\u548c\u7535\u963b<\/u>\u4f20\u611f\u5668\uff0c\u56e0\u800c\u53ef\u4ee5\u9632\u6b62\u7535\u5b50\u6b3a\u8bc8\u3002\u8be5\u4f20\u611f\u5668\u5177\u6709“\u4f53\u79ef\u5c0f\u3001\u6210\u672c\u4f4e\u3001\u8017\u7535\u5c0f\u3001\u5b89\u5168\u6027\u9ad8”\u7b49\u4f18\u70b9\uff0c\u800c\u4e14\u8be5\u82af\u7247\u8868\u9762\u8986\u76d6\u6709\u4f20\u5229\u4fdd\u62a4\u7684\u9632\u62a4\u5c42\uff0c\u53ef\u6709\u6548\u9632\u6b62\u78e8\u635f\u3001\u8150\u8680\u7b49\uff0c\u4ece\u800c\u5f97\u5230\u5f88\u591a\u6307\u7eb9\u8bc6\u522b\u7cfb\u7edf\u5f00\u53d1\u5546\u7684\u4f7f\u7528\u3002\u4f46\u5728\u5f00\u53d1\u4f7f\u7528I-touch\u6307\u7eb9\u4f20\u611f\u5668\u8fc7\u7a0b\u4e2d\u540c\u65f6\u4e5f \u73b0I-touch\u5668\u4ef6\u5bf9\u6709\u6548\u56fe\u50cf\u6355\u6349\u6548\u7387\u5b58\u5728\u7f8e\u4e2d\u4e0d\u8db3\u7684\u95ee\u9898\uff0c\u56e0\u800c\u9700\u8981\u8fdb\u884c\u4e00\u4e9b\u6539\u88c5\u3002<\/p>\n
\n\t1 \u6709\u6548\u6307\u7eb9\u56fe\u50cf\u7684\u786e\u8ba4\u53ca\u5b58\u5728\u95ee\u9898<\/p>\n
\n\t\u6307\u7eb9\u56fe\u50cf\u6355\u6349\u7cfb\u7edf\u5728\u5de5\u4f5c\u65f6\uff0c\u53ea\u6709\u8fde\u7eed\u4e24\u6b21\u6355\u6349\u7684\u56fe\u50cf\u76f8\u540c\u624d\u53ef\u51b3\u5b9a\u8fd9\u4e2a\u56fe\u50cf\u662f\u6709\u6548\u56fe\u50cf\u3002\u800c\u5728\u5b9e\u9645\u4f7f\u7528\u8fc7\u7a0b\u4e2d\uff0c\u5f80\u5f80\u662f\u4f20\u611f\u5668\u5148\u542f\u52a8\u4e86\u626b\u63cf\u7a0b\u5e8f\uff0c\u7136\u540e\u88ab\u68c0\u8005\u548c\u653e\u5165\u624b\u6307\u8fdb\u884c\u626b\u63cf\uff0c\u6240\u4ee5\uff0c\u5f00\u59cb\u65f6\u53ef\u80fd\u53ea\u662f\u626b\u5230\u4e00\u4e2a\u4e0d\u5b8c\u6574\u7684\u6307\u7eb9\u56fe\u50cf\uff0c\u7b49\u5230\u4e0b\u4e00\u6b21\u626b\u63cf\u65f6\uff0c\u624d\u5f97\u5230\u4e00\u4e2a\u5b8c\u6574\u7684\u6307\u7eb9\u56fe\u50cf\uff0c\u8fd9\u6837\uff0c\u5c31\u5f97\u5230\u4e24\u4e2a\u4e0d\u76f8\u540c\u7684\u56fe\u50cf\uff0c\u56e0\u800c\u5fc5\u987b\u8fdb\u884c\u7b2c\u4e09\u6b21\u626b\u63cf\uff0c\u4f46\u5728\u7b2c\u4e09\u6b21\u626b\u63cf\u8fd8\u672a\u7ed3\u675f\u65f6\uff0c\u88ab\u68c0\u8005\u7531\u4e8e\u5728\u4f20\u611f\u5668\u4e0a\u505c\u7559\u7684\u65f6\u95f4\u592a\u957f\u800c\u9020\u6210\u4e0d\u8010\u70e6\uff0c\u53ef\u80fd\u53c8\u628a\u624b\u6307\u53d6\u51fa\u6216\u79fb\u52a8\uff0c\u8fd9\u6837\u5c06\u4f7f\u6700\u540e\u5f97\u51fa\u7684\u4e09\u4e2a\u56fe\u50cf\u90fd\u4e0d\u4e00\u6837\uff0c\u4ece\u800c\u4f7f\u4f20\u611f\u5668\u4f1a\u8fd4\u56de\u4e00\u4e2a\u65e0\u6548\u56fe\u50cf\u3002\u5176\u6700\u540e\u7ed3\u679c\u662f\u88ab\u68c0\u8005\u8981\u91cd\u65b0\u626b\u63cf\u6307\u7eb9\u3002<\/p>\n
\n\t\u7531\u4e8eI-touch\u6307\u7eb9\u4f20\u611f\u5668\u5de5\u4f5c\u542f\u52a8\u6a21\u5f0f\u53ea\u6709\u4e24\u79cd\u8bbe\u5b9a\uff0c\u4e00\u662f\u7531\u7a0b\u5e8f\u5458\u9884\u8bbe“\u56de\u8f66”\u952e\u542f\u52a8\uff1b\u53e6\u4e00\u79cd\u662f\u5f00\u673a\u540e\u5373\u81ea\u52a8\u8fde\u7eed\u8fdb\u884c\u3002\u800cI-touch\u6307\u7eb9\u4f20\u611f\u5668\u6ca1\u6709\u8bc6\u522b\u548c\u63a7\u5236\u88ab\u68c0\u8005\u662f\u5426\u6b63\u786e\u64cd\u4f5c\u7684\u611f\u5e94\u88c5\u7f6e\u3002\u6240\u4ee5\u4e0a\u8ff0\u4e24\u79cd\u542f\u52a8\u6a21\u5f0f\u90fd\u5b58\u5728\u7740\u5728\u5176\u542f\u52a8\u65f6\u88ab\u68c0\u8005\u7684\u624b\u6307\u672a\u653e\u7f6e\u5230\u4f4d\u4ee5\u81f4\u4ea7\u751f\u7a7a\u626b\u63cf\u6216\u4e0d\u5b8c\u6574\u626b\u63cf\u800c\u5f62\u6210\u65e0\u6548\u56fe\u50cf\u3001\u9700\u8981\u591a\u6b21\u64cd\u4f5c\u3001\u5f71\u54cd\u5de5\u4f5c\u6548\u7387\u7684\u95ee\u9898\u3002<\/p>\n
\n\t<\/p>\n
\n\t2 \u542f\u52a8\u4e0e\u540c\u6b65\u7684\u6539\u8fdb\u8bbe\u8ba1<\/p>\n
\n\t2.1 \u624b\u6307\u4e0e\u4f4d\u89e6\u52a8\u5f00\u5173<\/p>\n
\n\t\u7ecf\u8fc7\u4ed4\u7ec6\u7814\u7a76\u548c\u591a\u6b21\u8bd5\u9a8c\uff0c\u7b14\u8005\u5728I-touch\u6307\u7eb9\u4f20\u611f\u5668\u4e2d\u52a0\u88c5\u4e86\u4e00\u4e2a\u624b\u6307\u5230\u4f4d\u5f00\u5173\uff0c\u53ea\u6709\u624b\u6307\u5b8c\u5168\u5230\u4f4d\uff0c\u7cfb\u7edf\u624d\u5f00\u59cb\u542f\u52a8\u6307\u7eb9\u626b\u63cf\u7a0b\u5e8f\uff0c\u4ece\u800c\u6709\u6548\u5730\u89e3\u51b3\u4e86\u5de5\u4f5c\u542f\u52a8\u4e0e\u88ab\u68c0\u624b\u6307\u5230\u4f4d\u4e0d\u540c\u6b65\u7684\u95ee\u9898\u3002\u5177\u4f53\u7ed3\u6784\u5982\u56fe1\u6240\u793a\uff0c\u8be5\u8bbe\u8ba1\u662f\u5728I-touch\u6307\u7eb9\u4f20\u611f\u5668\u4e2d\u52a0\u88c5\u4e86\u4e24\u4e2a\u89e6\u70b9\uff0c\u5176\u4e2d\u4e00\u4e2a\u89e6\u70b9\u7531\u5355\u7247\u673a<\/u>P1.0\u811a\u5f15\u51fa\uff0c\u53e6\u4e00\u4e2a\u76f4\u63a5\u4e0e\u5730\u8fde\u63a5\u3002\u5e76\u5728\u6ed1\u5757\u7684A\u70b9\u52a0\u88c5\u4e86\u4e00\u4e2a\u91d1\u5c5e\u5757\uff0c\u4ece\u800c\u5f62\u6210\u4e00\u4e2a\u89e6\u52a8\u5f00\u5173\u3002\u5de5\u4f5c\u65f6\uff0c\u4f7f\u88ab\u68c0\u624b\u6307\u63a8\u52a8\u6ed1\u5757\uff0c\u7531\u6ed1\u69fd\u7684B\u70b9\u8fd0\u52a8\u81f3C\u70b9\uff0c\u5f85\u5b8c\u5168\u5230\u4f4d\u65f6\uff0c\u6b63\u597d\u63a5\u901a\u4e24\u4e2a\u89e6\u70b9\uff0c\u5e76\u540c\u65f6\u4f7f\u5355\u7247\u673a\u7684\u8f93\u5165P1.0\u811a\u7f6e\u4f4e\u7535\u5e73\uff0c\u5f62\u6210\u5355\u7247\u673a\u8f93\u5165\u4fe1\u53f7\uff0c\u901a\u8fc7\u5355\u7247\u673a\u4e0ePC\u673a\u63a5\u53e3\u7acb\u5373\u542f\u52a8I-touch\u6307\u7eb9\u4f20\u611f\u5668\uff0c\u5f00\u59cb\u8fdb\u884c\u6307\u7eb9\u626b\u63cf\u3002<\/p>\n
\n\t2.2 \u89e6\u52a8\u5f00\u5173\u786c\u4ef6\u7535\u8def<\/u><\/p>\n
\n\t\u56fe2\u4e3a\u89e6\u52a8\u5f00\u5173\u4e2d\u5355\u7247\u673a\u4e0ePC\u673a\u63a5\u53e3\u8bbe\u8ba1\u7684\u786c\u4ef6\u7535\u8def\u56fe\u3002\u672c\u7535\u8def\u91c7\u7528ATML89C51\u3001MAX232\u53ca\u4e00\u4e9b\u5916\u56f4\u5143\u4ef6\u6784\u6210\u4e32\u53e3\u901a\u8baf\u7535\u8def\u3002<\/p>\n
\n\t\u7535\u8def\u5de5\u4f5c\u65f6\uff0c\u5f00\u51731\u63a5\u901a\uff0cP1.0\u811a\u7531\u9ad8\u7535\u5e73\u53d8\u6210\u4f4e\u7535\u5e73\uff0c\u5f53\u5355\u7247\u673a\u68c0\u6d4b\u5230P1.0\u8f93\u5165\u7aef\u4e3a\u4f4e\u7535\u5e73\u65f6\uff0c\u5373\u901a\u8fc7MAX232\u5411PC\u673a\u4e32\u53e3\u4f20\u9001“S”\u4fe1\u53f7\uff0c\u4f7fPC \u673a\u63a7\u5236\u6307\u7eb9\u4f20\u611f\u5668\u6267\u884c\u626b\u63cf\u7a0b\u5e8f\u3002\u5f53PC\u673a\u8981\u96c6\u6307\u7eb9\u56fe\u50cf\u5b8c\u6210\u65f6\uff0c\u518d\u7531com2\u53e3\u5411\u5355\u7247\u673a\u53d1\u51fa“E”\u4fe1\u53f7\u8868\u793a\u7ed3\u675f\uff0c\u5e76\u5c06P2.0\u7f6e\u4f4e\u7535\u5e73\uff0c\u540c\u65f6\u4f7f\u6307\u793a\u706f\u53d1\u4eae\uff0c\u5411\u7528\u6237\u8868\u660e\u6307\u7eb9\u91c7\u96c6\u5b8c\u6210\u3002\u7528\u6237\u6b64\u65f6\u624b\u6307\u5373\u53ef\u79bb\u5f00\u3002<\/p>\n
\n\t<\/p>\n
\n\t<\/p>\n
\n\t2.3 \u7a0b\u5e8f\u8bbe\u8ba1<\/p>\n
\n\tPC\u673a\u7aef\u7a0b\u5e8f\u91c7\u7528DHLPHI\u8bed\u8a00\u7f16\u5199\uff0c\u7a0b\u5e8f\u6846\u56fe\u5982\u56fe3\u6240\u793a\uff0c\u5355\u7247\u673a\u7a0b\u5e8f\u91c7\u7528C51\u8bed\u8a00\u7f16\u5199\uff0c\u7a0b\u5e8f\u6846\u56fe\u89c1\u56fe4\uff0c\u4ee5\u4e0b\u662fDELPHI\u7a0b\u5e8f\u4ee3\u7801\uff1a<\/p>\n
\n\t\u672c\u7a0b\u5e8f\u91c7\u7528Comport\u63a7\u4ef6\uff0c\u53ef\u7528\u6765\u5b9e\u73b0\u57fa\u4e8eWIN9X\u5e73\u53f0\u4e0e\u5355\u7247\u673a\u7684\u4e32\u53e3\u901a\u8baf\u3002<\/p>\n
\n\tProcedure TMAI<\/u>NFORMA.ComPort11RxChar\uff08Sender:Tobject;Count:Inte<\/u>ger\uff09;<\/p>\n
\n\tBegin<\/p>\n
\n\tComPort11.ReadStr\uff08Str\uff0cCount\uff09;<\/p>\n
\n\tIf str=‘S’then<\/p>\n
\n\tTi<\/u>mer40.enabled\uff1a=true;\/\/\u6267\u884c\u6307\u7eb9\u91c7\u96c6\u6a21\u5757<\/p>\n
\n\tEnd;<\/p>\n
\n\t\/\/\u8f93\u51fa\u63a7\u5236\u6a21\u5757\uff1b<\/p>\n
\n\tComPort11.WriteStr\uff08‘E’\uff09;\/\/\u8f93\u51fa\u9a71\u52a8\u4fe1\u53f7<\/p>\n
\n\t\u5355\u7247\u673aC51\u7a0b\u5e8f\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n
\n\t#include io51.h“<\/p>\n
\n\tvoid DELAY\uff08unsigned int value\uff09<\/p>\n
\n\t{<\/p>\n
\n\twhile\uff08value\u300b0\uff09 value--;<\/p>\n
\n\t}<\/p>\n
\n\tbit FLAG0=0;<\/p>\n
\n\tstaTIc const char TAB\uff3b\uff3d=“S”\uff1b<\/p>\n
\n\tmain\uff08\uff09<\/p>\n
\n\t{<\/p>\n
\n\tchar c=0;<\/p>\n
\n\tSCON=0x50;<\/p>\n
\n\tTMOD=0x20;<\/p>\n
\n\tTH1=0xe6;<\/p>\n
\n\tTR1=1;<\/p>\n
\n\tWhile\uff081\uff09<\/p>\n
\n\t{<\/p>\n
\n\tdo<\/p>\n
\n\t{<\/p>\n
\n\tif \uff08RI= =1\uff09<\/p>\n
\n\t{<\/p>\n
\n\tR1=0;<\/p>\n
\n\tP2=\uff5eSBUF;<\/p>\n
\n\tDELAY\uff083000\uff09;<\/p>\n
\n\tP2=0xff;<\/p>\n
\n\t}<\/p>\n
\n\t}<\/p>\n
\n\twhile \uff08P1-0\uff01=0\uff09;<\/p>\n
\n\tDELAY\uff082000\uff09;<\/p>\n
\n\tSBUF=TAB\uff3bC\uff3d;<\/p>\n
\n\twhile\uff08TI\uff01=1\uff09;<\/p>\n
\n\tTI=0;<\/p>\n
\n\t}<\/p>\n
\n\t}<\/p>\n
\n\t3 \u7ed3\u675f\u8bed<\/p>\n
\n\t\u672c\u8bbe\u8ba1\u5df2\u6210\u529f\u5730\u5e94\u7528\u5230\u6e5b\u6c5f\u5e08\u9662\u5f00\u53d1\u7684\u6d3b\u4f53\u6307\u7eb9\u8bc6\u522b\u901a\u9053\u7cfb\u7edf\u53ca\u5b66\u751f\u6307\u7eb9\u7ba1\u7406\u7cfb\u7edf\u4e2d\uff0c\u6548\u679c\u826f\u597d\uff0c\u6b63\u5e38\u64cd\u4f5c\u7ea60.2\uff5e0.3\u79d2\u5185\u4e00\u822c\u90fd\u80fd\u6b63\u5e38\u5b8c\u6210\u6307\u7eb9\u96c6\u3002\u53ef\u660e\u663e\u63d0\u9ad8\u6307\u7eb9\u6709\u6548\u56fe\u50cf\u91c7\u96c6\u7684\u901f\u7387\u3002\u82e5\u5e94\u7528\u5728\u66ff\u4ee3\u4f53\u6307\u7eb9\u8bc6\u522b\u7684\u901a\u9053\u4e2d\uff0c\u5219\u6548\u679c\u66f4\u4e3a\u660e\u663e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u76ee\u524d\u751f\u7269\u8bc6\u522b\u6d3b\u4f53\u6307\u7eb9\u8bc6\u522b\u7cfb\u7edf\u7684\u5e94\u7528\u65e5\u76ca\u5e7f\u6cdb\uff0c\u5176\u4e2dVeridicon\u63a8\u51fa\u7684I-touch\u534a\u5bfc\u4f53\u6307\u7eb9 \u4f20\u611f\u5668 \u662f\u4e00\u4e2a300300\u70b9\u9635\u3001\u5206\u8fa8\u7387\u4e3a 500D PI \u7684\u4f4e\u529f\u8017\u4f20\u611f\u5668\u4ef6\uff0c\u5185\u90e8\u96c6\u6210\u6709 \u6e29\u5ea6\u4f20\u611f\u5668 \u548c \u7535\u963b \u4f20\u611f<\/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\/2199"}],"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=2199"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2199\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2199"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}