文档详情

基于AT89C51SND1单片机的数据采集系统 毕业设计(论文)wfh.doc

发布:2016-05-08约1.66万字共29页下载文档
文本预览下载声明
基于AT89C51SND1单片机的数据采集系统 摘要 在实际的工作中需要对现场的温度、湿度、压力、流量等各种工艺参数随时进行采集、检测和监控,同时还要将采集到的数据及时传递给上位机,以实现对参数的随机查询,对信息的存储与处理,及时调整控制方案,提高生产效率和产品的质量。为此我们利用AT89C51SND1单片机作为主控制器,设计了一个简单易行的数据采集系统。我们的系统利用AT89C51SND1的强大功能来实现对模拟信号的采集和输出、显示。通过其自带的AD转换采集来自实际生活中的各种模拟信号(比如:温度、压力、还有连续的 声音信号等),并且利用一个多路模拟开关CD4051可以实现多路数据的采集。采集到的数据误差小于0.1%,一旦出现故障且具有报警功能。在软件设计过程中,使用的编程工具是C语言,它可读性强,简单可靠。 关键词:数据采集 C语言 单片机 Abstract In the actual work, The scene temperature, the humidity, the pressure, the current capacity and each kind of craft parameter need to be carried on gathering, examinating and monitoring whenever needed. Simultaneously, the gathered data is promptly transmitted to the position machine, so as to realize stochastically inquiry to the parameter, process and memorize with the information, adjust the control plan promptly, and enhance the production efficiency and the product quality. Thus, we use the AT89C51SND1 microprocessor control unit as the host controller to have designed a design a simple and feasible data acquisition system. Our system realizes gathering and the output, the display of the simulated signal with formidable function of the AT89C51SND1.It gathers each kind of simulated signal (for instance: the temperature, the pressure, the continual sound signal and so on ) of the practical life with the AD transformation. It also can realize multichannel data gathering with a multichannel analog switch CD4051. The gathered data error is smaller than 0.1%, once it appears the break soon makes the police function work. In the software design process, the programming tool is the C language. It has strongly readability, and it’s simple and reliable. Keywords: Data Acquisition C Language MCU 目 录 引言 1 1 概述 2 1.1本课题研究的背景和意义 2 1.2本课题的任务和要求 3 1.3课题设计总体方案的确定 3 2 数据采集系统的组成与基本原理 5 2.1数据采集系统的基本组成 5 2.2数据采集系统的工作原理 9 2.3数据采集系统的硬件框图 10 3 数据采集系统的软件设计 10 3.1主程序流程图及说明 10 3.2初始化显示子程序的编程 16 3.3 LCD数据显示程序的编程 18 3.4键盘模块的编程 21 4 数据采集系统的调试 22 4.1主程序功能的调试 22 4.2 LCD显示程序的调试 22 4.3键盘功能的调试 22 致谢 2
显示全部
相似文档