In this section you will see the assembly language code to generate Square wave using 8085 microprocessor
Atfirst we assume that , CWR address of 8255 is 0B and SOC pin of 0808 is connected to 0th pin of PORT B
MVI A,89H
OUT 0BH
MVI A,01H
OUT 09H
BACK: MVI A,FFH
OUT 08H
MVI C,BOH
LOOP1: DCR C
JNZ LOOP1
MVI A,00H
OUT 08H
MVI C,B0H
LOOP2: DCR C
JNZ LOOP2
JMP BACK
thank you
You Can Watch The Following Video
Atfirst we assume that , CWR address of 8255 is 0B and SOC pin of 0808 is connected to 0th pin of PORT B
MVI A,89H
OUT 0BH
MVI A,01H
OUT 09H
BACK: MVI A,FFH
OUT 08H
MVI C,BOH
LOOP1: DCR C
JNZ LOOP1
MVI A,00H
OUT 08H
MVI C,B0H
LOOP2: DCR C
JNZ LOOP2
JMP BACK
thank you
You Can Watch The Following Video
1 Comments
6
ReplyDelete