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

          新聞中心

          EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計應(yīng)用 > 51單片機二進制轉(zhuǎn)換

          51單片機二進制轉(zhuǎn)換

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

          #define LongToBin(n)
          (
          ((n >> 21) & 0x80) |
          ((n >> 18) & 0x40) |
          ((n >> 15) & 0x20) |
          ((n >> 12) & 0x10) |
          ((n >> 9) & 0x08) |
          ((n >> 6) & 0x04) |
          ((n >> 3) & 0x02) |
          ((n ) & 0x01)
          )

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

          #define Bin(n) LongToBin(0x##n##l)

          void main(void)
          {
          unsigned char c;

          c = Bin(10101001); // c = 0xA9
          }



          關(guān)鍵詞: 51單片機二進制轉(zhuǎ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); })();