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.

How to connect the 8051 with the adc0808?

Status
Not open for further replies.

Rizwanishaq

Junior Member level 3
Junior Member level 3
Joined
Sep 26, 2006
Messages
30
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Pakistan
Activity points
1,583
how to connect the 8051 with the adc0808 tell the code with only two input
 

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.
 

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 ?
 

interfacing adc0808 with 8051

refer following circuit


60_1166368822.JPG
 
  • Like
Reactions: bipinj

    bipinj

    Points: 2
    Helpful Answer Positive Rating
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).
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top