毕业论文

打赏
当前位置: 毕业论文 > 自动化 >

PIC单片机基于一线总线温控系统的设计

时间:2020-05-23 22:07来源:毕业论文
基于一线总线技术,采用Dallas半导体公司推出的数字化温度传感器DS18B20,通过PIC单片机进行控制,仅需占用一个I/O端口,无需任何外部元件,直接将温度转化成数字信号。系统的控制程

摘要温度测量应用广泛,特别是在冶金、化工、建材、食品机械、石油等工业中,具有举足轻重的作用。数字温度计就是利用温度传感器将温度转换为电信号并通过显示单元显示的温度测量装置。数字温度计相比较传统的物理温度计,具有更高的稳定性,更高的精度,更直观的数值显示。课题是基于一线总线技术,采用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 本章小结 PIC单片机基于一线总线温控系统的设计:http://www.751com.cn/zidonghua/lunwen_52527.html

------分隔线----------------------------
推荐内容