Adc
Adc
7
6
Digital
Analog output
D2 Vo 5 LSB
to 4
D1
Analog 3
Analog Output 2
D0
Converter 1
0
000 001 010 011 100 101 110 111
Digital Inputs
• FullScaleOutput=(FullScaleValue – 1LSBValue)
• 1MSB Value=1/2 * FSV
Circuit Realization
2.5K 4K
D3=8
5K
D2=4 Vout
10K
D1=2
20K
D0=1
2R||2R=R
Interfacing 8-bitDAC with 8085
• Design an output port with Address FFH to
interface 1408 DAC
• Write a program to generate a continuous
RAMP waveform
Output
Time
Interfacing Diagram
A15 A7
Address Bus
(16bit)
A6
A0
A5
A4
A3
A2
A1
A0
8085
MPU
D7
LE
D6
D5
D4 74LS373
D7
Data Bus (8bit) 1408
D3 Latches
D0
D2
D1
D0
Program to generate continuous
RAMP waveform
MVI A, 00H ; Load Acc with first I/P
DTOA: OUT FFH ; Output to DAC
MVI B, COUNT ; Setup Reg. for Delay
DCR B
JNZ DELAY
INR A ; Next Input
JMP DTOA ; Go back to Output
Digital output
Vi D2 101 LSB
Analog to 100
Analog Analog D1 011
Input Converter 010
D0
001
000
0 1 2 3 4 5 6 7
Analog Input
Converter
START RD
Ready
Start
Interface ADC using Status Check
A15 Vinput
Address Bus
A0 (16bit)
Digital O/P Tri-State
A/D Buffer
Converter
START RD
A7
Ready
8085
A6
Start
MPU A5
A4 IO/W
A3 82H
E1 E2 E3
D7
Data Bus (8bit) o2
D0
74
LS o1 81H
138 IO/R
o0 80H
Program to Interface ADC
OUT 82H ; Start Conversion
TEST: IN 80H ;Read DR Status
RAR ; Rotate Do to carry
JC TEST ; if Do==1 conv. done
IN 81H ; Read the output
RET ; Return
Reference
• R S Gaonkar, “Microprocessor Architecture”, Unit II preface,
Chapter 13
Thanks