课程设计(论文)说明书
题目:基于51单片机设计的数字温度计
院(系):
专业:
学生姓名:
学号:
指导教师:
2011年 12 月 2 日
摘要
本论文介绍了一种以单片机为主要控制器件,以DS18B20为温度传感器的新型数字温度计。主要包括硬件电路和系统程序的设计。硬件电路主要包括主控制器,测温控制电路和显示电路等,主控制器采用单片机AT89C52,温度传感器采用美国DALLAS半导体公司生产的DS18B20,显示电路采用LCD1602直读显示。测温控制电路由温度传感器组成。系统程序包括主程序,测温子程序和显示子程序等。DS18B20新型单总线数字温度传感器是DALLAS公司生产的单线数字温度传感器,集温度测量和A/D转换于一体,直接输出数字量,具有接口简单、精度高、抗干扰能力强、工作稳定可靠等特点。
关键词:单片机;AT89C52;温度传感器DS18B20;LCD1602;
ABSTRACT
The paper introduced one kind new digital thermometer that take the MicroController Unit as the primary and take DS18B20 as the temperature sensor. Mainly included the design of the hardware electric circuit and the design of the system program. The hardware electric circuit mainly included the master controller,the temperarure measured electric circuit and the display circuit and so on,the master contoller used Micro Contronller Unit AT89C52,the trmperature sensor used DS18B20 which the American DALLAS pany produces,the display circuit used LCD1602 straight to read the control circuit from trmperature sensors .The system program mainly included the master routine,the temperature subroutine,the data tenovates subroutine and so is a digital temperature sensor of single bus .It is producted by DALLAS temperature measure and A/D converter,exports digital signal directly,operation easily,better precise,protecting disturb,running steably and so on.
KEY WORDS:Microcontroller Unit;AT89C52;Temperature sensor DS18B20;LCD1602
目录
摘要 1
引言 3
1、设计任务及方案分析 3
设计任务及要求 3
设计原则 3
设计总体方案及分析 3
3
4
4
2、主要芯片简介及部分相关电路结构介绍 4
AT89C52 4
4
5
6
6
6
、DS18B20温度传感器与单片机的接口电路 9
10
、 LCD1602 10
12
3、软件编程调试及性能分析 12
主程序 12
13
14
14
14
14
14
结论 15
谢辞 16
参考文献
课程设计(论文)-基于51单片机设计的数字温度计 来自淘豆网m.daumloan.com转载请标明出处.