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.

ADC0808 outputting random values

Status
Not open for further replies.

imani9009

Newbie level 5
Joined
May 30, 2010
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,332
I have interfaced an atmel 89c51 with ADC0808. Vrf+ 5v.Vref- 0v.Given the clock through uC.
I have also interfaced it with max232. Done the programming so that the ADC has three inputs and uC initiates the ADC0808 and sends the outputs to serial port. Input values are converted into Decimal and then ASCII (to display on hyperterminal). While I give 0 volts to all inputs.
The output is
000,000,000
When I give 5 volt to 1st input. The output appears as
255,000,000
But when i give input value between 0-5 volt.e.g 2.5 volt. the ouptut is still
000,000,000
I could not understand what could be the problem.
I have uploaded the proteus.simlulation file,c and hex code
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top