
unsigned int Get_temp(void)         //?????? 
{  
	float tt;
	unsigned char a,b,c,d,e,f;
	unsigned int temp;
	if( GX18B20_Init() == 0 )                //3???
	{
		GX18B20_Write_Byte(0xcc);          //o???ROM???
		GX18B20_Write_Byte(0x44);          //???a?????
	
	//	_delay_ms(850);				//PROTEUS???Da?
	
		if( GX18B20_Init() == 0 )                 //3???
		{
			GX18B20_Write_Byte(0xcc);          //o???ROM???
			GX18B20_Write_Byte(0xbe);          //??Y?????
			a = GX18B20_Read_Byte();           //????̨??????a???LSB
			b = GX18B20_Read_Byte();           //????̨??????a???MSB
			c = GX18B20_Read_Byte();
			d = GX18B20_Read_Byte();
			e = GX18B20_Read_Byte();
			f = GX18B20_Read_Byte();
			
			
	temp = b*256+a;
	temp = temp<<2;
	temp += e&0x03;
	tt   = temp*0.015625;
			
		
		}
	}
	return tt;
}