MPI Lab
MPI Lab
MPI Lab
Practical 1
Introduction To 8085 Kit and Peripheral Boards
Date:
FEATURES:
SPECIFICATIONS:
OPTIONAL:
On-board EPROM Programmer for 2716, 2732, 2764, 27128, 27256, 27512.
PRINTER INTERFACE to interface with DOT MATRIX Printer.
DEMO PROGRAM:
Addition of two 8-bit hexadecimal numbers which are stored at memory location 2009H
and 200A H. Store the result at memory location 200B H.
Code:
Memory Location Program
2000 LXI H,2009
2003 MOV A,M
2004 INX H
2005 ADD M
2006 INX H
2007 MOV A,M
2008 HLT
MICROPROCESSOR & PERIPHERAL INTERFACING
1. Press ‘1’ on keyboard. After pressing ‘1’ following options will be displayed :
A=ASSEMBLE MODE (To load the program, use this mode)
D=DISASSEMBLE MODE (To check the loaded program with opcodes, use this mode)
3. RAM ADD: 2000 (i.e. enter starting memory location of the program)
6. 2004: INX H
7. 2005: ADD M
8. 2006: INX H
11. 2009
Program has been executed successfully. Now to check result two commands can be used.
20. Press ‘M’ if result is in the memory. Follow the above mention steps to access memory.
21. Press ‘R’ if result is in Register. Press Register (e.g. A, B, C, D, E, H, L).
MICROPROCESSOR & PERIPHERAL INTERFACING
2. Press ‘C’
3. PROG ADR 2000 2009 ( starting memory location space last memory location )
.
4. LIST ADR 2000 ( starting memory location )
5. 2000 21 09 20
LXI * H * 2009 * (Press ENTER)
6. 2003 7E
MOV A, M (Press ENTER)
7. 2004 23
INX * H (Press ENTER)
8. 2005 86
ADD M (Press ENTER)
9. 2006 23
INX * H (Press ENTER)
10. 2007 77
MOV M,A ( Press ENTER )
11. 2008 EF
HLT (Press ENTER)
Input data:
Output Data:
Results: