This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

On-Chip Temperature sensor

Hi, I am using C8051F023 micro controller in one of the board.
When I try to read the on chip temperature sensor it gives me the data as 0x170.
This temperature increases linearly(170 - 179) when i remove fan from my system.

The problem here is., how do i interpret this data and have a meaningful temperature data.

Configuration: ADC0CN = 0x00; /* ADC0 off; set data right-justified */ REF0CN = 0x07; /* enable temp sensor, on-chip VREF */ ADC0CF = 0x48; /* ADC conversion clock = 2.5MHz, Gain = 1 */ EIE2 = 0x02; /* enable ADC0 end of conversion interrupt */ ADC0CN = ADC0CN | 0x80; /* start the ADC - Right Justified */

AMX0SL = 0x08; //temperature sensor.

Thanks in Advance.

Regards,
Ragavan.