We describe a protocol of input device communication below:i) Each dev...
Answer: d
Explanation: In polling the processor checks each of the device if they wish to perform data transfer and if they do it performs the particular operation.
View all questions of this test
We describe a protocol of input device communication below:i) Each dev...
Protocol of Input Device Communication:
The given protocol describes the communication process between the input devices and the BUS controller. Let's break down the steps of the protocol:
i) Each device has a distinct address:
In this step, each input device is assigned a unique address. This address serves as an identifier for the device during communication with the BUS controller. Having distinct addresses ensures that the controller can differentiate between multiple devices.
ii) The BUS controller scans each device in sequence of increasing address value:
The BUS controller scans the devices one by one in a sequential order based on their increasing address values. This scanning process allows the controller to check if any device wants to communicate.
iii) The device ready to communicate leaves its data in the I/O register:
When a device is ready to communicate, it leaves its data in the Input/Output (I/O) register. The I/O register acts as a temporary storage location for the data being transferred between the device and the controller.
iv) The data is picked up and the controller moves to the next step:
Once the data is left in the I/O register, the BUS controller picks it up and proceeds to the next step of the communication process.
Form of Communication:
Based on the given protocol, the form of communication that best describes the I/O mode is polling. Here's why:
a) Programmed mode of data transfer:
In programmed mode, the data transfer is initiated and controlled by the program running on the CPU. However, in the given protocol, the communication is initiated by the BUS controller scanning the devices, not by the program.
b) DMA (Direct Memory Access):
DMA is a method where the input/output devices can directly access the main memory without involving the CPU. However, the given protocol does not mention any direct memory access or involvement of input/output devices in accessing the memory.
c) Interrupt mode:
In interrupt mode, the input devices send interrupt signals to the CPU to request attention or inform about a specific event. However, the given protocol does not mention any interrupt signals or involvement of the CPU in the communication process.
d) Polling:
Polling is a method where the BUS controller actively scans each device to determine if it wants to communicate. This is exactly what the given protocol describes in step ii. The controller sequentially checks each device to see if it wishes to communicate, which aligns with the concept of polling.
Therefore, based on the given protocol of input device communication, the most suitable form of communication is polling.
To make sure you are not studying endlessly, EduRev has designed Computer Science Engineering (CSE) study material, with Structured Courses, Videos, & Test Series. Plus get personalized analysis, doubt solving and improvement plans to achieve a great score in Computer Science Engineering (CSE).