free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
Destructionxman
Wed Apr 02 2008, 07:26AM
 User Offline
Registered Member #6560
Joined: Mon Mar 10 2008, 11:03PM

Posts: 2
Thanked 0 times in 0 posts
Can anyone help me..
Am using PIC16F877A and am using ADRESL and ADRESH for geting back the result.
Am having 10mv per degree celcius resolution.10 bit value is in different register.
So how to convert it back...
PROJECT is Temperature monitoring in a two seven sement display using LM35 sensor.



SHK
Back to top


Ajay
Wed Apr 02 2008, 08:34AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3753
Thanked 696 times in 655 posts
first you need to find out what is the voltage for single step..
i.e. if ADC value changes from 0 to 1, then what is the value of voltage during that step.

you already know that 10mV = 1 degree so.. you can easily calibrate the ADC value to temperature.

Is this what you are asking?

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


sashijoseph
Wed Apr 02 2008, 08:41AM

 User Offline
Registered Member #5870
Joined: Mon Feb 04 2008, 06:26PM

Posts: 554
Thanked 124 times in 117 posts
What Vref have you chosen?
Suppose your Vref is 1.023v(or 1023mV).Your step size is therefore 1023mV\2^10.
Step size = 1mV.
Now you multiply this step size to the 10 bit value in the ADRESL and ADRESH to get the Vin value.
So suppose you get a value 0x3E7 (or 999 decimal),you multiply it with ss 1mv.
Thus Vin = 999x1=999mV.
Then temp = 999\10=99.9deg

Let there be music........
Back to top


 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems