Analoge to Digitel convertion in pic

Status
Not open for further replies.

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 .
 

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.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…