Mpi - MTS & VDT - Vgec
Mpi - MTS & VDT - Vgec
Enrolment No
Name
Branch
Academic Term
Institute Name
CERTIFICATE
Department of this Institute (GTU Code: ___) has satisfactorily completed the Practical /
Tutorial work for the subject Microprocessor and Interfacing (3160712) for the academic year
2022-23.
Place: ___________
Date: ___________
Preface
Main motto of any laboratory/practical/field work is for enhancing required skills as well as
creating ability amongst students to solve real time problem by developing relevant
competencies in psychomotor domain. By keeping in view, GTU has designed competency
focused outcome-based curriculum for engineering degree programs where sufficient weightage
is given to practical work. It shows importance of enhancement of skills amongst the students
and it pays attention to utilize every second of time allotted for practical amongst students,
instructors and faculty members to achieve relevant outcomes by performing the experiments
rather than having merely study type experiments. It is must for effective implementation of
competency focused outcome-based curriculum that every practical is keenly designed to serve
as a tool to develop and enhance relevant competency required by the various industry among
every student. These psychomotor skills are very difficult to develop through traditional chalk
and board content delivery method in the classroom. Accordingly, this lab manual is designed
to focus on the industry defined relevant outcomes, rather than old practice of conducting
practical to prove concept and theory.
By using this lab manual students can go through the relevant theory and procedure in advance
before the actual performance which creates an interest and students can have basic idea prior to
performance. This in turn enhances pre-determined outcomes amongst students. Each
experiment in this manual begins with competency, industry relevant skills, course outcomes as
well as practical outcomes (objectives). The students will also achieve safety and necessary
precautions to be taken while performing practical.
This manual also provides guidelines to faculty members to facilitate student centric lab
activities through each experiment by arranging and managing necessary resources in order that
the students follow the procedures with required safety and necessary precautions to achieve the
outcomes. It also gives an idea that how students will be assessed by providing rubrics.
The modern digital systems including computer systems are designed with microprocessor as
central device connected to memory and I/O devices. The subject introduces the students with
basics of microprocessor, microprocessor architecture and assembly language programming,
interfacing microprocessor with memory and various I/O (Input/Output) devices.
Utmost care has been taken while preparing this lab manual however always there is chances of
improvement. Therefore, we welcome constructive suggestions for improvement and removal
of errors if any.
Microprocessor and Interfacing (3160712) Enrollment No
DTE’s Vision
Institute’s Vision
Institute’s Mission
Department’s Vision
Department’s Mission
Sr. CO CO CO CO CO
Practical Outcome/Title of experiment
No. 1 2 3 4 5
Study about 8085 microprocessor architecture, Pin
1. diagram and bus organization. √
Study about following 8085 microprocessor instruction
sets.
(a) Data transfer instructions
2. (b) Arithmetic instructions √
(c) Logical instructions
(d) Branching instructions
(e) Stack, I/O and machine control instructions
(a) Write an assembly language program to add two
16-bit numbers stored in memory with carry in
8085 simulator. Store result in the memory
The following industry relevant competencies are expected to be developed in the student by
undertaking the practical work of this laboratory.
1. Will be able to demonstrate various features of microprocessor, memory and I/O
devices through microprocessor kit.
2. Will be able to design assembly language programs using appropriate 8085
instructions based on size and functions for conditional statements, branching,
looping, stack, subroutine and time delay.
3. Will be able to design a given interfacing system using concepts of memory and I/O
interfacing
1. Teacher should provide the guideline with demonstration of practical to the students
with all features.
2. Teacher shall explain basic concepts/theory related to the experiment to the students
before starting of each practical
3. Involve all the students in performance of each experiment.
4. Teacher is expected to share the skills and competencies to be developed in the
students and ensure that the respective skills and competencies are developed in the
students after the completion of the experimentation.
5. Teachers should give opportunity to students for hands-on experience after the
demonstration.
6. Teacher may provide additional knowledge and skills to the students even though not
covered in the manual but are expected from the students by concerned industry.
7. Give practical assignment and assess the performance of students based on task
assigned to check whether it is as per the instructions or not.
8. Teacher is expected to refer complete curriculum of the course and follow the
guidelines for implementation.
1. Students are expected to carefully listen to all the theory classes delivered by the faculty
members and understand the COs, content of the course, teaching and examination
scheme, skill set to be developed etc.
2. Students will have to perform experiments on 8085 microprocessor kit as well as on 8085
simulator.
3. Students should develop assembly language programs and execute all the programs on
8085 simulator. Students have to show output of each program in their practical file.
4. Students are instructed to submit practical list as per given sample list shown on next page.
5. Student should develop a habit of submitting the experimentation work as per the schedule
and s/he should be well prepared for the same.
Microprocessor and Interfacing (3160712) Enrollment No
Index
(Progressive Assessment Sheet)
Sr. Objective(s) of Experiment Page Date Date of Assessme Sign. of Remar
No. No. of submiss nt Teacher ks
perfor ion Marks with date
mance
1 Study about 8085 microprocessor architecture,
Pin diagram and bus organization.
2 Study about following 8085 microprocessor
instruction sets.
(a) Data transfer instructions
(b) Arithmetic instructions
(c) Logical instructions
(d) Branching instructions
(e) Stack, I/O and machine control instructions
3 (a) Write an assembly language program
to add two 16-bit numbers stored in
memory with carry in 8085 simulator.
Store result in the memory
Experiment No - 1
Aim: Study about 8085 microprocessor architecture, pin diagram and bus organization.
8085 microprocessor is one of the most prominent entry level processor used to teach students for
understanding of the working of microprocessor at hardware level. So this experiment is
important with respective learning objective to understand the working of microprocessor at low
level.
Theory:
8085 microprocessor is 8 bit general purpose microprocessor. It is single chip NMOS device with
40 pins. It works on 5V DC power supply. The architecture of 8085 is given in figure -1. It is a
modified version of 8080 microprocessor and it requires +5V more than 8080. So it is called
8085. It is used in mobile phones, microwave ovens, etc.
Page No
Microprocessor and Interfacing (3160712) Enrollment No
II. Registers:
There are multiple different types of registers in microprocessor.
i. Accumulator:
It is an 8 bit register identified as A.
It is used to store 8-bit data to perform arithmetic and logical instructions.
The result of operations is stored in accumulator.
Page No
Microprocessor and Interfacing (3160712) Enrollment No
v. Temporary register:
It is an 8-bit register, which holds the temporary data of arithmetic and logical operations.
It is used by the microprocessor.
It is not accessible to programmer.
Pin Diagram
8085 microprocessor consists of 40 pins which are divided into 6 different groups as per
following details. The pin diagram of 8085 is given in Figure - 2
Address bus
Multiplexed address/data bus
Control and status signals
Power supply and frequency signals
Externally initiated signals
Serial I/O ports
Page No
Microprocessor and Interfacing (3160712) Enrollment No
Address Bus:
Signal lines AD7 – AD0 are bidirectional and serve dual purpose.
They are used as low-order address bus as well as data bus.
The low-order address bus can be separate from these signals by using a latch (ALE).
ALE (Output): ALE stands for Address Latch Enable signal. ALE goes high during first clock
cycle of a machine cycle and enables the lower 8-bits of the address to be latched either into
the memory or external latch.
Page No
Microprocessor and Interfacing (3160712) Enrollment No
IO/M (Output): It is a status signal which distinguishes whether the address is for memory or
I/O device.
S0, S1 (Output): These are status signals sent by the microprocessors to distinguish the
various types of operation given in table below:
S0 S1 Operation
0 0 HALT
0 1 WRITE
1 0 READ
1 1 FETCH
RD (Output): RD is a signal to control READ operation. When it goes low, the selected I/O
device or memory is read.
WR (Output): WR is a signal to control WRITE operation. When it goes low, the data bus's
data is written into the selected memory or I/O location.
READY (Input): It is used by the microprocessor to sense whether a peripheral is ready to
transfer a data or not. If READY is high, the peripheral is ready. If it is low the
microprocessor waits till it goes high.
Page No
Microprocessor and Interfacing (3160712) Enrollment No
READY (Input) This signal is used to delay the microprocessor read or write cycles until
low-responding peripheral is ready to send or accept data.
RESET IN (Input) When the signal on this pin goes low, the Program Counter is set to
zero, the buses are tri-stated & microprocessor is reset.
RESET OUT (Output) This signal indicates that microprocessor is being reset. The signal
is also used to reset other devices.
Bus Organization
Page No
Microprocessor and Interfacing (3160712) Enrollment No
All these 3 part interfaced with each other over common communication path called system
bus.
The network of wires or electronic pathways is known as Bus.
Bus is a group of conducting wires which carries information, all the peripherals are
connected to microprocessor through Bus.
There are 3 type of bus in System bus.
Address Bus
Data Bus
Control Bus
Address Bus:
Group of 16 unidirectional lines generally identified as A0 to A15. i.e. bits flow from
microprocessor to peripheral devices.
16 address lines are capable of addressing 65536 memory locations. So, 8085 has 64K
memory locations.
Data Bus:
Control Bus:
It comprises of various single lines that carry synchronization, timing & control signals.
These signals are used to identify a device type with which MPU intends to communicate.
Some control signals are Read, Write and Op-code fetch etc.
Observations:
It is observed that, 8085 microprocessor is 40 pin IC having 2- pins used for power supply and
remaining 38-pin used as input / output signals. Working of 8085 microprocessor is understood
with the block diagram. Working and hardware logic is understood with the help of block diagram
of Bus organization of 8085 microprocessor.
Conclusion:
Page No
Microprocessor and Interfacing (3160712) Enrollment No
8085 microprocessor architecture, Pin diagram and bus organization understand and recall
successfully.
Quiz:
Suggested Reference:
Problem Completeness
Knowledge Logic
Recognition and accuracy Ethics (2)
Rubrics (2) Building (2) Total
(2) (2)
Good Avg. Good Avg. Good Avg. Good Avg. Good Avg.
(2) (1) (2) (1) (2) (1) (2) (1) (2) (1)
Marks
Experiment No - 2
Page No
Microprocessor and Interfacing (3160712) Enrollment No
Theory:
Observations:
Conclusion:
Quiz:
Suggested Reference:
Page No
Microprocessor and Interfacing (3160712) Enrollment No
Problem Completeness
Knowledge Logic
Recognition and accuracy Ethics (2)
Rubrics (2) Building (2) Total
(2) (2)
Good Avg. Good Avg. Good Avg. Good Avg. Good Avg.
(2) (1) (2) (1) (2) (1) (2) (1) (2) (1)
Marks
Page No
Microprocessor and Interfacing (3160712) Enrollment No
Experiment No - 3
Aim: (A) Write an assembly language program to add two 16-bit numbers stored in memory
with carry in 8085 simulator. Store result in the memory
(B) Write an assembly language program to subtract two 8-bit numbers stored in memory
location 2050 H and 2051 H with borrow using 8085 simulator. Store your result on
memory location 2052
Objectives: (a) To recall data transfer and arithmetic instructions of 8085 microprocessor
(b) To use data transfer and arithmetic instructions in programs.
.
Equipment/Instruments: 8085 microprocessor kit / 8085 Simulator
Program:
(A) Program to add two 16-bit numbers stored in memory with carry in 8085 simulator.
Store result in the memory
(B) Program to subtract two 8-bit numbers stored in memory location 2050 H and 2051
H with borrow using 8085 simulator. Store your result on memory location 2052
Observations: It is observed that the structure of assembly language programs and format of
mnemonics understood properly. Data transfer and arithmetic instructions are effectively
implemented to perform addition and subtraction operations.
Conclusion: Using data transfer and arithmetic instructions, assembly language programs for 16-
bit addition and 8-bit subtraction are successfully performed.
Quiz:
Suggested Reference:
Problem Completeness
Knowledge Logic
Recognition and accuracy Ethics (2)
Rubrics (2) Building (2) Total
(2) (2)
Good Average Good Average Good Average Good Average Good Average
(2) (1) (2) (1) (2) (1) (2) (1) (2) (1)
Marks
Page No
Microprocessor and Interfacing (3160712) Enrollment No
Experiment No - 4
Aim: (A) Write an assembly language program to multiply two 8-bit numbers stored in memory
by bit rotation method using 8085 simulator. Store result in the memory
(B) Write an assembly language program to find the minimum of two 8-bit numbers stored
in the memory location 2050H and 2051H using 8085 simulator. Store the result in 2052H
Objectives: (a) To recall data transfer and arithmetic instructions of 8085 microprocessor
(b) To use data transfer and arithmetic instructions in programs.
.
Equipment/Instruments: 8085 microprocessor kit / 8085 Simulator
Program:
(A) Program to multiply two 8-bit numbers stored in memory by bit rotation method
using 8085 simulator. Store result in the memory
Input :
Output :
(B) Program to find the minimum of two 8-bit numbers stored in the memory location
2050H and 2051H using 8085 simulator. Store the result in 2052H
Input :
Output :
Page No
Microprocessor and Interfacing (3160712) Enrollment No
Observations:
Conclusion:
Quiz:
Suggested Reference:
Problem Completeness
Knowledge Logic
Recognition and accuracy Ethics (2)
Rubrics (2) Building (2) Total
(2) (2)
Good Average Good Average Good Average Good Average Good Average
(2) (1) (2) (1) (2) (1) (2) (1) (2) (1)
Marks
Page No
Microprocessor and Interfacing (3160712) Enrollment No
Experiment No - 5
Aim: (A) Write an assembly language program using 8085 simulator to find square-root of a
given number. Display result on output port number 01H
(B) Write an assembly language program to find a factorial of a given number using 8085
simulator. Display result on output port number 0AH
Program:
(A) Program to find square root of given 8-bit number using 8085 simulator. Display
result on output port number 01H
Input :
Output :
(B) Program to find a factorial of a given number using 8085 simulator. Display result on
output port number 0AH
Input :
Output :
Page No
Microprocessor and Interfacing (3160712) Enrollment No
Observations:
Conclusion:
Quiz:
Suggested Reference:
Problem Completeness
Knowledge Logic
Recognition and accuracy Ethics (2)
Rubrics (2) Building (2) Total
(2) (2)
Good Average Good Average Good Average Good Average Good Average
(2) (1) (2) (1) (2) (1) (2) (1) (2) (1)
Marks
Page No
Microprocessor and Interfacing (3160712) Enrollment No
Experiment No - 6
Aim: (A) Write an assembly language program to move a block of the memory starts at the
location 2051H to 4051H using 8085 simulator. The length of the block is given on the
memory location 2050H
(B) Write an assembly language program to arrange numbers in ascending order using
8085 simulator. The length of the block is given on memory location 2050H and block
starts from 2051H.
Program:
(A) Program to move a block of the memory starts at the location 2051H to 4051H using
8085 simulator. The length of the block is given on the memory location 2050H
Input :
Output :
(B) Program to arrange numbers in ascending order using 8085 simulator. The length of
the block is given on memory location 2050H and block starts from 2051H
Input :
Output :
Page No
Microprocessor and Interfacing (3160712) Enrollment No
Address Label Mnemonics Hex Code Comments
Observations:
Conclusion:
Quiz:
Suggested Reference:
Problem Completeness
Knowledge Logic
Recognition and accuracy Ethics (2)
Rubrics (2) Building (2) Total
(2) (2)
Good Average Good Average Good Average Good Average Good Average
(2) (1) (2) (1) (2) (1) (2) (1) (2) (1)
Marks
Page No
Microprocessor and Interfacing (3160712) Enrollment No
Experiment No - 7
Aim: (A) Write an assembly language program to covert a given hexadecimal number to its
equivalent ASCII number using 8085 simulator
(B) Write a subroutine to find minimum of two numbers and use it to find minimum from
block of data. The length of the block is given on memory location 2050H and block starts
from 2051H.
Objectives: (a) To recall concept of Subroutine call & Return of 8085 microprocessor
(b) To use CALL and RET instructions of 8085 microprocessor.
.
Equipment/Instruments: 8085 microprocessor kit / 8085 Simulator
Program:
(A) Program to covert a given hexadecimal number to its equivalent ASCII number
using 8085 simulator
Input :
Output :
(B) Write a subroutine to find minimum of two numbers and use it to find minimum
from block of data. The length of the block is given on memory location 2050H and
block starts from 2051H
Input :
Output :
Page No
Microprocessor and Interfacing (3160712) Enrollment No
Address Label Mnemonics Hex Code Comments
Observations:
Conclusion:
Quiz:
Suggested Reference:
Problem Completeness
Knowledge Logic
Recognition and accuracy Ethics (2)
Rubrics (2) Building (2) Total
(2) (2)
Good Average Good Average Good Average Good Average Good Average
(2) (1) (2) (1) (2) (1) (2) (1) (2) (1)
Marks
Page No
Microprocessor and Interfacing (3160712) Enrollment No
Experiment No - 8
Aim: (A) Write an assembly language program to reverse the block of 8-bit data using stack in
8085 simulator.
(B) Write an assembly language program for decade counter with 1 ms delay between two
successive counts using 8085 simulator.
Program:
(A) Program to reverse the block of 8-bit data using stack in 8085 simulator.
Input :
Output :
(B) Program for decade counter with 1 ms delay between two successive counts using
8085 simulator
Input :
Output :
Page No
Microprocessor and Interfacing (3160712) Enrollment No
Address Label Mnemonics Hex Code Comments
Observations:
Conclusion:
Quiz:
Suggested Reference:
Problem Completeness
Knowledge Logic
Recognition and accuracy Ethics (2)
Rubrics (2) Building (2) Total
(2) (2)
Good Average Good Average Good Average Good Average Good Average
(2) (1) (2) (1) (2) (1) (2) (1) (2) (1)
Marks
Page No
Microprocessor and Interfacing (3160712) Enrollment No
Experiment No - 9
Aim: Study about 8255A Programmable Peripheral Interface Architecture, ports and their
modes.
Theory :
Observations:
Conclusion:
Quiz:
Suggested Reference:
Page No
Microprocessor and Interfacing (3160712) Enrollment No
Rubric wise marks obtained:
Problem Completeness
Knowledge Logic
Recognition and accuracy Ethics (2)
Rubrics (2) Building (2) Total
(2) (2)
Good Average Good Average Good Average Good Average Good Average
(2) (1) (2) (1) (2) (1) (2) (1) (2) (1)
Marks
Page No
Microprocessor and Interfacing (3160712) Enrollment No
Experiment No - 10
Aim: Study about 8086 microprocessor architecture and its register organization.
Theory :
Observations:
Conclusion:
Quiz:
Suggested Reference:
Page No
Microprocessor and Interfacing (3160712) Enrollment No
Problem Completeness
Knowledge Logic
Recognition and accuracy Ethics (2)
Rubrics (2) Building (2) Total
(2) (2)
Good Average Good Average Good Average Good Average Good Average
(2) (1) (2) (1) (2) (1) (2) (1) (2) (1)
Marks
Page No