文档详情

单片机温控系统论文讲述.doc

发布:2017-03-22约1.68万字共39页下载文档
文本预览下载声明
河南科技学院 2010 届本科毕业设计 设计题目:基于单片机的温度控制系统的设计与实现 学生姓名: 所在院系: 所学专业: 导师姓名: 完成时间: 2011-05-25 摘要 本论文介绍了一种以AT公司的89S52 单片机为主要控制元件,通过DALLAS公司的DS18S20 温度传感器测温的新型数字温度计。主要包括硬件电路的设计和系统程序的设计。硬件电路主要包括主控制器,测温电路和显示电路等,主控制器采用单片机AT89S52,温度传感器采用美国DALLAS 半导体公司生产的DS18S20,显示电路采用4位共阳极LED 数码管以动态扫描法直读显示。系统程序主要包括主程序,读出温度子程序,温度处理子程序,报警子程序,报警温度值设定子程序,LED 显示子程序等。此外,还介绍了系统的测试。 本数字温度计设计采用美国DALLAS 半导体公司推出的一种智能温度传感器DS18S20作为检测元件,测温范围为-55~125℃,最大分辨率可达0.0625℃。 主控制器采用单片机AT89S52,其集成度高,片内资源丰富,接口模块包括SPI、SCI、A/D、PWM 等。显示电路采用4 位共阳极LED 数码管,从P0口输出段码,列扫描用P2口来实现。 由于采用了改进型智能温度传感器DS18S20 作为检测元件,与传统的温度计相比,本数字温度计减少了外部的硬件电路,具有低成本和易使用的特点。DS18S20 温度计还可以在高温报警、远距离多点测温控制等方面进行应用开发,具有很好的发展前景。 关键词 单片机 主控制器 温度传感器 显示电路 数字温度计 Design and Implementation of Temperature Control System Based on Single Chip Microcontroller Abstract This thesis introduces a sort of controller bases on the principle of MCU, a new typeof digital thermometer bases on temperature sensor DS18S20. This thesis mainly containshardware circuit design and system program design. Hardware circuit mainly contains mastercontroller, temperature detection circuit and display circuit, etc. master controller usesAT89S52,temperature sensor uses DS18S20, which is produced by DALLASsemiconductor company ,USA. Display circuit uses 4 bit common cathode LED nixietube, it candirectly read the result by dynamic scanning. System program mainly contains main program,read temperature subprogram, temperature treatment subprogram, LED display subprogram, etc.In addition, it also introduces system test. This digital thermometer design uses a sort of intelligent temperature sensor DS18S20,which is produced by DALLAS semiconductor company, USA ,as a detecting element,temperature measuring range is-55℃~℃,the maximum resolution is 0.0625℃.Master controller usesAT89S52 MCU, it is highly integrated, it’s internal resource isplentiful, it’s interface module contains SPI、SCI 、A/D、 PWM ,etc.Display circuit
显示全部
相似文档