{"id":2274,"date":"2019-03-23T03:30:50","date_gmt":"2019-03-23T03:30:50","guid":{"rendered":""},"modified":"2019-03-23T11:31:26","modified_gmt":"2019-03-23T03:31:26","slug":"51%e5%8d%95%e7%89%87%e6%9c%ba%e7%9a%84%e6%95%b0%e5%80%bc%e5%86%99%e5%85%a5%e6%96%b9%e6%b3%95%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=2274","title":{"rendered":"51\u5355\u7247\u673a\u7684\u6570\u503c\u5199\u5165\u65b9\u6cd5\u4ecb\u7ecd"},"content":{"rendered":"

\n\t1.\u5728MCU<\/u>\u4e2d\u90fd\u662f\u4ee5\u4e8c\u8fdb\u5236\u7684\u5f62\u5f0f\u8fdb\u884c\u8ba1\u7b97\u7684\u3002<\/p>\n

\n\t2.\u5728\u7f16\u7a0b\u65f6\uff0c\u6211\u4eec\u901a\u5e38\u7528\u5230\u7684\u6709\u5341\u8fdb\u5236\u7684\u6570\u503c\u5f62\u5f0f\u548c\u5341\u516d\u8fdb\u5236\u7684\u6570\u503c\u5f62\u5f0f\uff0c\u598252\uff0c0xfe\uff1b<\/p>\n

\n\t <\/div>\n

\n\t3.\u6570\u503c\u7684\u5927\u5c0f\u7531\u6570\u636e\u7684\u7c7b\u578b\u6765\u51b3\u5b9a\u3002<\/p>\n

\n\t4.\u5e38\u7528\u7684\u6709“unsigned int”\u548c“unsigned char”\u3002<\/p>\n

\n\t“unsigned char”\u7684\u8303\u56f4\u662f“0-255”\uff0c \u4e0e\u5355\u7247\u673a<\/u>\u7aef\u53e3\u76848\u4f4d\u7684\u6700\u5927\u503c\uff080xff\uff09\u76f8\u5bf9\u5e94\u3002<\/p>\n

\n\t“unsigned int”\u7684\u8303\u56f4\u662f“0-65535”\uff0c\u4e0e\u4e4b\u5bf9\u5e94\u7684\u662f“0xffff”\u3002<\/p>\n

\n\t\"51\u5355\u7247\u673a\u7684\u6570\u503c\u5199\u5165\u65b9\u6cd5\u4ecb\u7ecd\"
\n\t <\/p>\n

\n\t5.\u6570\u503c\u7684\u5199\u5165\uff1a<\/p>\n

\n\t\u572851\u5355\u7247\u673a\u4e2d\uff0c\u5199\u5165\u7684\u6570\u503c\u53ef\u4ee5\u662f\u5341\u8fdb\u5236\u548c\u5341\u516d\u8fdb\u5236\uff0c\u4f46\u4e0d\u80fd\u662f\u4e8c\u8fdb\u5236\u3002<\/p>\n

\n\t\u6bd4\u5982\uff1aP1=4; P1=0X04;<\/p>\n

\n\t\u5f53\u5199\u8bed\u53e5“P1=4;”\u65f6<\/p>\n

\n\tP1^0——P1^7\u7684\u7535\u5e73\u4f9d\u6b21\u4e3a “0010 0000”<\/p>\n

\n\t\u5f53\u5199\u8bed\u53e5“P1=65;”\u65f6<\/p>\n

\n\tP1^0——P1^7\u7684\u7535\u5e73\u4f9d\u6b21\u4e3a “1000 0010”\uff1b 65\u7684\u5341\u516d\u8fdb\u5236\u7801\u4e3a\uff1a0x41<\/p>\n

\n\t\u4ece\u4ee5\u4e0a\u4e24\u4e2a\u6570\u503c\u53ef\u4ee5\u53d1\u73b0\uff0c\u7aef\u53e3\u7684\u4f4e\u4f4d\u5bf9\u5e94\u7684\u662f\u6570\u503c\u7684\u4f4e\u4f4d\uff0c\u7aef\u53e3\u7684\u9ad8\u4f4d\u5bf9\u5e94\u7684\u662f\u6570\u503c\u7684\u9ad8\u4f4d\u3002<\/p>\n

\n\t6.\u5728\u7528\u6570\u7801\u7ba1\u663e\u793a\u6570\u5b57\u7684\u65f6\u5019\uff0c\u662f\u4e00\u4e2a\u4f4d\u6570\u5b57\uff0c\u4e00\u4f4d\u6570\u5b57\u7684\u5199\u5165\uff0c\u6bd4\u5982\u8bf426\uff0c\u5148\u51992\uff0c\u518d\u51996.<\/p>\n

\n\t\u4ee5\u7528\u6570\u7801\u7ba1\u51992\u4e3a\u4f8b\uff1a\u5c06\u6570\u7801\u7ba1\u7684\u65ad\u9009abcdefgdp\u5206\u522b\u63a5\u5230P1^0\uff0cP1^1……P1^7;<\/p>\n

\n\t\u82e5\u8981\u663e\u793a2\uff0c\u5219\u8981\u6c42abcdefgdp\u4f9d\u6b21\u4e3a\uff1a1101 1010<\/p>\n

\n\t\u5982\u679c\u6309\u7167\u7aef\u53e3\u7684\u5bf9\u5e94\uff0c\u5199P1=0xda\uff0c\u90a3\u5c31\u9519\u4e86\u3002<\/p>\n

\n\t\u4e8c\u8fdb\u5236\u4e5f\u662f\u9ad8\u4f4d\u5728\u524d\uff0c\u4f4e\u4f4d\u5728\u540e\uff0c\u6240\u4ee5\u7aef\u53e3\u5199\u6570\u636e\u65f6\u4e5f\u8981\u4f4e\u5bf9\u4f4e\uff0c\u9ad8\u5bf9\u9ad8\uff0c\u6240\u4ee5\u8981\u5c06“1101 1010”\u4e3a<\/p>\n

\n\t“0101 1011”<\/p>\n

\n\t\u6240\u4ee5\u6570\u7801\u7ba1\u663e\u793a2\u7684\u5341\u516d\u8fdb\u5236\u7801\u4e3a“P1=0x5b”<\/p>\n

\n\t\u540c\u7406\u53ef\u7b97\u51fa“0-9”\u7684\u5341\u516d\u8fdb\u5236\u7801\u4f9d\u6b21\u4e3a“0x3f\uff0c0x06\uff0c0x5b\uff0c0x4f\uff0c0x66\uff0c0x6d\uff0c0x7d\uff0c0x07\uff0c0x7f\uff0c0x6f”<\/p>\n","protected":false},"excerpt":{"rendered":"

1.\u5728 MCU \u4e2d\u90fd\u662f\u4ee5\u4e8c\u8fdb\u5236\u7684\u5f62\u5f0f\u8fdb\u884c\u8ba1\u7b97\u7684\u3002 2.\u5728\u7f16\u7a0b\u65f6\uff0c\u6211\u4eec\u901a\u5e38\u7528\u5230\u7684\u6709\u5341\u8fdb\u5236\u7684\u6570\u503c\u5f62\u5f0f\u548c\u5341\u516d\u8fdb\u5236\u7684\u6570\u503c\u5f62\u5f0f\uff0c\u598252\uff0c0xfe\uff1b 3.\u6570\u503c\u7684\u5927\u5c0f\u7531\u6570\u636e\u7684\u7c7b\u578b\u6765\u51b3\u5b9a\u3002 4.\u5e38\u7528\u7684\u6709unsig<\/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\/2274"}],"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=2274"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2274\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2274"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2274"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}