0% found this document useful (0 votes)
6 views39 pages

Mpi - MTS & VDT - Vgec

This document is a laboratory manual for the Microprocessor and Interfacing course (3160712) for B.E. Computer Engineering students, outlining the objectives, practical outcomes, and industry-relevant skills to be developed. It emphasizes competency-based learning through hands-on experiments with the 8085 microprocessor and provides guidelines for both faculty and students. The manual also includes safety instructions and a structured approach to enhance students' understanding of microprocessor architecture and programming.

Uploaded by

kripspatel0050ax
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)
6 views39 pages

Mpi - MTS & VDT - Vgec

This document is a laboratory manual for the Microprocessor and Interfacing course (3160712) for B.E. Computer Engineering students, outlining the objectives, practical outcomes, and industry-relevant skills to be developed. It emphasizes competency-based learning through hands-on experiments with the 8085 microprocessor and provides guidelines for both faculty and students. The manual also includes safety instructions and a structured approach to enhance students' understanding of microprocessor architecture and programming.

Uploaded by

kripspatel0050ax
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

Degree Engineering

A Laboratory Manual for

Microprocessor and Interfacing


(3160712)

[ B.E. (Computer Engineering) : Semester - 6 ]

Enrolment No
Name
Branch
Academic Term
Institute Name

Directorate of Technical Education, Gandhinagar,


Gujarat
Vishwakarma Government Engineering College
Department of Computer Engineering

CERTIFICATE

This is to certify that Mr./Ms. _____________________________________________

Enrollment No. _______________ of B.E. Semester ________ from Computer Engineering

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: ___________

Signature of Course Faculty Head of the Department


Microprocessor and Interfacing (3160712) Enrollment No

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

 To provide globally competitive technical education


 Remove geographical imbalances and inconsistencies
 Develop student friendly resources with a special focus on girls’ education and support to
weaker sections
 Develop programs relevant to industry and create a vibrant pool of technical professionals

Institute’s Vision

 To create an ecosystem for proliferation of socially responsible and technically sound


engineers, innovators and entrepreneurs.

Institute’s Mission

 To develop state-of-the-art laboratories and well-equipped academic infrastructure.


 To motivate faculty and staff for qualification up-gradation, and enhancement of subject
knowledge.
 To promote research, innovation and real-life problem-solving skills.
 To strengthen linkages with industries, academic and research organizations.
 To reinforce concern for sustainability, natural resource conservation and social
responsibility.

Department’s Vision

 To create an environment for providing value-based education in Computer Engineering


through innovation, team work and ethical practices.

Department’s Mission

 To produce computer engineering graduates according to the needs of industry,


government, society and scientific community.
 To develop state of the art computing facilities and academic infrastructure.
 To develop partnership with industries, government agencies and R & D organizations for
knowledge sharing and overall development of faculties and students.
 To solve industrial, governance and societal issues by applying computing techniques.
 To create environment for research and entrepreneurship.
Microprocessor and Interfacing (3160712) Enrollment No

Programme Outcomes (POs)

1. Engineering knowledge: Apply the knowledge of mathematics, science, engineering


fundamentals, and an engineering specialization to the solution of complex engineering
problems.
2. Problem analysis: Identify, formulate, review research literature, and analyze complex
engineering problems reaching substantiated conclusions using first principles of
mathematics, natural sciences, and engineering sciences.
3. Design/development of solutions: Design solutions for complex engineering problems and
design system components or processes that meet the specified needs with appropriate
consideration for the public health and safety, and the cultural, societal, and environmental
considerations.
4. Conduct investigations of complex problems: Use research-based knowledge and research
methods including design of experiments, analysis and interpretation of data, and synthesis
of the information to provide valid conclusions.
5. Modern tool usage: Create, select, and apply appropriate techniques, resources, and modern
engineering and IT tools including prediction and modeling to complex engineering activities
with an understanding of the limitations.
6. The engineer and society: Apply reasoning informed by the contextual knowledge to assess
societal, health, safety, legal and cultural issues and the consequent responsibilities relevant
to the professional engineering practice.
7. Environment and sustainability: Understand the impact of the professional engineering
solutions in societal and environmental contexts, and demonstrate the knowledge of, and
need for sustainable development.
8. Ethics: Apply ethical principles and commit to professional ethics and responsibilities and
norms of the engineering practice.
9. Individual and team work: Function effectively as an individual, and as a member or leader
in diverse teams, and in multidisciplinary settings.
10. Communication: Communicate effectively on complex engineering activities with the
engineering community and with society at large, such as, being able to comprehend and
write effective reports and design documentation, make effective presentations, and give and
receive clear instructions.
11. Project management and finance: Demonstrate knowledge and understanding of the
engineering and management principles and apply these to one’s own work, as a member and
leader in a team, to manage projects and in multidisciplinary environments.
12. Life-long learning: Recognize the need for, and have the preparation and ability to engage
in independent and life-long learning in the broadest context of technological change.
Microprocessor and Interfacing (3160712) Enrollment No

Program Specific Outcomes (PSOs)

 Sound knowledge of fundamentals of computer science and engineering including


software and hardware.
 Develop the software using sound software engineering principles having web
based/mobile based interface.
 Use various tools and technology supporting modern software frameworks for solving
problems having large volume of data in the domain of data science and machine learning.

Program Educational Objectives (PEOs)

 Possess technical competence in solving real life problems related to Computing.


 Acquire good analysis, design, development, implementation and testing skills to
formulate simple computing solutions to the business and societal needs.
 Provide requisite skills to pursue entrepreneurship, higher studies, research, and
development and imbibe high degree of professionalism in the fields of computing.
 Embrace life-long learning and remain continuously employable.
 Work and excel in a highly competence supportive, multicultural and professional
environment which abiding to the legal and ethical responsibilities.
Microprocessor and Interfacing (3160712) Enrollment No

Practical – Course Outcome matrix

Course Outcomes (COs)


Demonstrate the various features of microprocessor, memory and I/O
CO_3160712.1
devices including concepts of system bus.
Identify the hardware elements of 8085 microprocessor including
CO_3160712.2 architecture and pin functions and programming model including
registers, instruction set and addressing modes.
Select appropriate 8085 instructions based on size and functions to
CO_3160712.3
write a given assembly language program.
Design a given interfacing system using concepts of memory and
CO_3160712.4
I/O interfacing.
CO_3160712.5 Demonstrate the features of advance microprocessors

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

3. (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
(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
4. √
(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
5. (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
Microprocessor and Interfacing (3160712) Enrollment No

simulator. Display result on output port number


0AH
(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
6. √
(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.
(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


7. √
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
(a) Write an assembly language program to reverse
the block of 8-bit data using stack in 8085
simulator.
8. √
(b) Write an assembly language program for decade
counter with 1 ms delay between two successive
counts using 8085 simulator
Study about 8255A Programmable Peripheral Interface
9. √
Architecture, ports and their modes.
Study about 8086 microprocessor architecture and its
10. √
register organization.
Microprocessor and Interfacing (3160712) Enrollment No

Industry Relevant Skills

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

Guidelines for Faculty members

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.

Instructions for Students

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

Common Safety Instructions

Students are expected to

1) switch on the PC carefully (not to use wet hands)


2) shutdown the PC properly at the end of your Lab
3) carefully handle 8085 microprocessor kit
4) carefully handle the peripherals (Mouse, Keyboard, Network cable etc)
5) use Laptop in lab after getting permission from Teacher
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

(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
4 (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
5 (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
6 (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


Microprocessor and Interfacing (3160712) Enrollment No

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.
7 (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
8 (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
9 Study about 8255A Programmable Peripheral
Interface Architecture, ports and their modes.
10 Study about 8086 microprocessor architecture
and its register organization.
Total
Microprocessor and Interfacing (3160712) Enrollment No

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.

Date: // Write date of experiment here

Competency and Practical Skills: Understanding and Analyzing

Relevant CO: CO1

Objectives: (a) To understand the architecture of 8085 microprocessor


(b) To understand the control signals of 8085 microprocessor chip.
(c) To understand the Bus organization of 8085 microprocessor
.
Equipment/Instruments: 8085 microprocessor board.

Theory:

8085 Microprocessor Architecture

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.

8085 microprocessor consists of the following functional units:

1. Arithmetic and Logic Unit


2. Registers
3. Data and Address Bus
4. Timing and Control Unit

I. Arithmetic and Logic Unit:


 Used to perform arithmetic and logical functions like: addition, subtraction, logical AND,
logical OR, etc.
 It is the most important part of microprocessor.
 It executes all the instructions.

Page No
Microprocessor and Interfacing (3160712) Enrollment No

Figure – 1: Architecture of 8085 Microprocessor

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.

ii. General purpose register:


 There are in total 6 general purpose registers.
 They all store 8-bit data.
 They are as: B, C, D, E, H & L.

iii. Program counter:


 It is known as PC.
 Microprocessor uses PC register to sequence the execution of instructions.
 Its function is to point to memory address from which next byte is to be fetched.
 When a byte is being fetched, PC is incremented by 1 to point the next location in memory.

Page No
Microprocessor and Interfacing (3160712) Enrollment No

iv. Stack pointer:


 This register is used as memory pointer.
 It points to the memory location in R/W memory called Stack.
 Beginning of the stack is defined by loading 16-bit address in the stack pointer.

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.

vi. Flag register:


 It is an 8-bit register having five 1-bit flip-flops, which holds either 0 or 1 depending upon the
result stored in the accumulator.

vii. Instruction register:


 The instruction register holds the op-code of the instruction which is being decoded and
executed.

III. Timing and Control Unit:


 It provides timing and control signals to the microprocessor to perform various operations.
 It has 3 control signals which control all external and internal circuits.
 These signals are synchronized with the clock signals to have synchronized data transfers.

IV. Address Bus and Data Bus:


 Group of 16 unidirectional lines generally identified as A0 to A15 i.e. bits flow from
microprocessors to peripheral devices.
 These 16 address lines are capable of addressing 65536 memory locations.
 So, 8085 has 64K memory locations.

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:

 16 single lines are used as address bus.


 But these 16 lines split into 2 segments: A15 – A8 and AD7 – AD0.
 A15 - A8 are unidirectional and used to carry high-order address of 16-bit address.
 AD7 - AD0 are used for dual purpose.

Figure – 2 Pin diagram of 8085 Microprocessor

Multiplexed Address/Data 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).

Control and Status Signals:

 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.

Power Supply and Frequency Signals:

 Vcc  Pin 40, +5V Supply.


 Vss  Pin 20, Ground Reference
 X1, X2  Pin 1 & 2, Crystal Oscillator is connected at these two pins.
 The frequency is internally divided by two;
 Therefore, to operate a system at 3MHz, the crystal should have a frequency of 6MHz.
 CLK (OUT)  Clock output
 Pin 37: This signal is used as system clock for other I/O devices for synchronization with
Microprocessor.

Externally Initiated Signals:

 INTR (Input)  Interrupt Request. It is used for general purpose interrupt.


 INTA (Output)  Interrupt Acknowledge.
 RST7.5, RST6.5, RST5.5 (Input)  Restart Interrupts. These are vector interrupts that
transfer the program control to specific memory locations.
 TRAP (Input)  This is a non maskable interrupt & has the highest priority.
 HOLD (Input)  This signal indicates that a peripheral such as DMA Controller is
requesting the use of address & data buses.
 HLDA (Output)  Hold Acknowledge. This signal acknowledges the HOLD request.

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.

Serial I/O Ports:

 Two pins for serial transmission:


 SID (Serial Input Data)
 SOD (Serial Output Data)
 In serial transmission, data bits are sent over a single line, one bit at a time.

Bus Organization

 Microprocessors consists mainly of 3 units:


 CPU
 Memory
 I/O

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:

 Group of 8 lines identified as D0 to D7.


 They are bidirectional i.e. data flow in both directions between microprocessor, memory &
peripheral.
 8 data lines enable microprocessor to manipulate data ranging from 00H to FFH (28 = 256
numbers).
 Largest number appear on data bus is 1111 1111 => (255)10.
 As Data bus is of 8-bit, 8085 is known as 8-bit Microprocessor.

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:

(1) What is the use of ALE signal?


(2) What type of address mechanism used in 8085 to address memory and I/O Device?
(3) What is the maximum amount of memory support by the 8085 microprocessors?
(4) Why N-MOS Technology is used for 8085 microprocessors?

Suggested Reference:

8085 – Microprocessor architecture, programming and interfacing by Ramesh S. Goankar, 5th


edition, prentice hall publication.

References used by the students:

// Write references used by you here

Rubric wise marks obtained:

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

Aim: 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

Date: // Write date of experiment here

Competency and Practical Skills: Understanding and Analyzing

Relevant CO: CO1

Objectives: (a) To understand the architecture of 8085 microprocessor


(b) To understand the control signals of 8085 microprocessor chip.
(c) To understand the Bus organization of 8085 microprocessor
.
Equipment/Instruments: 8085 microprocessor board.

Theory:

// Write about all the instructions here

Observations:

// Write your observation here

Conclusion:

// Write conclusion here

Quiz:

(1) What is PUSH and POP operations in stack?


(2) What is conditional jump?
(3) What is the function of DAA instruction?

Suggested Reference:

8085 – Microprocessor architecture, programming and interfacing by Ramesh S. Goankar, 5 th edition,


prentice hall publication.

References used by the students:

// Write references used by you here

Rubric wise marks obtained:

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

Date: // Write date of experiment here

Competency and Practical Skills: Logic building, Programming and Analyzing

Relevant CO: CO3

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

Input : (2000H) : 11H


(2001H) : 12H
(2002H) : 13H
(2003H) : 14H

Output : (2020H) : 24H


(2021H) : 26H

Address Label Mnemonics Hex Comments


Code
0000 LHLD 2000 2A ;Load H and L registers
0001 00
0002 20
0003 XCHG EB ; Exchange contents of HL and DE register
pairs
0004 LHLD 2002 2A ; Load H and L registers
0005 02
0006 20
0007 MVI C,00 0E ; Clear register C
0008 00
0009 DAD D 19 ; Add contents of DE pair with contents of
HL pair
000A JNC result D2 ; Go to result if CY = 0
000B 12
000C 00
000D INR C 0C ; Increment of register C
000E MOV A, C 79 ;Transfer data from register C to accumulator
000F STA 2025 32 ;Store data from accumulator to memory
Page No
Microprocessor and Interfacing (3160712) Enrollment No
address
0010 25
0011 20
0012 result : SHLD 2020 22 ; Store contents of registers H and L to
memory address
0013 20
0014 20
0015 HLT 76 ; End of the program

(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

Input : (2050H) : 18H


(2051H) : 12H

Output : (2055H) : 06H

Address Label Mnemonics Hexcode Comments


0000 LXI H,2050 21 ; Load HL pair with memory address
0001 50
0002 20
0003 MOV A,M 7E ; Transfer data from memory to
accumulator
0004 INX H 23 ; Increment of HL pair
0005 SBB M 9E ;Subtract data of memory from
accumulator
0006 STA 2055 32 ; Store data from accumulator to memory
address
0007 55
0008 20
0009 HLT 76 ; End of the program

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:

(1) What is data transfer instructions?


(2) What is the function of LHLD instruction?
(3) What operation is performed by XCHG instruction?

Suggested Reference:

8085 – Microprocessor architecture, programming and interfacing by Ramesh S. Goankar, 5 th edition,


prentice hall publication.
Page No
Microprocessor and Interfacing (3160712) Enrollment No

References used by the students:

// Write references used by you here

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 - 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

Date: // Write date of experiment here

Competency and Practical Skills: Logic building, Programming and Analyzing

Relevant CO: CO3

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 :

Address Label Mnemonics Hex Code Comments

(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

Address Label Mnemonics Hex Code Comments

Observations:

// Write your observation here

Conclusion:

// Write conclusion here

Quiz:

(1) What is the meaning of bit manipulation?


(2) What is the use of rotate instruction?
(3) What is the use of compare instruction?

Suggested Reference:

8085 – Microprocessor architecture, programming and interfacing by Ramesh S. Goankar, 5 th edition,


prentice hall publication.

References used by the students:

// Write references used by you here

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 - 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

Date: // Write date of experiment here

Competency and Practical Skills: Logic building, Programming and Analyzing

Relevant CO: CO3

Objectives: (a) To recall arithmetic and I/O instructions of 8085 microprocessor


(b) To use arithmetic and I/O instructions in program.
.
Equipment/Instruments: 8085 microprocessor kit / 8085 Simulator

Program:

(A) Program to find square root of given 8-bit number using 8085 simulator. Display
result on output port number 01H

Input :

Output :

Address Label Mnemonics Hex Code Comments

(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

Address Label Mnemonics Hex Code Comments

Observations:

// Write your observation here

Conclusion:

// Write conclusion here

Quiz:

(1) What is the meaning of port address?


(2) What is difference between memory mapped IO and I/O mapped I/O?
(3) How can you create loop statement in assembly language program?

Suggested Reference:

8085 – Microprocessor architecture, programming and interfacing by Ramesh S. Goankar, 5 th edition,


prentice hall publication.

References used by the students:

// Write references used by you here

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 - 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.

Date: // Write date of experiment here

Competency and Practical Skills: Logic building, Programming and Analyzing

Relevant CO: CO3

Objectives: (a) To recall block data transfer (DMA) of 8085 microprocessor


(b) To implement block data transfer program.
.
Equipment/Instruments: 8085 microprocessor kit / 8085 Simulator

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 :

Label Mnemonics Hex Code Comments


Address

(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:

// Write your observation here

Conclusion:

// Write conclusion here

Quiz:

(1) What is DMA transfer?


(2) Which control signal involve in DMA transfer?
(3) What is difference between interrupt cycle and DMA cycle?

Suggested Reference:

8085 – Microprocessor architecture, programming and interfacing by Ramesh S. Goankar, 5 th edition,


prentice hall publication.

References used by the students:

// Write references used by you here

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 - 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.

Date: // Write date of experiment here

Competency and Practical Skills: Logic building, Programming and Analyzing

Relevant CO: CO3

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 :

Address Label Mnemonics Hex Code Comments

(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:

// Write your observation here

Conclusion:

// Write conclusion here

Quiz:

(1) How program counter is modified when Call instructions is executed?


(2) What is the use of PSW (program status word) in subroutine call ?
(3) What is difference between CALL and RET instruction?

Suggested Reference:

8085 – Microprocessor architecture, programming and interfacing by Ramesh S. Goankar, 5 th edition,


prentice hall publication.

References used by the students:

// Write references used by you here

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 - 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.

Date: // Write date of experiment here

Competency and Practical Skills: Logic building, Programming and Analyzing

Relevant CO: CO3

Objectives: (a) To recall concepts of stack in 8085 microprocessor


(b) To use PUSH and POP instructions in 8085 microprocessor.
.
Equipment/Instruments: 8085 microprocessor kit / 8085 Simulator

Program:

(A) Program to reverse the block of 8-bit data using stack in 8085 simulator.

Input :

Output :

Address Label Mnemonics Hex Code Comments

(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:

// Write your observation here

Conclusion:

// Write conclusion here

Quiz:

(1) What is the use of NOP instruction in 8085 microprocessors?


(2) What is the application of delay counter program in 8085 microprocessor?
(3) What is the use of PUSH and POP instructions?

Suggested Reference:

8085 – Microprocessor architecture, programming and interfacing by Ramesh S. Goankar, 5 th edition,


prentice hall publication.

References used by the students:

// Write references used by you here

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 - 9

Aim: Study about 8255A Programmable Peripheral Interface Architecture, ports and their
modes.

Date: // Write date of experiment here

Competency and Practical Skills: Understanding and analyzing

Relevant CO: CO4

Objectives: (a) To understand concepts of 8255A Programmable Peripheral Interface


(b) To analyze interface of 8255A with 8085 microprocessor
.
Equipment/Instruments: 8255A hardware kit/Simulator

Theory :

// Write theory about 8255A here

Observations:

// Write your observation here

Conclusion:

// Write conclusion here

Quiz:

1) What are the control signals of 8255A IC?


2) Which are operating modes in 8255A?
3) What is the use of signals from Port - C?

Suggested Reference:

8085 – Microprocessor architecture, programming and interfacing by Ramesh S. Goankar, 5 th edition,


prentice hall publication.

References used by the students:

// Write references used by you here

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.

Date: // Write date of experiment here

Competency and Practical Skills: Understanding and analyzing

Relevant CO: CO5

Objectives: (a) To understand architecture of 8086 microprocessor


(b) To analyze register organization of 8086 microprocessor

Equipment/Instruments: 8086 microprocessor board

Theory :

// Write theory about 8086 here

Observations:

// Write your observation here

Conclusion:

// Write conclusion here

Quiz:

1) What is difference between 8085A and 8086 microprocessor?


2) What is memory size in 8086 microprocessor?
3) Which are the operating modes in 8086 microprocessor?

Suggested Reference:

(1) 8085 – Microprocessor architecture, programming and interfacing by Ramesh S. Goankar, 5 th


edition, prentice hall publication.
(2) 8086 Programming and Advance Processor Architecture, Savaliya M. T., Wiley India

References used by the students:

// Write references used by you here

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

You might also like