摘要温度测量应用广泛,特别是在冶金、化工、建材、食品机械、石油等工业中,具有举足轻重的作用。数字温度计就是利用温度传感器将温度转换为电信号并通过显示单元显示的温度测量装置。数字温度计相比较传统的物理温度计,具有更高的稳定性,更高的精度,更直观的数值显示。课题是基于一线总线技术,采用Dallas半导体公司推出的数字化温度传感器DS18B20,通过PIC单片机进行控制,仅需占用一个I/O端口,无需任何外部元件,直接将温度转化成数字信号。系统的控制程序采用C语言在MPLAB编译器下进行编写。采用一线总线技术进降低了系统生产的成本,同时使系统更加集成化、小型化。49528

毕业论文关键词:一线总线;PIC单片机;DS18B20

 Abstract

Temperature measurement is widely used, especially in the metallurgical, chemical, building materials, food, machinery, oil industry, has a pivotal role.The digital thermometer is a temperature sensor, temperature is converted to electrical signals and the display unit to display the device. Compared to traditional physical thermometer digital thermometer has a higher stability, higher precision, more intuitive numerical display.This topic is based on wire bus technology, the digital temperature sensor of DS18B20 of Dallas,through the PIC microcontroller to control, only occupied by an I/O port, without any external components,it directly to the temperature into a digital signals. The system control program using C language to write in the MPLAB software. Wire bus technology into lower production costs of the system, while making the system more integrated, miniaturized.

Keywords:one wire bus;PIC microcontroller;DS18B20

 目  录

第一章  绪 论 1

1.1 课题背景 1

1.2 国内外研究现状 1

1.3 课题研究内容 2

1.4 设计方案 2

1.5 本章小结 3

第二章  芯片介绍 4

2.1 PIC单片机介绍 4

2.1.1 PIC单片机引脚功能 4

2.1.2 PIC16F877A指令简介 6

2.1.3 PIC单片机特点 6

2.2 DS18B20介绍 7

2.2.1 DS18B20引脚及特点 7

2.2.2 DS18B20结构及功能 8

2.2.3 DS18B20的测温原理 13

2.2.4 DS18B20指令 14

2.3 本章小结 17

第三章  系统程序设计 18

3.1 温度采集功能 18

3.1.1 DS18B20的初始化 19

3.1.2 DS18B20写数据 21

3.1.3 DS18B20读数据 23

3.1.4 温度转换子程序 26

3.2 温度显示 28

3.3 报警程序 29

3.4 延时程序 30

3.5 调试性能分析和注意事项 30

3.5.1 调试性能分析 30

3.5.2 DS18B20使用中的注意事项 31

3.6 本章小结

上一篇:玻镁板生产线上板机构控制系统设计
下一篇:电动绞车控制系统设计+梯形图+电路图

单片机数字红外测距系统设计+电路图+程序

基于Kinect手势识别的遥操...

基于51单片机自动门智能控制系统设计

STC89C52单片机智能温度监测系统设计

STC89C52单片机盲人用时钟的设计+电路图+程序

粉料称重装置的单片机控...

基于TI-DSP平台的电力电子测控平台设计

辩护律师的作证义务和保...

多元化刑事简易程序构建探讨【9365字】

浅谈新形势下妇产科护理...

高校网球场馆运营管理初探【1805字】

中国古代秘书擅权的发展和恶变

国内外无刷直流电动机研究现状

谷度酒庄消费者回访调查问卷表

浅谈传统人文精神茬大學...

《醉青春》导演作品阐述

拉力采集上位机软件开发任务书