本文介紹了基于單片機的數據采集的硬件設計和軟件設計,數據采集系統是模擬域與數字域之間必不可少的紐帶,它的存在具有著非常重要的作用。本文介紹的重點是數據采集系統,而該系統硬件部分的重心在于單片機。數據采集與通信控制采用了模塊化的設計,數據采集與通信控制采用了單片機AT89S52來實現,硬件部分是以單片機為核心,還包括A/D模數轉換模塊,顯示模塊,和串行接口部分。該系統從機負責數據采集并應答主機的命令。8路被測電壓通過模數轉換器ADC0809進行模數轉換,實現對采集到的數據進行模擬量到數字量的轉換,并將轉換后的數據通過串行口MAX232傳輸到上位機,由上位機負責數據的接受、處理和顯示,并用LED數碼顯示器來顯示所采集的結果。軟件部分應用VC++編寫控制軟件,對數據采集系統、模數轉換系統、數據顯示、數據通信等程序進行了設計。
上傳時間: 2013-10-28
上傳用戶:18707733937
本Demo Board 采用HOLTEK 公司最新推出的VFD MCU 系列(HT49CVX),該系列產品可以直接驅動VFD,由MCU 的引腳和VFD 的引腳直接相連,而不需要外加任何的驅動芯片。本DMEO BOARD 除有鍵盤操控顯示以外,還附加了紅外線遙控接收裝置,使用極為方便。 功能 所使用MCU 之功能為紅外線遙控接收,根據按鍵的選擇進入不同的顯示模式,附帶還有A/D 轉換和溫度測量功能,而使用的MCU 為HT49CV5 DEMO BOARD 外觀 為了方便使用者了解和開發使用,本DEMO BOARD 提供了三種使用方式,即MCU 方式、HT49CVX 母體+ROM LESS 方式和仿真器方式,其中MCU 方式和HT49CVX 母體+ROM LESS 方式向使用者展示了DEMO BOARD 的具體工作情況;而仿真器方式則提供給使用者自行開發產品。
上傳時間: 2013-12-29
上傳用戶:Artemis
龍啟電子是臺灣芯睿MIKKON單片機一級代理,此款單片機性價比高,歡迎選用! MK6A12P、MK6A20P、MK7A21P、MK7A25P、MK7A23P、MK9A35EP/MK9A50P/MK9A80P/MK9A160P(LCD), 部分管腳完全兼容其他品牌PIC12C508、PIC16F54、PIC16F57、TM58PC11、SN8P2501B、HT46R47、S3F9454,EM78P153等,芯睿MIKKON芯片廣泛使用于LED閃燈、充電器、防盜、家電控制,該產品已經批量供貨,可提供樣品試用,價格低于同類產品,質量更優! 部分型號: MK7A25P(A/D 8bit PWM)—HT46R47;8SOP/8DIP;14SOP/14DIP;18SOP/18DIP;20SOP/20DIP. MK7A23P(A/D 12bit 雙PWM)—S3F9454;8DIP/SOP;14SOP/DIP;20SOP/DIP;28SOP/SKDIP/DIP;32SOP MK6A12P(普通I/O)-EM78P153/SN8P2501/PIC12C508 ; MK9A35P(驅動189個點);-EM78P468 MK9A50P(驅動336個點) MK9A80P(驅動400個點) MK9A160P(驅動1024個點) 產品應用:家電控制、電腦周邊、電磁爐、各類充電器、移動電源、UPS電源、電水壺、電壓力鍋、電飯煲、LED、玩具、遙控、LCD電子時鐘、萬年歷、電子秤/計價秤、直發器、空氣清晰機、滅蚊器、治療儀、測試儀、空調遙控器、游戲機、USB小數碼相框、U盤,讀卡器等數據速度傳輸要求比較快的產品等 另外,我公司有專業的工程師隊伍,可依客戶要求為客戶提供方案開發。 如需了解詳情,請與我聯系.多謝關注! 郭珍汲 13760345882 龍啟電子有限公司 Tel: 0755-83215331 Email:gzhenji@163.com MSN:gzhenji@hotmail.com QQ:475238912 貿易通:lqmoon517 Skype:lqdzmoon
上傳時間: 2013-11-03
上傳用戶:wpwpwlxwlx
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
本文重點介紹A/D轉換器的原理及其構成的單片機電壓表工作原理
上傳時間: 2013-10-16
上傳用戶:huanglang
智能儀器是指內含微機(目前最適合的是單片機)和GP-IB接口的電子儀器。本書介紹以MCS-51單片機為核心的智能儀器的工作原理和設計方法。書中詳細介紹了智能儀器中模擬放大電路,A/D、D/A轉換器與單片機的接口設計,常用的輸入輸出設備(如鍵盤、LED、LCD、CRT顯示器、微型打印機、語音處理器等)與單片機的接口技術,還深入地討論了監控主程序和接口管理主程序的設計,常用的測量算法及優化系統性能的高精確度、高抗干擾和低功耗的設計方法。這些方法也適用于一般的單片機應用系統設計。 本書內容新穎、實用、文字精煉、通俗易懂,可作為工科院校的電子、電氣、機電、儀器儀表、檢測控制等專業的教科書或參考書,也可代從事智能儀器或單片機應用的研究人員和工程技術人員閱讀。
上傳時間: 2013-11-09
上傳用戶:qwerasdf
MK7A23P是帶15 位(11bit+4bit)A/D轉換器的RISC高性能8位微控制器。它內部包含2K字節的一次性可編程只讀存儲器、128字節數據存儲器、定時器/計數器、中斷、LVR(低電壓復位)、I/O 口、比較器和PWM輸出。
上傳時間: 2013-12-07
上傳用戶:hullow
針對科研實驗中對拉壓千斤頂加載過程控制的需要,采用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
設計了一種基于PIC16C71單片機的數字水溫配制閥。該配制閥采用NTC熱敏電阻作溫度傳感器,與固定電阻組成簡單分壓電路作為水溫測量電路,利用PIC16C71單片機內置的8位A/D轉換器把熱敏電阻上的模擬電壓轉換為數字量,PIC16C71單片機控制直流電機驅動混水閥調節冷熱水的混合比例實現水溫調節。給出了控制電路圖,對水溫測量電路的參數選擇和測溫精度作了詳細討論。實驗和分析表明,選用阻值較大的NTC熱敏電阻和分壓電阻可較好地解決熱敏電阻因功耗較大造成的熱擊穿問題。 Abstract: A digital valve for controlling water temperature based on PIC16C71 was presented in this paper.A bleeder circuit which consisted of a NTC thermistor as temperature sensor and a fixed resistance was designed as water temperature measuring circuit.The analog voltage on the thermistor was converted into digital signal by a 8-bit A/D converter embedded in PIC16C71. Based on the digital signal, the MCU PIC16C71 drived the valve by a DC motor to adjust the water temperature through adjusting the proportion of hot water and cold water.The circuit diagram of controller was given,the principle,the component parameters and the accuracy of measuring temperatures were also dissertated in detail. It was found by experiment and analysis that thermal breakdown of thermistor caused by high power could be solved by selecting thermistor and fixed resistance with high impedance value.
上傳時間: 2013-11-08
上傳用戶:Yue Zhong
針對目前使用的RS232接口數字化B超鍵盤存在PC主機啟動時不能設置BIOS,提出一種PS2鍵盤的設計方法。基于W78E052D單片機,采用8通道串行A/D轉換器設計了8個TGC電位器信息采集電路,電位器位置信息以鍵盤掃描碼序列形式發送,正交編碼器信號通過XC9536XL轉換為單片機可接收的中斷信號,軟件接收到中斷信息后等效處理成按鍵。結果表明,在滿足開機可設置BIOS同時,又可實現超聲特有功能,不需要專門設計驅動程序,接口簡單,成本低。 Abstract: Aiming at the problem of the digital ultrasonic diagnostic imaging system keyboard with RS232 interface currently used couldn?蒺t set the BIOS when the PC boot, this paper proposed a design method of PS2 keyboards. Based on W78E052D microcontroller,designed eight TGC potentiometers information acquisition circuit with 8-channel serial A/D converter, potentiometer position information sent out with keyboard scan code sequentially.The control circuit based on XC9536 CPLD is used for converting the mechanical actions of the encoders into the signals that can be identified by the MCU, software received interrupt information and equivalently treatmented as key. The results show that the BIOS can be set to meet the boot, ultrasound specific functionality can be achieved at the same time, it does not require specially designed driver,the interface is simple and low cost.
上傳時間: 2013-10-10
上傳用戶:asdfasdfd