内容发布更新时间 : 2024/12/27 19:57:36星期一 下面是文章的全部内容请认真阅读。
单片机课程设计报告
姓 名:学 号:班 级:学 院:机电学院指导老师:
单片机课程设计报告
基于单片机的数字温度计设计
摘 要:本文介绍一种基于AT89S51单片机的一种温度测量电路,该电路采用DS18B20作为
温度监测元件,测量范围0℃~99℃,使用2位LED模块显示。正文着重给出了软硬件系统的各部分电路,介绍了集成温度传感器DS18B20的原理,AT89S51单片机功能和应用。该电路设计新颖、功能强大、结构简单。
关键词:温度测量 DS18B20 AT89S52
1
单片机课程设计报告
目 录
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 主程序·······················································10 5 总结·····························································16 参考文献···························································17
2