1、 学号: * 基于基于 AT89C51 单片机的单片机的 蔬菜大棚多点温度测试蔬菜大棚多点温度测试 学院名称: 物理与信息工程学院 专业名称: * 年级班别: 2011 级 1 班 姓 名: * 指导教师: * 2015 年 04 月 *大学 本科毕业论文 II 摘要 通过运用 DS18B20 数字温度传感器的测温原理和特性, 利用它独特的单线总 线接口方式,与 AT89C51 单片机相结合实现多点测温。并给出了测温系统中对 DS18B20 操作的 C51 编程实例。实现了系统接口简单、精度高、抗干扰能力强、 工作稳定等特点。 本文介绍基于 AT89C51 单片机、C 语言和 DS18B20
2、传感器的多点温度测量系 统设计及其在 Proteus 平台下的仿真。利用 51 单片机的并行口,同步快速读取 8 支 DS18B20 温度,实现了在多点温度测量系统中对多个传感器的快速精确识别 和处理,并给出了具体的编程实例和仿真结果。 关键词 单片机;DS18B2;Proteus 仿真;C51 编程 III Abstract With using the measuring principle and characteristics of the numerical temperature sensor of DS18B20,making use of special characteris
3、tics of single line as the total line, and combine together with AT89C51 to realize several points temperature measuring. Also this paper gives the example of the C51 program which is used to operate to the DS18B20. Make system have characteristics of simple, high accuracy, strong anti- interference
4、 ability, stable work etc. This design introduced AT89C51 monolithic integrated circuit temperature control system design from the hardware and the software two aspects. A multipoint temperature measurement system based on DS18B20 and AT89C51 microcontroller is designed and simulated by Proteus in t
5、his paper, including software and hardware design of this system. The system has such advantages as novel circuit design, quick measurement speed, high measurement accuracy, and good practicality. Key words MCU;DS18B20;Proteus simulation;C51 program IV 目录 摘要. II Abstract III 第一章 绪论 . 1 1.1 温度智能测控系统的
6、研究背景与现状分析 1 1.2 温度智能测控系统的工作原理 . 2 第二章 方案论证 . 3 2.1 方案设计 3 2.1.1 方案一 . 3 2.1.2 方案二 . 3 2.2 方案选择 . 4 第三章 AT89C51 单片机简介. 5 3.1 单片机的发展 5 3.2 单片机定义及 AT89C51 单片机 . 5 3.3 单片机的基本结构 . 5 第四章 DS18B20 单线数字温度计的原理. 8 4.1 概述 . 8 4.2 主要特性 . 8 4.3 工作原理及应用 . 9 4.4 单片机对 DS18B20 操作流程 . 10 4.5 DS18B20 与单片机的接口 . 11 4.6 DS18B20 芯片 ROM 指令表 . 11 4.7 DS18B20 芯片存储器操作指令表 . 12 4.8 DS18B20 复位及应答关系及读写 . 13 4.9 工作时序图 . 13 第五章 硬件设计 17 5.1 系统结构设计思路 17 5.2 系统框图 19 5.3 系统硬件