摘 要随着人们生活水平的不断提高,单片机控制无疑是人们追求的目标之一,它所给人带来的方便也是不可否定的,其中数字温度计就是一个典型的例子,但人们对它的要求越来越高,要为现代人工作、科研、生活、提供更好的更方便的设施就需要从数单片机技术入手,一切向着数字化控制,智能化控制方向进展。 本设计所介绍的数字温度计与传统的温度计相比,具有读数方便,测温范围广,测温准确,其输出温度采纳数字显示,主要用于对测温比较准确的场所,或科研实验室使用。 本设计分为硬件设计和软件设计。硬件系统由 3 个模块组成:主控制器、测温电路和显示电路。软件系统程序主要包括主程序,读出温度子程序,温度转换命令子程序,计算温度子程序,显示数据刷新子程序等。单片机 AT89C51 具有功能强,体积小,功耗低,价格便宜,工作可靠,使用方便等特点。所以在本设计中采纳单片机 AT89C51 作为控制器来控制电路。测温传感器使用 DS18B20,因为传感器 DS18B20 具有读数方便,测温范围广,测温准确。用 4 位 LED 数码管以串口传送数据,实现温度显示。关键词: 单片机 AT89C51、DS18B20 传感器、4 位共阳极 LED 数码显示管。 AbstractWith the constant improvement of people's living standard, it is undoubtedly one of the goals which people pursue that the one-chip computer controls, the convenience that it brings to somebody can't be denied either, among them the digital thermometer is a typical examp .But the requirements to it of people are higher and higher, want working for modern, scientific research, life, offering the better facilities more conveniently to need starting with counting the one-chip Originally design digital thermometers recommended to compare with traditional thermometer, convenient to have reading, it is warm and in extensive range to examine, it is warm and accurate to examine Originally design and is divided into hardware designing and software design. The hardware system is made up of 3 pieces of module: Master controller, examining the warm circuit and revealing the circuit....