1、 1 摘要摘要 本论文介绍的是基于 AT89S51 单片机数字钟和数字温度计设计,体 现模块化设计思想。论文重点阐述了硬件模块MCU 模块、温度的 感应模块、时钟模块、控制模块、显示模块的设计。软件同样采用模 块化设计,软件模块中断模块、温度转化模块、时间调整模块的 设计。温度是生产过程和科学实验中普遍而且重要的物理参数之一。 在生产过程中,为了高效地进行生产,必须对它的主要参数,如温度、 压力、流量等进行有效的控制。温度控制在生产过程中占有相当大的 比例。温度测量是温度控制的基础,技术已经比较成熟。传统的测温 元件有热电偶和二电阻。而热电偶和热电阻测出的一般都是电压,再 转换成对应的温度,这
2、些方法相对比较复杂,需要比较多的外部硬件 支持。我们用一种相对比较简单的方式来测量。我们采用美国 DALLAS 半导体公司继 DS1820 之后推出的一种改进型智能温度传感器 DS18B20 作为检测元件,温度范围为-55125 C,最高分辨率可达 0.0625 C。 DS18B20 可以直接读出北侧温度值,而且采用三线制与单片机相连, 减少了外部的硬件电路,具有低成本和易使用的特点。 关键字:微控制器,数字控制;温度计,数字钟,AT89S51,DS18B20。 2 Abstract This paper introduced the design of digital clock and d
3、igital thermometer based on MCU of AT89S51. the specific process of how the system hardware and software achieved were detailed description through the design of multifunction digital clock and digital thermometer. The modular design and production, which consisted of MCU module,temperature sensor m
4、odule, clock module and the associated control module. As well as hardware designing ,software design use the same method, consists suspension module,time adjust module and temperature conersion module.temperature is the production process and scientific experiments in general and one of the important physical parameter. In the production process, in order to efficiently carry out the production, to be its main parameters, such as temperature, pressure, flow control, etc. Temperature co