没有合适的资源?快使用搜索试试~ 我知道了~
基于单片机的离散量数据采集系统大学本科毕业论文.doc
0 下载量 196 浏览量
2023-07-09
10:13:31
上传
评论
收藏 879KB DOC 举报
温馨提示
试读
54页
基于单片机的离散量数据采集系统大学本科毕业论文.doc
资源推荐
资源详情
资源评论
基于单片机离散量数据采集系统设计
I
摘 要
随着计算机技术的飞速发展和普及,数据采集系统也得到了广泛的应用。微机
在通用自动化、信息处理、信息系统等方面得到广泛的应用。在冶金、化工、医疗
等应用场合,需要对很多信号进行采集,预处理,暂存和传输。
本文设计的离散量采集系统采用上位机、下位机通信方式运行。由上位机实现
对下位机的控制和数据采集的显示,下位机实现离散量的采集过程。下位机硬件设
计采用 STC89C52RC 单片机为控制核心,运用 TLP521 进行光电隔离,采用八位三
态同相输出总线缓冲器 74HC541 为输入缓冲部分,而输出部分则采用的是锁存器
74HC574,和拨动开关作为开关控制,完成了离散量采集系统的硬件设计。采用
RS-232 进行串口通信,可以通过电脑来控制继电器实现离散量采集方法的控制。结
果证明,该设计方法可行,实现了离散量采集系统的自动化,克服了传统数据采集
的弊端,应用具有良好的前景和使用价值。
关键词:离散量采集系统;单片机;通信
II
Abstract
Along with the rapid development of computer technology and popularization, data
acquisition system is also widely application. Microcomputer is widely applied in general
automation, information processing and information system etc . Signal acquisition,
pretreatment, temporary and PC transmission is needed by metallurgy, chemical, medical
care and other applications。The design is a discrete variables acquisition system with upper and
lower operating mode. The PC machine controls the lower machine and display the date, and the lower
machine realizes data collection. Hardware design of digital machines STC89C52RC
single-chip design for the control of the core to the use of photoelectric TLP521 isolation,
the use of eight three-state bus buffer with an output of 74HC541 for input buffer part of
the output part is used in latch 74HC574, Used for RS-232 serial communication, you can
relay through the computer to control the realization of the bright lights out billiards
control and manual control switch can monitor. The results proved that the design method
is feasible to achieve a billiards automated agency management system to overcome the
drawbacks of traditional management methods, the application has good prospects and the
value.
Keywords: single chip; data acquisition system; communication
III
目 录
1 绪论..................................................................................................................................1
1.1 课题背景 ...................................................................................................................1
1.2 课题相关技术 ...........................................................................................................2
1.3 课题任务 ...................................................................................................................5
1.4 课题内容及安排 ........................................................................................................5
2 系统方案设计..................................................................................................................6
2.1 方案设计原则 ............................................................................................................6
2.2 方案选择 ...................................................................................................................6
3 系统硬件设计..................................................................................................................9
3.1 单片机模块 ................................................................................................................9
3.1.1 STC89C52RC 介绍............................................................................................10
3.1.2 单片机最小系统...............................................................................................12
3.2 输入输出模块 .........................................................................................................15
3.2.1 光电隔离模块...................................................................................................15
3.2.2 输入模块...........................................................................................................17
3.2.3 输出模块...........................................................................................................19
3.3 串口模块 .................................................................................................................21
3.4 设备选型 .................................................................................................................24
4 系统软件设计与实现....................................................................................................25
4.1 软件编程介绍 .........................................................................................................25
4.1.1 C 语言介绍 ........................................................................................................25
4.1.2 VB 介绍 .............................................................................................................26
4.2 下位机软件方案设计 .............................................................................................27
4.2.1 主程序设计部分................................................................................................28
4.2.2 初始化程序设计部分........................................................................................28
4.2.3 中断程序设计部分............................................................................................29
4.3 上位机软件方案设计 .............................................................................................31
剩余53页未读,继续阅读
资源评论
zzzzl333
- 粉丝: 706
- 资源: 7万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功