"AT89S52单片机数字温度计设计报告"

需积分: 5 0 下载量 10 浏览量 更新于2024-01-12 收藏 988KB DOC 举报
Based on the given information, the document titled "Design of Digital Temperature Gauge Based on MCU" discusses the design of a temperature measuring and alarm circuit using the AT89S52 microcontroller and DS18B20 temperature sensor. The circuit features a temperature measurement range of -55°C to 125°C and utilizes a 4-digit LED module for displaying the temperature. The temperature alarm upper and lower limits can be set using a keypad. The main body of the document focuses on describing the various circuit components of the hardware and software systems. It explains the principles of the integrated temperature sensor DS18B20 and the functionalities and usage of the AT89S52 microcontroller. The design of the circuit is innovative, powerful, and structurally simple. In summary, the document presents a detailed overview of the design and implementation of a digital temperature gauge based on a microcontroller. It introduces the key components, provides explanations of their functionalities, and highlights the uniqueness and advantages of the circuit design. The digital temperature gauge offers accurate temperature measurement and customizable temperature alarm settings, making it a valuable tool in various applications. Keywords: temperature measurement, DS18B20, AT89S52, microcontroller, digital temperature gauge design.
2023-02-27 上传
单片机课程设计报告 "题 目: "基于单片机的数字温 " " "度计设计 " "教 学 系: "*** " "年 级、专 业: "2010级电子科学和技 " " "术(1)班 " "姓 名 学 号: "*** " " "*** " " "*** " "指 导 教 师: "*** " "完 成 时 间: "2012年6月 " 基于单片机的数字温度计设计 作者:*** 指导老师: *** (年级专业:2010级电子科学和技术一班) 摘 要:本文介绍一种基于AT89S52单片机的一种温度测量及报警电路,该电路采用DS18B20作 为温度监测元件,测量范围-55 - ~+125 ,使用4位LED模块显示,能通过键盘设置温度报警上下限。正文着重给出了软硬 件系统的各部分电路,介绍了集成温度传感器DS18B20的原理,AT89S52单片机功能和使 用。该电路设计新颖、功能强大、结构简单。 关键词:温度测量 DS18B20 AT89S52 Abstract : The introduction of a cost-based AT89S52 MCU a temperatur measurement circuits, the circuits used DS18B20 high-precision temperatur sensor , measuring scope -55 -~+125 ,can use the keybord set the warning limitation, the use of four bits seven segments LED that can be display the current temperature. The paper focuses on providing a software and hardware system components circuit, introduced the theory of DS18B20, the founctions and applications of AT89S52 .This circuit design innovative, powerful, can be expansionary strong. Key Words : Temperatur measurement DS18B20 AT89S52 目 录 1前言······························································3 2方案设计··························································3 3 系统的硬件设计····················································4 3.1 主控制器························································4 3.2 显示电路························································5 3.3 温度传感器工作原理··············································6 3.4 温度传感器接口电路··············································9 4 系统的软件设计····················································9 4.1 主程序··························································9 4.2 温度测量························································9 4.2.1 初始化DS18B20················································9 4.2.2 等待应答信号·················································10 4.2.3 DS18B20读字节···············································10 4.2.4 DS18B20写字节················································11 4.2.5 启动温度测量·················································12 4.2.6 读取测量结