亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

蟲蟲首頁| 資源下載| 資源專輯| 精品軟件
登錄| 注冊

count

  • This program sets up EVA Timer 1, EVA Timer 2, EVB Timer 3 and EVB Timer 4 to fire an interrupt on a

    This program sets up EVA Timer 1, EVA Timer 2, EVB Timer 3 and EVB Timer 4 to fire an interrupt on a period overflow. A count is kept each time each interrupt passes through the interrupt service routine.

    標簽: Timer EVA EVB interrupt

    上傳時間: 2017-04-25

    上傳用戶:fandeshun

  • HashTable實例 public class HashTable_msg { public HashTable_msg() { String sum_sql="select

    HashTable實例 public class HashTable_msg { public HashTable_msg() { String sum_sql="select mobilenum,count(*) from SJSJ_Msg where (left(in_date,6)=(select left(CONVERT(varchar(12) , getdate(), 112 ),6)))group by mobilenum" Hashtable<String,Integer> ht = new Hashtable<String,Integer>() try{ ResultSet rs= DBAccess.getInstance().select(sum_sql) while(rs!=null) { ht.put(rs.getString(1),rs.getInt(2)) rs.next() } } catch (Exception e) { Logs.printError(e) } } }

    標簽: HashTable_msg public HashTable sum_sql

    上傳時間: 2014-12-07

    上傳用戶:a6697238

  • This experiment uses the Blackfi n BF533/BF537 EZ-KIT to run a simple FIR fi lter on stereo channe

    This experiment uses the Blackfi n BF533/BF537 EZ-KIT to run a simple FIR fi lter on stereo channels at a sampling frequency of 48 kHz. The CYCLE register is embedded in the main program ( process_data.c) to benchmark the time needed to process two FIR fi lters. A background telemetry channel (BTC) is set up to display the cycle count.

    標簽: experiment Blackfi EZ-KIT channe

    上傳時間: 2013-12-27

    上傳用戶:baiom

  • This example uses a timer to generate interrupt at a specific period. The timer event handler incre

    This example uses a timer to generate interrupt at a specific period. The timer event handler increments the event count and prints in stdout.

    標簽: timer interrupt generate specific

    上傳時間: 2014-06-25

    上傳用戶:h886166

  • 1、用feng模塊將選手按下按鍵信號輸出高電平給鎖存模塊lockb

    1、用feng模塊將選手按下按鍵信號輸出高電平給鎖存模塊lockb,進行鎖存的同時發出aim信號實現聲音提示,并使count模塊進行答題時間的倒計時,在計滿100妙后送出聲音提示; 2、用ch41a模塊將搶答結果轉換為二進制數; 3、用sel模塊產生數碼管片選信號; 4、用ch42a模塊將對應數碼管片選信號,送出需要的顯示信號; 5、用七段譯碼器dispa模塊進行譯碼。

    標簽: lockb feng 模塊 按鍵

    上傳時間: 2013-12-21

    上傳用戶:

  • Most satellite dish actuators send a series of pulses to indicate their position. By counting pulse

    Most satellite dish actuators send a series of pulses to indicate their position. By counting pulses the positioner knows where the dish is pointing. It is possible to use a serial port and Linux with RTAI patches in order to count these pulses, thus minimising the external hardware required for a positioner. The zip contains instructions, circuit diagrams and example code.

    標簽: satellite actuators counting indicate

    上傳時間: 2014-12-03

    上傳用戶:netwolf

  • 已知數據文件IN.dat中存有200個四位數

    已知數據文件IN.dat中存有200個四位數,并已調用讀函數rData()把這些數存入數組a中,請編寫函數spellNum(),其功能是:把個位數字和千位數字重新組成一個新的二位數(新二位數的十位數字是原四位數的個位數字,新二位數的個位數字是原四位數的千位數字),以及把百位數字和十位數字組成另一個新的二位數(新二位數的十位數字是原四位數的百位數字,新二位數的個位數字是原四位數的十位數字),如果新組成的兩個二位數一個是奇數,另一個為偶數,并且兩個二位數中至少有一個數能被17整除,同時兩個新數的十位數字均不為0,則將滿足此條件的四位數按從大到小的順序存入數組b中,并要計算滿足上述條件的四位數的個數count。最后main()函數調用寫函數wData(),把結果count以及數組b中符合條件的四位數輸出到OUT.dat文件中。

    標簽: 200 dat IN 數據文件

    上傳時間: 2014-10-29

    上傳用戶:李彥東

  • Delphi 泛型容器 TDictionary 的用法 Demo

    Collection of key-value pairs.  TDictionary represents a generic collection of key-value pairs.  This class provides a mapping from a collection of keys to a collection of values. When you create a TDictionary object, you can specify various combinations of initial capacity, equality operation, and initial content.  You can add a key that is associated with a corresponding value with the Add or AddOrSetValue methods. You can remove entries with Remove or Clear, which removes all key-value pairs. Adding or removing a key-value pair and looking up a key are efficient, close to O(1), because keys are hashed. A key must not be nil (though a value may be nil) and there must be an equality comparison operation for keys.  You can test for the presence or keys and values with the TryGetValue, ContainsKey and ContainsValue methods.  The Items property lists all count dictionary entries. You can also set and get values by indexing the Items property. Setting the value this way overwrites any existing value.  The class TObjectDictionary inherits from TDictionary and provides an automatic mechanism for freeing objects removed from dictionary entries. 

    標簽: Delphi 泛型

    上傳時間: 2015-07-01

    上傳用戶:mirage

  • AVR單片機轉速表

    /****************************************************************                  外部晶振8M                  PA0~3:四位數碼管的位選                  PB0~7:數碼管的8位段選                  外部中斷0用于計數                  定時器0溢出中斷的定時為1ms                  說明 :檢測到水流較小時,繼電器延時1秒關閉  ******************************************************************/                #include<iom16v.h>   #include<macros.h>   #define uchar unsigned char   #define uint unsigned int       char led_7[10]={0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07,0x7F,0x6F};  //數碼管段選        char position[4]={0xfe,0xfd,0xfb,0xf7};//數碼管位選        uint sumnum=0;  //用于記錄1000ms內進入中斷的次數        uint time=0;   //記錄進入比較定時器0的次數        uint num=0;     //記錄1ms內進入中斷的次數        uint count=0;   //進入外部中斷0的次數        uchar flag;        uint sumnum1;   //記錄100ms內的數目       /***************************函數聲明***************************/        void delay();        void display(uint m );        void init();        void init_0();        void init_2();    void _delay_us(uint l)   {        unsigned int i;        for(i=0;i<l;i++)        {        asm("nop");        }   }           /**************************主函數***********************************/       void main()   {        init();        init_0();        init_2();        while(sumnum<5)        {           PORTD=0XBF;           segdisplay(sumnum1);        }       while(1)       {           segdisplay(sumnum1);       }           }        /*************************掃描數碼管時的延時函數*********************/        void delay()    {         uchar i,j;         for(i=6;i>0;i--)         for(j=225;j>0;j--);    }        /************************數碼管顯示函數*****************************/       void segdisplay( int temp)        {         int seg[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};         int temp1,temp2,temp3,temp4;         temp1=temp/1000;         temp2=(temp/100)%10;         temp3=(temp/10)%10;         temp4=temp%10;         DDRB=0xff;         DDRA|=0x0f;           PORTA=~BIT(3);           PORTB=seg[temp1];           _delay_us(100);           PORTA=~BIT(2);           PORTB=seg[temp2];           _delay_us(100);           PORTA=~BIT(1);           PORTB=seg[temp3];           _delay_us(100);           PORTA=~BIT(0);           PORTB=seg[temp4];           _delay_us(100);       }        /***********************管腳初始化函數*********************/        void init()    {                      DDRD|=0X40;   //PD4 設置為輸出             PORTD=0XBF;                DDRA=0XFF;             DDRB=0XFF;             PORTA=0XFF;             PORTB=0XFF;    }        /***********************外部中斷0初始化*********************/        void init_0()    {         MCUCR=0X02;   //INT0為下降沿觸發         GICR=0X40;   //使能INT0中斷         SREG=0X80;  //使能總中斷    }        /**********************定時器2初始化***********************/        void init_2()    {         TCCR0=0x03;   // 內部時鐘,64 分頻(8M/64=125KHz)          TCNT0=0x83;   //裝初值           TIMSK=0x01;   // 允許 T/C0溢出中斷中斷      }          /***********************外部中斷0子函數********************/        #pragma interrupt_handler int0_isr:2        void int0_isr(void)        {             count++;        }        /*********************定時計數器0溢出中斷子函數*****************/       #pragma interrupt_handler int0_over:10        void int0_over(void)       {           TCNT0=0x83;   //重裝初值            if((time%100) == 0)               sumnum1 = num;           if(time == 1000)           {               sumnum=num;               if(sumnum<10)               {                                      if((flag==1)&&(sumnum<10))                   {                       PORTD=0XFF;                       flag=0;                   }                                      flag++;               }               else                       PORTD=0XBF;               num=0;               time=0;           }           num+=count;           count=0;           ++time;        } 

    標簽: C語言

    上傳時間: 2016-03-09

    上傳用戶:彥 yan

  • 1602數字時鐘

    # include < reg52.h > # include < 24C02.h> # define uint unsigned int # define uchar unsigned char   sbit rs = P3^5;  //定義lcd1602的rs端 sbit lcden = P3^4;//定義lcd1602的lcden端口 sbit s1 = P3^0;//定義功能鍵s1 sbit s2 = P3^1;//定義功能鍵s2 sbit s3 = P3^2;//定義功能鍵s3   sbit beep = P2^3;//定義蜂鳴器   uchar count, s1num; char miao,fen,shi; uchar code table[] = "Designer:X_ZL ";//定義初始上電時液晶默認顯示狀態     void delay_ms( xms )   //定義延時函數 { uint i,j; for( i = xms ; i > 0 ; i --) for( j = 110 ; j > 0 ; j --); }  

    標簽: 1602 數字時鐘程序

    上傳時間: 2016-07-28

    上傳用戶:游戲好嗎

主站蜘蛛池模板: 大渡口区| 新化县| 蓬溪县| 桑日县| 格尔木市| 始兴县| 黄冈市| 龙州县| 彭州市| 铁力市| 呼伦贝尔市| 博罗县| 贵溪市| 鄯善县| 布尔津县| 盈江县| 巴马| 龙井市| 津市市| 金华市| 都兰县| 金溪县| 廉江市| 包头市| 宁安市| 昔阳县| 青田县| 永善县| 甘孜县| 湘潭市| 介休市| 天柱县| 武功县| 天镇县| 龙泉市| 花垣县| 南岸区| 宾川县| 锦州市| 河北区| 龙山县|