中文字幕 另类精品,亚洲欧美一区二区蜜桃,日本在线精品视频免费,孩交精品乱子片免费

<sup id="3hn2b"></sup>

    1. <sub id="3hn2b"><ol id="3hn2b"></ol></sub><legend id="3hn2b"></legend>

      1. <xmp id="3hn2b"></xmp>

      2. 新聞中心

        EEPW首頁(yè) > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > 單片機(jī)數(shù)字頻率計(jì)數(shù)器設(shè)計(jì)

        單片機(jī)數(shù)字頻率計(jì)數(shù)器設(shè)計(jì)

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

        void main(void)

        {

        unsigned char i;

        TMOD=0x15;

        TH0=0;

        TL0=0;

        TH1=(65536-4000)/256;

        TL1=(65536-4000)%6;

        TR1=1;

        TR0=1;

        ET0=1;

        ET1=1;

        EA=1;

        while(1)

        {

        if(flag==1)

        {

        flag=0;

        x=T0count*65536+TH0*256+TL0;

        for(i=0;i8;i++)

        {

        temp[i]=0;

        }

        i=0;

        while(x/10)

        {

        temp[i]=x;

        x=x/10;

        i++;

        }

        temp[i]=x;

        for(i=0;i6;i++)

        {

        dispbuf[i]=temp[i];

        }

        timecount=0;

        T0count=0;

        TH0=0;

        TL0=0;

        TR0=1;

        }

        }

        }

        void t0(void) interrupt 1 using 0

        {

        T0count++;

        }

        void t1(void) interrupt 3 using 0

        {

        TH1=(65536-4000)/256;

        TL1=(65536-4000)%6;

        timecount++;

        if(timecount==250)

        {

        TR0=0;

        timecount=0;

        flag=1;

        }

        P0=dispcode[dispbuf[dispcount]];

        P2=dispbit[dispcount];

        dispcount++;

        if(dispcount==8)

        {

        dispcount=0;

        }

        }

        51單片機(jī)相關(guān)文章:51單片機(jī)教程


        c語(yǔ)言相關(guān)文章:c語(yǔ)言教程


        塵埃粒子計(jì)數(shù)器相關(guān)文章:塵埃粒子計(jì)數(shù)器原理

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

        關(guān)鍵詞: 單片機(jī) 數(shù)字頻率 計(jì)數(shù)器

        評(píng)論


        相關(guān)推薦

        技術(shù)專(zhuān)區(qū)

        關(guān)閉