在线看毛片网站电影-亚洲国产欧美日韩精品一区二区三区,国产欧美乱夫不卡无乱码,国产精品欧美久久久天天影视,精品一区二区三区视频在线观看,亚洲国产精品人成乱码天天看,日韩久久久一区,91精品国产91免费

<menu id="6qfwx"><li id="6qfwx"></li></menu>
    1. <menu id="6qfwx"><dl id="6qfwx"></dl></menu>

      <label id="6qfwx"><ol id="6qfwx"></ol></label><menu id="6qfwx"></menu><object id="6qfwx"><strike id="6qfwx"><noscript id="6qfwx"></noscript></strike></object>
        1. <center id="6qfwx"><dl id="6qfwx"></dl></center>

            新聞中心

            EEPW首頁(yè) > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > 數(shù)字電路中Multisim10單片機(jī)的應(yīng)用

            數(shù)字電路中Multisim10單片機(jī)的應(yīng)用

            作者: 時(shí)間:2011-09-21 來源:網(wǎng)絡(luò) 收藏
            2 編寫MCU源C語言程序

            本文引用地址:http://www.biyoush.com/article/172489.htm

              2. 1 雙擊“設(shè)計(jì)工具盒”中的源文件“Led11. c”,在其右側(cè)將打開編寫程序窗口,刪除已有的文字注釋說明。

              2. 2 在源程序窗口輸入以下11進(jìn)制計(jì)數(shù)器C語言源程序:

              #include htc. h

              void delay( unsigned int i) ;

              unsigned char code table [ ] = { 0x40, 0x79, 0x24, 0x30, 0x19, 0x12, 0x02,

              0x78, 0x00, 0x90};

              unsigned char a1, a2, a3;

              void main ( )

              {

              unsigned int i;

              while (1)

              { for( i = 0; i 11; i + + )

              {

              if ( i = = 0)

              {P2 = 0x40;

              P1 = 0x40;

              P0 = 0x40; }

              if ( i = = 1)

              {P2 = 0x79;

              P1 = 0x40;

              P0 = 0x40; }

              if ( i = = 2)

              {P2 = 0x24;

              P1 = 0x40;

              P0 = 0x40;

              }

              if ( i = = 3)

              {

              P2 = 0x30;

              P1 = 0x40;

              P0 = 0x40;

              }

              if ( i = = 4)

              {

              P2 = 0x19;

              P1 = 0x40;

              P0 = 0x40;

              }

              if ( i = = 5)

              {


            P2 = 0x12;

              P1 = 0x40;

              P0 = 0x40;

              }

              if ( i = = 6)

              {

              P2 = 0x02;

              P1 = 0x40;

              P0 = 0x40;

              }

              if ( i = = 7)

              {

              P2 = 0x78;

              P1 = 0x40;

              P0 = 0x40;

              }

              if ( i = = 8)

              {

              P2 = 0x00;

              P1 = 0x40;

              P0 = 0x40;

              }

              if ( i = = 9)

              {

              P2 = 0x10;

              P1 = 0x40;

              P0 = 0x40;

              }

              if ( i = = 10)

              {

              P2 = 0x40;

              P1 = 0x79;

              P0 = 0x40;

              i = 0;

              }

              }

              } }

              void delay( unsigned int i)

              {

              while ( i - - ) ;

              }

            DIY機(jī)械鍵盤相關(guān)社區(qū):機(jī)械鍵盤DIY




            評(píng)論


            相關(guān)推薦

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

            關(guān)閉