1、 温度报警器温度报警器设计设计 DESIGN OF TEMPERATURE ALARM 专专 业:业:电子信息工程电子信息工程 摘 要 在日常生活中,温度是一种最基本的环境参数,它是与人类的生活、工作关 系最密切的物理量,也是各门学科与工程研究设计中经常遇到,必须精确测量和 不可忽略的物理量。从工业炉温、环境气温到人体温度;从空间、海洋到家用电 器,各个技术领域都离不开测温和控温。 DS18B20 是美国 Dallas 公司生产的单总线数字式温度传感器,具有结构简 单、体积小、操作灵活、使用方便等特点,其具有多样的封装形式,主要适用于 各种狭小空间内设备的数字测温和控制。 软件系统是该器件必不
2、可少的部分,它决定着硬件电路的正常运行。起到了 及其重要的作用。该款温度报警器的软件部分不是十分的复杂,我们首先选择汇 编语言作为软件系统的开发语言。为了达到清晰的编程思路。我们把该程序模块 化。具体的分为以下几个部分:主程序、温度报警程序、测温程序、液晶显示程 序。 其中该温度报警器通过 DS18B20 温度传感器感应周围的环境温度, 通过单片 机对其数据进行读取处理, 经过 LCD1602 显示模块将实时温度显示在液晶显示器 上,同时可以通过温度报警设置模块对温度报警上、下值进行设定。当 DS18B20 读取的温度超过设定的温度值的上限或下限时,通过温度报警模块的扬声器和 LED 指示灯进
3、行报警。 关键字:单片机 、汇编语言 、DS18B20 、液晶显示器 ABSTRACT In daily life, the temperature is one of the most basic environmental parameters, it is the most close to human life, working relationship of physical quantities, is often encountered in the design of each subject and engineering research, must be precise
4、measurements and quantities that cannot be ignored. From the industrial furnace temperature, environment temperature to the human body temperature; From space, the ocean to household appliances, all cannot leave the temperature test temperature control technology field. DS18B20 produced by Dallas co
5、mpany in the United States single bus digital temperature sensor, has the advantages of simple structure, small volume, flexible operation, convenient use, etc, it has a variety of packaging forms, mainly suitable for all kinds of small space within the digital temperature test control of the equipm
6、ent. The software system is the essential part of the device, it determines the normal operation of the hardware circuit. Play a critical role. The software part of the temperature alarm is not very complicated, we first select assembly language as the development of software system language. In order to achieve a clear programming ideas. We put the program modular. Concrete is divided into the following several parts: the main program, temperature alarm, temperature, liquid crystal display