毕业设计(论文)-基于单片机的数字式多路温度采集系统_精品.doc
文本预览下载声明
* * * * 大 学
本 科 毕 业 设 计
毕业设计题目:数字式多路温度采集系统
学生姓名:***
学 号:2007*******
系 别:电子工程
专业班级:电子信息工程
指导教师姓名及职称:** 高级工程师
起止时间:2010年10月—— 2011年6月
摘 要
本设计制作一个了单片机控制的数字式多路温度采集系统。采用了 STC89C51单片机作为主控制器,采用LED键盘模组作为键盘输入和显示单元 ,通过一线制温度传感器 DS18B20 实现温度的采集。实现了两路温度的实时监控,并通过5位数码管进行实时显示,利用单片机的定时器实现每隔2s自动切换一个通道。同时可以通过按键方式进行手动切换通道和为每个通道设计独立的报警温度。该系统的优势在于成本低、实时,方便。可以推广到利用单总线模式挂接多个温度传感器采集多个场合的温度,实现多场合的温度实时监控。
关键词 微控制器 温度传感器 定时器
Abstract
This design made a microcomputer control digital multi-channel temperature gathering system. Adopted STC89C51 microcontroller as the main controller, using LED keyboard module as a keyboard input and display unit, through the first system temperature sensor DS18B20 to realize the collection of temperature. Realizing the real-time monitoring of two way temperature, and display through five digital LED in real-time, realization of the microcontroller timer automatic switching between a channel every 2s. Meanwhile can manually by button switch channels and ways for each channel design independent alarm temperature. This system is the advantage of low cost, real-time and convenient. Can be extended to use single bus model articulated multiple temperature sensors to collect many occasions, realizing the temperature of the real-time monitoring of the temperature occasion.
Key words?:microcomputer;temperature sensor;the microcontroller timer
目 录
1. 引言 1
1.1 数字式多路温度采集系统概述 1
1.2 多路温度采集系统的应用示例 1
1.3 设计任务 2
2. 总体方案设计与分析 3
2.1 系统设计基本框图及原理 3
2.2 温度传感器的选型 4
2.2.1 JWB一体化温度传感器 4
2.2.2 美国MEAS公司的温度传感器 4
2.2.3 美国DALLAS半导体公司的温度传感器 4
2.3 DS18B20简介 5
2.3.1 DS18B20的性能特点 5
2.3.2 DS18B20供电方式 6
2.3.3 温度采集电路结构 7
2.4 微控制器的选用与简介 8
3. 硬件电路设计 10
3.1 系统电源电路设计 10
3.2 数码管驱动电路设计 11
3.3 单片机复位电路设计 12
3.4 振荡器电路模块设计 13
3.5 按键调整电路设计 14
3.6 温度报警电路设计 14
3.7 单片机I/O口功能说明 15
4. 单片机软件设计 15
4.1 开发工具及软件语言 15
4.2 单片机软件流程 16
4.3 多路温度采集流程设计 17
4.3.1 处理次序 18
4.3.2 时序信号 18
4.4 定时器中断子函数设计流程 22
4.5 按键调整模块流程 23
5. 测试结果及分析 26
5.1 测试工具 26
5.2 数据测试 26
5.3 数据处理与分析 27
显示全部