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.
Problem interfacing adc0808 with 8051.
I have uploaded the schematic files and hex file for 8051 also.
I have set the Vref(+)=2.5 and the Vin to 2.5.
In this case the ADC should have an ouptut FF. But the output is not FF.
Can someone explain the reason
connect some led's to the output of the adc and vary the adc input voltage
check the status of the led and you will come to know whether the system of functioning ok or not
I have found that ADC output pins are inverted in Proteus. So, just invert the pin connections. In you circuit OUT1...OUT7 is connected to P1.0...P1.7, So, connect it like OUT1...OU7 = P1.7...P1.0
Problem interfacing adc0808 with 8051.
I have uploaded the schematic files and hex file for 8051 also.
I have set the Vref(+)=2.5 and the Vin to 2.5.
In this case the ADC should have an ouptut FF. But the output is not FF.
Can someone explain the reason
first: the schematic is correct,but i suggest using a resistor for input.
second: i think your code has some problems!!
did you noticed the timing diagram of ADC0808??!!!
third : i found the problem: you have chosen the adc=001, and it means you have chosen the in4 pin,so you should connect the input to in4 pin and it works!!:wink: don't forget the resistor for input
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.