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 using 89c2051

Status
Not open for further replies.

Micro Lover

Member level 2
Joined
Jul 22, 2009
Messages
44
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
pakistan
Activity points
1,614
hi
i want to read the analog signal using 89c21, and convert it to digital

e.g

if signal signal is 5v then convert it to 255 in digital form, and if signal is 2.5 volt then it will be 127

is it possible, if yes then HOW?

using software : KEIL
language : C

thnx
 

you can use 8 bit adc ad0804 and its easy for conversion hope you are familial with analog to digital conversion(ADC).

**broken link removed**

see this site


if signal signal is 5v then convert it to 255 in digital form, and if signal is 2.5 volt then it will be 127

is it possible, if yes then HOW?

if you use 8bit adc it will give you 0 to 255 digital count according your analog voltage you want 255 at 5v so set your vref+ to 5 v and vref- grnd so your maximum rang is 5v
and at half rage 2.5 v you will get 127 count i think that's what are you looking for.
 
Last edited:

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top