Micro processor Lab Manual / Generate Up Going Sawtooth ALP

Program Name

Write a Assembly Language Program for Generate Up Going Sawtooth .
Theory
Instruction Mnemonic Operand Comments
MVI A,80 Load accumulator with 80H to configure CWR of 8255.
OUT CWR Configure CWR to display output with accumulator value. i.e 80H
MVI A,00 Initialize accumulator with 00H to display ongoing sawtooth from bottom of CRO screen.
OUT PA Send the value 00H through output port A.(which is displayed on screen as single dot).
OUT PB Send the value 00H through output port B (to get bright spot on CRO )
INR A Increment the value of accumulator to extend the ongoing sawtooth.
JMP INCR Jump back to display incremented value as an output.
Program Code


Online compiler for 8085 Microprocess Compiler


Home     Back