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

          新聞中心

          EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計應(yīng)用 > proteus與keil Cx51的單片機仿真(定時器輸出方波)

          proteus與keil Cx51的單片機仿真(定時器輸出方波)

          作者: 時間:2016-11-24 來源:網(wǎng)絡(luò) 收藏

          T0工作于方式1,定時時間50ms,編寫程序使P1.1輸出周期為100ms的方波。(波特率f=12MHz)

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

          電路圖:

          c程序:

          #include
          #include
          Uart_Init();
          sbit P1_1=P1^1;
          void main()
          {
          TMOD=0x01;
          TL0=0xB0;
          TH0=0x3C;
          TR0=1;
          for(;;)
          {
          do{}while(!TF0);
          TL0=0xb0;TH0=0x3c;
          P1_1=!P1_1;
          TF0=0;
          }
          }




          評論


          技術(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); })();