DAC and ADC
DAC and ADC
DAC and ADC
LAB MANUAL 17
Name
Roll No
Section
Marks
D/A Converter
The DAC08 is a monolithic 8-Bit high-speed current output digital to analog converter (DAC)
featuring typical setting times of 100ns. When used as a multiplying DAC monotonic performance
over a 40 to 1 reference current range is possible. The DAC08 also features high compliance
complementary current outputs to allow differential output voltage of 20 Vpp with simple resistor
loads as shown in FIGURE 17.1.
; FILENAME : DAC.ASM
; PROCESSOR : I8086
1024 90 NOP
1025 90 NOP
1026 90 NOP
1027 E2 FA LOOP TIMER1
1029 59 POP CX
102A E2 F3 LOOP TIMER2
102C C3 RET
;
102D CODE ENDS
END
A/D Converter
A/D Converter Specification
General Description
The ADC0800 is an 8-bit monolithic A/D converter using P-channel ion-implanted MOS technology.
It contains a high input impedance comparator 256 series resistors and analog switches control
logic and output latches. Conversion is performed using a successive approximation technique
where the unknown analog voltage is compared to the resister tie points using analog switches.
When the appropriate tie point voltage matches the unknown voltage, conversion is complete and
the digital outputs contain an 8-bit complementary binary word corresponding to the unknown.
The binary output is TRI-STATE to permit bussing on common data lines.
; FILENAME : ADC.ASM
; PROCESSOR : I8086
ADDRESS MACHINE CODE MNEMONIC
0000 CODE SEGMENT
ASSUME CS:CODE,DS:CODE,ES:CODE,SS:CODE
;
= 0018 AD_C EQU 18H
= 0000 LCDC EQU 00H
= 0002 LCDC_S EQU 02H
= 0004 LCDD EQU 04H
;
1000 ORG 1000H
1000 E8 10DA R CALL ALLCLR
1003 BE 10CD R MOV SI,OFFSET DATA
1006 E8 10F8 R CALL STRING
;
1009 32 C0 L2: XOR AL,AL
100B E6 18 OUT AD_C,AL
;
100D E8 113A R CALL TIMER
1010 E4 18 IN AL,AD_C
1012 E8 1052 R CALL CON_VOLT
1015 E8 101A R CALL DISP_V
1018 EB EF JMP L2
;
101A B4 C4 DISP_V: MOV AH,0C0H+4
101C E8 10E1 R CALL LNXX
;
101F 8A E6 MOV AH,DH
1021 80 E4 F0 AND AH,0F0H
1024 B1 04 MOV CL,4
1026 D2 EC SHR AH,CL
1028 E8 111B R CALL H_A1
;
1126 FE C7 INC BH
1128 2E: 8A 27 H_A2: MOV AH,CS:[BX]
112B E8 10F0 R CALL CHAROUT
112E 5B POP BX
112F C3 RET
;
1130 30 31 32 33 34 35 ASCTBL DB '0123456789'
36 37 38 39
113A H_A1 ENDP
113A B9 0000 TIMER: MOV CX,0
113D 90 TIMER1: NOP
113E 90 NOP
113F 90 NOP
1140 90 NOP
1141 E2 FA LOOP TIMER1
1143 C3 RET
;
1144 CODE ENDS
END