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

          新聞中心

          EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計應(yīng)用 > 單片機C語言程序設(shè)計:并行數(shù)據(jù)轉(zhuǎn)換為串行數(shù)據(jù)

          單片機C語言程序設(shè)計:并行數(shù)據(jù)轉(zhuǎn)換為串行數(shù)據(jù)

          作者: 時間:2013-09-05 來源:網(wǎng)絡(luò) 收藏

          /* 名稱:轉(zhuǎn)換為

          說 明 : 切 換 連 接 到 并 串 轉(zhuǎn) 換 芯 片

          74LS165 的撥碼開關(guān),該芯片將

          串行方式發(fā)送到 8051 的 RXD 引腳,移位脈

          沖由 TXD 提供,顯示在 P0 口。

          */

          #includereg51.h>

          #includeintrins.h>

          #includestdio.h>

          #define uchar unsigned char

          #define uint unsigned int

          sbit SPL=P2^5; //shift/load

          //延時

          void DelayMS(uint ms)

          {

          uchar i;

          while(ms--) for(i=0;i120;i++);


          }


          上一頁 1 2 下一頁

          評論


          相關(guān)推薦

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