第 1 章 绪 论.......................................................................................................................................1
1 研究意义及背景......................................................................................................................1
2 设计目的..................................................................................................................................1
3 主要工作..................................................................................................................................1
第 2 章 系统概述................................................................................................................................2
1 系统方案..................................................................................................................................2
2 系统组成..................................................................................................................................2
1 AT89S52 单片机的介绍..........................................................................................................3
2 显示电路..................................................................................................................................4
3 DS18B20 介绍.........................................................................................................................6
3.1 温度传感器测温原理...................................................................................................7
4 系统工作原理..........................................................................................................................7
5 系统整体电路..........................................................................................................................8
1 主程序设计..............................................................................................................................9
2 DS18B20 初始化...................................................................................................................10
void ds1820rst(void)/*ds1820 复位*/.......................................................................................11
{.................................................................................................................................................11
unsigned char x=0;...................................................................................................................11
DQ = 1; //DQ 复位...................................................................................................................11
delay_18B20(4); //延时............................................................................................................11
DQ = 0; //DQ 拉低...................................................................................................................11
delay_18B20(100); //精确延时大于 480us.............................................................................11
DQ = 1; //拉高..........................................................................................................................11
delay_18B20(40);.....................................................................................................................11
3 DS18B20 温度传感器与单片机的接口电路.......................................................................12
4 数码管显示与单片机对接....................................................................................................13
第五章 实物图..................................................................................................................................29
总 结..................................................................................................................................................31