1、目录 摘要摘要 1 1 第一章第一章 绪论绪论 3 3 第二章第二章 元件元件简介简介 5 5 2.1 AD590 温度传感器简介 . 5 2.2 A/D 转换器 ADC0809 简介 8 2.3 AT89C51 单片机简介 11 1主要特性: . 12 2管脚说明: . 12 第三章第三章 系统硬件设计系统硬件设计 1414 1、温度传感器的选择 . 14 2、信号放大器图 32 14 3、A/D 转换器的选择 . 14 4、A T89C51 的资源分配 . 15 第四章第四章 软件设计软件设计 1616 1、A/D 转换控制 16 2、 温度检测子程序 17 3、 温度显示 18 4、温度
2、超限报警子程序 18 5、延时程序 . 19 第五章第五章 附录附录 2020 1、硬件 20 2、软件 21 第六章第六章 结束语结束语 2424 参考文献:参考文献: 2525 致致 谢谢 2626 1 摘要摘要 随着时代的进步和发展, 单片机技术已经普及到我们生活、 工作、 科研、各个领域,已经成为一种比较成熟的技术, 本文主要介绍了一 个基于 89S51 单片机的测温系统,详细描述了利用数字温度传感器 DS18B20开发测温系统的过程, 重点对传感器在单片机下的硬件连接, 软件编程以及各模块系统流程进行了详尽分析, 对各部分的电路也一 一进行了介绍,该系统可以方便的实现实现温度采集和显
3、示,并可根 据需要任意设定上下限报警温度, 它使用起来相当方便, 具有精度高、 量程宽、灵敏度高、体积小、功耗低等优点,适合于我们日常生活和 工、农业生产中的温度测量, 也可以当作温度处理模块嵌入其它系统 中,作为其他主系统的辅助扩展。 关键字:关键字:单片机、温度检测、系统 2 Abstract along with the progress of The Times and development, microcontroller technology has spread to our life, work,scientific research, each domain, has be
4、come a mature technology, this paper mainly introduces a 89S51 MCU based on temperature measuring system, described in detail by using digital temperature sensor DS18B20 development temperature measuring system, focusing on the process of sensors in the hardware connection, microcontroller software
5、programming and each module in the system flow makes a detailed analysis, part of the circuit also introduces one, the system is easy to realize the realization temperature gathering and display, and can according to need to set arbitrary upper alarm temperature, it USES up is very convenient, with
6、high precision, range wide, high sensitivity, small volume, low consumption advantages, suitable for our daily life and work, agriculture of temperature measurement, also can be used as temperature processing modules embedded other systems, as any other main system of auxiliary expansion. 3 第一章第一章 绪论绪论 随着科技的不断发展,现代社会对各种信息参数的准确度和 精确度的要求都有了几何级的增长,而如何准确而又迅速的获得 这些参数就需要受制于现代信息基础的发展水平。在三大信息信 息采集(即传感器技术)、 信息传输(通信技术)和信息处理(计算机 技术)中,传感器属于信息技术的前沿尖端产品,尤其是温度传感 器技术,在我国各领域已经引用的非常广泛,可以