0% found this document useful (0 votes)
26 views11 pages

Lab Manual1

The document provides an overview of the 8085 Microprocessor Trainer Kit (DYNA 85) and its applications in training and development. It details various commands, programming exercises, and procedures for performing arithmetic and data transfer operations using the 8085 microprocessor. The document also includes specific lab exercises aimed at enhancing understanding of microprocessor operations and instructions.

Uploaded by

kcritesh77
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views11 pages

Lab Manual1

The document provides an overview of the 8085 Microprocessor Trainer Kit (DYNA 85) and its applications in training and development. It details various commands, programming exercises, and procedures for performing arithmetic and data transfer operations using the 8085 microprocessor. The document also includes specific lab exercises aimed at enhancing understanding of microprocessor operations and instructions.

Uploaded by

kcritesh77
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

COVER PAGE

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.

GO/EXEC (EXEC): Executes a program from the specified memory location.

LOAD: Loads a program or data into the memory.

SAVE: Saves the current program or memory data.

STEP: Executes one instruction at a time, useful for debugging purposes.

SET: Sets a specific memory location or data value.

V.I. (View Instruction): Views the opcode of a specific instruction in memory.

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.

INR/DCR (Increment/Decrement): Increments or decrements the memory


address or data.

Fig: 8085 microprocessor kit

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:

MVI (Move Immediate): Load immediate data into a register.

ADD: Add the content of a register to the accumulator.

STA (Store Accumulator): Store the accumulator content in a


memory location.

HLT: Halt the program execution.

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

C000 3E MVI A, 06H Load the first number (05H) into A.

Load the second number (03H) into


C001 06 MVI B, 02H
B.

C002 80 ADD B Add the content of register B to A.

Store the result in memory location


C003 32 STA 2002
2002.

C006 76 HLT Halt the program execution.

Procedure:

1. Initialize the Kit:


o Power on the DYNA-85 kit.
o Press RESET to clear previous programs.
2. Enter the Program:
o Press SET to specify the starting memory address (C000).
o Enter the program's opcodes using the hexadecimal keypad,
as outlined in the table.
3. Verify the Program:
o Use the EXAMINE or V.I. key to check the entered opcodes
at respective memory locations.
4. Run the Program:
o Press GO/EXEC and input the starting address (C000).
o The program will execute, adding the two numbers and
storing the result in memory location 2002.
5. Check the Result:
o Press SET and input 2002.
o Press READ or equivalent to view the result stored in
memory. The display should show 08H (06H + 02H).

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

MOV Rd, Rs 1 opcode fetch 4 MOV A, B


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

#1. Program(Source Code):


MVI B,08H //store 08H to register B

MVI C,02H //store 02 to register C

MVI D,0AH //store 0AH to register D

MVI A,11H //store 0AH to register A

HLT

Output :
B=08H

C=02H

D=0AH

A=11H

#2. Program(Source Code):


MVI A,03H //store 03H to register A

STA 2002H // Store the contents of A to memory location 2002H


MVI A,04H //store 04H to register A

STA 2003H // Store the contents of A to memory location 2003H

MVI A,06H //store 06H to register A

STA 2003H // Store the contents of A to memory location 2003H

HLT

Output :
2002=03H

2003=04H

2004=06H

#3. Program (Source Code)


MOV A,B //copy the contents of register B to A

STA C001H //Copy the contents of register A to memory location C001H

MOV A,C //copy the contents of register B to A

STA C004H //Copy the contents of register A to memory location C004H

MOV A,D //copy the contents of register B to A

STA C003H //Copy the contents of register A to memory location C003H

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

To perform different airthmatic operation with the help of


8085 airthmatic and branch instruction.
Q1.Addition of two 8-bit no.
Q2.Subtraction of two 8-bit no.( From Note)
System Requirement:
Computer System with SIM8085 Simulator
Theory :
Write theory as in lab 3(airthmatic intsruction and branch
instruction)

LAB 5 ,6,7
from lab manual provided from departtment
(Algorithm and flowchart not needed)

You might also like