]本文介紹了如何利用CPLD(復(fù)雜可編程邏輯器件)與單片機(jī)的結(jié)合實(shí)現(xiàn)并行I/\r\nO(輸入/輸出)接口的擴(kuò)展。該設(shè)計(jì)與用8255做并行I/O接口相比,與單片機(jī)軟件完全兼容,\r\n同時(shí)擁有速度快,功耗低,價(jià)格便宜,使用靈活等特點(diǎn)
標(biāo)簽: CPLD 如何利用 單片機(jī) 并行
上傳時(shí)間: 2013-08-14
上傳用戶(hù):xa_lgy
if (pfile() == 0) unlink(inname) else fprintf(stderr, "%s: I/O Error -- File unchanged\n", inname) fclose(outfile) fclose(infile) } exit(0)
標(biāo)簽: unchanged fprintf inname unlink
上傳時(shí)間: 2015-03-12
上傳用戶(hù):l254587896
對(duì)二維粘性不可壓N-S方程求解,生成O型網(wǎng)格
上傳時(shí)間: 2014-01-04
上傳用戶(hù):chongcongying
設(shè)計(jì)一個(gè)O(n2)時(shí)間的算法,找出由n個(gè)數(shù)組成的序列的最長(zhǎng)單調(diào)遞增子序列。
上傳時(shí)間: 2015-07-15
上傳用戶(hù):qq21508895
Embest S3C44B0X Evaluation Board RTC Test Example RTC Check(Y/N)? y Set Default Time at 2004-12-31 FRI 23:59:59 Set Alarm Time at 2005-01-01 00:00:01 ... RTC Alarm Interrupt O.K. ... Current Time is 2005-01-01 SAT 00:00:01 RTC Working now. To set date(Y/N)? y Current date is (2005,01,01, SAT). input new date (yy-mm-dd w): 5-2-23 3 Current date is: 2005-02-23 WED RTC Working now. To set time(Y/N)? y Current time is (00:00:21). To set time(hh:mm:ss): 19:32:5 Current Time is 2005-02-23 WED 19:32:
標(biāo)簽: Evaluation RTC S3C44B0X Default
上傳時(shí)間: 2014-01-03
上傳用戶(hù):baiom
在sco unix 下顯示前n天或后n天日期的處理程序。 printf("功能: 時(shí)間戳與時(shí)間格式字符串的轉(zhuǎn)換程序\n") printf(" -i 輸入的參數(shù)為時(shí)間戳\n") printf(" -s 輸入的參數(shù)為格式化時(shí)間\n") printf(" -t 輸入的時(shí)間取當(dāng)前系統(tǒng)時(shí)間\n") printf(" -x 輸入的時(shí)間增加或減少的天數(shù)\n") printf(" -o 輸出的時(shí)間為時(shí)間戳格式\n") printf(" -O 輸出的時(shí)間為格式化時(shí)間\n") printf(" -h 幫助文件-查看[format]如何定義,例 %s -h\n",procname) printf("范例:1 取當(dāng)前日期的前2天的時(shí)間顯示 %s -t -x -2\n",procname) printf(" 2 取20030101的前5天的時(shí)間顯示 %s -s 20030101000000 -x -5\n",procname) printf(" 3 取20031231的后5天的時(shí)間顯示 %s -s 20031231000000 -x 5 -O \"%%D %%T\"\n",procname) printf(" 4 取時(shí)間戳為1089619417的時(shí)間顯示 %s -i 1089619417 \n",procname) printf(" 5 取時(shí)間戳為1089619417的后4天的時(shí)間顯示 %s -i 1089619417 -x 4 \n",procname)
標(biāo)簽: printf unix sco 處理程序
上傳時(shí)間: 2015-10-17
上傳用戶(hù):TRIFCT
acm HDOJ 1051WoodenSticks Description: There is a pile of n wooden sticks. The length and weight of each stick are known in advance. The sticks are to be processed by a woodworking machine in one by one fashion. It needs some time, called setup time, for the machine to prepare processing a stick. The setup times are associated with cleaning operations and changing tools and shapes in the machine. The setup times of the woodworking machine are given as follows: (a) The setup time for the first wooden stick is 1 minute. (b) Right after processing a stick of length l and weight w , the machine will need no setup time for a stick of length l and weight w if l<=l and w<=w . Otherwise, it will need 1 minute for setup.
標(biāo)簽: WoodenSticks Description length wooden
上傳時(shí)間: 2014-03-08
上傳用戶(hù):netwolf
給定n 個(gè)整數(shù)n a , a , ,a 1 2 組成的序列,試設(shè)計(jì)一個(gè)O(n)時(shí)間算法,計(jì)算其最大覆蓋區(qū)間長(zhǎng)度。
上傳時(shí)間: 2015-10-23
上傳用戶(hù):ZJX5201314
給定n 個(gè)整數(shù)n a , a , ,a 1 2 組成的序列,試設(shè)計(jì)一個(gè)O(n)時(shí)間算法,計(jì)算其最大覆蓋區(qū)間長(zhǎng)度。
上傳時(shí)間: 2015-10-23
上傳用戶(hù):moerwang
計(jì)數(shù)排序是一個(gè)非基于比較的線性時(shí)間排序算法。它對(duì)輸入的數(shù)據(jù)有附加的限制條件: 1、輸入的線性表的元素屬于有限偏序集S; 2、設(shè)輸入的線性表的長(zhǎng)度為n,|S|=k(表示集合S中元素的總數(shù)目為k),則k=O(n)。 在這兩個(gè)條件下,計(jì)數(shù)排序的復(fù)雜性為O(n)。 計(jì)數(shù)排序算法的基本思想是對(duì)于給定的輸入序列中的每一個(gè)元素x,確定該序列中值小于x的元素的個(gè)數(shù)。一旦有了這個(gè)信息,就可以將x直接存放到最終的輸出序列的正確位置上。例如,如果輸入序列中只有17個(gè)元素的值小于x的值,則x可以直接存放在輸出序列的第18個(gè)位置上。 計(jì)數(shù)排序算法沒(méi)有用到元素間的比較,它利用元素的實(shí)際值來(lái)確定它們?cè)谳敵鰯?shù)組中的位置。因此,計(jì)數(shù)排序算法不是一個(gè)基于比較的排序算法,從而它的計(jì)算時(shí)間下界不再是Ω(nlogn)。另一方面,計(jì)數(shù)排序算法之所以能取得線性計(jì)算時(shí)間的上界是因?yàn)閷?duì)元素的取值范圍作了一定限制,即k=O(n)。如果k=n2,n3,..,就得不到線性時(shí)間的上界。
上傳時(shí)間: 2015-10-30
上傳用戶(hù):chenxichenyue
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1