Mar 10, 2011 #1 S shahid_c Newbie level 5 Joined Mar 5, 2011 Messages 9 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,343 to all i am convertting temp to display using pic 16f877a and i get the ADRESL & ADRESH out(10 bit binery out) but i can not convert the out to degree centigrade . how can i convert that in to a value in *c? i use lm35 .
to all i am convertting temp to display using pic 16f877a and i get the ADRESL & ADRESH out(10 bit binery out) but i can not convert the out to degree centigrade . how can i convert that in to a value in *c? i use lm35 .
Mar 10, 2011 #2 P prmurthy Full Member level 5 Joined Feb 13, 2009 Messages 243 Helped 38 Reputation 76 Reaction score 34 Trophy points 1,308 Activity points 2,770 Here is the link Seven Segment Display Thermometer with PIC Microcontroller | ermicroblog Thankyou
Mar 10, 2011 #3 malik_zohaib Full Member level 5 Joined Sep 1, 2010 Messages 261 Helped 36 Reputation 72 Reaction score 35 Trophy points 1,308 Location Pakistan Activity points 2,707 Sensor o/p = ADC result*5/1023 (if 10 bit adc) Temp in Celsius = Sensor o/p * 100; where are ADC result = ((ADRESH << 8 ) +(ADRESL)) as you have to add 2 bit of adresh with 8 bit of adresl.
Sensor o/p = ADC result*5/1023 (if 10 bit adc) Temp in Celsius = Sensor o/p * 100; where are ADC result = ((ADRESH << 8 ) +(ADRESL)) as you have to add 2 bit of adresh with 8 bit of adresl.