Question

write an 8086 ALP to generate an output triangle signal. In addition, the program stops with...

write an 8086 ALP to generate an output triangle signal. In addition, the program stops with one key press

Homework Answers

Answer #1

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...

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Write code in JAVA Write a program that will output a right triangle based on user...
Write code in JAVA Write a program that will output a right triangle based on user specified input height (int) and specified input symbol (char).The first line will have one user-specified character, such as % or *. Each subsequent line will have one additional user-specified character until the number in the triangle's base reaches specified input height. Output a space after each user-specified character, including after the line's last user-specified character. Hint: Use a nested for loop. Ex:If the input...
Write an 8086 assembly language program to initialize counter 2 of 8253 in mode 0 with...
Write an 8086 assembly language program to initialize counter 2 of 8253 in mode 0 with a count of FFAAH.
Write an 8088/8086 assembly program that counts the length of a null terminated string that starts...
Write an 8088/8086 assembly program that counts the length of a null terminated string that starts at location STR. Print the result on the screen.
in R language (d) Write a computer program to simulate a fair dice. Generate output. Use...
in R language (d) Write a computer program to simulate a fair dice. Generate output. Use the output to make a plot.
Write a python program that calculates the area of triangle. The user will be asked to...
Write a python program that calculates the area of triangle. The user will be asked to enter the base (b) and the height (h). The formula to calculate the area is: Triangle_area=(bh)/2 Note: the program should print the area to the user: (for example: the area of the triangle is: 34.3)
write verilog code to generate a clock signal clk with 10 ns period
write verilog code to generate a clock signal clk with 10 ns period
   Write a C++ program to generate all the truth tables needed for ( p ˄...
   Write a C++ program to generate all the truth tables needed for ( p ˄ q) ˅ (¬ p ˅ ( p ˄ ¬ q )). You need to submit your source code and a screen shot for the output
write an always block that takes the clk_i (100MHz) and generate a clock clk_50k signal that...
write an always block that takes the clk_i (100MHz) and generate a clock clk_50k signal that has a frequency of 50 kHz. (note: 50kHz signal switches 100,000 times a second.) in verilog.
In MIPS/MARS 1)Write a program that prints your name in a Triangle.
In MIPS/MARS 1)Write a program that prints your name in a Triangle.
Write a basic c++ program to check whether a triangle is valid or not if the...
Write a basic c++ program to check whether a triangle is valid or not if the three sides are given: A triangle is valid if the sum of its two sides is greater than the third side. Let’s say that a, b, c is the sides of the triangle. A valid triangle must satisfy all these conditions: a + b > c a + c > b b + c > a (2 points) Generate random numbers 1-15 inclusive for...