Tribhuwan University

Institute of Science and Technology

2079

Bachelor Level / First Year / Second Semester / Science

Bachelors in Information Technology (BIT151)

(Microprocessor and Computer Architecture)

Full Marks: 60

Pass Marks: 24

Time: 3 Hours

Candidates are required to give their answers in their own words as for as practicable.

The figures in the margin indicate full marks.

Section A

Long Answers Questions

Attempt any TWO questions.
[2*10=20]
1.
What is 8085 microprocessor? Explain the functional units of 8085 microprocessor in brief.[10]

What is 8085 Microprocessor? Explain the Functional Units of 8085 Microprocessor

The 8085 microprocessor is an 8-bit general-purpose microprocessor designed by Intel in 1976. It operates on a single +5V power supply, has 8-bit data bus, 16-bit address bus (can address 64KB of memory), and operates at a maximum clock frequency of 3.2 MHz.


Functional Units of 8085 Microprocessor

The 8085 microprocessor can be divided into the following functional units:


A. Accumulator and Register Unit

  • Accumulator (A) — An 8-bit register used to store data for arithmetic and logical operations. The result of every ALU operation is stored here.
  • General Purpose Registers — Six 8-bit registers: B, C, D, E, H, L. They can be used individually (8-bit) or as register pairs BC, DE, HL (16-bit).
  • Temporary Register — Holds data temporarily during ALU operations (not accessible to programmer).

B. Arithmetic and Logic Unit (ALU)

  • Performs arithmetic operations (addition, subtraction, increment, decrement) and logical operations (AND, OR, XOR, complement).
  • Operates on 8-bit data.
  • The result is stored in the Accumulator and appropriate flags are set.

C. Flag Register

  • A special 5-bit register that indicates the status of the result after ALU operations.

  • The five flags are:

  • S (Sign Flag) — Set if result is negative

  • Z (Zero Flag) — Set if result is zero

  • AC (Auxiliary Carry Flag) — Set if carry from lower nibble to upper nibble

  • P (Parity Flag) — Set if result has even number of 1s

  • CY (Carry Flag) — Set if there is a carry out of MSB


D. Program Counter (PC)

  • A 16-bit register that holds the memory address of the next instruction to be fetched.
  • It is automatically incremented after every instruction fetch.

E. Stack Pointer (SP)

  • A 16-bit register that points to the top of the stack in memory.
  • Used during PUSH, POP, CALL, and RET operations.

F. Timing and Control Unit

  • Generates timing and control signals to coordinate all operations of the microprocessor.
  • Important control signals include: RD̅ (Read), WR̅ (Write), ALE (Address Latch Enable), IO/M̅, READY, HOLD, HLDA.
  • Synchronizes data transfer between microprocessor and peripherals.

G. Instruction Register and Decoder

  • Instruction Register (IR) — Stores the opcode of the current instruction fetched from memory.
  • Instruction Decoder — Decodes the opcode and generates internal signals to execute the instruction.

H. Interrupt Control Unit

  • Handles 5 hardware interrupts: TRAP, RST 7.5, RST 6.5, RST 5.5, and INTR.
  • TRAP is the highest priority (non-maskable), INTR is the lowest priority (maskable).

I. Serial I/O Control

  • Has two pins: SID (Serial Input Data) and SOD (Serial Output Data).
  • Used for serial communication using RIM and SIM instructions.

J. Address and Data Bus

  • Address Bus — 16-bit unidirectional bus (A0–A15), can address 2162^{16} = 64KB memory.
  • Data Bus — 8-bit bidirectional bus (AD0–AD7), lower 8 address lines are multiplexed with data bus to reduce pin count.

Conclusion

The 8085 microprocessor is a well-structured 8-bit processor with clearly defined functional units including ALU, registers, control unit, interrupt system, and buses — all working together to fetch, decode, and execute instructions efficiently.

2.
Draw the block diagram of Hardwired control unit and explain their functional units in brief.[10]
3.
State an algorithm for the restoring division method of fixed point binary division.Show the step-by step division process using restoring division algorithm when 448(0111000000) is divided by 17(10001). Use 5-bit register to represent the numbers.[10]
Section B

Short Answers Questions

Attempt any Eight questions.
[8*5=40]
4.
What is the difference between SAP-1 and SAP-2? [5]
5.
What is instruction cycle? If the clock frequency is 5 MHz, how much time is required to execute an instruction MVI A, 08H? [3+2]
6.
What is Microoperations? Explain the function of each following microoperations
ARPCAR ⟵ PC
DRM[AR],PCPC+1DR ⟵ M[AR], PC ⟵ PC+1
ARDR(010),CAR(25)DR(1114)AR ⟵ DR(0 - 10), CAR(2 - 5) ⟵ DR(11 - 14)
[5]
7.
What is Instruction Format of basic computer architecture? A computer uses a memory unit with 256K words of 32 bits each. Draw the instruction word format and indicate the number of bits in each part. [5]
8.
Write a 8085 assembly langauge for division of two 8-bit numbers by repeated subtraction method. [5]
9.
Explain the use of mapping table. [5]
10.
What is the difference between isolated 1/0 and memory-mapped I/0? What are the avantages and disadvantages of each? [5]
11.
What is pipelining? Explain the role of pipelining in computing. [5]
12.
Write short notes on: a.) Multiplexed Address Write short notes on: b.) Memory Hierarchy [2.5+2.5]