{"id":2317,"date":"2019-04-09T12:21:39","date_gmt":"2019-04-09T12:21:39","guid":{"rendered":""},"modified":"2019-04-09T20:21:55","modified_gmt":"2019-04-09T12:21:55","slug":"51%e5%8d%95%e7%89%87%e6%9c%ba%e5%af%84%e5%ad%98%e5%99%a8%e7%9a%84%e6%93%8d%e4%bd%9c%e6%b3%a8%e6%84%8f%e4%ba%8b%e9%a1%b9","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=2317","title":{"rendered":"51\u5355\u7247\u673a\u5bc4\u5b58\u5668\u7684\u64cd\u4f5c\u6ce8\u610f\u4e8b\u9879"},"content":{"rendered":"

\n\t1.\u7279\u6b8a\u529f\u80fd\u5bc4\u5b58\u5668<\/u>\u7684\u64cd\u4f5c\u6ce8\u610f\u4e8b\u9879<\/p>\n

\n\t\u5728\u64cd\u4f5c\u7279\u6b8a\u529f\u80fd\u5bc4\u5b58\u5668\u65f6\uff0c\u8981\u6ce8\u610f\u5176\u4ed6\u5404\u4f4d\u7684\u5f71\u54cd\u3002<\/p>\n

\n\t <\/div>\n

\n\t\u4f8b\u5982\uff0cTMOD\u5b9a\u65f6\u5668<\/u>\u7684\u64cd\u4f5c\u3002<\/p>\n

\n\t\u5b83\u63a7\u5236\u5b9a\u65f6\u56680\u548c\u5b9a\u65f6\u56681\uff0c\u9ad8\u56db\u4f4d\u63a7\u5236\u5b9a\u65f6\u56681\uff0c\u4f4e\u56db\u4f4d\u63a7\u5236\u5b9a\u65f6\u56680\u3002\u5f53\u6211\u4eec\u7528\u5b57\u8282\u64cd\u4f5c\u5176\u5185\u5bb9\u65f6\uff0c\u4e00\u6b21\u8d4b\u503c\u5c31\u662f\u6539\u53d8\u5176\u516b\u4f4d\u7684\u5168\u90e8\u5185\u5bb9\uff0c\u3002\u6b64\u65f6\uff0c\u82e5\u5b9a\u65f6\u56680\u5728\u53e6\u4e00\u4e2a\u51fd\u6570\u4e2d\u5e94\u7528\uff0c\u7ecf\u8fc7\u6b21\u64cd\u4f5c\u5c31\u6539\u53d8\u4e86\u5b9a\u65f6\u56680\u7684\u5185\u5bb9\uff0c\u662f\u4e0d\u5141\u8bb8\u7684\u3002\u6240\u4ee5\uff0c\u6700\u597d\u7528\u4f4d\u64cd\u4f5c\u7684\u65b9\u5f0f\u3002<\/p>\n

\n\t\"51\u5355\u7247\u673a\u5bc4\u5b58\u5668\u7684\u64cd\u4f5c\u6ce8\u610f\u4e8b\u9879\"<\/p>\n

\n\t\u4f8b\uff1a<\/p>\n

\n\t\u5b57\u8282\u64cd\u4f5c\uff1aTMOD = 0x01\uff1b \u6539\u4e3a\uff1a<\/p>\n

\n\t\u4f4d\u64cd\u4f5c\uff1a TMOD |= 0x01\uff1bTMOD &= 0xfd\uff1b<\/p>\n

\n\t2.\u5b9a\u65f6\u5668\u5b9a\u65f6\u7684\u8ba1\u7b97\uff1a<\/p>\n

\n\t\u8981\u5b9a\u65f6NS\uff0c\u90a3\u4e48\uff0c<\/p>\n

\n\tNS = T * \uff08NT \/ TSOC\uff09<\/p>\n

\n\tNS\uff1aN\u79d2\uff0cNT\uff1a\u662f\u51e0T\u7684\u5355\u7247\u673a<\/u>\uff0c\u4f8b\u598251\u662f12T\u7684\uff0c\u90a3\u4e48NT = 12\uff1bTSOC\uff1a\u5355\u7247\u673a\u7684\u65f6\u949f<\/u>\uff0c\u4f8b\u598212MHz = 12000000<\/p>\n

\n\t\u4f8b\u5982\uff1a\u5b9a\u65f6\u56681\uff0c\u65b9\u5f0f1\uff0c\u5b9a\u65f60.02S\uff0c\u90a3\u4e48\u8bf7\u8ba1\u7b97TMOD\u7684\u521d\u503c\u3002<\/p>\n

\n\t\u89e3\u7b54\uff1a<\/p>\n

\n\t\u4ee5\u77e5\uff1a\u5b9a\u65f6\u65f6\u95f4 = 0.02\uff0cNT = 12\uff0cTSOC = 12000000\uff0c\u6c42T<\/p>\n

\n\tT =\uff08 12000000 * 0.02 \uff09 \/ 12<\/p>\n

\n\t= 20000<\/p>\n

\n\t\u6240\u4ee5\uff0cTMOD\u7684\u521d\u503c\u4e3a65536 - 20000 = 45536 = 0xB1E0<\/p>\n","protected":false},"excerpt":{"rendered":"

1.\u7279\u6b8a\u529f\u80fd \u5bc4\u5b58\u5668 \u7684\u64cd\u4f5c\u6ce8\u610f\u4e8b\u9879 \u5728\u64cd\u4f5c\u7279\u6b8a\u529f\u80fd\u5bc4\u5b58\u5668\u65f6\uff0c\u8981\u6ce8\u610f\u5176\u4ed6\u5404\u4f4d\u7684\u5f71\u54cd\u3002 \u4f8b\u5982\uff0cTMOD \u5b9a\u65f6\u5668 \u7684\u64cd\u4f5c\u3002 \u5b83\u63a7\u5236\u5b9a\u65f6\u56680\u548c\u5b9a\u65f6\u56681\uff0c\u9ad8\u56db\u4f4d\u63a7\u5236\u5b9a\u65f6\u56681\uff0c\u4f4e\u56db\u4f4d\u63a7\u5236\u5b9a\u65f6\u5668<\/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\/2317"}],"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=2317"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2317\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2317"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2317"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}