Friday, February 21, 2020

For generating triangular wave form

ALP Program for interfacing DAC with 8086 using 8255 
       For generating triangular 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

LOOP2:    OUT PA_ADDR, AL
                   DEC AL
                   JNZ LOOP2

                   JMP LOOP1

                   MOV AH, 4CH
                   INT 21H

CODE ENDS


END START


No comments:

Post a Comment