electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

ADC0808 and 8051


Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers > ADC0808 and 8051
Author Message
Rizwanishaq



Joined: 26 Sep 2006
Posts: 31
Location: Pakistan


Post27 Nov 2006 9:49   

adc0808


how to connect the 8051 with the adc0808 tell the code with only two input
Back to top
budhy



Joined: 21 Oct 2006
Posts: 836
Helped: 186
Location: Indonesia


Post27 Nov 2006 10:37   

adc0808 8051


Quote:
tell the code with only two input

What do you mean?
Back to top
vibeeshpv



Joined: 19 Oct 2006
Posts: 51
Helped: 2


Post27 Nov 2006 11:40   

adc 0808


connect 8 data o/p of adc to mc.then provide proper clk 4 adc.also select chanel using 3 selector frm mc.then send start signal frm mc to adc..wait for eoc frm adc.then read the data.
Back to top
ahmedsalah00



Joined: 27 Nov 2006
Posts: 43
Helped: 1
Location: Cairo - Egypt


Post27 Nov 2006 20:23   

adc0808 interfacing with 8051


You can connect the ADC as an external memory and this will save I/O pins for you:

Connect as the following:
ADC D0-D7 ------- 8051 P0.0 -P0.7
ADC EOC -------- 8051 INT0 (P3.2)
ADC SOC ------- 8051 Any Free Pin (P1.0 for example)
ADC A0,A1,A2 ----- 8051 A13(P2.5), A14(P2.6), A15(P2.7)

Now you can access the analog data (N0-N7) as 7 RAM memory addresses

Example:
Binary adress of N0 = (A15 MSB) 000x xxxx xxxx xxxx (A0 LSB)
Binary adress of N3 = (A15 MSB) 011x xxxx xxxx xxxx (A0 LSB)
Binary adress of N7 = (A15 MSB) 111x xxxx xxxx xxxx (A0 LSB)

1 - In your program you can initiate conversion by writting SOC (P1.0)
2- Wait for Interrupt INT0
3- In Interrupt service routine read analog data from the corresponding memory address


Did I forget Anything ?
Back to top
Google
AdSense
Google Adsense




Post27 Nov 2006 20:23   

Ads




Back to top
ashad



Joined: 28 Mar 2006
Posts: 320
Helped: 10
Location: Singapore


Post17 Dec 2006 16:20   

interfacing adc0808 with 8051


refer following circuit


ADC0808 and 8051
Back to top
jammulak



Joined: 19 Jul 2006
Posts: 37
Helped: 1
Location: India


Post18 Dec 2006 5:30   

adc0808 interfacing to 8051


When you interface ADC with MCU the following Connection should be made

1. Data Line (you can connect to port pins of 8051)

2. Chip Select, (You can make GND for always enable of the PIN)

3. SOC,EOC ( EOC can be given to external interrupts to avoid polling);

SOC( start of converstion should be given from microcontrooler to start the converstion).
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers > ADC0808 and 8051
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
8051 and ADC0808 (2)
ADC0808 and 8051 (3)
Using the ADC0808 with an 8051 µC (2)
connect ADC0808 and PIC18F4550 (3)
Problem with designing voltmeter with 89C52 and ADC0808 (4)
what is the difference between intel 8051 and atmel 8051? (4)
ADC0808 Clock (2)
ADC0808 & LM35 (4)
datasheet for ADC0808 required (4)
89s52 interfacing with adc0808 (5)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS