Browse papers
A

Section A: Long Answer Questions

Attempt any TWO questions.

3 questions·10 marks each
1long10 marks

Draw and explain the architecture of the 8086 microprocessor. Differentiate between the Bus Interface Unit (BIU) and the Execution Unit (EU).

Architecture of the 8086 Microprocessor

The 8086 is a 16-bit microprocessor that internally divides its work between two independent functional units that work in parallel (pipelining): the Bus Interface Unit (BIU) and the Execution Unit (EU).

Block Diagram (described)

  • BIU (top): contains the four segment registers (CS, DS, SS, ES), the Instruction Pointer (IP), the address generation/adder unit, and a 6-byte instruction queue. It connects to the system bus.
  • EU (bottom): contains the ALU, the general-purpose registers (AX, BX, CX, DX), the pointer/index registers (SP, BP, SI, DI), the flag register, and the control/timing circuitry.
  • The two units communicate through an internal bus; the BIU feeds prefetched instruction bytes into the queue, and the EU pulls them out for decoding/execution.

Bus Interface Unit (BIU)

The BIU handles all transfers between the CPU and memory/I/O.

  • Generates the 20-bit physical address by shifting the segment register left by 4 bits and adding the offset: Physical Address=(Segment×16)+Offset\text{Physical Address} = (\text{Segment} \times 16) + \text{Offset}.
  • Fetches instructions in advance and stores them in the 6-byte instruction queue (instruction prefetching / pipelining).
  • Performs read/write of data operands from memory and I/O ports.
  • Holds CS, DS, SS, ES segment registers and IP.

Execution Unit (EU)

The EU executes the instructions supplied by the BIU.

  • Decodes and executes instructions taken from the queue.
  • Performs all arithmetic and logical operations through the 16-bit ALU.
  • Holds general-purpose registers (AX, BX, CX, DX), index/pointer registers, and the flag register.
  • Tells the BIU where to fetch the next data or instruction (it has no direct connection to the system bus).

BIU vs EU

FeatureBIUEU
Main jobFetch instructions/data, generate addressesDecode and execute instructions
Bus accessDirectly connected to system busNo direct bus access
Key registersCS, DS, SS, ES, IP, instruction queueAX–DX, SP, BP, SI, DI, flags
ContainsAddress adder, 6-byte queueALU, control circuitry

Parallelism: While the EU executes one instruction, the BIU prefetches the next ones into the queue, reducing the time the CPU waits on memory and improving throughput.

8086architecture
2long10 marks

What is an interrupt? Explain the interrupt structure of the 8085 microprocessor including hardware and software interrupts and their priorities.

Interrupts in the 8085

An interrupt is a signal (from hardware or software) that temporarily halts the normal execution of the main program so the CPU can service a higher-priority event. The CPU saves the current state (pushes the program counter on the stack), executes an Interrupt Service Routine (ISR), and then resumes the interrupted program.

Hardware Interrupts of 8085

The 8085 has five hardware interrupt pins:

InterruptTypeVector AddressMaskable?
TRAPEdge + level triggered0024HNon-maskable (highest priority)
RST 7.5Edge triggered003CHMaskable
RST 6.5Level triggered0034HMaskable
RST 5.5Level triggered002CHMaskable
INTRLevel triggeredDecided by device (via INTA)Maskable (lowest priority)
  • TRAP cannot be disabled by software; it is used for critical events such as power failure.
  • RST 7.5, 6.5, 5.5 are vectored and can be masked/unmasked using the SIM instruction; their status is read using RIM.
  • INTR is non-vectored: the interrupting device supplies the instruction (usually an RST or CALL) during the interrupt-acknowledge (INTA) cycle.

Software Interrupts of 8085

These are RST n instructions (n=0n = 0 to 77) written inside the program. Each calls a fixed vector location =n×8= n \times 8:

  • RST 0 → 0000H, RST 1 → 0008H, RST 2 → 0010H, RST 3 → 0018H, RST 4 → 0020H, RST 5 → 0028H, RST 6 → 0030H, RST 7 → 0038H.

Priority Order (highest to lowest)

TRAP>RST 7.5>RST 6.5>RST 5.5>INTR\text{TRAP} > \text{RST 7.5} > \text{RST 6.5} > \text{RST 5.5} > \text{INTR}

When two interrupts occur simultaneously, the one higher in this order is serviced first.

interrupt8085
3long10 marks

Explain the pin diagram and signals of the 8086 microprocessor in minimum mode operation.

8086 Pin Diagram and Signals in Minimum Mode

The 8086 is a 40-pin dual-in-line package operating on +5 V. The pin MN/MX\overline{MX} selects the mode: tied to +5 V (logic 1) gives minimum mode (single-processor system).

Multiplexed and Common Signals

  • AD0–AD15: Time-multiplexed address/data bus. They carry the lower 16 address bits when ALE = 1 and data during the rest of the cycle.
  • A16/S3 – A19/S6: Multiplexed upper address bits / status lines.
  • BHE\overline{BHE}/S7: Bus High Enable, used to access the upper byte of the data bus.
  • CLK, RESET, READY: Clock, reset, and wait-state synchronization.
  • NMI, INTR: Interrupt inputs; INTA\overline{INTA} is the acknowledge output.
  • TEST, MN/MX\overline{MX}, Vcc, GND.

Signals specific to Minimum Mode (generated by the 8086 itself)

PinFunction
ALEAddress Latch Enable — latches address from the multiplexed bus into an external latch (8282).
M/IO\text{M/}\overline{\text{IO}}High = memory operation, Low = I/O operation.
RD\overline{\text{RD}}Read control signal.
WR\overline{\text{WR}}Write control signal.
DT/R\overline{\text{R}}Data Transmit/Receive — direction control for the data bus transceiver (8286).
DEN\overline{\text{DEN}}Data Enable — enables the data bus transceiver.
HOLD / HLDADMA bus request and acknowledge.

Operation summary

In minimum mode the 8086 directly produces the control signals (ALE, RD, WR, M/IO, DEN, DT/R), so no external bus controller (8288) is needed. ALE strobes the lower address into latches to demultiplex the AD lines, then the same lines carry data controlled by RD/WR.

8086pins
B

Section B: Short Answer Questions

Attempt any EIGHT questions.

9 questions·5 marks each
4short5 marks

What is the word length of the 8086 microprocessor?

The word length of the 8086 is 16 bits. It has a 16-bit ALU and 16-bit internal data registers, so it processes data 16 bits (one word) at a time. (Its external data bus is also 16 bits wide, while its address bus is 20 bits, addressing 1 MB of memory.)

8086
5short5 marks

Define opcode and operand.

  • Opcode (Operation Code): The part of a machine/assembly instruction that specifies which operation the CPU must perform (e.g., ADD, MOV, SUB).
  • Operand: The part of the instruction that specifies the data or the address/register on which the operation is performed.

Example: In MOV AX, BXMOV is the opcode, while AX and BX are the operands.

instruction-set
6short5 marks

What are maskable and non-maskable interrupts?

  • Maskable interrupt: An interrupt that the programmer can enable or disable (mask) through software instructions (e.g., EI/DI or SIM in 8085). The CPU may ignore it if interrupts are disabled. Examples: INTR, RST 7.5/6.5/5.5.
  • Non-maskable interrupt (NMI): An interrupt that cannot be disabled by software; the CPU must always service it. It is reserved for critical/emergency conditions such as power failure. Example: TRAP in the 8085, NMI in the 8086.

Key difference: Maskable interrupts can be turned off under program control; non-maskable interrupts always have the highest priority and are always recognized.

interrupt
7short5 marks

What is the function of the instruction pointer (IP)?

The Instruction Pointer (IP) is a 16-bit register that holds the offset address of the next instruction to be fetched within the current code segment. Together with the CS (Code Segment) register it forms the full physical address:

Physical Address=(CS×16)+IP\text{Physical Address} = (\text{CS} \times 16) + \text{IP}

After each instruction is fetched, the BIU automatically increments the IP to point to the next instruction. The IP cannot be directly modified by the programmer; it is changed by control-transfer instructions such as JMP, CALL, RET, and interrupts. (It is analogous to the Program Counter in the 8085.)

registers
8short5 marks

Explain immediate addressing mode with an example.

Immediate Addressing Mode

In immediate addressing mode, the operand (the actual data) is specified directly within the instruction itself, immediately after the opcode. No memory or register access is needed to obtain the operand, so it executes quickly. It is used to load constants into registers or memory.

Examples (8086):

MOV AX, 1234H   ; load immediate value 1234H into AX
ADD BX, 05H     ; add immediate constant 05H to BX
MOV CL, 0AH     ; load 0AH into CL

Here 1234H, 05H, and 0AH are immediate operands stored as part of the instruction code. Note that the destination cannot be a segment register in immediate mode.

addressing-modes
9short5 marks

What is the role of the ALE signal in 8085?

Role of the ALE Signal in 8085

ALE (Address Latch Enable) is an output signal of the 8085 used to demultiplex the lower-order address/data bus AD0–AD7.

  • The lines AD0–AD7 are time-multiplexed: in the first T-state (T1) of a machine cycle they carry the lower byte of the address, and later they carry data.
  • The 8085 issues a positive (high) pulse on ALE during T1. This pulse is used to latch the lower address byte into an external latch (e.g., 8212 / 74LS373).
  • After ALE goes low, the same AD0–AD7 lines are free to be used as the data bus, while the latched address remains stable on the latch outputs.

Thus ALE separates the address from the data on the shared bus, allowing the 8085 to use one set of pins for both purposes.

8085signals
10short5 marks

Define throughput and clock speed.

  • Clock speed (clock frequency): The rate at which the processor's internal clock generates pulses, measured in Hertz (MHz/GHz). It defines the basic timing of operations; one clock cycle time T=1/fT = 1/f. A higher clock speed generally means instructions execute faster.
  • Throughput: The number of instructions (or amount of work/data) the processor completes per unit time, e.g., instructions per second (MIPS) or bytes per second. It reflects actual processing performance and depends on clock speed, pipelining, instruction complexity, and memory access.

Relation: A high clock speed raises the potential speed, but real throughput also depends on architecture (pipelining, parallelism, stalls).

performance
11short5 marks

What is a control bus?

A control bus is a group of signal lines that carries control and timing signals between the microprocessor and the other components (memory and I/O devices). Unlike the address and data buses, the control bus is not a single multi-bit value but a set of individual control lines.

Typical control signals include:

  • RD\overline{\text{RD}} (Read) and WR\overline{\text{WR}} (Write) — direction of data transfer.
  • M/IO\text{M/}\overline{\text{IO}} — selects memory or I/O operation.
  • ALE, READY, RESET, CLK, INTR/INTA, HOLD/HLDA — timing, synchronization, interrupt and DMA control.

It coordinates when and what type of operation occurs, so the CPU and devices act in proper sequence.

bus
12short5 marks

Differentiate between memory-mapped and I/O-mapped I/O.

Memory-Mapped I/O vs I/O-Mapped I/O

FeatureMemory-Mapped I/OI/O-Mapped (Isolated) I/O
Address spaceI/O devices share the memory address spaceI/O devices have a separate address space
Address widthFull 16-bit (or 20-bit) memory addressesSmaller, e.g., 8-bit port address (256 ports in 8085)
Control signalsUses memory control (MEMR/MEMW\overline{\text{MEMR}}/\overline{\text{MEMW}} or M/IO = 1)Uses I/O control (IOR/IOW\overline{\text{IOR}}/\overline{\text{IOW}} or M/IO = 0)
Instructions usedAny memory instruction (MOV, ADD, etc.)Special instructions (IN, OUT in 8085/8086)
Memory availableReduced (addresses used up by I/O)Full memory space remains for memory
HardwareSimpler decoding logic for instructions but consumes memory mapNeeds separate I/O decoding but preserves memory

Summary: In memory-mapped I/O, ports are treated like memory locations and accessed by ordinary memory instructions; in I/O-mapped I/O, ports occupy a distinct address space accessed only by dedicated IN/OUT instructions distinguished by the M/IO\text{M/}\overline{\text{IO}} (or IO/M) control line.

io

Frequently asked questions

Where can I find the BSc CSIT (TU) Microprocessor (BSc CSIT, CSC162) question paper 2075?
The full BSc CSIT (TU) Microprocessor (BSc CSIT, CSC162) 2075 (regular) question paper is available free on Kekkei. You can read every question online and attempt the paper under timed exam conditions.
Does the Microprocessor (BSc CSIT, CSC162) 2075 paper come with solutions?
Yes. Every question on this Microprocessor (BSc CSIT, CSC162) past paper includes a step-by-step solution, plus instant AI feedback when you attempt it on Kekkei.
How many marks is the BSc CSIT (TU) Microprocessor (BSc CSIT, CSC162) 2075 paper?
The BSc CSIT (TU) Microprocessor (BSc CSIT, CSC162) 2075 paper carries 60 full marks and is meant to be completed in 180 minutes, across 12 questions.
Is practising this Microprocessor (BSc CSIT, CSC162) past paper free?
Yes — reading and attempting this Microprocessor (BSc CSIT, CSC162) past paper on Kekkei is completely free.