没有合适的资源?快使用搜索试试~ 我知道了~
基于单片机的多功能参数检测系统设计与实现.pdf
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 35 浏览量
2022-06-26
01:29:21
上传
评论
收藏 1.57MB PDF 举报
温馨提示
试读
53页
基于单片机的多功能参数检测系统设计与实现.pdf基于单片机的多功能参数检测系统设计与实现.pdf基于单片机的多功能参数检测系统设计与实现.pdf基于单片机的多功能参数检测系统设计与实现.pdf基于单片机的多功能参数检测系统设计与实现.pdf基于单片机的多功能参数检测系统设计与实现.pdf基于单片机的多功能参数检测系统设计与实现.pdf基于单片机的多功能参数检测系统设计与实现.pdf基于单片机的多功能参数检测系统设计与实现.pdf
资源推荐
资源详情
资源评论
摘 要
本文论述了一种基于单片机的多功能参数检测系统的设计与实现过程。系统采用了
单片机 STC89C52 为主控芯片,设计了电流电压转换电路,能够将现场的温度、压力、
流量、液位等物理量所对应的 4-20mA 电流信号转换成 1-5V 的直流电压信号,并提供
给 A/D 转换电路。根据系统测量的模拟量较多的特点,使用 ADC0809 作为 A/D 转换芯
片。使用 LCD1602 作为显示器件,能够实时显示采集的温度、压力、流量、液位等物
理量。同时,系统还设计了参数设置与报警提示等功能电路。
论文共分三部分介绍了基于单片机的多功能参数检测系统设计过程。第一部分,主
要介绍了系统的方案设计,明确了系统的功能要求,给出了系统方案框图,并对部分元
器件的选择、软硬件开发环境进行了介绍;第二部分,主要介绍了硬件电路的设计过程,
包括主要器件的介绍、与单片机接口电路设计思路叙述;第三部分,对软件部分的设计
思路做了介绍,并分别数据采集、显示、按键处理等各功能部分设计过程进行了叙述。
关键词 :单片机;电流电压转换; A/D 转换; LCD1602 ;声光报警
I
Abstract
This paper discusses a kind of multi-functional parameter detection system based on
single chip microcomputer.This design use the single chip microcomputer as the controller
STC89C52 chip,using current voltage conversion circuit can change the scene of the physical
quantities,such as temperature,pressure,flow,level of 4-20 mA current signal into 1-5 V
voltage signal,and provide for A/D conversion circuit.According to the characteristics of the
measurement system that there are much more analog quantities,ADC0809 is used as A/D
conversion chip,using LCD1602 as a display device,can collect real-time display of
temperature,pressure,flow and liquid level.At the same time,the system also designed the
circuit for parameter setting and sound and light alarming function.
This paper is divided into three part introduces multi-functional parameter detection
system based on single chip microcomputer.The first part,mainly introduced the system
design,the functional requirements of system,the system block diagram is given,and the
selection of some components,hardware and software development environments are
introduced;The second part,mainly introduces the design process of hardware
circuit,including the main device,single chip microcomputer interface circuit design ideas of
narrative;The third part,the design idea of the software part is presented,and various functions
such as data acquisition,display and buttons processing are discusses.
Key words: Single chip microcomputer; Current voltage conversion; A/D conversion;
LCD1602;Sound and light alarm
II
目 录
绪 论 ..........................................................................................................................................1
1 方案设计 ..............................................................................................................................2
1.1 总体框架的设计 ........................................................................................................2
1.2 单片机开发环境的选择 ............................................................................................3
1.2.1 电路图绘制软件 ..............................................................................................3
1.2.2 Keil_C 软件......................................................................................................4
2 硬件电路设计 ......................................................................................................................6
2.1 传感器的选型 ............................................................................................................6
2.2 单片机最小系统设计 ................................................................................................6
2.2.1 单片机的选型 ..................................................................................................6
2.2.2 时钟电路与复位电路 ......................................................................................8
2.2.3 单片机使用注意事项 ....................................................................................10
2.3 电流电压转换电路设计 ..........................................................................................11
2.4 模拟量采集电路设计 ..............................................................................................13
2.4.1 ADC0809 概述...............................................................................................13
2.4.2 ADC0809 与单片机接口电路.......................................................................15
2.5 显示电路设计 ..........................................................................................................16
2.5.1 LCD1602 引脚结构 .......................................................................................16
2.5.2 LCD1602 主要技术参数及特性 ...................................................................16
2.5.3 LCD1602 与单片机的接口电路 ...................................................................17
2.6 按键接口电路设计 ..................................................................................................17
2.7 报警电路设计 ..........................................................................................................18
2.8 串行口功能设计 ......................................................................................................19
2.8.1 RS-232 串行接口........................................................................................... 19
2.8.2 MAX232 简介................................................................................................20
3 软件部分设计 ....................................................................................................................22
3.1 主程序工作流程 ......................................................................................................22
3.2 A/D 转换子程序 ......................................................................................................23
3.3 数字滤波及标度变换程序设计 ..............................................................................24
III
3.4 显示程序设计 ..........................................................................................................25
3.5 按键处理程序设计 ..................................................................................................27
3.6 报警程序设计 ..........................................................................................................28
结 论 ........................................................................................................................................29
致 谢 ........................................................................................................................................30
参考文献 ..................................................................................................................................31
附录 A 硬件原理图 .............................................................................................................. 32
附录 B 程序代码 .................................................................................................................. 33
附录 C 实物图 ...................................................................................................................... 46
IV
剩余52页未读,继续阅读
资源评论
不吃鸳鸯锅
- 粉丝: 8254
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功