/* Return the Temperature: degrees / 10, Celcius or Fahrenheit. */
u16 UTIL_GetTemp(void)
/* Return the Temperature: degrees / 10, Celcius or Fahrenheit. */
u16 UTIL_GetTemp(void)
{
   s32 temp;
   s16 *p=&ADC_ConvertedValue[1];
   temp = (p[0]+p[1]+p[2]+p[3]+p[4]+p[5]+p[6]+p[7])/8;
   temp = temp & 0xFFF;
   temp = ( temp * VDD_VOLTAGE_MV ) / 0x1000;
   temp = (((1400-temp)*100000)/448)+25000;
   if ( fTemperatureInFahrenheit ) 
      {
      temp = 32000 + (9 * temp) / 5 ;
      }
   return temp / 100;
   }