{"id":2669,"date":"2019-06-24T08:41:48","date_gmt":"2019-06-24T08:41:48","guid":{"rendered":""},"modified":"2019-06-24T16:42:10","modified_gmt":"2019-06-24T08:42:10","slug":"at89s51%e5%8d%95%e7%89%87%e6%9c%ba%e4%b8%b2%e8%a1%8c%e5%8f%a3%e7%9a%84%e5%86%85%e9%83%a8%e7%bb%93%e6%9e%84%e8%a7%a3%e6%9e%90","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=2669","title":{"rendered":"AT89S51\u5355\u7247\u673a\u4e32\u884c\u53e3\u7684\u5185\u90e8\u7ed3\u6784\u89e3\u6790"},"content":{"rendered":"

\n\tAT89S51\u5355\u7247\u673a<\/u>\u4e32\u884c\u53e3\u7684\u5185\u90e8\u7ed3\u6784\u5982\u4e0b\u56fe\u6240\u793a\u3002\u5b83\u6709\u4e24\u4e2a\u7269\u7406\u4e0a\u72ec\u7acb\u7684\u63a5\u6536\u3001\u53d1\u9001\u7f13\u51b2\u5668SBUF\uff08\u5c5e\u4e8e\u7279\u6b8a\u529f\u80fd\u5bc4\u5b58\u5668<\/u>\uff09\uff0c\u53ef\u540c\u65f6\u53d1\u9001\u3001\u63a5\u6536\u6570\u636e\u3002\u53d1\u9001\u7f13\u51b2\u5668\u53ea\u80fd\u5199\u5165\u4e0d\u80fd\u8bfb\u51fa\uff0c\u63a5\u6536\u7f13\u51b2\u5668\u53ea\u80fd\u8bfb\u51fa\u4e0d\u80fd\u5199\u5165\uff0c\u4e24\u4e2a\u7f13\u51b2\u5668\u5171\u7528\u4e00\u4e2a\u7279\u6b8a\u529f\u80fd\u5bc4\u5b58\u5668\u5b57\u8282\u5730\u5740\uff0899H\uff09\u3002<\/p>\n

\n\t\"AT89S51\u5355\u7247\u673a\u4e32\u884c\u53e3\u7684\u5185\u90e8\u7ed3\u6784\u89e3\u6790\"<\/p>\n

\n\t <\/div>\n

\n\t\u4e32\u884c\u53e3\u7684\u63a7\u5236\u5bc4\u5b58\u5668\u5171\u6709\u4e24\u4e2a\uff1a\u7279\u6b8a\u529f\u80fd\u5bc4\u5b58\u5668SCON\u548cPCON\u3002\u4e0b\u9762\u4ecb\u7ecd\u8fd9\u4e24\u4e2a\u7279\u6b8a\u529f\u80fd\u5bc4\u5b58\u5668\u5404\u4f4d\u7684\u529f\u80fd\u3002<\/p>\n

\n\t1\u3001\u4e32\u884c\u53e3\u63a7\u5236\u5bc4\u5b58\u5668SCON<\/p>\n

\n\t\u4e32\u884c\u53e3\u63a7\u5236\u5bc4\u5b58\u5668SCON\uff0c\u5b57\u8282\u5730\u5740988H\uff0c\u53ef\u4f4d\u5bfb\u5740\uff0c\u4f4d\u5730\u5740\u4e3a98H\uff5e9FH\u3002SCON\u7684\u683c\u5f0f\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n

\n\t\"AT89S51\u5355\u7247\u673a\u4e32\u884c\u53e3\u7684\u5185\u90e8\u7ed3\u6784\u89e3\u6790\"<\/p>\n

\n\t\u4e0b\u9762\u4ecb\u7ecdSCON\u4e2d\u5404\u4f4d\u7684\u529f\u80fd\u3002<\/p>\n

\n\t\uff081\uff09 SM0\u3001SMl\uff1a\u4e32\u884c\u53e34\u79cd\u5de5\u4f5c\u65b9\u5f0f\u9009\u62e9\u4f4d\u3002<\/p>\n

\n\tSM0\u3001SM1\u4e24\u4f4d\u7684\u7f16\u7801\u6240\u5bf9\u5e94\u76844\u79cd\u5de5\u4f5c\u65b9\u5f0f\u89c1\u4e0b\u8868\u3002<\/p>\n

\n\t\u8868 \u4e32\u884c\u53e3\u76844\u79cd\u5de5\u4f5c\u65b9\u5f0f<\/p>\n

\n\t\"AT89S51\u5355\u7247\u673a\u4e32\u884c\u53e3\u7684\u5185\u90e8\u7ed3\u6784\u89e3\u6790\"<\/p>\n

\n\t\uff082\uff09 SM2\uff1a\u591a\u673a\u901a\u4fe1\u63a7\u5236\u4f4d\u3002<\/p>\n

\n\t\u56e0\u4e3a\u591a\u673a\u901a\u4fe1\u662f\u5728\u65b9\u5f0f2\u548c\u65b9\u5f0f3\u4e0b\u8fdb\u884c\u7684\uff0c\u56e0\u6b64SM2\u4f4d\u4e3b\u8981\u7528\u4e8e\u65b9\u5f0f2\u6216\u65b9\u5f0f3\u4e2d\u3002\u5f53\u4e32\u884c\u53e3\u4ee5\u65b9\u5f0f2\u6216\u65b9\u5f0f3\u63a5\u6536\u65f6\uff0c\u5982\u679cSM2=1\uff0c\u5219\u53ea\u6709\u5f53\u63a5\u6536\u5230\u7684\u7b2c9\u4f4d\u6570\u636e\uff08RB8\uff09\u4e3a1\u65f6\uff0c\u624d\u4f7fRI\u7f6el\uff0c\u4ea7\u751f\u4e2d\u65ad\u8bf7\u6c42\uff0c\u5e76\u5c06\u63a5\u6536\u5230\u7684\u524d8\u4f4d\u6570\u636e\u9001\u4ebaSBUF;\u5f53\u63a5\u6536\u5230\u7684\u7b2c9\u4f4d\u6570\u636e\uff08RB8\uff09\u4e3a0\u65f6\uff0c\u5219\u5c06\u63a5\u6536\u5230\u7684\u524d8\u4f4d\u6570\u636e\u4e22\u5f03\u3002\u800c\u5f53SM2=0\u65f6\uff0c\u5219\u4e0d\u8bba\u7b2c9\u4f4d\u6570\u636e\u662fl\u8fd8\u662f0\uff0c\u90fd\u5c06\u524d8\u4f4d\u6570\u636e\u9001\u5165SBUF\u4e2d\uff0c\u5e76\u4f7fRI\u7f6e1\uff0c\u4ea7\u751f\u4e2d\u65ad\u8bf7\u6c42\u3002<\/p>\n

\n\t\u5728\u65b9\u5f0f1\u65f6\uff0c\u5982\u679cSM2=1\uff0c\u5219\u53ea\u6709\u6536\u5230\u6709\u6548\u7684\u505c\u6b62\u4f4d\u65f6\u624d\u4f1a\u6fc0\u6d3bRI\u3002<\/p>\n

\n\t\u5728\u65b9\u5f0f0\u65f6\uff0cSM2\u5fc5\u987b\u4e3a0\u3002<\/p>\n

\n\t\uff083\uff09REN\uff1a\u5141\u8bb8\u4e32\u884c\u63a5\u6536\u4f4d\u3002<\/p>\n

\n\t\u7531\u8f6f\u4ef6\u7f6e1\u6216\u6e050\u3002<\/p>\n

\n\tREN=1\uff0c\u5141\u8bb8\u4e32\u884c\u53e3\u63a5\u6536\u6570\u636e\u3002<\/p>\n

\n\tREN=O\uff0c\u7981\u6b62\u4e32\u884c\u53e3\u63a5\u6536\u6570\u636e\u3002<\/p>\n

\n\t\uff084\uff09TB8\uff1a\u53d1\u9001\u7684\u7b2c9\u4f4d\u6570\u636e\u3002<\/p>\n

\n\t\u5728\u65b9\u5f0f2\u548c\u65b9\u5f0f3\u65f6\uff0cTB8\u662f\u8981\u53d1\u9001\u7684\u7b2c9\u4f4d\u6570\u636e\uff0c\u5176\u503c\u7531\u8f6f\u4ef6\u7f6el\u6216\u6e05O\u3002\u5728\u53cc\u673a\u4e32\u884c\u901a\u4fe1\u65f6\uff0cTB8\u4e00\u822c\u4f5c\u4e3a\u5947\u5076\u6821\u9a8c\u4f4d\u4f7f\u7528;\u5728\u591a\u673a\u4e32\u884c\u901a\u4fe1\u4e2d\u7528\u6765\u8868\u793a\u4e3b\u673a\u53d1\u9001\u7684\u662f\u5730\u5740\u5e27\u8fd8\u662f\u6570\u636e\u5e27\uff0cTB8=1\u4e3a\u5730\u5740\u5e27\uff0cTB8=0\u4e3a\u6570\u636e\u5e27\u3002<\/p>\n

\n\t\uff085\uff09 RB8\uff1a\u63a5\u6536\u7684\u7b2c9\u4f4d\u6570\u636e\u3002<\/p>\n

\n\t\u5de5\u4f5c\u5728\u65b9\u5f0f2\u548c\u65b9\u5f0f3\u65f6\uff0cRB8\u5b58\u653e\u63a5\u6536\u5230\u7684\u7b2c9\u4f4d\u6570\u636e\u3002\u5728\u65b9\u5f0f1\uff0c\u5982\u679cSM2=0\uff0cRB8\u662f\u63a5\u6536\u5230\u7684\u505c\u6b62\u4f4d\u3002\u5728\u65b9\u5f0f0\uff0c\u4e0d\u4f7f\u7528RB8\u3002<\/p>\n

\n\t\uff086\uff09TI<\/u>\uff1a\u53d1\u9001\u4e2d\u65ad\u6807\u5fd7\u4f4d\u3002<\/p>\n

\n\t\u4e32\u884c\u53e3\u5de5\u4f5c\u5728\u65b9\u5f0f0\u65f6\uff0c\u4e32\u884c\u53d1\u9001\u7684\u7b2c8\u4f4d\u6570\u636e\u7ed3\u675f\u65f6TI\u7531\u786c\u4ef6\u7f6e1\uff0c\u5728\u5176\u4ed6\u5de5\u4f5c\u65b9\u5f0f\u4e2d\uff0c\u4e32\u884c\u53e3\u53d1\u9001\u505c\u6b62\u4f4d\u7684\u5f00\u59cb\u65f6\u7f6eTI\u4e3a1\u3002TI=1\uff0c\u8868\u793a\u4e00\u5e27\u6570\u636e\u53d1\u9001\u7ed3\u675f\u3002TI\u4f4d\u7684\u72b6\u6001\u53ef\u4f9b\u8f6f\u4ef6\u67e5\u8be2\uff0c\u4e5f\u53ef\u7533\u8bf7\u4e2d\u65ad\u3002CPU<\/u>\u54cd\u5e94\u4e2d\u65ad\u540e\uff0c\u5728\u4e2d\u65ad\u670d\u52a1\u7a0b\u5e8f\u4e2d\u5411SBUF\u5199\u5165\u8981\u53d1\u9001\u7684\u4e0b\u4e00\u5e27\u6570\u636e\u3002TI\u5fc5\u987b\u7531\u8f6f\u4ef6\u6e050\u3002<\/p>\n

\n\t\uff087\uff09 RI\uff1a\u63a5\u6536\u4e2d\u65ad\u6807\u5fd7\u4f4d\u3002<\/p>\n

\n\t\u4e32\u884c\u53e3\u5de5\u4f5c\u5728\u65b9\u5f0f0\u65f6\uff0c\u63a5\u6536\u5b8c\u7b2c8\u4f4d\u6570\u636e\u65f6\uff0cRI\u7531\u786c\u4ef6\u7f6e1\u3002\u5728\u5176\u4ed6\u5de5\u4f5c\u65b9\u5f0f\u4e2d\uff0c\u4e32\u884c\u63a5\u6536\u5230\u505c\u6b62\u4f4d\u65f6\uff0c\u8be5\u4f4d\u7f6el\u3002RI=1\uff0c\u8868\u793a\u4e00\u5e27\u6570\u636e\u63a5\u6536\u5b8c\u6bd5\uff0c\u5e76\u7533\u8bf7\u4e2d\u65ad\uff0c\u8981\u6c42CPU\u4ece\u63a5\u6536SBUF\u53d6\u8d70\u6570\u636e\u3002\u8be5\u4f4d\u7684\u72b6\u6001\u4e5f\u53ef\u4f9b\u8f6f\u4ef6\u67e5\u8be2\u3002RI\u5fc5\u987b\u7531\u8f6f\u4ef6\u6e050\u3002<\/p>\n

\n\tSCON\u7684\u6240\u6709\u4f4d\u90fd\u53ef\u8fdb\u884c\u4f4d\u64cd\u4f5c\u6e050\u6216\u7f6e1\u3002<\/p>\n

\n\t2\u3001\u7279\u6b8a\u529f\u80fd\u5bc4\u5b58\u5668PCON<\/p>\n

\n\t\u7279\u6b8a\u529f\u80fd\u5bc4\u5b58\u5668PCON\u5b57\u8282\u5730\u5740\u4e3a87H\uff0c\u4e0d\u80fd\u4f4d\u5bfb\u5740\u3002PCON\u7684\u683c\u5f0f\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n

\n\t\"AT89S51\u5355\u7247\u673a\u4e32\u884c\u53e3\u7684\u5185\u90e8\u7ed3\u6784\u89e3\u6790\"<\/p>\n

\n\t\u4e0b\u9762\u4ecb\u7ecdPCON\u4e2d\u5404\u4e2a\u4f4d\u7684\u529f\u80fd\u3002\u5176\u4e2d\uff0c\u4ec5\u4ec5\u662f\u6700\u9ad8\u4f4dSMOD\u4e0e\u4e32\u884c\u53e3\u6709\u5173\u3002<\/p>\n

\n\tSMOD\u4f4d\uff1a\u6ce2\u7279\u7387\u9009\u62e9\u4f4d\u3002<\/p>\n

\n\t\u4f8b\u5982\uff0c\u65b9\u5f0f1\u7684\u6ce2\u7279\u7387\u8ba1\u7b97\u516c\u5f0f\u4e3a<\/p>\n

\n\t\"AT89S51\u5355\u7247\u673a\u4e32\u884c\u53e3\u7684\u5185\u90e8\u7ed3\u6784\u89e3\u6790\"<\/p>\n

\n\t\u5f53SMOD=1\u65f6\uff0c\u8981\u6bd4SMOD=O\u65f6\u7684\u6ce2\u7279\u7387\u52a0\u500d\uff0c\u6240\u4ee5\u4e5f\u79f0SMOD\u4f4d\u4e3a\u6ce2\u7279\u7387\u500d\u589e\u4f4d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

AT89S51 \u5355\u7247\u673a \u4e32\u884c\u53e3\u7684\u5185\u90e8\u7ed3\u6784\u5982\u4e0b\u56fe\u6240\u793a\u3002\u5b83\u6709\u4e24\u4e2a\u7269\u7406\u4e0a\u72ec\u7acb\u7684\u63a5\u6536\u3001\u53d1\u9001\u7f13\u51b2\u5668SBUF\uff08\u5c5e\u4e8e\u7279\u6b8a\u529f\u80fd \u5bc4\u5b58\u5668 \uff09\uff0c\u53ef\u540c\u65f6\u53d1\u9001\u3001\u63a5\u6536\u6570\u636e\u3002\u53d1\u9001\u7f13\u51b2\u5668\u53ea\u80fd\u5199\u5165\u4e0d\u80fd\u8bfb\u51fa\uff0c\u63a5\u6536\u7f13\u51b2<\/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\/2669"}],"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=2669"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2669\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2669"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2669"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2669"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}