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
基于單片機(jī)AT89C2051的九路多功能智力競賽搶答器的設(shè)計(jì)
上傳時(shí)間: 2013-10-13
上傳用戶:YUANQINHUI
8路遙控?fù)尨鹌?/p>
上傳時(shí)間: 2013-11-17
上傳用戶:sunjet
袖珍型電子日歷及8路長時(shí)間定時(shí)控制器程序
標(biāo)簽: 電子日歷 8路 定時(shí)控制器 程序
上傳時(shí)間: 2013-10-29
上傳用戶:agent
四路搶答器的設(shè)計(jì)和制作,搶答用的
標(biāo)簽: 四路搶答器
上傳時(shí)間: 2013-11-02
上傳用戶:ouyangmark
介紹了一種基于C8051F020單片機(jī)的多路壓力測量儀。該測量儀選用電阻應(yīng)變式壓力傳感器采集壓力信號(hào),并經(jīng)放大電路處理后送入C8051F020單片機(jī),再由C8051F020單片機(jī)內(nèi)部的A/D轉(zhuǎn)換器將采集到的壓力信號(hào)進(jìn)行模數(shù)轉(zhuǎn)化,然后分別對(duì)數(shù)據(jù)進(jìn)行存儲(chǔ)和顯示。該測量儀能測量6路壓力信號(hào),并且各測量點(diǎn)都能單獨(dú)檢測和設(shè)置。由于采用了C8051F020單片機(jī),簡化了硬件電路,增強(qiáng)了抗干擾能力,使得測量儀具有測量精度高,沖擊小等特點(diǎn)。 Abstract: A measurement apparatus for multi-channel pressure based on single chip microcomputer is introduced.It can measure 6 channels signal of the pressure,and the pressure measure points can be detection and located individually.The pressure signal sampling is obtained by resistor stress-type pressure sensors,the digital signals of 6 channels are collected through amplifying and adjustment circuit of pressure signals and internal integrated A/D converter of MCU.Finally,and it realizes the function to store and display data separately.C8051F020 was used to made hardware circuit simple,and it also enhanced the anti-interference ability.It features high precision and little impact.
標(biāo)簽: C8051F020 單片機(jī) 多路 壓力
上傳時(shí)間: 2013-11-16
上傳用戶:yare
概述 BM22P02是一款OTP類型低功耗8位通用微控制器(MCU)。可適用于各類簡單功能的小家電控制。 主要特點(diǎn) ●指令與BL2220兼容●CPU:8位●ROM單元:2Kbyte●RAM單元:64byte●晶振電路:400K~4MHz晶體振蕩器或內(nèi)置RC振蕩●I/O口:2組8位雙向口●1個(gè)單向輸出口●17位watchdog●1路BUZZER輸出●低電壓復(fù)位LVR(翻轉(zhuǎn)電壓1.9V±0.2V),可軟件選擇●其他外圍電路:8位可編程定時(shí)器●工作電源電壓:2.0~5.5V●工作溫度:-40~85℃●靜態(tài)功耗:<1uA@VDD=3V●動(dòng)態(tài)功耗:<1mA@VDD=3V●封裝形式:SOP24/DIP24/SOP20200MIL/SOP20300MIL/SSOP20/DIP20
上傳時(shí)間: 2013-11-25
上傳用戶:smthxt
主要介紹了以PIC18F2480單片機(jī)為處理器,基于可編程多路開關(guān)檢測接口器件MC33993實(shí)現(xiàn)的車用多路開關(guān)檢測接口電路的設(shè)計(jì)。該設(shè)計(jì)克服了以往基于分立元件的檢測接口電路的弊端,簡化了接口電路設(shè)計(jì),保證了車用開關(guān)工作的可靠性和安全性。 Abstract: The design of automotive multiple switch detection interface circuit based on MC33993 is introduced mainly which adopts PIC18F2480 single chip microprocessor.This circuit overcomes shortage of traditional design which contains many schism elements, and the application of MC33993 also predigests the whole design of interface circuit and guarantees the dependability and security of the switch.
標(biāo)簽: 33993 MC 多路開關(guān) 檢測
上傳時(shí)間: 2013-11-19
上傳用戶:star_in_rain
介紹一種基于單片機(jī)的多路溫度采集及監(jiān)控系統(tǒng),能夠測量6路溫度信號(hào),具有計(jì)算機(jī)聯(lián)網(wǎng)功能,各測量點(diǎn)可以單獨(dú)監(jiān)控和設(shè)置,可根據(jù)用戶的需求自動(dòng)控制。測量溫度范圍為-10 ℃~200 ℃,控制方式采用模擬量調(diào)壓模式。該系統(tǒng)具有控制精度高、沖擊小等特點(diǎn)。 Abstract: A temperature collecting and surveillance-controlling system based on sing-chip microcomputer is introduced. It can measure 6 channel signal of the temperature,and it has a function of network connection.The temperature measure points can be monitored and located, it can be controlled automatic according to user’s demand.The temperature range is -10℃ to 200℃.The model of control is adjustable voltage with simulation. It features high precision and little impact.
標(biāo)簽: 多路 溫度采集 監(jiān)控系統(tǒng)
上傳時(shí)間: 2013-10-23
上傳用戶:bjgaofei
第一章 序論……………………………………………………………6 1- 1 研究動(dòng)機(jī)…………………………………………………………..7 1- 2 專題目標(biāo)…………………………………………………………..8 1- 3 工作流程…………………………………………………………..9 1- 4 開發(fā)環(huán)境與設(shè)備…………………………………………………10 第二章 德州儀器OMAP 開發(fā)套件…………………………………10 2- 1 OMAP介紹………………………………………………………10 2-1.1 OMAP是什麼?…….………………………………….…10 2-1.2 DSP的優(yōu)點(diǎn)……………………………………………....11 2- 2 OMAP Architecture介紹………………………………………...12 2-2-1 OMAP1510 硬體架構(gòu)………………………………….…12 2-2.2 OMAP1510軟體架構(gòu)……………………………………...12 2-2.3 DSP / BIOS Bridge簡述…………………………………...13 2- 3 TI Innovator套件 -- OMAP1510 ……………………………..14 2-2.1 General Purpose processor -- ARM925T………………...14 2-2.2 DSP processor -- TMS320C55x …………………………15 2-2.3 IDE Tool – CCS …………………………………………15 2-2.4 Peripheral ………………………………………………..16 第三章 在OMAP1510上建構(gòu)Embedded Linux System…………….17 3- 1 嵌入式工具………………………………………………………17 3-1.1 嵌入式程式開發(fā)與一般程式開發(fā)之不同………….….17 3-1.2 Cross Compiling的GNU工具程式……………………18 3-1.3 建立ARM-Linux Cross-Compiling 工具程式………...19 3-1.4 Serial Communication Program………………………...20 3- 2 Porting kernel………………………………………………….…21 3-2.1 Setup CCS ………………………………………….…..21 3-2.2 編譯及上傳Loader…………………………………..…23 3-2.3 編譯及上傳Kernel…………………………………..…24 3- 3 建構(gòu)Root File System………………………………………..…..26 3-3.1 Flash ROM……………………………………………...26 3-3.2 NFS mounting…………………………………………..27 3-3.3 支援NFS Mounting 的kernel…………………………..27 3-3.4 提供NFS Mounting Service……………………………29 3-3.5 DHCP Server……………………………………………31 3-3.6 Linux root 檔案系統(tǒng)……………………………….…..32 3- 4 啟動(dòng)及測試Innovator音效裝置…………………………..…….33 3- 5 建構(gòu)支援DSP processor的環(huán)境…………………………...……34 3-5.1 Solution -- DSP Gateway簡介……………………..…34 3-5.2 DSP Gateway運(yùn)作架構(gòu)…………………………..…..35 3- 6 架設(shè)DSP Gateway………………………………………….…36 3-6.1 重編kernel……………………………………………...36 3-6.2 DEVFS driver…………………………………….……..36 3-6.3 編譯DSP tool和API……………………………..…….37 3-6.4 測試……………………………………………….…….37 第四章 MP3 Player……………………………………………….…..38 4- 1 MP3 介紹………………………………………………….…….38 4- 2 MP3 壓縮原理……………………………………………….….39 4- 3 Linux MP3 player – splay………………………………….…….41 4.3-1 splay介紹…………………………………………….…..41 4.3-2 splay 編譯………………………………………….…….41 4.3-3 splay 的使用說明………………………………….……41 第五章 程式改寫………………………………………………...…...42 5-1 程式評(píng)估與改寫………………………………………………...…42 5-1.1 Inter-Processor Communication Scheme…………….....42 5-1.2 ARM part programming……………………………..…42 5-1.3 DSP part programming………………………………....42 5-2 程式碼………………………………………………………..……43 5-3 雙處理器程式開發(fā)注意事項(xiàng)…………………………………...…47 第六章 效能評(píng)估與討論……………………………………………48 6-1 速度……………………………………………………………...48 6-2 CPU負(fù)載………………………………………………………..49 6-3 討論……………………………………………………………...49 6-3.1分工處理的經(jīng)濟(jì)效益………………………………...49 6-3.2音質(zhì)v.s 浮點(diǎn)與定點(diǎn)運(yùn)算………………………..…..49 6-3.3 DSP Gateway架構(gòu)的限制………………………….…50 6-3.4減少IO溝通……………….………………………….50 6-3.5網(wǎng)路掛載File System的Delay…………………..……51 第七章 結(jié)論心得…
上傳時(shí)間: 2013-10-14
上傳用戶:a471778
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1