All Exams Test series for 1 year @ ₹349 only
Question

Cycle stealing mode of DMA operation involves

The correct answer is

While the microprocessor is executing a programme, an interface circuit takes control of the address, data and control buses, when not in use by the microprocessor

Understanding DMA Cycle Stealing Mode

Direct Memory Access (DMA) is a crucial feature in computer systems that allows hardware subsystems to access main system memory (RAM) independently of the central processing unit (CPU). This bypasses the need for the CPU to handle every byte or word of data transfer, improving overall system efficiency.

How Cycle Stealing Works

The Cycle Stealing mode is a specific method used by DMA controllers to manage data transfers. In this mode, the DMA controller needs to move a block of data between an I/O device and memory. Rather than waiting for the CPU to finish its current operations or explicitly pausing the CPU, the DMA controller monitors the CPU's activity.

When the CPU is executing a program, there are often moments when it does not require access to the system bus (which includes the address, data, and control buses). These moments are typically between instruction fetches or during the execution of instructions that do not involve bus access. The DMA controller takes advantage of these brief periods, referred to as 'idle bus cycles'.

During an idle bus cycle, the DMA controller temporarily 'steals' the bus. It gains control of the address, data, and control buses and performs a single data transfer (e.g., one byte or one word) between the I/O device and memory. Once the transfer is complete, the DMA controller relinquishes control of the buses, allowing the CPU to resume its operations seamlessly.

This process of borrowing bus cycles repeats for each unit of data that needs to be transferred, allowing DMA to proceed concurrently with CPU execution without significantly hindering the CPU's performance.

Analyzing the Options

Let's examine the provided options to determine the best description of the Cycle Stealing mode:

  • Option 1: This option describes a general DMA transfer where the DMA controller takes control of the buses. However, it doesn't specify the condition under which this happens, which is key to defining cycle stealing (i.e., during idle bus cycles).
  • Option 2: This option accurately captures the essence of Cycle Stealing mode. It states that an interface circuit (the DMA controller) takes control of the address, data, and control buses when these buses are *not in use by the microprocessor*, while the microprocessor is still actively executing its program. This opportunistic bus access is the defining characteristic.
  • Option 3: This option suggests a fixed timing for data transfer (every alternate clock cycle). While DMA operations are timed, cycle stealing is defined by the availability of the bus cycles rather than a strict alternating pattern.
  • Option 4: This option describes a scenario where the DMA controller waits for the microprocessor to finish its entire program before taking over the buses. This is not cycle stealing; it would be a much less efficient method, essentially delaying DMA until the CPU is completely idle. Cycle stealing aims to utilize the CPU's idle moments during ongoing execution.

In summary, the Cycle Stealing mode allows the DMA controller to efficiently transfer data by utilizing the system bus only when the CPU is not actively using it, thereby enabling concurrent operation.

Was this answer helpful?

Important Questions from Microprocessors and Microcontrollers

  1. The period of machine cycle of an 8051 system with crystal frequency 16 MHz is

  2. Which of the following instructions will move the contents of register 3 to the accumulator ?

  3. In 8086, which instruction at the end of a sub-routine takes the execution back to the main program?

  4. Which one of the following is not the feature of 8051?

  5. What is the operation performed by the following assembly language program of 8051?

               CLR        A

                 MOV       R1, # 100H

                 MOV       R7, # 21H

    AGAIN: MOV      @ R1, A

                 INC         R1

                 DJNC      R7, AGAIN

Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App