- 1、本文档共32页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
摘 要
随着时代的进步和发展,单片机技术已经普及到我们生活,工作,科研,各个领域,已经成为一种比较成熟的技术,本文将介绍一种基于单片机控制的,本可以置报警温度,当温度不在设置范围内时,可以报警。采用AT89S51主控制器和美国DALLAS半导体公司推出的改进型智能温度传感器DS18B20作为检测元件。实现了对环境温度的实时监测,并能在预设的温度范围内用LED显示,同时在超过预设范围时产生报警信号。分析了温度传感器的工作原理、系统硬件电路以及软件部分的设计实际测试表明,该方案切实可行,并已在许多通信领关 键 词···············································································································
1.方案论证
1.1.设计要求································································································5
1.2.设计方案论证························································································5
1.3.总体设计框图························································································6
2.系统组成及工作原理
2.1.单片机接口电路与DS18B20温度传感器···········································7
2.2.7断LED数码管电路及原理·······························································8
2.3.系统整体硬件电路···············································································10
3.系统软件算法分析
3.1.主程序···································································································15
3.2读出温度子程序···················································································15
3.3温度转换命令字程序·············································································
3.4计算温度子程序·····················································································
4.实验调试及测试结果分析···········································································18
5: 附录
5.1 程序···································································································
5.2元器件清单·························································································20
引言
随着人们生活水平的不断提高,单片机控制无疑是人们追求的目标之一,它所给人带来的方便也是不可否定的,其中数字温度计就是一个典型的例子,但人们对它的要求越来越高,要为现代人工作、科研、生活、提供更好的更方便的设施就需要从单片机技术入手,一切向着数字化控制,智能化控制方向发展。本设计所介绍的数字温度计与传统的温度计相比,具有读数方便,测温范围广,测温准确,其输出温度采用数字显示,主要用于对测温比较准确的场所,或科研实验室使用,该设计控制器使用单片机AT89S51,测温传感器使用DS18B20,用位共极LED数码管实现温度显示,能准确达到以上要求。2 总体设计方案.2.1数字温度计设计方案论证方案一由于本设计是测温电路,可以使用热敏电阻之类
文档评论(0)