- 2076 Asoj · 5 marks
Interfacing 8-channel 8-bit ADC with 8085
Short answer
ADC0808 is interfaced to 8085 via I/O port 80H: OUT 80H pulses ALE and START together with channel number on D0–D2; after EOC rises (~100 µs), IN 80H enables OE and reads the 8-bit data. Clock is 640 kHz, resolution 19.5 mV per count.
With necessary diagram, Explain interfacing of 8 channel 8 bit ADC with 8085 microprocessor along with timing diagram.
The ADC0808/0809 is an 8-bit successive approximation ADC with an 8-channel analog multiplexer. It needs a clock (10-1280 kHz, typically 640 kHz), and has control pins ADD A, B, C (channel select), ALE (address latch enable), START, EOC (end of conversion) and OE (output enable).
Interfacing (I/O mapped, port 80H)
Analog IN0-IN7 ->+-------------+
| ADC 0808 |-- D0-D7 --> AD0-AD7 (via IN)
8085 D0-D2 ----->| ADD A,B,C |
IOW' + A7..A0 | ALE & START |<-- from decoder (OUT 80H)
decoder (80H) -->| |
IOR' + decoder ->| OE |
RST 5.5 / polled<-| EOC |
CLK OUT / 4 ---->| CLK 640 kHz |
| Vref+=5V, Vref-=0
+-------------+
OUT 80H puts the channel number on D0-D2 and gives a pulse on ALE and START together; IN 80H makes OE high and reads the data. EOC can be read through an input buffer (polling) or connected to an interrupt input.
Timing diagram
ADD A,B,C ---< channel valid >-----------------------
ALE ______/------\______________________________
START ______/------\______________________________
EOC -------------\_____________________/--------
|<-- conversion ~100us -->|
OE _________________________________/-----\____
D0-D7 -------------------------------< valid >----
- Address is valid; ALE goes high and latches it.
- START: the rising edge resets the ADC, the falling edge begins conversion; EOC falls (within 8 clock periods).
- After about 100 us, EOC rises.
- OE goes high; data appears on D0-D7 (output delay about 250 ns); the CPU reads it.
Program
MVI A,03H ; channel 3
OUT 80H ; address, ALE, START
MVI C,FFH
DELAY: DCR C
JNZ DELAY ; wait more than 100 us (or poll EOC)
IN 80H ; read data (OE active)
STA 2050H
HLT
Resolution: 5 V / 256 = 19.5 mV per count.
✓ Answer checked by Claude Sonnet 5.5
Related questions
- 8-channel ADC interface with 8255 and 8085 · Instrumentation II, chapter 4
- Interfacing 8-bit ADC using interrupt · Instrumentation II, chapter 4 · asked 2×
- Interfacing 10-bit DAC with 8085 · Instrumentation II, chapter 4 · asked 2×
- 8255 mode 2 operation with timing diagram · Instrumentation II, chapter 2
- Interfacing: 512-byte RAM with 8085 · Instrumentation II, chapter 2
- ADC with 8085 using 8255: fan and heater control · Instrumentation II, chapter 4
- Timing diagram of STA 8050H · Microprocessor, chapter 2
- 8085 ALP: odd parity transfer with bit change · Microprocessor, chapter 2
- 8085 ALP: transfer with bit set/reset · Microprocessor, chapter 2
- Dual slope ADC block diagram; integral linearity · Advanced Electronics, chapter 3