We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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.