write an 8086 ALP to generate an output triangle signal. In addition, the program stops with one key press
Let us take the program execute from the 2000H memory location.
ALP PROGRAM :
OUTPUT 2500AD
ORG 2000H
MOV AX,0000H
MOV CS,AX
MOV ES,AX
MOV DX,0FFE6H ;Initialise all 8255
MOV AL,80H ;ports as O/P ports
OUT DX,AL
START: MOV CX,0FFH ;set count
MOV AL,00H ;start from 0
UP: INC AL ;increment data for
MOV DX,0FFE0H ;+ive going slope
OUT DX,AL ;output at port A & B
MOV DX,0FFE2H
OUT DX,AL
LOOP UP
MOV CX,0FFH ;set count
MOV AX,CX ;start from FFh
DOWN: DEC AL ;decrement data
MOV DX,0FFE0H ;-ive going slope
OUT DX,AL
MOV DX,0FFE2H
OUT DX,AL
LOOP DOWN
JMP SHORT START
END
This app program to generate triangular wave using 8086 processor.
Thank you...
Get Answers For Free
Most questions answered within 1 hours.