ALP Program for interfacing DAC with 8086 using 8255
For generating sawtooth wave form
ASSUME CS : CODE
CODE SEGMENT
START: MOV AL, 80H
OUT
CWR, AL
MOV
AL, 00H
LOOP1: OUT
PA_ADDR, AL
INC
AL
CMP
AL, FFH
JNZ
LOOP1
JMP
LOOP1
MOV
AH, 4CH
INT
21H
CODE ENDS
END START
ASSUME CS : CODE
CODE SEGMENT
START: MOV AL, 80H
OUT
CWR, AL
MOV
AL, 00H
LOOP1: OUT
PA_ADDR, AL
INC
AL
CMP
AL, FFH
JNZ
LOOP1
JMP
LOOP1
MOV
AH, 4CH
INT
21H
CODE ENDS
END START
No comments:
Post a Comment