CSC167 · TU past paper
Microprocessor 2080.1 question paper
The complete TU 2080.1 exam paper for Microprocessor (CSC167), all 12 questions with solved model answers written to the mark scheme.
Tap a question to open its answer.
- 110 marksDemultiplexing of BusesHideAnswer
Difference between 8085 and 8086 microprocessor. Explain the concept of demultiplexing of address bus and why is it required?[10]
--- Feature 8085 Microprocessor 8086 Microprocessor --------- Data Bus Width 8-bit data bus 16-bit data bus Address Bus Width 16-bit address bus 20-bit address bus Addressable Memory 2^16 = 64 KB 2^20 = 1 MB Word Size 8-bit (processes 8 ...
- 210 marksSimple sequence programsHideAnswer
Write an Assembly program for calculating the factorial of a number using 8085 microprocessor.[10]
The factorial of a number N is calculated as: N! = N × (N-1) × (N-2) × ... × 2 × 1 For example: 5! = 5 × 4 × 3 × 2 × 1 = 120 --- 1. Load the number N from memory 2. Initialize a result register to 1 (since 0! = 1 and 1! = 1) 3. Multiply ...
- 310 marks80286HideAnswer
Draw a block diagram of 80286 microprocessor and explain.[10]
The Intel 80286 is a 16-bit microprocessor introduced by Intel in 1982. It is an advanced version of the 8086/8088 microprocessors. It has a 16-bit data bus and a 24-bit address bus, which allows it to address up to 16 MB of physical mem...
- 45 marksPagingHideAnswer
What is paging? Explain the concept of memory access in protected mode. [5]
Paging is a memory management mechanism used in protected mode that allows handling of large segments of memory by dividing them into fixed-size units called pages. Each page is of 4K bytes (4096 bytes) in size. - The paging unit is a me...
- 55 marksDirect Memory AccessHideAnswer
What is the importance of direct memory access? Explain the mechanism of direct memory access. [5]
Direct Memory Access (DMA) - Importance and Mechanism
Importance of Direct Memory Access
Direct Memory Access (DMA) is a technique that allows external I/O devices to communicate directly with the memory without involving the processor every time. Its importance includes:
- Frees the CPU: The CPU does not need to supervise every data transfer between I/O devices and memory, allowing it to perform other tasks simultaneously.
- High Speed Data Transfer: Large blocks of data can be transferred at high speed directly between memory and peripherals (e.g., disk drives, network cards) without CPU intervention.
- Reduced CPU Overhead: Since the CPU is not busy handling each byte of data transfer, overall system performance and efficiency is greatly improved.
- Efficient Use of System Resources: The processor and I/O operations can proceed in parallel, making better use of available hardware resources.
- Essential for High-Bandwidth Devices: Devices such as hard disks, graphics cards, and sound cards require fast bulk data transfers that would be too slow if handled byte-by-byte by the CPU.
Mechanism of Direct Memory Access
The DMA mechanism works through a dedicated hardware unit called the DMA Controller (DMAC). The steps involved are as follows:
Step 1: DMA Request
- When an I/O device needs to transfer data to/from memory, it sends a DMA request signal to the DMA controller.
Step 2: HOLD Signal to CPU
- The DMA controller activates the HOLD pin of the microprocessor.
- This signals the CPU to relinquish (release) control of the system buses (address bus, data bus, and control bus).
Step 3: HLDA (Hold Acknowledge)
- The CPU completes its current bus cycle and then sends a Hold Acknowledge (HLDA) signal back to the DMA controller.
- The CPU now enters a hold state and stops using the buses.
Step 4: DMA Takes Control of Buses
- The DMA controller now takes control of:
- Address Bus - to specify memory locations
- Data Bus - to transfer data
- Control Bus - to generate read/write signals
Step 5: Data Transfer
- The DMA controller directly transfers data between the I/O device and memory without CPU involvement.
- This transfer can be:
- Byte by byte (cycle stealing mode)
- Block transfer (burst mode)
Step 6: Release of Buses
- After the data transfer is complete, the DMA controller deactivates the HOLD signal.
- The CPU regains control of the buses and resumes normal operation.
DMA Transfer Diagram
I/O Device ---[DMA Request]---> DMA Controller | [HOLD Signal] | Microprocessor | [HLDA - Acknowledge] | DMA Controller takes Address, Data, Control Buses | Direct Transfer: I/O Device <-----> Memory | DMA releases buses | CPU resumes operation
Summary
DMA is important because it enables fast, CPU-independent data transfer between memory and peripherals. The mechanism relies on the HOLD and HLDA handshake between the DMA controller and the CPU, after which the DMA controller directly manages the buses to perform the transfer efficiently.
- 65 marksProgrammable Interrupt Controller 8259AHideAnswer
List different types of ports. What are the main characteristics of programmable interrupt controller 8259A? [5]
--- Ports are the interfaces through which the CPU communicates with external devices. The main types of ports are: - Used to transfer data from peripheral devices to the CPU. - Example: Keyboard port, scanner port. - Used to transfer da...
- 75 marksInstruction CycleHideAnswer
Difference between instruction cycle and machine cycle. Draw timing diagram of MVI A, 32 H. [5]
--- Basis Instruction Cycle Machine Cycle --------- Definition Time required to fetch and execute an entire instruction Time required to access memory or I/O device once Composition Consists of one or more machine cycles Consists of 3 to...
- 85 marksSimple sequence programsHideAnswer
Write an Assembly program to reverse the given string. [5]
The strategy uses the stack as a temporary storage structure (LIFO - Last In, First Out): 1. Read characters one by one from input and PUSH each onto the stack, counting them in CX. 2. When end of input is detected, POP characters one by...
- 95 marksSystem busHideAnswer
Explain different types of system buses and also indicate whether they are unidirectional or bidirectional. [5]
A bus is a group of conducting wires (lines) that connects different components of a computer system (CPU, memory, and I/O devices) and carries information between them. There are three types of system buses: --- - A group of conducting ...
- 105 marksInterrupt MaskingHideAnswer
What is the significance of interrupt masking? Difference between vectored and polled interrupt. [5]
--- Interrupt masking is the ability of the processor to enable or disable (mask) certain interrupts so that the CPU can decide whether to respond to an interrupt immediately or delay its response. Key significance: - Maskable Interrupts...
- 115 marksMemory access in GDT and LDTHideAnswer
Illustrate memory access in GDT. [5]
In Protected Mode of the 80286/80386 microprocessor, memory access is managed through a structure called the Global Descriptor Table (GDT). The segment registers no longer hold base addresses directly; instead, they hold selectors that p...
- 125 marksJumpsHideAnswer
Write short notes on: a. Jumps b. Accumulator [5]
--- A jump instruction in 8085 microprocessor assembly language is used to transfer program control (the program counter) to a specified memory address, either unconditionally or based on the status of certain flags (condition codes). 1....