dsp hư ớ ng dẫ n giao tiế p LCD code viế t bằ ng C
上傳時(shí)間: 2017-06-17
上傳用戶:xuanjie
hư ớ ng dẫ n về dsp tham khả o các cô ng cụ cơ bả n
上傳時(shí)間: 2014-12-01
上傳用戶:zhichenglu
N-皇后問題線性時(shí)間算法 O(n)復(fù)雜度,非O(n^2)的,使用的是構(gòu)造法。
上傳時(shí)間: 2013-12-21
上傳用戶:jqy_china
TI公司提供的I/O例程,是來自購買光盤,已經(jīng)在F2812評估板上調(diào)試通過。
標(biāo)簽: TI公司
上傳時(shí)間: 2013-12-23
上傳用戶:haoxiyizhong
可以用法來讀取全球定位系統(tǒng)GPS N文件和O文件的程序
標(biāo)簽: GPS 讀取 全球定位系統(tǒng) 程序
上傳時(shí)間: 2014-11-11
上傳用戶:csgcd001
在o(n)時(shí)間內(nèi),從一個(gè)數(shù)組中尋找到第k大的數(shù)
標(biāo)簽:
上傳時(shí)間: 2013-12-18
上傳用戶:diets
eda j i a o c h e n g
標(biāo)簽: eda
上傳時(shí)間: 2013-12-26
上傳用戶:lyy1234
Kth Largest element in an array in time O(n) without sorting the entire array.
標(biāo)簽: array Largest element sorting
上傳時(shí)間: 2014-01-08
上傳用戶:woshini123456
]本文介紹了如何利用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
上傳用戶:xa_lgy
TLC2543是TI公司的12位串行模數(shù)轉(zhuǎn)換器,使用開關(guān)電容逐次逼近技術(shù)完成A/D轉(zhuǎn)換過程。由于是串行輸入結(jié)構(gòu),能夠節(jié)省51系列單片機(jī)I/O資源;且價(jià)格適中,分辨率較高,因此在儀器儀表中有較為廣泛的應(yīng)用。 TLC2543的特點(diǎn) (1)12位分辯率A/D轉(zhuǎn)換器; (2)在工作溫度范圍內(nèi)10μs轉(zhuǎn)換時(shí)間; (3)11個(gè)模擬輸入通道; (4)3路內(nèi)置自測試方式; (5)采樣率為66kbps; (6)線性誤差±1LSBmax; (7)有轉(zhuǎn)換結(jié)束輸出EOC; (8)具有單、雙極性輸出; (9)可編程的MSB或LSB前導(dǎo); (10)可編程輸出數(shù)據(jù)長度。 TLC2543的引腳排列及說明 TLC2543有兩種封裝形式:DB、DW或N封裝以及FN封裝,這兩種封裝的引腳排列如圖1,引腳說明見表1 TLC2543電路圖和程序欣賞 #include<reg52.h> #include<intrins.h> #define uchar unsigned char #define uint unsigned int sbit clock=P1^0; sbit d_in=P1^1; sbit d_out=P1^2; sbit _cs=P1^3; uchar a1,b1,c1,d1; float sum,sum1; double sum_final1; double sum_final; uchar duan[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f}; uchar wei[]={0xf7,0xfb,0xfd,0xfe}; void delay(unsigned char b) //50us { unsigned char a; for(;b>0;b--) for(a=22;a>0;a--); } void display(uchar a,uchar b,uchar c,uchar d) { P0=duan[a]|0x80; P2=wei[0]; delay(5); P2=0xff; P0=duan[b]; P2=wei[1]; delay(5); P2=0xff; P0=duan[c]; P2=wei[2]; delay(5); P2=0xff; P0=duan[d]; P2=wei[3]; delay(5); P2=0xff; } uint read(uchar port) { uchar i,al=0,ah=0; unsigned long ad; clock=0; _cs=0; port<<=4; for(i=0;i<4;i++) { d_in=port&0x80; clock=1; clock=0; port<<=1; } d_in=0; for(i=0;i<8;i++) { clock=1; clock=0; } _cs=1; delay(5); _cs=0; for(i=0;i<4;i++) { clock=1; ah<<=1; if(d_out)ah|=0x01; clock=0; } for(i=0;i<8;i++) { clock=1; al<<=1; if(d_out) al|=0x01; clock=0; } _cs=1; ad=(uint)ah; ad<<=8; ad|=al; return(ad); } void main() { uchar j; sum=0;sum1=0; sum_final=0; sum_final1=0; while(1) { for(j=0;j<128;j++) { sum1+=read(1); display(a1,b1,c1,d1); } sum=sum1/128; sum1=0; sum_final1=(sum/4095)*5; sum_final=sum_final1*1000; a1=(int)sum_final/1000; b1=(int)sum_final%1000/100; c1=(int)sum_final%1000%100/10; d1=(int)sum_final%10; display(a1,b1,c1,d1); } }
上傳時(shí)間: 2013-11-19
上傳用戶:shen1230
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1