<meter id="pryje"><nav id="pryje"><delect id="pryje"></delect></nav></meter>
          <label id="pryje"></label>

          新聞中心

          EEPW首頁(yè) > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > 基于8位數(shù)碼管的可調(diào)時(shí)鐘時(shí)鐘課程設(shè)計(jì)

          基于8位數(shù)碼管的可調(diào)時(shí)鐘時(shí)鐘課程設(shè)計(jì)

          作者: 時(shí)間:2016-11-29 來(lái)源:網(wǎng)絡(luò) 收藏

          void Timer_init()
          {
          ET0=0;
          TCON=0x00;
          TMOD=0x01;//工作方式1
          TH0=0x3c;
          TL0=0xaf;//定時(shí)50mS,12mHz
          ET0=1;
          }//Timer_init
          void Timer_Start()
          {
          TR0=1;
          }//Timer_Start
          void Timer_interrupt(void) interrupt 1 using 0
          {
          EA=0;
          dada++;
          if(dada==20)
          {
          dada=0;
          sec++;
          }
          EA=1;
          TH0=0x3c;
          TL0=0xaf;
          }//Timer_interrupt
          void Int1_interrupt(void) interrupt 2 using 2
          {
          TR0=0;
          }//Int1_interrputd
          void Int0_interrupt(void) interrupt 0 using 1
          {
          TR0=1;
          }//Int0_interrput
          void main(void)
          {
          EA=1;
          EX0=1;
          EX1=1;
          Timer_init();
          Timer_Start();
          while(1)
          {
          xianshi(i,j,u,v,w,s);
          time_cond();
          i=hour/10;
          j=hour%10;
          u=min/10;
          v=min%10;
          w=sec/10;
          s=sec%10;
          p=10;
          q=10;
          tiaozheng();
          }//while
          }//main

          本文引用地址:http://www.ex-cimer.com/article/201611/323365.htm

          上一頁(yè) 1 2 下一頁(yè)

          評(píng)論


          技術(shù)專區(qū)

          關(guān)閉
          看屁屁www成人影院,亚洲人妻成人图片,亚洲精品成人午夜在线,日韩在线 欧美成人 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();