Microprocessor Lab Manual
Microprocessor Lab Manual
Microprocessor Lab Manual
LA
TITLE DATE SIGN GRADE
B
10
Institute of Technology and
Engineering
LABORATORY 1
INTRODUCTION TO 8085 MICROPROCESSOR
KIT
OBJECTIVE
To familiarize with 8085 microprocessor kit and its commands.
PRELAB
1. Understand the 8085 hardware model.
2. Understand the 8085 bus architecture.
BACKGROUND INFORMATION
M85-02 kit is a single board MICROPROCESSOR TRAINING KIT based on 8085
Microprocessor. It contains the following features:
Three Channel Timer/Counter using 8253 brought out at 10 Pins FRC Connector.24
I/O lines provided through 8255 brought out at 26 Pins FRC Connector to interface
with IC-XX Series.
22 I/O lines provided through 8155 brought at 26 Pins FRC Connector. RS-232C
interface through SID/SOD lines
Two mode of commands : Hex Key pad Mode - Serial Mode
28 keys hexadecimal keyboard and six seven segment display using 8279
Powerful Commands like Examine/Edit Memory, Examine/Edit Register, Single
stepping, Execution, Block Move, Insert Data, Delete Data can be used through
hex keyboard or PC serial mode.
All address, data & control lines are available on KXT Bus on 50 pin FRC
Connector to interface with SC-XX Series.
All ICs are mounted on IC Sockets.
[
Institute of Technology and
Engineering
In-Built Power Supply of +5V/1.5A, ±12V/250mA
1 Reset: This key initializes the M85-02 kit and displays ‘-SCb 85’ on the
display. A ‘-’ on the left most end of display indicates that the system
is expecting a valid command.
If one wants to modify the contents of any RAM location, then enter the
data and press NEXT. The data field will be written in the address
displayed in the address field and simultaneously the contents of next
location will be displayed.
4 GO: This command is used to execute the program in full clock speed.
On pressing this key, the program counter content is displayed in the
address field with the data in the data field. A dot in the address field
indicates that the address can be changed, if so desired. Enter the
starting address of the program. On entering this address, the data
field gets blanked out. Press Terminate (.) key. The CPU will start
executing the program and E wil be displayed in address field.
[
Institute of Technology and
Engineering
5 Delete: This command allows the user to delete one or more
instructions from the user’s program. In this command all the memory
referenced instructions also get modified accordingly to keep the logic
of the program same.
EXERCISES
Faculty Sign
[
Institute of Technology and
Engineering
LABORATORY 2
PROGRAMMING BASED ON DATA TRANSFER OPERATIONS
OBJECTIVE
To familiarize with the use of data transfer instruction set of 8085
PRELAB
Read data transfer instructions from textbook in detail.
SP, 16-
LXI bit Copies 16-bit data to stack pointer SP
[
Institute of Technology and
Engineering
EXAMPLE PROGRAM
Load the accumulator and register B with 0x04 and 0x05 respectively. Swap
the content of the accumulator and register B using register C.
EXERCISES
[
Institute of Technology and
Engineering
LABORATORY 3
PROGRAMMING BASED ON ARITHMETIC AND LOGICAL
OPERATIONS
OBJECTIVE
To familiarize with the use of arithmetic and logical instruction sets of
8085
PRELAB
Read the instructions related to arithmetic and logical operations in
detail.
ADI 8-bit Adds the 8-bit Data to the content of the accumulator
SUI 8-bit Subtracts 8-bit Data from the content of the accumulator
DCR M
Decrement the content of the memory location specified
[7]
Institute of Technology and
Engineering
by register pair HL by 1.
EXERCISES
[8]
Institute of Technology and
Engineering
[9]
Institute of Technology and
Engineering
LABORATORY 4
PROGRAMMING BASED ON BRANCH OPERATIONS
OBJECTIVE
To familiarize with the use of branch operation related instructions in
8085 programming
PRELAB
Read and understand utilization of the instructions related to branch
operations.
EXERCISES
[1
Institute of Technology and
Engineering
[1
Institute of Technology and
Engineering
LABORATORY 5
TO INTERFACE 8255 WITH 8085 MICROPROCESSOR.
OBJECTIVE
To Interface 8255 with 8085.
PRELAB
Read the following topics from textbook
BACKGROUND INFORMATION
The 8255 is a general purpose programmable I/O device and has 24 I/O pins
which may be individually programmed. The basic function of 8255 is to
interface general purpose I/O devices to microcomputer system bus. It is
software programmable so that no external logic is necessary to interface the
peripheral devices. The Read/write control logic block receives signals likes
CS, RD, WR, A0, A1 and Reset. The various combinations of A1, A0, RD, WR
and CS control the selection of one of the three ports or the control word
registers.
There are three basic modes of operation that can be selected by the system
software.
Mode 0
In this mode, the ports can be used for simple input/output operations
without handshaking. If both port A and B are initialized in mode 0, the
two halves of port C can be either used together as an additional 8-bit
port, or they can be used as individual 4-bit ports. Since the two halves
[1
Institute of Technology and
Engineering
Mode 1
Mode 2
Only group A can be initialized in this mode. Port A can be used for
bidirectional handshake data transfer. This means that data can be
input or output on the same eight lines (PA0 - PA7). Pins PC3 - PC7 are
used as handshake lines for port A. The remaining pins of port C can be
used as input/output lines if group B is initialized in mode 0.
EXERCISES
1. Draw and explain internal architecture of 8255.
2. Explain various modes and control registers of 8255.
3. Generate square wave at PORT-A, PORT-B and PORT-C of 8255.
[1
Institute of Technology and
Engineering
[1
Institute of Technology and
Engineering
[1
Institute of Technology and
Engineering
[1