| Author |
Message |
Rizwanishaq
Joined: 26 Sep 2006 Posts: 31 Location: Pakistan
|
27 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
|
27 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
|
27 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
|
27 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

|
27 Nov 2006 20:23 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
ashad
Joined: 28 Mar 2006 Posts: 320 Helped: 10 Location: Singapore
|
17 Dec 2006 16:20 interfacing adc0808 with 8051 |
|
|
|
|
refer following circuit
|
|
| Back to top |
|
 |
jammulak
Joined: 19 Jul 2006 Posts: 37 Helped: 1 Location: India
|
18 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 |
|
 |