{"id":2346,"date":"2019-04-17T11:59:54","date_gmt":"2019-04-17T11:59:54","guid":{"rendered":""},"modified":"2019-04-17T20:00:12","modified_gmt":"2019-04-17T12:00:12","slug":"mcs51%e5%8d%95%e7%89%87%e6%9c%ba%e5%9c%a8%e6%95%b0%e6%8d%ae%e9%87%87%e9%9b%86%e7%9b%91%e6%8e%a7%e7%b3%bb%e7%bb%9f%e4%b8%ad%e7%9a%84%e5%ba%94%e7%94%a8","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=2346","title":{"rendered":"MCS51\u5355\u7247\u673a\u5728\u6570\u636e\u91c7\u96c6\u76d1\u63a7\u7cfb\u7edf\u4e2d\u7684\u5e94\u7528"},"content":{"rendered":"

\n\t1.\u5f15\u8a00<\/p>\n

\n\tMCS51\u5355\u7247\u673a<\/u>\u6807\u51c6\u6784\u6210\u53ea\u6709\u4e00\u7ec4\u5168\u53cc\u5de5UART<\/u>\u4e32\u884c\u53e3\uff0cP3.0-RXD\u6536\u3001P3.1-TXD\u53d1\uff0c\u5982\u679c\u8981\u5b8c\u6210\u591a\u8def\u4e32\u53e3\u6536\u53d1\uff0c\u4e00\u822c\u4f7f\u7528\u5916\u90e8\u6269\u5c55\u82af\u7247\uff0c\u4f8b\u5982\uff1aGM8123\/25\uff0c\u5b8c\u6210\u4e00\u6269\u591a\u8def\u4e32\u53e3\uff0c\u4f46\u662f\uff0c\u7531\u4e8e\u589e\u52a0\u6269\u5c55\u82af\u7247\uff0c\u9020\u6210\u786c\u4ef6\u6210\u672c\u589e\u52a0\uff0cPCB<\/u>\u677f\u9762\u589e\u5927\uff0c\u6297\u5e72\u6270\u6027\u4e0b\u964d\u7b49\u4e0d\u826f\u56e0\u7d20\uff0c\u56e0\u6b64\u80fd\u5c3d\u91cf\u4f7f\u7528\u73b0\u6709\u4e32\u53e3\uff0c\u5229\u7528\u5206\u65f6\u5207\u6362\u6280\u672f\uff0c\u5b8c\u6210\u4e32\u884c\u53e3\u4e0d\u540c\u7c7b\u578b\uff0c\u4e0d\u540c\u7aef\u53e3\u7684\u6570\u636e\u4f20\u9001\u662f\u4f18\u5148\u9009\u62e9\u3002<\/p>\n

\n\t <\/div>\n

\n\t2.\u786c\u4ef6\u529f\u80fd\u7b80\u8ff0<\/p>\n

\n\t\u672c\u8bbe\u8ba1\u7528\u4e8e\u6570\u636e\u91c7\u96c6\u76d1\u63a7\u7cfb\u7edf\u5982\u56fe1\u6240\u793a\u3002\u91c7\u7528485\u4e32\u884c\u53e3\u5b8c\u6210\u6570\u636e\u91c7\u96c6\uff0c\u548c232\u4e32\u53e3\u8f93\u51fa\u6253\u5370\u529f\u80fd\uff0c\u8fd9\u6837\u4f7f\u5f97\u63a5\u53e3\u8fde\u7ebf\u7b80\u5355\uff0c\u53ef\u9760\u6027\u9ad8\u3002<\/p>\n

\n\t\"MCS51\u5355\u7247\u673a\u5728\u6570\u636e\u91c7\u96c6\u76d1\u63a7\u7cfb\u7edf\u4e2d\u7684\u5e94\u7528\"<\/p>\n

\n\tRS-485<\/u>\u5de5\u4f5c\u7279\u5f81\uff1a\u53d1\u9001\u7aef\uff1a\u903b\u8f91“1″\u4e24\u7ebf\u95f4\u7684\u7535\u538b\u5dee\u4e3a+2\u81f36V\u8868\u793a;\u903b\u8f91”0″\u4ee5\u4e24\u7ebf\u95f4\u7684\u7535\u538b\u5dee\u4e3a-2\u81f36V\u8868\u793a\u3002\u63a5\u6536\u7aef\uff1aA\u6bd4B\u9ad8200mV\u4ee5\u4e0a\u5373\u8ba4\u4e3a\u662f\u903b\u8f91“1″\uff0cA\u6bd4B\u4f4e200mV\u4ee5\u4e0a\u5373\u8ba4\u4e3a\u662f\u903b\u8f91”0″\u3002RS<\/u>485\u603b\u7ebf\u56e0\u5176\u786c\u4ef6\u8bbe\u8ba1\u548c\u901a\u4fe1\u534f\u8bae\u7b80\u5355\u3001\u63a7\u5236\u65b9\u4fbf\u3001\u6210\u672c\u4f4e\u5ec9\u3001\u4f20\u8f93\u8ddd\u79bb\u8fdc\u4ee5\u53ca\u53ef\u6302\u63a5\u591a\u4e2a\u4ece\u8bbe\u5907\u7b49\u4f18\u70b9\uff0c\u4fbf\u4e8e\u5bf9\u5206\u5e03\u5f0f\u7684\u5404\u4e2a\u73b0\u573a\u6d4b\u63a7\u8bbe\u5907\u5b9e\u73b0\u96c6\u4e2d\u63a7\u5236\uff0c485\u73b0\u573a\u603b\u7ebf\u6280\u672f\u5f97\u5230\u4e86\u5e7f\u6cdb\u7684\u5e94\u7528\u3002\u672c\u8bbe\u8ba1\u91c7\u7528MAX485E\u82af\u7247\uff0c\u5b83\u662f\u4e00\u6b3e\u7528\u4e8eRS485\u548cRS422\u901a\u4fe1\u7684\u4f4e\u529f\u8017\u603b\u7ebf\u6536\u53d1\u5668<\/u>\uff0c\u5177\u6709±15kV\u9759\u7535\u653e\u7535\u51b2\u51fb\u4fdd\u62a4\u548c\u9650\u6446\u7387\u9a71\u52a8\u7279\u6027\uff0c\u51cf\u5c0f\u4e86\u7535\u78c1\u5e72\u6270\u548c\u7ec8\u7aef\u7535\u7f06\u53cd\u5c04\uff0c\u5141\u8bb8\u9ad8\u8fbe250kbps\u901f\u7387\u7684\u65e0\u5dee\u9519\u6570\u636e\u4f20\u8f93\u3002\u8be5\u82af\u7247\u53ea\u9700\u75285V\u7684\u5355\u7535\u6e90\u7535\u538b\u4f9b\u7535\u5373\u53ef\u6b63\u5e38\u5de5\u4f5c\uff0c\u800c\u4e14\u5728\u4e00\u6761\u603b\u7ebf\u4e0a\u6700\u591a\u53ef\u4ee5\u8fde\u63a532\u4e2a\u8d1f\u8f7d\u3002\u5229\u7528\u8be5\u82af\u7247\u53ef\u4ee5\u6781\u5927\u5730\u7b80\u5316\u5355\u7247\u673a\u548cRS485\u603b\u7ebf\u7684\u63a5\u53e3\u7535\u8def<\/u>\u8bbe\u8ba1\u3002<\/p>\n

\n\tRS232\u63a5\u53e3\u662f\u4f7f\u7528\u5f02\u6b65UART\u4e32\u884c\u63a5\u53e3\uff0c\u5176\u9ad8\u4f4e\u7535\u5e73\u4fe1\u53f7\u4e3a-12V~+12V\uff0c\u56e0\u6b64\u6297\u5e72\u6270\u6027\u4f18\u4e8eTTL\u7535\u5e73\uff0c\u4f20\u9001\u8ddd\u79bb\u53ef\u8fbe10\u591a\u7c73\uff0c\u5355\u7247\u673a\u4e0e\u6253\u5370\u673a\u6570\u636e\u4ea4\u6362\u5c31\u4f7f\u7528\u6b64\u79cd\u901a\u4fe1\u8bbe\u8ba1\uff0c\u5b83\u5177\u6709\u7528\u7ebf\u5c11\uff0c\u63a5\u53e3\u7b80\u5355\u53ef\u9760\u7b49\u4f18\u70b9\u3002\u5355\u7247\u673aTTL-RS232\u7535\u5e73\u8f6c\u6362\u63a5\u53e3\u7535\u8def\u91c7\u7528Maxim\u516c\u53f8\u751f\u4ea7\u7684MAX232\u7535\u5e73\u8f6c\u6362\u82af\u7247\u8bbe\u8ba1\u3002MAX232\u82af\u7247\u53ea\u9700\u75285V\u7684\u5355\u7535\u6e90\u4f9b\u7535\uff0c\u5916\u52a04\u4e2a\u7535\u5bb9<\/u>\uff0c\u5c31\u53ef\u5b9e\u73b0\u5355\u7247\u673aTTL\u7535\u5e73\u548cRS232\u7535\u5e73\u4e4b\u95f4\u7684\u8f6c\u6362\uff0c\u5e76\u76f4\u63a5\u9a71\u52a8RS232\u603b\u7ebf\u8fdb\u884c\u6570\u636e\u4f20\u8f93\uff0c\u4f7f\u7528\u5341\u5206\u65b9\u4fbf\uff0c\u5176\u6700\u9ad8\u4f20\u8f93\u901f\u7387\u53ef\u8fbe20kbps.<\/p>\n

\n\tRS232\/RS485\u5728\u4e32\u53e3\u4f20\u9001\u4e2d\u5404\u6709\u4f18\u7f3a\u70b9\uff0c\u5728\u6b64\u505a\u4e00\u7b80\u5355\u6bd4\u8f83\uff1a<\/p>\n

\n\t\uff081\uff09\u4ece\u63a5\u7ebf\u4e0a\uff0cRS232\u662f\u4e09\u7ebf\u5236\uff08\u6536\u3001\u53d1\u3001\u5730\uff09\uff0cRS485\u662f\u4e24\u7ebf\u5236\uff08A\u3001B\uff09;\uff082\uff09\u4ece\u4f20\u8f93\u8ddd\u79bb\u4e0a\uff0cRS232\u53ea\u80fd\u4f20\u8f9315\u7c73\u5de6\u53f3\uff0cRS485\u6700\u8fdc\u53ef\u4ee5\u4f20\u8f931200\u7c73;\uff083\uff09\u4ece\u901f\u7387\u4e0a\uff0cRS232\u662f\u5168\u53cc\u5de5\u4f20\u8f93\uff0cRS485\u662f\u534a\u53cc\u5de5\u4f20\u8f93;\uff084\uff09\u4ece\u534f\u8bae\u5c42\u4e0a\uff0cRS232\u53ea\u652f\u6301\u70b9\u5bf9\u70b9\u901a\u8baf\uff081:1\uff09\uff0cRS485\u652f\u6301\u603b\u7ebf\u5f62\u5f0f\u901a\u8baf\uff081:N\uff09\u3002\u5728\u672c\u8bbe\u8ba1\u4e2dRS232\u88ab\u7528\u4e8e\u8ddd\u79bb\u4e0d\u8fdc\u7684\u6253\u5370\u673a\u70b9\u5bf9\u70b9\u4e32\u53e3\u8f93\u51fa;\u800c\u6570\u636e\u91c7\u96c6\u5219\u9700\u8981\u5728\u591a\u4e2a\u7aef\u70b9\u8bbe\u5907\u4e0a\uff0c\u4e14\u8ddd\u79bb\u8f83\u8fdc\u7684\u5730\u65b9\u6536\u96c6\uff0c\u4e8e\u662f\u91c7\u7528\u4e86RS485\u603b\u7ebf\u6280\u672f\u6765\u5b9e\u73b0\u3002\u5355\u7247\u673a\u4e00\u7ec4\u4e32\u53e3\u8981\u5b8c\u6210\u4e24\u7ec4\u4e0d\u540c\u7535\u5e73\u4f20\u9001\uff0c\u5173\u952e\u662f\u9700\u8981\u5206\u65f6\u5207\u6362\u4e32\u53e3\u6a21\u5f0f\uff0c\u672c\u8bbe\u8ba1\u91c7\u7528\u6a21\u62df\u5f00\u5173CD4053\u82af\u7247\uff0c\u901a\u8fc7P1.5\u63a7\u5236\u5b8c\u6210\u4e86485\u3001232\u4e32\u53e3\u5206\u79bb\uff0c\u5229\u7528\u5b8c\u6210\u8f6f\u4ef6\u5206\u65f6\u8f93\u5165\u3001\u8f93\u51fa\u5904\u7406\u529f\u80fd\u3002\u8be5\u7535\u8def\u5b9e\u73b0\u7b80\u5355\uff0c\u786c\u4ef6\u8d44\u6e90\u5229\u7528\u7387\u9ad8\u3002<\/p>\n

\n\t\u672c\u8bbe\u8ba1\u6253\u5370\u673aRS232\u901a\u8baf\u534f\u8bae\u65b9\u5f0f\u91c7\u7528ASCII\u65b9\u5f0f\u3002\u9ed8\u8ba4\u6570\u636e\u683c\u5f0f\u4e3a\uff1a1\u4f4d\u8d77\u59cb\u4f4d\uff0c8\u4f4d\u6570\u636e\u4f4d\uff0c1\u4f4d\u505c\u6b62\u4f4d\uff0c\u65e0\u5947\u5076\u6821\u9a8c\uff0c\u6ce2\u7279\u7387\u4e3a2400bps.RS485\u91c7\u7528\u534a\u53cc\u5de5\u6a21\u5f0f\uff0c\u7531P1.3\u63a7\u5236\u6536\/\u53d1\u529f\u80fd\uff0c\u5176\u4e32\u53e3\u5206\u914d\u7535\u8def\u5982\u56fe2\u6240\u793a\u3002<\/p>\n

\n\t\"MCS51\u5355\u7247\u673a\u5728\u6570\u636e\u91c7\u96c6\u76d1\u63a7\u7cfb\u7edf\u4e2d\u7684\u5e94\u7528\"<\/p>\n

\n\t3.\u8f6f\u4ef6\u529f\u80fd\u7b80\u4ecb<\/p>\n

\n\t\u672c\u7cfb\u7edf\u6839\u636e\u4e0d\u540c\u529f\u80fd\uff0c\u7531\u51e0\u5341\u4e2a\u5b50\u7a0b\u5e8f\u6a21\u5757\u7ec4\u6210\uff0c\u73b0\u5c06\u76f8\u5173\u4e32\u53e3\u5206\u914d\u5b9e\u73b0\u6570\u636e\u6536\u53d1\u7684\u7a0b\u5e8f\u8fdb\u884c\u7b80\u8981\u5206\u6790\uff08\u6c47\u7f16\u8bed\u8a00\u63cf\u8ff0\uff09<\/p>\n

\n\t4.\u7ed3\u8bba<\/p>\n

\n\t\u672c\u8bbe\u8ba1\u901a\u8fc7\u6a21\u62df\u5f00\u5173CD4053\u5c06\u4e00\u8def\u5355\u7247\u673a\u4e32\u884c\u53e3\u6536\u53d1\u4fe1\u53f7\uff0c\u5206\u65f6\u8f6c\u6362\u6210\u4e24\u8def\u4e32\u884c\u53e3\uff0c\u7136\u540e\u4f7f\u7528\u4e0d\u540c\u7684\u63a5\u53e3\u82af\u7247\uff0c\u5b9e\u73b0\u4e86RS232\u548c485\u603b\u7ebf\u540c\u5728\u4e00\u4e2a\u7cfb\u7edf\u4e0b\u5206\u65f6\u5b8c\u6210\u4e86\u901a\u4fe1\u5de5\u4f5c\u3002\u8be5\u8bbe\u8ba1\u4f18\u70b9\uff1a\u5145\u5206\u5229\u7528\u4e86\u4e32\u884c\u53e3\u6570\u636e\u4f20\u8f93\u7ebf\u5c11\u7684\u4f18\u52bf\uff0c\u63a5\u53e3\u7b80\u5355\uff0c\u5e76\u8282\u7701\u4e86\u4e0d\u5fc5\u8981\u7684\u786c\u4ef6\u5f00\u9500\uff0c\u589e\u52a0\u4e86\u4fe1\u606f\u4f20\u9001\u7684\u53ef\u9760\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

1.\u5f15\u8a00 MCS51 \u5355\u7247\u673a \u6807\u51c6\u6784\u6210\u53ea\u6709\u4e00\u7ec4\u5168\u53cc\u5de5 UART \u4e32\u884c\u53e3\uff0cP3.0-RXD\u6536\u3001P3.1-TXD\u53d1\uff0c\u5982\u679c\u8981\u5b8c\u6210\u591a\u8def\u4e32\u53e3\u6536\u53d1\uff0c\u4e00\u822c\u4f7f\u7528\u5916\u90e8\u6269\u5c55\u82af\u7247\uff0c\u4f8b\u5982\uff1aGM8123\/25\uff0c\u5b8c\u6210\u4e00\u6269\u591a\u8def\u4e32\u53e3\uff0c\u4f46\u662f\uff0c\u7531\u4e8e\u589e\u52a0<\/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\/2346"}],"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=2346"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2346\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2346"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}