//通过18B20检测的数字温度可在电脑上显示当前温度值
#include <reg52.h>
#define uchar unsigned char
#define uint unsigned int
sbit DS=P2^2 //define interface
uint temp // variable of temperature
uchar flag1 // sign of the result positive or negative
sbit dula=P2^6
sbit wela=P2^7