Input / Output Methods and Communications of Microcomputer


There are three basic methods by which data can be read from or written to a peripheral device and RAM (Random Access Memory). These input/output methods and communications of microcomputers are:

  1. Programmed I/O
  2. Interrupt I/O and
  3. Direct memory access

Programmed Input / Output (I/O)

In this technique, the microprocessor is in direct control of all transfers and other I/O operations. This is accomplished with specific input or output instructions.

When an input operation is desired, the microprocessor simply issues an input command and awaits the arrival of the data on the bus. From the bus, the data are moved to memory.

Similarly, if an output operation is desired, the microprocessor transmits data to the bus and issues a command to the output device through the appropriate interface.

Once the data transfer is initiated, the microprocessor mist waits for its completion and the bus to be freed before beginning a new transfer. This method is commonly used for personal computers because it is effective and easily implemented.

Input output methods and communications of microcomputer
Input-output methods and communications of microcomputer

Interrupt Input / Output (I/O)

This is a device that initiated the transfer. An interrupt transfer involves the I/O device sending a request to the processor through interrupt input (INT, IRQ, etc.) to inform the CPU that the I/O device is ready for data transfer.

In response, the CPU interrupts the execution of its current program and jumps to a new program called interrupt service routine which contains instructions to transfer data to or from the interrupting device.

Direct Memory Address

This method is fastest is the fastest of the methods. It requires a multi-bus architecture and allows the microprocessor to be bypassed completely. A special direct memory access controller is connected between RAM and an input or output device.

This method is the most expensive of all and therefore is not used except with very high-speed input/output devices and only when absolutely necessary.

You May Like Also:


Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
Scroll to Top