文档介绍:分类号单位代码
密级学号——
学生毕业设计(论文)
题目
基于单片机的多路
实时数据采集系统设计
作者
院(系)
专业
指导教师
答辩日期
201 年 5 月 27 日
毕业设计(论文)诚信责任书
本人郑重声明:所呈交的毕业设计(论文),是本人在导师的指导下独立进行研究所取得的成果。毕业设计(论文)中凡引用他人已经发表或未发表的成果、数据、观点等,均已明确注明出处。尽我所知,除文中已经注明引用的内容外,本论文不包含任何其他个人或集体已经公开发表或撰写过的研究成果。对本文的研究做出重要贡献的个人和集体,均已在文中以明确方式标明。
本人毕业设计(论文)与资料若有不实,愿意承担一切相关的法律责任。
论文作者签名:
年月日
摘要
数据采集系统是模拟领域与数字领域之间必不可少的纽带,在自动控制、电气测量、航空航天等工程实际中有着极为广泛的应用。
本文设计出一种以AT89C51为核心的数据采集系统,可以实现对模拟电压范围为-10V~+10V的4路模拟信号进行实时采集,最高取样可达250Ksps。将采集的数据通过RS232接口传输到上位机,由上位机负责处理和实现。整个数据采集系统由硬件和软件组成,硬件主要包含AD7862、MAX232和单片机的接口设计;软件主要包含上位机显示界面设计和单片机程序设计。硬件设计部分采用Protel设计软件,包含原理图的设计和PCB图设计;下位机采用单片机编译软件Keil uVision2编写C语言程序;上位机采用VC++编写显示界面。设计的结束部分,对采集到得数据的误差进行了分析。
实验证明,将单片机与AD7862相结合,是进行多路数据采集、处理与传输的理想解决方案。
关键词:数据采集;单片机;AD7862;RS232
Based on Singlechip of Real-time Data Acquisition System
ABSTRACT
Analog data acquisition system is essential to the field and the link between the digital realm, in the automatic control, electrical measurement, aerospace and other engineering practice has a very wide range of applications.
This article is designed to AT89C51 as the core of a data acquisition system, the analog voltage can range from-10V ~ +10 V 4-channel analog signals in real-time acquisition up to the maximum sampling 250Ksps. The data will be collected through the RS232 interface to transfer to the puter, the puter is responsible for processing and reality. The entire data acquisition system consists of hardware and ponents, hardware mainly includes AD7862, MAX232 and single chip interface design; software consists mainly of PC display interface design and microcontroller programming. Part of hardware design using Protel design software, including schematic design and PCB design plans; lower machine using SCM software Keil pile C language program written; on puter using VC + + written display. The end part of the paper, the collected data error was analyzed.
Experiments show that bination of the microcontroller and the AD7862 is the multi-channel