数字式温度计的设计[摘要]随着人们生活水平的不断提高,单片机控制无疑是人们追求的目标一,但人们对它的要求越来越高,要为现代人工作、科研、生活、提供更好的更方便的设施就需要从数单片机技术入手,一切向着数字化控制,智能化控制方向进展。本设计所介绍的数字温度测量系统测温围从-10℃到 85℃,测量精度为±0.5 度,并且采纳 LED 显示。该设计控制器使用单片 AT89C2051,测温传感器使用 DS18B20,用 4 位共阳极 LED 数码管实现温度显示,能准确达到以上要求。[关键词] 数字式温度计 DS18B20 AT89C2051 数码管The design of the digital thermometer[Abstract]With people’s living standard rises ceaselessly, undoubtedly SCM control is one of the goals of the people’s to pursue, but people demand more and more of it for modern job, scientific research, life, providing more convenient facilities that needs microcontrollertech- nology developing from several of all towards digital control system, intelligent control direction. The design of the digital temperature measuring systemmeasuring ranges from minus 10 degrees Celsius to 85 degrees Celsius, themeasurement accuracy is 0.5 degrees Celsius, and useing of LED direct reading . Thisdesign uses AT89C2051 as single-chip microcomputer controller,as temperature sensor DS18B20, and a total of 4 cathode tube to realize LED digital temperature display.So it can exactly reach the requirements. [KeyWords]Digital thermometerDS18B20 AT89C2051 Digital tube目录引言 1第 1 章总体方案设计 21.1 温度测量系统设计方案 21.2 显示部分设计方案 21.3 总体设计框图 2第 2 章系统硬件电路设计 32.1 单片机模块 32.1.1 AT89C2051 功能与特性 42.1.2 单片机模块功能 42.2 温度采集部分硬件 62.2.1 温度传感器 DS18B2062.2.2 DS18B20 温度传感器与单片机的接口电路 82.3 显示部分电路设计 102.4 设计实物图 11第 3 章系统软件部分设计 123.1 主程序 123.2 读出温度子程序 123.3 温度转换命令子程序 133.4 计算温度子程序 143.5 显示数据刷新...