文档详情

单片机课程设计——温度测量系统资料.doc

发布:2016-04-05约8.89千字共15页下载文档
文本预览下载声明
摘 要 随着现代信息技术的飞速发展和传统工业改造的逐步实现,能够独立工作的温度检测与显示系统应用于诸多领域。传统的温度检测以热敏电阻为温度敏感元件。热敏电阻的成本低,需要外加信号处理电路,而且可靠性相对较差,测温准确度低,检测系统也有一定的误差。与传统的温度计相比,这次设计的是基于DS18B20的数字温度计,它具有读数方便,测温范围广,测温精确,数字显示,适用范围宽等特点。 在本设计中选用AT89C52型单片机作为主控制器件,采用DS18B20数字温度传感器作为测温元件,通过4位共阴极LED数码显示管并行传送数据,实现温度显示。本设计的内容主要分为两部分,一是对系统硬件部分的设计,包括温度采集电路和显示电路;二是对系统软件部分的设计,应用C语言实现温度的采集与显示。通过DS18B20直接读取被测温度值,送入单片机进行数据处理,之后进行输出显示,最终完成了数字温度计的总体设计。其系统构成简单,信号采集效果好,数据处理速度快,便于实际检测使用。 关键词:单片机AT89C51;温度传感器DS18B20;LED数码管;数字温度计 Design based Digital Thermometer DS18B20 Abstract Along with the present information technologys swift development and traditional industry transformations gradual realization. Able to work independently of the temperature detection and display system used in many other fields. Traditional temperature examination take thermistor as temperature sensitive unit. Thermistors cost is low, needs the sur- signal processing electric circuit, moreover the reliability is relatively bad, the temperature measurement accuracy is low, the examination system also has certain error. the digit demonstrated that applicable scope wide and so on characteristics. Used in the design AT89C51 MCU as the main control including temperature gathering electric circuit and display circuit; Second, to the system software parts design, realizes temperature gathering and the demonstration using the C language. DS18B20 measured by direct reading temperature values,and transfer Data into MCU,and output to show,this is the design of the Digital Thermometer. Its system constitution is simple, the effect of signal gathering is good, the speed of data processing is quick,at al it is advantageous for the actual examination use. Keywords: MCU AT89S51; Temperature Sensor DS18B20; LED Digital tube Digital Thermometer 目 录 1 引言 2 总体方案设计 4 2.1 方案论证 4 2.2 总体设计框图 5 3硬件设计 6 3.1 时钟电路 6 3.2 复位电路 6 3.3 温度传感器 7 3.4 显示电路 7 3.5 系统总电路图 7 4 系统软件设计 8 4.1 主程序 8 5.2 读温度子程序 8 5.3 温度转换命令子程序 8 5.4 计算温度子程序 8 5.5 显示数
显示全部
相似文档