Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Analog to Digital Conversion on 8051

Status
Not open for further replies.

musa.h

Newbie level 4
Joined
Oct 26, 2005
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,325
Hi all,
I am using the ADC0820 on an 8051 for temperature sensing on an 8051 microcontroller (the Atmel 89C51RB2 to be exact). I only require 5-bit resolution though, but the ADC0820 is an 8-bit converter. Can I use only the 5 LSB pins on the ADC and ignore the other 3 or do I have to use all 8?

Thank You very much,
Musa
 

Thank You very much Laktronics. Can you explain why I'd have to use the 5 MSBs and not the LSBs please? I don't understand that part.

Thank You!
 

LSB adds precision to measured temperature. If you get just 5 MSB, the value have associated to it, a bigger error.
 

Hi,
It is true that by throwing away the three LSBs, your precision of measurement gets reduced from 1/256 to 1/32. But by asking for a 5bit resolution you are OK with it.
Now let us consider the issue of why 5MSBs and not 5 LSBs. Let us consider a 10bit AD converter with a full scale value of 10Volts. The weightage of the MSB in this case will half the full scale=5V. So if you apply 5V to this ADC, the MSB will be set and all other bits will be zero. Now if you throw away the MS three bits, you will get the answer as Zero. If you take five MS bits, you will still get the correct answer. But because you have thrown away three LSBs, your digital value will change next only when the input changes by 1/32 of full scale 10V = 0.3V approx.
Regards,
Laktronics
 

you can us e 89c2051 with analog comparator it is very simple to change without any a/d
 
Hi,

Are you looking for the code.

Ben Erasmus
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top