Documente Academic
Documente Profesional
Documente Cultură
AIM:
i. To write a program to display 00 and FF alternately on the display.
APPARATUS REQUIRED:
1. Microprocessor kit
2. Power supply (+5V)
3. Keyboard
i. ALGORITHM:
SI:NO ALGORITHM INSTRUCTION
Initialize stack pointer register with the address LXI SP,27F0
1
27F0
2 Call the subroutine CRLF to clear display. CALL CRLF
3 Load the E register with data 00 to display MVI E,00
4 Load B register with the number of digit MVI B,02
5 Call subroutine to display CALL NMOUT
6 Call for delay program CALL DELAY
7 Next load E register with the data FF to display MVI E,FF
8 Call subroutine to display CALL NMOUT
9 Call for delay program CALL DELAY
10 Repeat the process from the step 5. JMP START
OPCODE /
INSTRUCTION HOW TO ENTER IN THE KIT
OPERAND
It is 3 byte instruction.
The first byte, opcode is entered in the address 6100 and
press enter key
LXI SP,27F0 31,F0,27 The second byte (Low order address) is entered in the
address 6101 and press enter key
The third byte ( High order address) is entered in the
address 6102 and press enter key
It is 3 byte instruction.
The first byte, opcode is entered in the address 6103 and
press enter key
CALL CRLF CD,8A,04 The second byte (Low order address) is entered in the
address 6104 and press enter key
The third byte ( High order address) is entered in the
address 6105 and press enter key
It is 2 byte instruction.
The first byte (opcode) is entered in the address (say 6106)
MVI E,00 1E,00 and press enter key
The second byte is entered in the next address 610700H (
1st data) and press enter key
It is 2 byte instruction.
The first byte (opcode) is entered in the address (say 6108)
MVI B,02 06,02 and press enter key
The second byte is entered in the next address 610902H (
1st data) and press enter key
It is 3 byte instruction.
The first byte, opcode is entered in the address 610A and
press enter key
CALL NMOUT CD,6C,03 The second byte (Low order address) is entered in the
address 610B and press enter key
The third byte ( High order address) is entered in the
address 610C and press enter key
It is 3 byte instruction.
The first byte, opcode is entered in the address 610D
and press enter key
LXI D,FFFF 11,FF,FF The second byte (Low order address) is entered in the
address 610E and press enter key
The third byte ( High order address) is entered in the address
610F and press enter key
It is 3 byte instruction.
The first byte, opcode is entered in the address 6110 and
press enter key
CALL DELAY CD,15,06 The second byte (Low order address) is entered in the
address 6111 and press enter key
The third byte ( High order address) is entered in the
address 6112 and press enter key
It is 3 byte instruction.
The first byte, opcode is entered in the address 6113 and
press enter key
CALL CRONY CD,97,04 The second byte (Low order address) is entered in the
address 6114 and press enter key
The third byte ( High order address) is entered in the
address 6115 and press enter key
It is 2 byte instruction.
The first byte (opcode) is entered in the address (say 6116)
MVI E,FF 1E,FF and press enter key
The second byte is entered in the next address 6117FFH
( 1st data) and press enter key
It is 3 byte instruction.
The first byte, opcode is entered in the address 6118 and
press enter key
CALL NMOUT CD,6C,03 The second byte (Low order address) is entered in the
address 6119 and press enter key
The third byte ( High order address) is entered in the
address 611A and press enter key
It is 3 byte instruction.
11,FF,FF The first byte, opcode is entered in the address 611B and
LXI D,FFFF
press enter key
The second byte (Low order address) is entered in the
address 611C and press enter key
The third byte ( High order address) is entered in the address
611D and press enter key
It is 3 byte instruction.
The first byte, opcode is entered in the address 611E and
press enter key
CALL DELAY CD,15,06 The second byte (Low order address) is entered in the
address 611F and press enter key
The third byte ( High order address) is entered in the
address 6120 and press enter key
It is 3 byte instruction.
The first byte, opcode is entered in the address 6121 and
press enter key
CALL CRONY CD,97,04 The second byte (Low order address) is entered in the
address 6122 and press enter key
The third byte ( High order address) is entered in the address
6123 and press enter key
It is 3 byte instruction.
The first byte, opcode is entered in the address 6124 and
press enter key
JMP START C3,96,63 The second byte (Low order address) is entered in the
address 6125 and press enter key
The third byte ( High order address) is entered in the
address 6126 and press enter key
Thus the following programs were executed and verified using 8085 microprocessor kit
i. To write a program to display 00 and FF alternately on the display.
VIVA QUESTION & ANSWERS
CALL PUSH