没有合适的资源?快使用搜索试试~ 我知道了~
毕业论文-单片机串行通信发射机的设计.doc
0 下载量 73 浏览量
2023-06-30
05:04:48
上传
评论
收藏 1.04MB DOC 举报
温馨提示
试读
53页
毕业论文-单片机串行通信发射机的设计.doc
资源推荐
资源详情
资源评论
图书分类号:
密 级:
毕业设计(论文)
单片机串行通信发射机的设计
THE DESIGN OF SINGLECHIP SERIAL
COMMUNICATION TRANSMITTER
学 生 学 号
学 生 姓 名
学 院 名 称
信 电 工 程 学 院
专 业 名 称
电 子 信 息 工 程 技 术
指 导 教 师
2010 年
6 月
3 日
徐 州 工 程 学 院 毕 业 设 计 (论 文 )
-
II
摘要
温度的检测与控制是工业生产过程中比较典型的应用之一,随着传感器在生产和生活
中的更加广泛的应用,利用新型单总线式数字温度传感器实现对温度的测试与控制得到更
快的开发,本文设计了一种基于 AT89C51 的温度检测及报警系统。该系统将多个单总线温
度传感器 DS18B20 并接在控制器的一个端口上,对各个传感器温度进行循环采集,将采集
到的温度值与设定值进行比较,当超出设定的上限温度时,通过 ISD1420 语音电路给出语
音提示及报警信号。文中给出了单根数据线上扩展多个温度传感器的设计方法,并给出了
系统实现的硬件原理图及软件流程图。经实验测试表明,该系统测量精度高、抗干扰能力
强、报警及时准确,具有一定的参考价值。该系统设计和布线简单,结构紧凑,体积小,
重量轻,抗干扰能力强,性价比高,扩展方便,在大型仓库,工厂,智能化建筑等领域的
多点温度检测中有广阔的应用前景。
关键词:数字温度传感器;单总线;通信协议;DS18B20;AT89C2051;LED 显示器;报警
信号
徐 州 工 程 学 院 毕 业 设 计 (论 文 )
-
III
Abstract
Temperature detection and control of industrial production process, one of the more
typical applications, with sensors in production and life is more widely used, using a new
single-bus digital temperature sensor to achieve the test and control the temperature more rapidly
development, this paper is designed based on AT89C51 temperature detection and alarm systems.
The system will be more than a single-bus temperature sensor DS18B20 and connected to a port
on the controller, the temperature sensors on each loop collection, the temperature will be
collected to compare with the set value, when the temperature exceeds the upper limit set ,
through the ISD1420 voice circuit gives voice prompts and alarm signal. In this paper, a single
data lines extend multiple temperature sensor design methods and gives the system
implementation of hardware and software flow diagram. The experimental tests show that this
high accuracy, strong anti-interference ability, alarm timely and accurate, with a certain
reference value. The system design and layout simple and compact structure, small size, light
weight, anti-jamming capability, cost-effective to expand convenience, in large warehouses,
factories, construction and other areas of intelligent multi-point temperature measurement in a
wide range of applications prospects.
Key words digital temperature sensor single bus communication protocols DS18B20
AT89C2051 LED display alarm signal
徐 州 工 程 学 院 毕 业 设 计 (论 文 )
-
IV
目 录
1 绪论.............................................................................................................................1
1.1 课题背景 ..............................................................................................................1
1.2 温度检测与及报警系统的国内外状况 ..............................................................1
1.3 温度参数、温度检测和语音报警 ......................................................................3
1.3.1 温度参数.......................................................................................................3
1.3.2 温度检测.......................................................................................................3
1.3.3 语音报警.......................................................................................................3
2 系统总体设计方案....................................................................................................4
2.1 单片机语音温度报警系统的总体设计 ..............................................................4
2.2 系统的基本工作过程..........................................................................................5
3 单片机温度控制和语音报警系统硬件设计............................................................6
3.1 温度控制和报警主机..........................................................................................6
3.1.1 主控制单片机................................................................................................6
3.1.2 AT89S51 特点 ...............................................................................................6
3.1.3 AT89S51 主要功能特性: ...........................................................................7
3.1.4 温度检测和报警主机硬件电路设计...........................................................7
3.1.4 单片机及复位键控制模块..........................................................................10
3.2 语音电路............................................................................................................12
3.2.1 ISD1420 芯片简述 ......................................................................................12
3.2.2 芯片引脚介绍.............................................................................................13
3.2.3 芯片工作原理.............................................................................................13
3.2.4 芯片工作模式.............................................................................................13
3.2.5 语音电路设计..............................................................................................14
3.3 DS18B20 芯片简介............................................................................................14
3.3.1 温度传感器的历史及简介..........................................................................14
3.3.2 DS18B20 性能特点与内部结构.................................................................15
3.3.3 DS18B20 工作时序.....................................................................................19
3.3.4 DS18B20 的操作协议.................................................................................21
3.3.5 DS18B20 序列号编码.................................................................................23
3.3.6 DS18B20 的测温原理.................................................................................24
3.3.7 DS18B20 的测温流程.................................................................................25
3.3.8 DS18B20 数据校验与纠错.........................................................................25
3.3.9 DS18B20 在测温系统中的应用..............................................................27
徐 州 工 程 学 院 毕 业 设 计 (论 文 )
-
V
3.3.10 测温系统的硬件工作原理........................................................................27
3.3.11 注意事项.................................................................................................28
4 软件设计..................................................................................................................30
4.1 设计思路 .........................................................................................................30
4.2 程序设计 ..........................................................................................................31
4.2.1 主程序.........................................................................................................31
4.2.2 读出温度子程序.........................................................................................32
4.2.3 温度转化命令子程序..................................................................................33
4.2.4 计算温度子程序..........................................................................................33
4.2.5 显示数据刷新子程序..................................................................................34
4.2.6 LED 显示程序模块 .....................................................................................34
5 系统调试..................................................................................................................36
5.1 硬件调试 .........................................................................................................36
5.1.1 硬件静态的调试.......................................................................................37
5.1.2 系统硬件调试...........................................................................................37
5.2 软件调试 .........................................................................................................37
5.3 软硬联调 ..........................................................................................................37
结 论......................................................................................................................38
致 谢......................................................................................................................39
参考文献......................................................................................................................40
附 录 ....................................................................................................................41
剩余52页未读,继续阅读
资源评论
yyyyyyhhh222
- 粉丝: 412
- 资源: 6万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功