摘要本文介绍了一个基于单片机的温度检测系统。详细描述了利用高速单片机Cygnal C8051F020结合单总线数字温度传感器DS18B20开发温度检测系统的过程。对系统中所用的每个器件及功能模块都进行了详细的介绍,该系统可方便的实现温度采集和显示,并可根据需要设定温度上下限,及决定是否开启报警功能。66232
本设计的内容主要分为两部分,一是对系统硬件部分的设计,包括测温电路、显示电路、复位电路、报警电路等;二是对系统软件部分的设计,包括硬件电路的监测程序,对DS18B20传感器的操作程序、对LCD1602显示屏的操作程序等。系统构成简单,运行速度快。
毕业论文关键词 温度检测 C8051F020 DS18B20 LCD1602
毕业设计说明书(论文)外文摘要
Title Design of Temperature Detecting System Based on MCU
Abstract This thesis focuses on a temperature measurement system which is based on the single chip microcomputer. There is a detailed introduction to the process about a system which combines the high-speed microprocessor Cygnal C8051F020 with the 1-Wire digital temperature sensor DS18B20 to develop the temperature measurement system. Furthermore, there is also detailed descriptions of devices and function modules in this system, which could conveniently achieve the goals of temperature acquisition and display, as well as deciding whether to open alarm function or not.
In this thesis, there are two major parts. One is the hardware unit design of the system that includes the measurement circuit, display circuit, reset circuit and alarm circuit. The other is the software unit design that includes hardware circuit, monitoring program, the operating procedure of the sensor DS18B20, and the program of the display screen LCD1602. In conclusion, this system is simple and fast as well.
Keywords temperature detecting C8051F020 DS18B20 LCD1602
目 次
1 引言 1
1.1 单片机概述 1
1.2 温度传感器概况 2
1.3 课题的主要工作 3
1.4 课题的设计目的 4
2 器件选择 4
2.1 单片机芯片的选择 4
2.2 温度传感器的选择 8
2.3 显示组件的选择 10
3 硬件电路设计 11
3.1 复位电路 11
3.2 振荡电路 12
3.3 测温电路 14
3.4 显示电路 15
3.5 报警电路 17
3.6 按键电路 18
4 程序设计 19
4.1 初始化 19
4.2 LCD1602操作 19
4.3 DS18B20操作 20
4.4 按键程序 25
结论 26
致谢 27