Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
32 views14 pages

LAb Report

Download as docx, pdf, or txt
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 14

LAB REPORT COVER PAGE

Lab No: …...………………

Student ID: ……………...........

Student Name: ..…………………..

Initial Submission Date: …...……………….

Final Submission Date: ………...………….

Course Name: Microprocessor


Course Code: CACS151

Semester: 2nd

Evaluator’s Signature: …..…………………


Practical record
Name of the student:
Roll number:
Subject:
Lab invigilator: -

PRACTICAL DETAILS:
a) List of Experiments

Exp. Experiment Name Date of Date of Remarks


no submissio checking
n
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
ARCHITECTURE OF MICROPROCESSOR 8085

The above diagram shows the block diagram of 8085 microprocessor. The device
has 40 pins, which requires +5V power supply and can operate with 3MHz. This
microprocessor contains 3 buses.

i.e.

Address bus, Data bus, Address bus

Address = 16bits

216=64 Kb of data can be recognized in single cycle.


List of registers used in 8085 to perform
various operations:
 ALU: The automatic logic unit performs the computing function. It includes
the accumulator in temporary flag register and arithmetic logic unit.

 Accumulator: It is an 8-bit register that is part of ALU. This register is used


to store the data and to perform arithmetic and logic operation. 8085
microprocessor is also known as accumulator based microprocessor when
data is read from input part it is first move to accumulator and when data is
send to output part it must be first place in accumulator.

 Temporary register: They are 8-bit registers not accessible to read


programmer during programs execution, microprocessor places data in it.

 Instruction register: It is an 8-bit registers not accessible to the


programmer. It receives the upcode of instruction from internal data bus
and process to the instruction decoder which decodes so that
microprocessor knows which type of operation is to be performed.

 Register array: Register is an 8-bit register accessible to the programmers.


Data can be stored upon it during programs executing. These can be used
individually as 8-bit register or in pair BC, DE, HL as 16-bit register. The data
can be directly added or transfer from one to another. Their contents may
be incremented or decremented and combine logically with the contain of
accumulator.
 Stack pointer: It is a 16-bit register used as memory pointer. It points to a
memory location in read/write memory call the stack. The stack of
the stack is defined by loading a 16-bit address in stack pointers.

 Program counter: Microprocessor uses the program counter register to


sequences the execution of the instructions. The function of program
counter is to point to the memory address from which the next bit is to
fetch. When a bit is being fetched the program counter is incremented by 1
to point the next memory location.

 General purpose register: There are 6 general purpose register in 8085


microprocessor i.e. B, C, D, E, H&L. Each register can hold 8-bit data. This
register can work in pair to hold 16-bit data and there pairing combination
is like, B-C, D-E & H-L.

 Flag register: It is an 8-bit register having 5 1-bit flip-flops, which holds


either 0 or 1 depending upon the result store in accumulator. There are the
set of 5 flip-flops. I.e.
 Signs flag (S)
 Zero flag (Z)
 Auxiliary carry flag (Ac)
 Parity flag (P)
 Carry flag (C)
Signs flag (S): After any operation if a result is negative sign, sign flag
becomes set (1) otherwise sign becomes reset (0).Eg.

(MVI A, 30H)

(MVI B, 40H)

SUB B (A = A-B)

-10H

S 1

 Zero flag (Z): After any arithmetic or logical operation if the result is zero
flag becomes set (1) otherwise it becomes reset (0).Eg

(MVI A, 10H)

(MVI B, 10H)

SUB B (A = 10-10)

00H

Z 1
Auxiliary carry (Ac) flag: If after any arithmetical or logical operation, the
result has even parity register becomes set (1) otherwise it becomes reset
(0).Eg

(MVI A, 00H)

(MVI B, 01H)

A 00H 00

B 01H +01

A A+B 01

P 0

 Carry flag (C): If last operation generates a carry it status will beset (1)
otherwise it becomes reset (0).Eg

(MVI A, FFH)

(MVI B, FFH)

ADD B

1111 1111

+1 1 1 1 +1111

1111 1110
 Instruction and decoder: It is an 8-bit register, when an instruction is
fetched from the memory then it is stored in the instruction register.
Instruction decodes the information present in the instruction register.

 Timing and control unit: It provides timing and control signal to the
microprocessor to perform operations following are the timing and
control signals.
 READY: RD, WR, and ALE
 Status signal: S0, S1, Io/M
 DMA signals: HOLD, HLDA
 RESET signals: RESET IN, RESET OUT

 Interrupt Unit-As the name suggests, it controls the interrupt during the
process. When microprocessor is executing a main program and whenever
an interrupt occurs, the microprocessor shifts the control goes back to the
main program,
 There are 5 types of interrupt signals in 8085 microprocessor,
 INTR
 TRAP
 RST 5.5
 RST 6.5
 RST 7.5
GNU simulator 8085

 For engineers looking to program their processors as per specific


applications, a good number of open source simulation tools are
available. GNUSim8085 is one such software. This cross-platform
software enables users to digitally simulate, assemble and debug
the Intel 8085 8-bit microprocessor—a power-efficient
component for applications like security controls and automatic
controls.
 GNUSim8085 is a 8085 microprocessor simulator with following
features.
 A simple editor component with syntax highlighting.
 A keypad to input assembly language instructions with
appropriate arguments.
 Easy view of register contents.
 Easy view of flag contents.
 Hexadecimal <--> Decimal converter.
 View of stack, memory and I/O contents.
 Support for breakpoints for programming debugging.
 Stepwise program execution.
 One click conversion of assembly program to opcode
listing.
 Printing support (known not to work well on
Windows).
 UI translated in various languages.
Q.N. 1 Write an ALP to load number in accumulator.
Q.N. 2: Write an ALP to load any number in register A, B, C, D, E H & L
Q.N. 3: Write an ALP to load a number in memory location 2000H
Q.N. 4: Write an ALP to store a number in memory location 2001H
Q.N. 5: write an ALP to add two 8-bit numbers & store the result in
memory location 3000H

You might also like