TLC2543是TI公司的12位串行模數轉換器,使用開關電容逐次逼近技術完成A/D轉換過程。由于是串行輸入結構,能夠節省51系列單片機I/O資源;且價格適中,分辨率較高,因此在儀器儀表中有較為廣泛的應用。 TLC2543的特點 (1)12位分辯率A/D轉換器; (2)在工作溫度范圍內10μs轉換時間; (3)11個模擬輸入通道; (4)3路內置自測試方式; (5)采樣率為66kbps; (6)線性誤差±1LSBmax; (7)有轉換結束輸出EOC; (8)具有單、雙極性輸出; (9)可編程的MSB或LSB前導; (10)可編程輸出數據長度。 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); } }
上傳時間: 2013-11-19
上傳用戶:shen1230
基于MSP430F149的觸摸手寫程序 很有用處
上傳時間: 2013-10-30
上傳用戶:shanxiliuxu
基于GSM短信模塊的定位跟蹤系統設計實現
上傳時間: 2013-10-27
上傳用戶:1417818867
自主移動機器人激光全局定位系統
上傳時間: 2013-12-30
上傳用戶:wpwpwlxwlx
MK7A23P是帶15 位(11bit+4bit)A/D轉換器的RISC高性能8位微控制器。它內部包含2K字節的一次性可編程只讀存儲器、128字節數據存儲器、定時器/計數器、中斷、LVR(低電壓復位)、I/O 口、比較器和PWM輸出。
上傳時間: 2013-12-07
上傳用戶:hullow
應用8098單片機控制磁粉探傷,96系列的單片機,工業常用哦
上傳時間: 2013-12-24
上傳用戶:debuchangshi
針對科研實驗中對拉壓千斤頂加載過程控制的需要,采用ATmega128單片機控制步進電機進而實現對執行系統的電動泵站實行自動控制。對力和位移的數據采集與處理及用步進電機控制電動泵站手柄的技術細節作了重點描述。通過單片機的A/D變換器對AMP放大模塊采集的電橋信號作量化處理,千斤頂的操控手柄位置依電動油泵閥門開啟的方向和大小作若干定位,單片機根據力或位移傳感器信號,實時控制步進電機驅動手柄旋轉到相應操控位置。 Abstract: This article describes the use of ATmega128 AVR microcontroller series of DBS electric pumping stations and QF100/200 separate twoway hydraulic jack to automate the process of manipulating the work of the technical content. Articles on force and displacement data acquisition and processing, and stepper motor control electric pump with the handle of the key technical details were described. Through the MCU’s A / D converter module is collected on the AMP amplification quantify the signal bridge, jack handle position control valve opening according to the direction of electric pumps for a number of positioning and size of the microcontroller based on force or displacement sensor signals, real-time control stepper motor drive control handle rotate to the appropriate location.
上傳時間: 2014-01-16
上傳用戶:hasan2015
在航電系統維護過程中,為解決定位故障的效率和降低維修成本等問題,提出了基于ICD(Interface Control Document,接口控制文件)的1553B總線的信息監控系統模型。該系統運用數據采集卡對總線中傳輸的信號有無失真、偏差等電氣特性進行檢測,并使用1553B通訊卡通過測控軟件LabWindows/CVI編程與ICD數據庫的動態鏈接,實現總線信息的解析和故障的判斷。與傳統的維護過程相比,這種模型能夠從信號的電氣特性以及信息的解析等全方位的去檢測判斷故障的來源,并且能夠廣泛在其他1553B總線系統內擴展應用。驗證表明該監控系統可以對總線信息進行快速有效地監測分析,能滿足應用需求。 Abstract: In the process of avionics system maintenance, to solve the problems such as improving the efficiency of fast orientation to troubles and reducing maintenance cost, system of 1553B bus information monitor model based on ICD was proposed. The system observed whether the data which transmitted on the bus appear distortion and deviation by using data acquisition card. And using 1553B communication card programming of the measure software LabWindows/CVI and the dynamic linking of ICD database, message analysis and fault estimation could be realized. Compared with traditional maintenance, this model can all-dimensionally detect and analyze the source of faults from both electrical characteristics of the signal and message analysis, and it can be widely applied in the other 1553B system. Experiment shown that this monitor system can effectively detect and analyze the bus message and can meet the application requirements.
上傳時間: 2013-11-23
上傳用戶:18752787361
第一章:MCS-51系列單片機的存儲結構(4學時) ① 掌握內部數據寄存器RAM的結構、用途和特點; ② 程序存儲器ROM的結構特點,編程中應注意的問題; ③ 片內、外程序存儲器的確定方法。 .. 第二章:MCS-51單片機指令系統及時序(4學時) ① 111條指令的功能分類; ② 指令的尋址方式; ③ 偽指令及匯編語言源程序的格式; ④ 與指令的相關時序。 第三章:MCS-51單片機內部模塊的功能介紹(8學時) ① 內部并行I/O端口的結構特點、使用中的注意事項; ② 定時/計數器的2種工作方式、4種計數模式; ③ 串行接口的4種工作模式的設定及波特率的計算; ④ 中斷系統的結構、中斷響應的過程和編程方法。 .. 第四章:MCS-51單片機系統的擴展及應用(8學時); ① 系統擴展的幾種方法; ② 外部程序、數據存儲器的擴展; ③ A/D、D/A轉換器與單片機的接口電路及編程方法; ④ 鍵盤掃描/動態顯示接口電路; ⑤ 單片機的監控電路等。
上傳時間: 2013-10-17
上傳用戶:熊少鋒
前言 自從盛群半導體公司成立以來,即致力于單片機產品的設計與開發。雖然盛群半導體提供給客戶各式各樣的半導體器件,但其中單片機仍是盛群的主要關鍵產品,未來盛群半導體仍將繼續擴展單片機產品系列完整性與功能性。通過長期累積的單片機研發經驗與技術,盛群半導體能為各式各樣的應用范圍開發出高性能且低價位的單片機芯片。許多連接到外部感應器的重要應用需要處理模擬信號,所有的這些應用,在它們可以被單片機處理之前需要通過一個A/D轉換器做模數信號的轉換。為了滿足這些需求,盛群開發出A/D系列的單片機,除了擁有I/O系列的所有特性和功能外,還含有集成的多通道A/D轉換器,它的解析度和通道個數可調。而PWM功能和I2C接口,則進一步增加了A/D系列單片機的功能和應用的可行性。
上傳時間: 2013-12-05
上傳用戶:waitingfy