基于單片機的多路數(shù)據(jù)采集系統(tǒng)設計畢業(yè)論文.doc
基于單片機的多路數(shù)據(jù)采集系統(tǒng)設計畢業(yè)論文,基于單片機的多路數(shù)據(jù)采集系統(tǒng)設計the design of multi-channel data acquisition system based on scm摘要本文介紹了基于單片機的數(shù)據(jù)采集的硬件設計和軟件設計,數(shù)據(jù)采集系統(tǒng)是模擬域與數(shù)字域之間必不可少的紐帶,它的存在具有著非常重要的作用。本文介紹的重點是數(shù)據(jù)采集系...
內(nèi)容介紹
此文檔由會員 huangbinbest 發(fā)布基于單片機的多路數(shù)據(jù)采集系統(tǒng)設計
The Design Of Multi-channel Data Acquisition System Based On SCM
摘要
本文介紹了基于單片機的數(shù)據(jù)采集的硬件設計和軟件設計,數(shù)據(jù)采集系統(tǒng)是模擬域與數(shù)字域之間必不可少的紐帶,它的存在具有著非常重要的作用。本文介紹的重點是數(shù)據(jù)采集系統(tǒng),而該系統(tǒng)硬件部分的重心在于單片機。數(shù)據(jù)采集與通信控制采用了模塊化的設計,數(shù)據(jù)采集與通信控制采用了單片機AT89S52來實現(xiàn),硬件部分是以單片機為核心,還包括A/D模數(shù)轉(zhuǎn)換模塊,顯示模塊,和串行接口部分。該系統(tǒng)從機負責數(shù)據(jù)采集并應答主機的命令。8路被測電壓通過模數(shù)轉(zhuǎn)換器ADC0809進行模數(shù)轉(zhuǎn)換,實現(xiàn)對采集到的數(shù)據(jù)進行模擬量到數(shù)字量的轉(zhuǎn)換,并將轉(zhuǎn)換后的數(shù)據(jù)通過串行口MAX232傳輸?shù)缴衔粰C,由上位機負責數(shù)據(jù)的接受、處理和顯示,并用LED數(shù)碼顯示器來顯示所采集的結(jié)果。軟件部分應用VC++編寫控制軟件,對數(shù)據(jù)采集系統(tǒng)、模數(shù)轉(zhuǎn)換系統(tǒng)、數(shù)據(jù)顯示、數(shù)據(jù)通信等程序進行了設計。
關鍵詞:數(shù)據(jù)采集 89C52單片機 ADC0809 MAX232
Abstract
This article describes the hardware design and software design of the data on which based on signal-chip microcomputer .The data collection system is the link between the digital domain and analog domain. It has an very important function. The introductive point of this text is a data to collect the system. The hardware of the system focuses on signal-chip microcomputer .Data collection and communication control use modular design. The data collected to control with correspondence to adopt a machine 8051 to carry out. The part of hardware’s core is AT89S52, is also includes A/D conversion module, display module, and the serial interface. Slave machine is responsible for data acquisition and answering the host machine.8 roads were measured the electric voltage to pass the in general use mold-few conversion of ADC0809,the realization carries on the conversion that imitates to measure the numeral to measure towards the data that collect .Then send the data to the host machine through MAX232.the host machine is responsible for data and display, LED digital display is responsible display the data. The software is partly programmed with VC++. The software can realize the function of monitoring and controlling the whole system. It designs much program like data-acquisition treatment,data-display and data-communication ect.
Keyword: data acquisition AT89C52 ADC0809 MAX232
目錄
第一章 緒論 1
1.1 研究背景及其目的意義 1
1.2 國內(nèi)外研究現(xiàn)狀 2
1.3 該課題研究的主要內(nèi)容內(nèi)容 2
第二章 數(shù)據(jù)采集 4
2.1 數(shù)據(jù)采集系統(tǒng) 4
2.2 方案論證 5
2.2.1 A/D模數(shù)轉(zhuǎn)換的選擇 5
2.2.2單片機的選擇 5
2.2.3 串行口的選擇 5
2.2.4 顯示部分 6
2.2.5 按鍵 6
第三章 硬件部分 8
3.1 主機部分 8
3.1.1 主機部分原理圖設計 8
3.1.2 單片機 9
3.2 從機部分 13
3.2.1 從機的電路原理圖設計 13
3.2.2 單片機之間的通信 14
3.2.3 模數(shù)轉(zhuǎn)換器ADC0809 18
第四章 軟件部分 22
4.1 簡介KeilUvision2 22
4.2 主機程序設計 26
4.3 從機部分程序設計 30
第五章 調(diào)試結(jié)果 33
總結(jié) 34
致謝 36
參考文獻 37
附錄1 38
附錄2 40