{"id":2354,"date":"2019-04-19T01:32:49","date_gmt":"2019-04-19T01:32:49","guid":{"rendered":""},"modified":"2019-04-19T09:33:07","modified_gmt":"2019-04-19T01:33:07","slug":"mcs-51%e5%8d%95%e7%89%87%e6%9c%ba%e7%b2%be%e7%a1%ae%e5%ae%9a%e6%97%b6%e7%9a%84%e4%b8%a4%e7%a7%8d%e7%bc%96%e7%a8%8b%e6%96%b9%e6%b3%95%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=2354","title":{"rendered":"MCS-51\u5355\u7247\u673a\u7cbe\u786e\u5b9a\u65f6\u7684\u4e24\u79cd\u7f16\u7a0b\u65b9\u6cd5\u4ecb\u7ecd"},"content":{"rendered":"
\n\tMCS-51\u5355\u7247\u673a<\/u>\u7684\u4e2d\u65ad\u54cd\u5e94\u5ef6\u8fdf\u65f6\u95f4\uff0c\u53d6\u51b3\u4e8e\u5176\u5b83\u4e2d\u65ad\u670d\u52a1\u7a0b\u5e8f\u662f\u5426\u5728\u8fdb\u884c\uff0c\u6216\u53d6\u51b3\u4e8e\u6b63\u5728\u6267\u884c\u7684\u662f\u4ec0\u4e48\u6837\u7684\u6307\u4ee4\u3002\u5355\u4e2d\u65ad\u7cfb\u7edf\u4e2d\u7684\u4e2d\u65ad\u54cd\u5e94\u65f6\u95f4\u4e3a3\uff5e8\u4e2a\u673a\u5668\u5468\u671f\uff3b1\uff3d\u3002\u65e0\u8bba\u662f\u54ea\u4e00\u79cd\u539f\u56e0\u5f15\u8d77\u7684\u8bef\u5dee\uff0c\u5728\u7cbe\u786e\u5b9a\u65f6\u7684\u5e94\u7528\u573a\u5408\uff0c\u5fc5\u987b\u8003\u8651\u5b83\u4eec\u7684\u5f71\u54cd\uff0c\u4ee5\u786e\u4fdd\u7cbe\u786e\u7684\u5b9a\u65f6\u63a7\u5236\u3002\u6839\u636e\u5b9a\u65f6\u4e2d\u65ad\u7684\u4e0d\u540c\u5e94\u7528\u60c5\u51b5\uff0c\u5e94\u9009\u62e9\u4e0d\u540c\u7684\u7cbe\u786e\u5b9a\u65f6\u7f16\u7a0b\u65b9\u6cd5\u3002<\/p>\n
\n\t
\n\t<\/p>\n
\n\t\u6587\u4e2d\u4ee5\u5b9a\u65f6\u5668<\/u>T1\u5de5\u4f5c\u5728\u5b9a\u65f6\u65b9\u5f0f1\u4e3a\u4f8b\uff0c\u6676\u632f\u9891\u7387\u4e3a12MHz\u3002<\/p>\n
\n\t1 \u65b9\u6cd51<\/p>\n
\n\t\u5728\u5b9a\u65f6\u5668\u6ea2\u51fa\u4e2d\u65ad\u5f97\u5230\u54cd\u5e94\u65f6\uff0c\u505c\u6b62\u5b9a\u65f6\u5668\u8ba1\u6570\uff0c\u8bfb\u51fa\u8ba1\u6570\u503c\uff08\u53cd\u6620\u4e86\u4e2d\u65ad\u54cd\u5e94\u7684\u5ef6\u8fdf\u65f6\u95f4\uff09\uff0c\u6839\u636e\u6b64\u8ba1\u6570\u503c\u7b97\u51fa\u5230\u4e0b\u4e00\u6b21\u4e2d\u65ad\u65f6\uff0c\u9700\u591a\u957f\u65f6\u95f4\uff0c\u7531\u6b64\u6765\u91cd\u88c5\u8f7d\u548c\u542f\u52a8\u5b9a\u65f6\u5668\u3002\u4f8b\u5982\u5b9a\u65f6\u5468\u671f\u4e3a1ms\uff0c\u5219\u901a\u5e38\u5b9a\u65f6\u5668\u91cd\u88c5\u8f7d\u503c\u4e3a-1000\uff080FC18H\uff09\u3002\u4e0b\u9762\u7684\u7a0b\u5e8f\u5728\u8ba1\u7b97\u6bcf\u4e2a\u5b9a\u65f6\u5468\u671f\u7684\u7cbe\u786e\u91cd\u88c5\u8f7d\u503c\u65f6\uff0c\u8003\u8651\u4e86\u7531\u505c\u6b62\u8ba1\u6570\uff08CLR TR1\uff09\u5230\u91cd\u65b0\u542f\u52a8\u8ba1\u6570\uff08SETB TR1\uff09\u4e4b\u95f4\u76847\u4e2a\u673a\u5668\u5468\u671f\u65f6\u95f4\u3002\u7a0b\u5e8f\u4e2d#LOW\uff08-1000+7\uff09\u548c#HIGH\uff08-1000+7\uff09\u662f\u6c47\u7f16\u7b26\u53f7\uff0c\u5206\u522b\u8868\u793a-1000+7=0FC1FH\u8fd9\u4e2a\u7acb\u5373\u6570\u7684\u4f4e\u4f4d\u5b57\u8282\uff081FH\uff09\u548c\u9ad8\u4f4d\u5b57\u8282\uff080FCH\uff09\u3002<\/p>\n
\n\t……<\/p>\n
\n\tCLR EA \uff1b\u7981\u6b62\u6240\u6709\u4e2d\u65ad<\/p>\n
\n\tCLR TR1 \uff1b\u505c\u6b62\u5b9a\u65f6\u5668T1<\/p>\n
\n\tMOV A\uff0c#LOW\uff08-1000+7\uff09 \uff1b\u671f\u671b\u6570\u7684\u4f4e\u4f4d\u5b57\u8282<\/p>\n
\n\tADD A\uff0cTL1 \uff1b\u8fdb\u884c\u4fee\u6b63<\/p>\n
\n\tMOV TL1\uff0cA \uff1b\u91cd\u88c5\u8f7d\u4f4e\u4f4d\u5b57\u8282<\/p>\n
\n\tMOV A\uff0c#HIGH\uff08-1000+7\uff09 \uff1b\u5bf9\u9ad8\u4f4d\u5b57\u8282\u5904\u7406<\/p>\n
\n\tADDC A\uff0cTH1<\/p>\n
\n\tMOV TH1\uff0cA<\/p>\n
\n\tSETB TR1 \uff1b\u91cd\u542f\u52a8\u5b9a\u65f6\u5668<\/p>\n
\n\tSETB EA \uff1b\u91cd\u5f00\u4e2d\u65ad<\/p>\n
\n\t……<\/p>\n
\n\t\u6b64\u65b9\u6cd5\u9002\u7528\u4e8e\u5404\u79cd\u539f\u56e0\u9020\u6210\u7684\u5b9a\u65f6\u8bef\u5dee\u7684\u60c5\u51b5\uff0c\u4e3a\u901a\u7528\u65b9\u6cd5\u3002<\/p>\n
\n\t2 \u65b9\u6cd52<\/p>\n
\n\t\u5047\u5982\u5b9a\u65f6\u5468\u671f\u4e3a10ms\uff0c\u901a\u5e38\u5b9a\u65f6\u5668\u91cd\u88c5\u8f7d\u503c\u4e3a0D8F0H\uff0c\u4e2d\u65ad\u5b50\u7a0b\u5e8f\u5982\u4e0b\uff3b2\uff3d\uff1a<\/p>\n
\n\tORL TL1\uff0c#0F0H<\/p>\n
\n\tMOV TH1\uff0c#0D8H<\/p>\n
\n\t……<\/p>\n
\n\t\u8fd9\u91cc\u7528ORL TL1\uff0c#0F0H\u4ee3\u66ffMOV TL1\uff0c#0F0H \u53ef\u63d0\u9ad8\u5b9a\u65f6\u7cbe\u5ea6\u3002\u6b64\u65b9\u6cd5\u53ea\u9002\u7528\u4e8e\u91cd\u88c5\u8f7d\u503c\u4f4e\u4f4d\u5b57\u8282\u7684\u4f4e4\u4f4d\u4e3a\u96f6\uff0c\u4e14\u4e2d\u65ad\u54cd\u5e94\u7684\u5ef6\u8fdf\u65f6\u95f4\u5c0f\u4e8e16\u4e2a\u673a\u5668\u5468\u671f\u7684\u60c5\u51b5\u3002\u7c7b\u4f3c\u7684\u5b9a\u65f6\u5668\u91cd\u88c5\u8f7d\u503c\u67090FFF0H\uff0c0FFE0H\u7b49\u3002<\/p>\n
\n\t3 \u65b9\u6cd53<\/p>\n
\n\t\u5047\u5982\u5b9a\u65f6\u5468\u671f\u4e3a1ms\uff0c\u901a\u5e38\u5b9a\u65f6\u5668\u91cd\u88c5\u8f7d\u503c\u4e3a0FC18H\uff0c\u4e2d\u65ad\u5b50\u7a0b\u5e8f\u5982\u4e0b\uff1a<\/p>\n
\n\tMOV A\uff0c#LOW\uff08-1000+4\uff09 \uff1b\u671f\u671b\u6570\u7684\u4f4e\u4f4d\u5b57\u8282<\/p>\n
\n\tADD A\uff0cTL1<\/p>\n
\n\tMOV TL1\uff0cA<\/p>\n
\n\tMOV A\uff0c#HIGH\uff08-1000+4\uff09 \uff1b\u5bf9\u9ad8\u4f4d\u5b57\u8282\u5904\u7406<\/p>\n
\n\tADDC A\uff0cTH1<\/p>\n
\n\tMOV TH1\uff0cA<\/p>\n
\n\tDEC TL1 \uff1b\u6062\u590d\u63d0\u524d\u4e86\u76842\u4e2a\u673a\u5668\u5468\u671f<\/p>\n
\n\t……<\/p>\n
\n\t\u8fd9\u79cd\u65b9\u6cd5\u4e2d\u4e0d\u505c\u6b62\u5b9a\u65f6\u5668\u8ba1\u6570\u8fc7\u7a0b\uff0c\u82e5\u5728\u6267\u884c\u6307\u4ee4ADDC A\uff0cTH1 \u6216MOV TH1\uff0cA\u65f6\uff0c\u6070\u597d\u4ea7\u751fTL1\u6ea2\u51fa\u5411TH1\u8fdb\u4f4d\u7684\u60c5\u51b5\uff0c\u5219TH1\u7684\u503c\u5c31\u4e0d\u5bf9\u4e86\uff0c\u4f1a\u4ea7\u751f\u66f4\u5927\u7684\u8bef\u5dee\u3002\u4e3a\u6b64\uff0c\u7a0b\u5e8f\u6bb5\u5f00\u5934\u4e3a\u91cd\u88c5\u8f7d\u503c\u52a04\uff0c\u82e5\u6709\u6ea2\u51fa\u8fdb\u4f4d\uff0c\u5219\u53ef\u63d0\u524d\u53d1\u751f\uff0c\u5176\u4e2d2\u4e2a\u673a\u5668\u5468\u671f\u662f\u8003\u8651\u5230\u4e3aTL1\u91cd\u88c5\u8f7d\u5360\u7528\u7684\u65f6\u95f4\u3002<\/p>\n
\n\t\u6b64\u65b9\u6cd5\u9002\u7528\u4e8e\u7cfb\u7edf\u4e2d\u65e0\u5176\u5b83\u66f4\u9ad8\u4f18\u5148\u7ea7\u4e2d\u65ad\u6e90\u7684\u60c5\u51b5\u3002\u82e5\u7c7b\u4f3c\u65b9\u6cd51\uff0c\u5728\u7a0b\u5e8f\u6bb5\u5f00\u5934\u548c\u7ed3\u5c3e\u5206\u522b\u52a0\u4e0a\u7981\u6b62\u6240\u6709\u4e2d\u65ad\uff08CLR EA\uff09\u548c\u5f00\u4e2d\u65ad\uff08SETB EA\uff09\u6307\u4ee4\uff0c\u5219\u5c06\u9002\u7528\u4e8e\u6240\u6709\u60c5\u51b5\u3002<\/p>\n
\n\t4 \u65b9\u6cd54<\/p>\n
\n\t\u5047\u5982\u5b9a\u65f6\u5468\u671f\u4e0d\u786e\u5b9a\uff0c\u53ea\u77e5\u9053\u5b9a\u65f6\u5668\u91cd\u88c5\u8f7d\u503c\u5b58\u653e\u5728\u5bc4\u5b58\u5668<\/u>R3\u3001R2\u4e2d\uff0c\u4e2d\u65ad\u5b50\u7a0b\u5e8f\u5982\u4e0b\uff1a<\/p>\n
\n\tMOV A\uff0c#05H \uff1b3\u4e2a\u673a\u5668\u5468\u671f\u88c5\u8f7dTL1\uff0c2\u4e2a\u5468\u671f\u63d0\u524d<\/p>\n
\n\tADD A\uff0cTL1<\/p>\n
\n\tADD A\uff0cR2<\/p>\n
\n\tMOV TL1\uff0cA<\/p>\n
\n\tMOV A\uff0cR3 \uff1b\u5904\u7406\u9ad8\u4f4d\u5b57\u8282<\/p>\n
\n\tADDC A\uff0cTH1<\/p>\n
\n\tMOV TH1\uff0cA<\/p>\n
\n\tDEC TL1 \uff1b\u6062\u590d\u63d0\u524d\u4e86\u76842\u4e2a\u673a\u5668\u5468\u671f<\/p>\n
\n\t……<\/p>\n
\n\t\u6b64\u6cd5\u9002\u7528\u4e8e\u5b9a\u65f6\u5468\u671f\u4e0d\u786e\u5b9a\u7684\u60c5\u51b5\uff0c\u5176\u5b83\u540c\u65b9\u6cd53\u3002<\/p>\n
\n\t5 \u65b9\u6cd55<\/p>\n
\n\t\u5f53\u5b9a\u65f6\u4e2d\u65ad\u53d1\u751f\u7684\u4f4d\u7f6e\u53ef\u9884\u77e5\u65f6\uff0c\u901a\u5e38\u51fa\u73b0\u5728\u4e3b\u7a0b\u5e8f\u7684AJMP $ \uff08\u6216SJMP $\uff09\u7b49\u5f85\u6307\u4ee4\u5904\uff0c\u4e2d\u65ad\u5ef6\u8fdf\u65f6\u95f4\u4e3a3\u4e2a\u62164\u4e2a\u673a\u5668\u5468\u671f\u3002\u53d6\u56fa\u5b9a\u503c4\u53ef\u7b80\u5316\u8865\u507f\u7a0b\u5e8f\u3002\u4ee5\u5b9a\u65f6\u5468\u671f1ms\u4e3a\u4f8b\uff0c\u4e2d\u65ad\u5b50\u7a0b\u5e8f\u5982\u4e0b\uff1a<\/p>\n
\n\tORG 001BH<\/p>\n
\n\tMOV TL1\uff0c#LOW\uff08-1000+4\uff09<\/p>\n
\n\tMOV TH1\uff0c#HIGH\uff08-1000+4\uff09<\/p>\n
\n\t……<\/p>\n
\n\t\u6b64\u65b9\u6cd5\u9002\u7528\u4e8e\u5b9a\u65f6\u4e2d\u65ad\u603b\u53d1\u751f\u5728\u540c\u4e00\u6761\u6307\u4ee4\u4f4d\u7f6e\uff0c\u4e14\u65e0\u5176\u5b83\u4e2d\u65ad\u6e90\u7684\u60c5\u51b5\u3002<\/p>\n
\n\t\u7ed3 \u8bed<\/p>\n
\n\t\u4e0a\u8ff05\u79cd\u65b9\u6cd5\u8bef\u5dee\u5747\u4e0d\u8d85\u8fc71\u4e2a\u673a\u5668\u5468\u671f\uff0c\u5176\u4e2d\u65b9\u6cd51\u30013\u30014\u8f83\u4e3a\u901a\u7528\uff0c\u9002\u7528\u4e8e\u4efb\u4f55\u60c5\u51b5\uff0c\u4f46\u7a0b\u5e8f\u8f83\u957f\uff1b\u65b9\u6cd52\u30015\u7b80\u5355\uff0c\u4f46\u5fc5\u987b\u6ce8\u610f\u6ee1\u8db3\u5bf9\u5e94\u6761\u4ef6\uff0c\u624d\u80fd\u4f7f\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
MCS-51 \u5355\u7247\u673a \u7684\u4e2d\u65ad\u54cd\u5e94\u5ef6\u8fdf\u65f6\u95f4\uff0c\u53d6\u51b3\u4e8e\u5176\u5b83\u4e2d\u65ad\u670d\u52a1\u7a0b\u5e8f\u662f\u5426\u5728\u8fdb\u884c\uff0c\u6216\u53d6\u51b3\u4e8e\u6b63\u5728\u6267\u884c\u7684\u662f\u4ec0\u4e48\u6837\u7684\u6307\u4ee4\u3002\u5355\u4e2d\u65ad\u7cfb\u7edf\u4e2d\u7684\u4e2d\u65ad\u54cd\u5e94\u65f6\u95f4\u4e3a3\uff5e8\u4e2a\u673a\u5668\u5468\u671f\uff3b1\uff3d\u3002\u65e0\u8bba\u662f\u54ea\u4e00\u79cd\u539f<\/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\/2354"}],"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=2354"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2354\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2354"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}