<P> The designation of a device as either input or output depends on perspective . Mouse and keyboards take physical movements that the human user outputs and convert them into input signals that a computer can understand; the output from these devices is the computer's input . Similarly, printers and monitors take signals that a computer outputs as input, and they convert these signals into a representation that human users can understand . From the human user's perspective, the process of reading or seeing these representations is receiving input; this type of interaction between computers and humans is studied in the field of human--computer interaction . </P> <P> In computer architecture, the combination of the CPU and main memory, to which the CPU can read or write directly using individual instructions, is considered the brain of a computer . Any transfer of information to or from the CPU / memory combo, for example by reading data from a disk drive, is considered I / O . The CPU and its supporting circuitry may provide memory - mapped I / O that is used in low - level computer programming, such as in the implementation of device drivers, or may provide access to I / O channels . An I / O algorithm is one designed to exploit locality and perform efficiently when exchanging data with a secondary storage device, such as a disk drive . </P> <P> An I / O interface is required whenever the I / O device is driven by a processor . Typically a CPU communicates with devices via a bus . The interface must have necessary logic to interpret the device address generated by the processor . Handshaking should be implemented by the interface using appropriate commands (like BUSY, READY, and WAIT), and the processor can communicate with an I / O device through the interface . If different data formats are being exchanged, the interface must be able to convert serial data to parallel form and vice versa . Because it would be a waste for a processor to be idle while it waits for data from an input device there must be provision for generating interrupts and the corresponding type numbers for further processing by the processor if required . </P> <P> A computer that uses memory - mapped I / O accesses hardware by reading and writing to specific memory locations, using the same assembly language instructions that computer would normally use to access memory . An alternative method is via instruction - based I / O which requires that a CPU have specialised instructions for I / O. Both input and output devices have a data processing rate that can vary greatly . With some devices able to exchange data at very high speeds direct access to memory (DMA) without the continuous aid of a CPU is required . </P>

Explain i/o interface in computer architecture
find me the text answering this question