Friday, January 17, 2020

ALP Program for interfacing ADC with 8086 using 8255

ALP Program for interfacing ADC with 8086 using 8255


ASSUME CS : CODE

CODE SEGMENT

START:     MOV AL, 98H
                   OUT CWR, AL

                   MOV AL, CH_NO
                   OUT PB_ADDR, AL

                   MOV AL, 00H
                   OUT PC_ADDR, AL
                   MOV AL, 01H
                   OUT PC_ADDR, AL
                   MOV AL, 00H
                   OUT PC_ADDR, AL

LOOP1:     IN AL, PC_ADDR
                   SHL AL, 01H
                   JNC LOOP1

                   IN AL, PA_ADDR

                   MOV AH, 4CH
                   INT 21H

CODE ENDS

END START

No comments:

Post a Comment