Lab Manual MPI
Lab Manual MPI
SEMESTER: 6TH
CERTIFICATE
This is to certify that Mr. / Ms. …....................................................................................................................
Date:
Semester: 6th
Course Outcomes:
CO-1 Demonstrate the various features of microprocessor, memory and I/O devices including
concepts of system bus.
Identify the hardware elements of 8085 microprocessor including architecture and pin
CO-2 functions and programming model including registers, instruction setand addressing
modes.
CO-3 Select appropriate 8085 instructions based on size and functions to write a given
assembly language program
CO-4 Design a given interfacing system using concepts of memory and I/O interfacing.
R2 Total
Practical Sign of
R1 R3 R4 Marks
List R5 faculty
Understandin Engagemen Docume (Out of 10)
Accuracy g& Time
t ntation
Explanation
1
10
11
12
13
Practical 1
Aim:
Introduction to 8085 microprocessor architecture and 8085 trainer kit.
Apparatus:
8085 trainer kit (M85-01)
M85-01 is a single board Microprocessor Trainer Kit based on 8085 Microprocessor, which is widely used to
train engineers to develop software/hardware for any industrial process & control. This Kit consists of power-
full Monitor EPROM, RAM, I/O Lines, Timer/Counter, Serial, Seven Segment Display and Keyboard for Man
to Machine Interface.
Features:
➢ 8Kbytes of EPROM with 8K bytes of Battery Backup RAM.
➢ 24 I/O Lines, Three Channel Timer/Counter, PC Serial Interface.
➢ Seven Segment Display with 28 Keys Hex Keypad.
➢ Power-full Command like Single Stepping, Break Point, Full Clock Execution, Examine Memory/
Register.
➢ Uploading & Downloading to and from PC in Windows98/XP/NT.
➢ In-Built Power Supply.
Specification:
➢ Based on 8085 CPU operating at 6.144 Mhz.
➢ 8K bytes of Powerful Monitor Program using 27512 EPROM
➢ 8K bytes of RAM using 6264 with Battery Backup using NICD Battery.
➢ On-board one memory expansion up to 56KB.
➢ 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.
➢ RS-232C interface through SID/SOD lines
➢ Two mode of commands: Hex Key pad Mode and Serial Mode
➢ Six Digit Seven Segment Display using 8279.
➢ 28Key’s Hex Keypad using 8279 Keyboard Display Controller.
➢ 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.
➢ Facility for Downloading/Uploading files from/to PC.
➢ All address, data & control lines are available on KXT Bus 50 pin FRC Connector to interface
with SC-XX Series.
➢ All ICS are mounted on IC Sockets.
➢ Bare board Tested Glass Epoxy SMOBC PCB is used.
➢ In-Built Power Supply of +5V/1.5A, ±12V/250mA
8085 Architecture:
Sign flag (S): when the result of ALU operation is negative sign flag is set. If the result is positive, then sign
flag is reset. i. e. the D7 bit of accumulator is copied into the sign flag, as D7 anyhow contains sign.
Zero flag (Z): when the result of ALU operation is zero, Zero flag is set. If the result is non-zero then flag is
reset.
Auxiliary carry (AC): If an ALU operation results in carry from lower nibble to upper nibble (or) bit D3 to bit
D4, Auxiliary flag is set. Else it is reset. This flag is used in BCD arithmetic.
Parity flag (P): If the result contains even number of ones, the flag is set else it is reset. So the parity flag is odd
parity bit.
Carry flag (CY): If the arithmetic operation results in carry, CY flag is set, else it is reset.
Register Array:
8085 has six general purpose registers B, C, D, E, H, L. They can be used as pairs to hold 16-bit data as BC,
DE, HL. Accumulator is 8-bit register which holds the results of operations as well as operand on which some
operation needs to be performed. Flag register contains five flags, namely S, Z, CY, AC, P flags. 8085 has two
16- bit register PC, SP. PC always consists of address of next instruction to be executed. SP always points to top
of stack. i.e. address of top memory location of stack. Stack is a data structure. It is used to store return
addresses whenever call to subprograms or an interrupt occurs. Two temporary registers W, Z are also present.
These are used to hold temporary results during execution. But these are not accessible to the user. Incrementer
and decrementer address latch is for incrementing the PC content for every fetch cycle.
Timing and Control unit:
This is responsible for generation of control signals, such as RD’, WR’ to interface peripherals. It also
synchronizes all microprocessor operations.
Instruction Register and Decoding:
Instruction register holds instruction that is fetched from memory. Instruction decoder decodes the opcode
(which is part of fetched instruction present in instruction register). Instruction register is not accessible to the
programmer.
Interrupt Controller:
8085 has 5 external interrupts. TRAP, INTR, RST 5.5, RST 6.5, and RST 7.5. Whenever processor gets
interrupt it finishes current instruction execution and issues INTA (interrupt acknowledge) signal to the
peripheral which raised the interrupt and goes to execute interrupt service routine. Interrupt controller controls
the interrupts.
Serial I/O control:
Serial data can be sent out using SOD pin and serial data can be read from SID pin. It controls serial IO related
operations.
Conclusion:
Assessment:
Total
Apparatus:
8085 trainer kit (M85-01)
Program:
2101 H : 05 H
Output:
Conclusion:
Assessment:
Total
Apparatus:
8085 trainer kit (M85-01)
Program:
2101 H : 06 H
Output:
Conclusion:
Assessment:
Total
Apparatus:
8085 trainer kit (M85-01)
Program:
Inputs:
2100 H : 30 H 2101 H : 11 H 2102 H : 22 H 2103 H : 44 H
Outputs:
Conclusion:
Assessment:
Total
Apparatus:
8085 trainer kit (M85-01)
Program:
2101 H : 10 H
2102 H : 10 H
2103 H : 05 H
Outputs:
Conclusion:
Assessment:
Total
Apparatus:
8085 trainer kit (M85-01)
Program:
Inputs:
2100 H : 12 H 2101 H : 10 H
Output:
Conclusion:
Assessment:
Total
Apparatus:
8085 trainer kit (M85-01)
Program:
Outputs:
Conclusion:
Assessment:
Total
Apparatus:
8085 trainer kit (M85-01)
Program:
Outputs:
Conclusion:
Assessment:
Total
Apparatus:
8085 trainer kit (M85-01)
Program:
Outputs:
Conclusion:
Assessment:
Total
Apparatus:
8085 trainer kit (M85-01)
Program:
Outputs:
Conclusion:
Assessment:
Total
Apparatus:
8085 trainer kit (M85-01)
Program:
Outputs:
Conclusion:
Assessment:
Total
Apparatus:
8085 trainer kit (M85-01)
Program:
Conclusion:
Assessment:
Total
Practical 13
Aim:
Write a program for displaying BCD down counters. Counter should count numbers from 99 to
00 and it should decrement after every 1 sec. Assume display and delayroutines are available.
Apparatus:
Simulation software
Program:
1
BMU, Surat Semester 5, Computer Department
Output:
Conclusion:
2
BMU, Surat Semester 5, Computer Department
Assessment:
Total