Lab Manual1
Lab Manual1
Lab 1
Brief Introduction of 8085 Microprocessor Trainer Kit.
System Requirements:
i. 8085 microprocessor trainer kit (DYNA 85)
ii. Power Supply (12v)
Introduction
Microprocessor 8085 Trainer Kit: DYNA 85 is a single-board
computer based on an 8085A CPU designed especially for training and
development applications. It is equally useful for novices as well as
development engineers for studying the 8085A CPU and developing
various products based on the 8085A.
Some commonly used Command keys:
RESET (RES): Resets the microprocessor, clearing any active program and
registers.
U1, U2, U3: User-defined functions, often used for external interfacing or
program-specific commands.
SPH, SPL, PCH, PCL: Used for accessing and modifying stack pointer (SP) and
program counter (PC) high/low bytes.
CODE/REG: Switches between viewing the opcode (code) and the register
content.
Numeric Keys (0–9, A–F): For entering hexadecimal values, addresses, or data.
Result:
Thus 8085 microprocessors were studied successfully.
Lab 2
To write and execute a program on the 8085 microprocessor
kit to add two 8-bit numbers and store the result in a
specified memory location.
Apparatus Required:
1. 8085 Microprocessor Kit (DYNA-85)
2. Power supply
3. Instruction set reference for 8085
Theory:
The 8085 microprocessor uses an accumulator-based architecture for
arithmetic and logical operations. In this experiment, two numbers are
loaded into registers, added, and the result is stored in memory. The key
instructions used are:
Program Description:
The program adds two numbers 06H & 02H stored in memory locations
C000 and C001 and stores the result in memory location 2002.
Program Code:
Memory
Opcode Mnemonic Description
Address
Procedure:
Conclusion:
The program successfully added two 8-bit numbers using the 8085
microprocessor and stored the result in a specified memory location.
This experiment demonstrates the use of basic arithmetic and memory
instructions in the 8085 instruction set.
Precautions:
1. Ensure the correct entry of opcodes and memory addresses.
2. Reset the kit before starting a new program.
3. Verify the entered program before execution to avoid errors.
Lab 3
To perform different register and memory operation with
the help of 8085 data transfer instruction.
Q.1 WAP to store 08H , 02H,OAH & 11H in register B,C,D
& A respectively.
Q.2 WAP to store 02H, 03H, 06H in memory location
2002H,2003H and 2004H respectively.
Q.3 WAP to copy the contents of register B,C,D to memory
location C001H,C004H, and C003H.
System Requirement:
Computer System with SIM8085 Simulator
Theory :
The data transfer instructions in the 8085 microprocessor can move data
quickly and efficiently between different registers, memory locations,
and input/output ports. The data transfer instructions can be used to
transfer data between registers and memory locations, making it
possible to store and retrieve data from memory.Data transfer
instructions are the instructions that transfer data in the microprocessor.
They are also called copy instructions. Most popularly used instruction
are listed below:
OPCODE OPERAND Machine cycles No. of EXAMPLE
T-states
1 opcode fetch
MOV Rd, M 7 MOV A, 2050
1 memory read
1 opcode fetch
MOV M, Rs 7 MOV 2050, A
1 memory write
1 opcode fetch
MVI Rd, 8-bit data 7 MVI A, 50
1 memory read
1 opcode fetch
MVI M, 8-bit data 1 memory read 10 MVI 2050, 50
1 memory write
1 opcode fetch
2 memory reads for 16-bit
LDA 16-bit address data 13 LDA 2050
1 memory read for reading
content at 16-bit address
1 opcode fetch
STA 16-bit address 2 memory reads 13 STA 2050
1 memory write
1 opcode fetch
2 memory reads for reading
LHLD 16-bit address 16-bit data 16 LHLD 2050
2 memory reads for loading
H and L registers
1 opcode fetch
2 memory reads for reading
SHLD 16-bit address 16-bit data 16 SHLD 2050
2 memory write
OPCODE OPERAND Machine cycles No. of EXAMPLE
T-states
1 opcode fetch
LXI r.p., 16-bit data 10 LXI H, 3050
2 memory reads
1 opcode fetch
IN 8-bit port address 1 memory read 10 IN 15
1 I/O read
1 opcode fetch
OUT 8-bit port address 1 memory read 10 OUT 15
1 I/O write
HLT
Output :
B=08H
C=02H
D=0AH
A=11H
HLT
Output :
2002=03H
2003=04H
2004=06H
HLT
Output:
C001=02H
C004H=04H
C003H=06H
Results :
Thus the different register and memory operation with the help of data
transfer instructions executed.
LAB 4
LAB 5 ,6,7
from lab manual provided from departtment
(Algorithm and flowchart not needed)