单片机课程设计报告题 目:基于单片机的数字温度计设计教 学 系:***年 级、专 业:2025 级电子科学和技术(1)班姓 名 学 号:*********指 导 教 师:***完 成 时 间:2025 年 6 月基于单片机的数字温度计设计作者:*** 指导老师: ***(年级专业:2025 级电子科学和技术一班)摘 要:本文介绍一种基于 AT89S52 单片机的一种温度测量及报警电路,该电路采纳 DS18B20 作为温度监测元件,测量范围—55℃—~+125℃,使用 4 位 LED 模块显示,能通过键盘设置温度报警上下限。正文着重给出了软硬件系统的各部分电路,介绍了集成温度传感器 DS18B20 的原理,AT89S52 单片机功能和使用。该电路设计新颖、功能强大、结构简单。关键词:温度测量 DS18B20 AT89S52Abstract : 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 前言······························································32 方案设计··························································33 系统的硬件设计····················································43。1 主控制器························································43。2 显示电路························································53.3 温度传感器...