/* Read ADT7301 temperature value and handle data in float.  */
float ADT7301TemperReadFloat(void)
/* Read ADT7301 temperature value and handle data in float.  */
float ADT7301TemperReadFloat(void)
{
    float fTem;
    short sTempValue;
    sTempValue = ADT7301TemperRead();
    if ((0x2000 & sTempValue) == 0x2000)
    {
        fTem = (float)(sTempValue - 16384) * 0.03125;  
    } 
    else
    {
        fTem = (float)(sTempValue * 0.03125);           
    }
    return fTem;
}