0 构成的多点测温系统[J].传感器世界, 1999, 9.Р[7] 杜洋,DS18B20温度传感器应用解析,2007.3.16Р[8] 马忠梅,张凯,等.单片机的C语言应用程序设计(第四版).北京航空航天大学出版社Р实验程序Р#include<reg51.h>Р#include<intrins.h>Р#difine uchar ;unsigned charР#difine uint ;unsigned intР#define delayNOP() {_nop_();_nop_();_nop_();_nop_();}Рsbit DQ =p3^3;Рsbit LCD_RS=p2^0;Рsbit LCD_RW=p2^1;Рsbit LCD_EN=p2^2;Рsbit MA =P1^0;Рsbit MB =p1^1;Рsbit PWM1 =p1^2;Рuchar code temp_DISP_Title[] ={"Current temp : "};Рuchar current_temp_Display_Buffer[]={"TEMP: "};Р//温度字符Рuchar code_temperature_char[8] ={0x0C,0x12,0x12,0x0C,0x00,0x00,0x00,0x00,0x00,};Р// 温度小数位对照表Рuchuar code df_Table[] ={0,1,1,2,2,3,3,4,4,5,6,6,7,8,8,9,9 };Рuchar CurrenT = 0; //当前读取的温度整数部分Рchar Signed_Temp = 0; //有符号温度值Рuchar Temp_Value[] = {0x00,0x00}; //从DS18B20读取温度值Рuchar Back_Temp_Value[] = {0xFF,0xFF}; //温度数据备份