Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
3 views9 pages

Microprocessor Lab Manual-New

The document is a lab manual for the EE643 Microprocessor course at Assam Engineering College, detailing course objectives, student responsibilities, lab policies, and a list of experiments focused on the 8085 microprocessor. It includes practical exercises such as data transfer, program development, and interfacing with hardware components. Students are expected to maintain lab notebooks, participate actively, and adhere to grading policies based on attendance, lab reports, and final assessments.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views9 pages

Microprocessor Lab Manual-New

The document is a lab manual for the EE643 Microprocessor course at Assam Engineering College, detailing course objectives, student responsibilities, lab policies, and a list of experiments focused on the 8085 microprocessor. It includes practical exercises such as data transfer, program development, and interfacing with hardware components. Students are expected to maintain lab notebooks, participate actively, and adhere to grading policies based on attendance, lab reports, and final assessments.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

LAB MANUAL

EE643 – Microprocessor

ASSAM ENGINEERING COLLEGE


JALUKBARI, GUWAHATI 781013
ASSAM, INDIA

DEPARTMENT OF ELECTRICAL ENGINEERING


CONTENTS
Introduction
Course Objectives and Goals
Use of Laboratory Instruments
Laboratory Notebooks and Reports
Format of Lab Report

LIST OF EXPERIMENTS

Experiment 1: Familiarization of the Microprocessor Kit – (a) editing a program (b) Verifying
the program (c) Executing the program and verifying the outcome of the program.

Experiment 2: Developing and testing simple program for data transfer –between memory to
Microprocessor or Microprocessor to memory using direct and indirect instructions.

Experiment 3: Write a program to add the data stored in memory location CA00 and CA01.
Store the result in memory location CA02, if there is a carry, store 01H in the memory location
CA03, and otherwise store 00H in memory location CA03.

Experiment 4: Developing and test program for transfer block of 10 data from starting location
CA00 H to next block having starting location CB00 H

Experiment 5: Developing and test program for to sort a set of data in ascending order stored in
memory starting at C050.

Experiment 6: Developing and test program performing addition on two numbers using
interrupt RST 7.5 key.

Experiment 7: Develop and test program to blink the LED’s interfaced to port A of 8255.

Experiment 8: Develop and test simple program for key board and & segment LED operation
using 8279

Experiment 9: Group project to develop traffic light control program using the traffic light
control module shown in figure -2 (the group project will comprises with 5 student in each
group).
Introduction
The course aims at offering opportunity to students to realize the functioning of a
microprocessor (8085) andit’s supporting PPIs.In this laboratory, students are expected
to get hands-on exposure/experience of using a microprocessor based development
system that allows students to learn about the approach/process for development of
software to implement a task. Such experimentation ensures enhancement of logical and
technical skills of a student in the field of software development of a programmable
device.

Student Responsibilities:

The student is expected to be prepared for each experiment. Laboratory preparation


includes reading the laboratory experiment and related textbook material. Students are
expected to have active participation in the laboratory activities. The student is expected
to ask the teaching assistant any questions he/she may have. DO NOT MAKE COSTLY
MISTAKES BECAUSE YOU DID NOT ASK A SIMPLE QUESTION. Students
should emphasize on understanding the concepts and procedure ofeach lab for successful
completion of the laboratory. The student should remain alert and use common sense
while performing a lab experiment. He/she is also responsible for keeping aprofessional
and accurate record of the lab experiments in a laboratory notebook.

Lab Policy and Grading:

The student should understand the following policies:

ATTENDANCE:

Attendance is mandatory and any absence must be for a valid excuse and mustbe
documented. In case of prior knowledge of absence from class by the student, proper
approval in due format must be taken from the Head of the Department. A copy of the
approved leave application must be submitted to the TA/ faculty in charge of the
laboratory.

LAB RECORDS:

The student must:


1. Always carry a rough note copy to record the results of the experiments.
2. Keep all work in preparation of and obtained during lab in an approved format of
the department
3. Prepare a lab report on performed experiments.
GRADING POLICY:
The final grade of this course is determined using the following criterion:
Laboratory notebook and in-class work along with attendance: 30%
Lab reports: 30 %
Final Assessment: 40% (To be decided by the course instructor Practical/Laboratory
assignment of mini project or viva or combination of the above)

In-class work, laboratory notebook and attendance will be determined by the teaching
assistant, who, at his/her discretion may useevaluations to aid in this decision. The final
exam should contain a written part along with practical (physical operations) and
followed up by a viva-voce.

Course Goals and Objectives:

The course is designed to allow students to develop logical and technical skill in the
field embedded system engineering. In addition, the student should learn the impotence
of proper documentation of software for future use. Moreexplicitly, the class objectives
are:

1) To gain exposure/experience in the use of a microprocessor-based development


system.
2) To enhance understanding of functioning of a microprocessor (8085) and it’s
supporting PPIs.

a) Instructions of microprocessor (8085)


b) Translation of a given task into an algorithm
c) Translation of an algorithm into Assembly language software
d) Translation of Assembly language software into codes/data for execution of a
given task
e) Verification of the outcomes of the program execution.
f) Develop alternative software to realize the same task
Experiment 1: Familiarization of the Microprocessor Kit – (a) editing a program (b)
Verifying the program (c) Executing the program and verifying the out come of the
program.

General description of the Microprocessor 8085:


8085 microprocessor was introduced by Intel in the year 1976. This microprocessor is an update
of 8080 microprocessor.

8085 microprocessor is an 8-bit microprocessor with a 40 pin dual in line package. The address
and data bus are multiplexed in this processor which helps in providing more control signals.
8085 microprocessor has 1 non-maskable interrupt (TRAP) and 3 maskable interrupt (RST 7.5,
RST 6.5 and RST 5.5). It provides serial interfacing with serial input data (SID) and serial output
data (SOD).

It has a set of registers for performing various operations. The various registers include:
Accumulator (register A), Registers: B, C, D, E, H and L, Stack pointer, Program Counter,
Temporary register, Instruction register.

8085 consists of various units and each unit performs its own functions. The various units of a
microprocessor are listed below :Accumulator, Arithmetic and logic Unit, General purpose
register, Program counter, Stack pointer, Temporary register, Flags, Instruction register and
Decoder, Timing and Control unit, Interrupt control, Serial Input/output control, Address buffer
and Address-Data buffer, Address bus and Data bus.

Pin Diagram of 8085 microprocessor


Important information about the Microprocessor Kit used in the laboratory:

Facility of the system: It has two 8255, one 8253, one 8279, one 8251, EEPROM (where
monitor program is stored) and RAM. The address space for these devices is given
below:

Device Address space (in Hex)


EEPROM 0000H-
RAM C000H-FFFFH
8255(1) 00H-03H
8255(2) 40H-43H
8299 30H-31H
8253 10H-13H
8251 
It has six 7-segment LED display units to display and a keyboard has data key and
functional key as shown in figure-1. Left hand side four 7-segment LED display units
represent the address field and right side two 7-segment LED display units repent the
data filed. The monitor program initializes the Microprocessor Kit and displays its brand
logo to indicate that the system is ready to accept the input from key board to allow
user to edit, execute and check the program out come.

Figure-1: Front view of the Microprocessor Kit


Procedure for editing/loading a program

1. Press reset
2. Press EXAM MEM
The both the address field and data field 7-segment LED display units become blank
and a dot appears at the last 7-segment LED of the address field 7-segment LEDs.
If so, the system is ready to accept the initial address of the program. Therefore,
enter the initial address of the program through data key and press NEXT key
3. Now, data field 7-segment LEDs display the data available in the memory location
shown in address filed 7-segment LEDs. If so, the system is ready to accept
theprogram instruction in Hex. Therefore, program instruction is being entered through
data key and NEXT key pressed.
4. The address of the program displayed in the address field 7-segment LEDs are
automatically incremented and system is ready to accept the next instruction
code.

Verify the program: It is essential that the program loaded to the RAM of the system has to
be verified before executing it. The steps are same as the steps described in Procedure for
editing/loading a program.

1. Press RESET
2. Press EXAM MEM
3. Enter the initial address of the program and press the NEXT key
4. Verify the code or data for each address, if do the correction if needed.

Executing the program: The steps for execution of a program are given below:

1. Press RESET
2. Press GO
3. Enter the initial address of the program through data key, the address field 7-
segment LEDs would display these address.
4. Press EXEC

A sample program for familiarization of the Microprocessor Kit

Memory Label Assembly language Code/data Remarks


Address
C000 MVI B, 36 06 B←36H, register B is loaded
C001 36 with 36H
C002 MOV A,B 78 A←B, ie. The data from
register B is transferred to
register A
C003 RST 5 EF Return to monitor to allow
interactive
Edit/load the sample program and execute the program.

Verifying the out come of the program

As the data transfer is carried out from register to register, the facility provided by kit developer
is to be used for this purpose. The steps for verifying register value after execution of a program
is as follows:

1. Execute the program


2. Press EXEM REG key
3. Enter the register name ( Say A, B, C .. ) , the value for the register would shown in the
data field 7-segment LEDs. On pressing NEXT key, the system keeps showing the
value of the resister one after another.
Assignment for student: Develop program to do the same task with different instructions of
8085 and submit in your report.

Experiment 2: Develop and test simple program for data transfer –between
memory to Microprocessor or Microprocessor to memory using direct and indirect
instructions. (One program for direct and two program or indirect). Starting
address C000.

Data transfer using direct data transfer instructions from Microprocessor to memory

(a) Data transfer using indirect data transfer instructions from Microprocessor to memory HL
pair as memory pointer.
(b) Data transfer using indirect data transfer instructions from Microprocessor to memory DE
pair as memory pointer.

Assignment for student: Develop program to do the same task with different instructions of
8085. Write report stating the similarity, differences and advantages/ disadvantages of among
direct data transfer, indirect data transfer usingHL and indirect data transfer using DE

Experiment 3: Write a program to add the data stored in memory locations CB00
and CB01. Store the result in memory location CB02, if there is a carry, store 01H
in the memory location CB03, and otherwise store 00H in memory location CB03.

Experiment 4: Develop and test program for transfer block of 10 data from
starting location 9000 H to next block having starting location 9100 H
Experiment 5: Develop and test program for to sort a set of data in ascending
order stored in memory starting at C000. Modify the code to sort the data in
descending order.

Experiment 6: Developing and test program performing addition on two numbers


using RST 7.5 key.

Experiment 7: Develop and test program to blink the LED’s interfaced to port A
of 8255(2).

Experiment 8: Develop and test simple program for key board and & segment
LED operation using 8279

Experiment 9: Group project to develop traffic light control program using the
traffic light control module (available in the lab)

You might also like