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.
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 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
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 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 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...
Use python to write a function that will generate the ith row of pascal’s triangle (using...
Use python to write a function that will generate the ith row of pascal’s triangle (using recursion) The method signature should be pascal(row). It should return a list of elements that would be in that row of Pascal’s Triangle. For example the 0th row is [1] and the 2nd row is [1,2,1]
write a computer program to find the auto-correlation of any energy signal and to find its...
write a computer program to find the auto-correlation of any energy signal and to find its energy spectral density. test your program the signal : tri(t/2).
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT