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