毕业设计论文基于单片机的数据采集系统设计

更新时间:2023-10-21 09:58:01 阅读量: 综合文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

存档日期: 存档编号:

本科生毕业设计(论文)

论 文 题 目: 基于单片机的数据采集系统设计 姓 名: 学 院: 专 业: 班 级 、 学 号: 指 导 教 师:

江苏师范大学教务处印制

摘要

本文介绍了基于单片机的数据采集的硬件设计和软件设计,数据采集系统是模拟域与数字域之间必不可少的纽带,它的存在具有着非常重要的作用。本文介绍的重点是数据采集系统,而该系统硬件部分的重心在于单片机。数据采集与通信控制采用了模块化的设计,数据采集与通信控制采用了单片机AT89C52来实现,硬件部分是以单片机为核心,还包括A/D模数转换模块,显示模块和串行接口部分。该系统机负责数据采集并应答主机的命令。8路被测电压通过模数转换器ADC0809进行模数转换,实现对采集到的数据进行模拟量到数字量的转换,并将转换后的数据通过串行口RS485传输到上位机,由上位机负责数据的接受、处理和显示,并用LED数码显示器来显示所采集的结果。软件部分应用VC++编写控制软件,对数据采集系统、模数转换系统、数据显示、数据通信等程序进行了设计。

关键词:数据采集 AT89C52 ADC0809 RS485

I

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 AT89C52, 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 RS485,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 RS485

II

III

目录

摘要 ............................................................................................................. I Abstract ..................................................................................................... II

1绪论 .......................................................................................................... 2

1.1 研究背景及其目的意义................................................................................... 2 1.2 国内外研究现状.............................................................................................. 3 1.3 该课题研究的主要内容................................................................................... 4

2 数据采集总体设计 ................................................................................. 5

2.1系统设计的基本要求........................................................................................ 5 2.2 数据采集系统结构功能及简介....................................................................... 5

3 硬件部分 ................................................................................................. 7

3.1 单片机基本模块............................................................................................... 7 3.2 A/D转换模块 .................................................................................................. 10 3.3键盘模块.......................................................................................................... 13 3.4 LED数码管显示模块 ..................................................................................... 15 3.5通信模块.......................................................................................................... 18

4 软件部分 ............................................................................................... 21

4.1 简介KeilUvision2 .......................................................................................... 21 4.2 下位机部分程序设计..................................................................................... 26

5上位机简介 ............................................................................................ 31 6总结 ........................................................................................................ 32 致 谢 ......................................................................................................... 33 参考文献 ................................................................................................... 34 附录1 总原理图 ...................................................................................... 36

IV

本文来源:https://www.bwwdw.com/article/gopf.html

Top