{"id":274695,"date":"2020-12-18T16:22:33","date_gmt":"2020-12-18T08:22:33","guid":{"rendered":"http:\/\/4563.org\/?p=274695"},"modified":"2020-12-18T16:22:33","modified_gmt":"2020-12-18T08:22:33","slug":"keil-c51-%e6%97%b6%e5%88%86%e7%a7%92%e4%b8%8d%e8%bf%90%e8%a1%8c%e6%98%af%e4%bb%80%e4%b9%88%e9%97%ae%e9%a2%98%ef%bc%9f-%e5%8d%95%e7%89%87%e6%9c%ba%e4%ba%a4%e6%b5%81%e5%8c%ba","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=274695","title":{"rendered":"Keil C51 \u65f6\u5206\u79d2\u4e0d\u8fd0\u884c\u662f\u4ec0\u4e48\u95ee\u9898\uff1f-\u5355\u7247\u673a\u4ea4\u6d41\u533a"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Keil C51 \u65f6\u5206\u79d2\u4e0d\u8fd0\u884c\u662f\u4ec0\u4e48\u95ee\u9898\uff1f-\u5355\u7247\u673a\u4ea4\u6d41\u533a               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : guoxiping01 <\/span>  <span><i><\/i> 22<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u8fd9\u6bb5\u65f6\u5206\u79d2C51\u7a0b\u5e8f\u95ee\u9898\u5728\u4ec0\u4e48\u5730\u65b9\uff08S\u79d2 M\u5206 h\u5c0f\u65f6\uff09\uff1f<br \/>void main ()<br \/>{<br \/>&nbsp;&nbsp;while(1)<br \/>&nbsp; &nbsp;{<br \/>&nbsp; &nbsp;&nbsp;&nbsp;s=s++;<br \/>&nbsp; &nbsp;&nbsp;&nbsp;if(s==60)s=0,m++;<br \/>&nbsp; &nbsp;&nbsp; &nbsp;{ <br \/>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;if(m==60)m=0,h++;<br \/>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;{<br \/>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; if(h==24)h=0;<br \/>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;}<br \/>&nbsp; &nbsp;&nbsp; &nbsp; }<br \/>&nbsp; &nbsp;}<br \/>}      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>2<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4397356\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : guoxiping01 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd0\u884c\u65f6\u65f6\u5206\u79d2\u76f4\u63a5\u6e05\u96f6\uff0c\u65f6\u5206\u79d2\u90fd\u4e0d\u52a0\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4397357\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ch1123 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             void t0_seryer(void) interrupt 1 { \/\/\u5b9a\u65f6\u5668\u4e2d\u65ad\u51fd\u6570<br \/>&nbsp; &nbsp;&nbsp; &nbsp; TH0 = (65536-10000)\/256;<br \/>&nbsp; &nbsp;&nbsp; &nbsp; TL0 = (65536-10000)%256;<br \/>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;n_ent_ms++;<br \/>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;if(n_ent_ms&gt;=100){<br \/>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;n_ent_ms = 0;<br \/>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;n_sec ++;<br \/>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;if(n_sec &gt;= 60){<br \/>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;n_sec = 0;<br \/>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;n_min ++;<br \/>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;if(n_min &gt;= 60){<br \/>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;n_min = 0;<br \/>&nbsp; &nbsp;&nbsp;&nbsp;}<br \/>&nbsp; &nbsp;}<br \/>&nbsp;&nbsp;}<br \/>}<br \/>\u53c2\u8003\u8fd9\u4e2a\u7a0b\u5e8f\uff0c10\u6beb\u79d2\uff0c\u79d2\uff0c\u5206\u3002keil c51\u6b63\u5e38\u8fd0\u884c\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Keil C51 \u65f6\u5206\u79d2\u4e0d\u8fd0\u884c\u662f\u4ec0&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/274695"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=274695"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/274695\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=274695"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=274695"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=274695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}