IO organization Flashcards
Input/Output Subsystem
It handles all the input and output operations of the computer system.
Peripheral Devices
Input or output devices that are connected to computer are called peripheral devices
types of peripherals
Input devices: they allow user input, from the outside world into the computer. Examples: keyboard, mouse, speech recognition, sensor, etc.
➢
Output devices: they allow information output, from the computer to the outside world. Examples: printer, monitor (display unit), speaker, etc.
➢
Auxiliary storage devices: these are used for permanent storage of data. Examples: magnetic tape, magnetic disk, optical disk, flash drive
Input/Output Interface
Input/Output Interface provides a method for transferring information between internal system (CPU) and external I/O devices (peripheral devices)
Significance of I/O Interface
1.Peripherals are electromechanical and electromagnetic devices and their manner of operation is different from the operation of the CPU and memory, which are electronic devices.
2.The data transfer rate of peripherals is usually slower than that of the CPU, and consequently, a synchronization mechanism may be needed.
3.Data codes and formats (bytes) in peripherals differ from the word formats in the CPU and memory.
what does the IO bus consist of
data lines, address lines, and control lines.
functions of interface
a)
decodes the device address
b)
decodes the commands from the processor
c)
provides signals for the peripheral controller
d)
synchronizes the data flow and supervises the transfer rate between peripheral and CPU or memory
Types of commands that an interface may receive
❖
Control command – is used to activate the peripheral and inform it on what to do
❖
Status command – is used to test various conditions in the interface and peripheral
❖
Data output command – causes the interface to respond by transferring data from the bus into one of its registers
❖
Data input command – is the opposite of the data output command. In this case, the interface receives data from the peripheral and places it in its register
Device Controllers
Device Controllers are components on the motherboard (or on an expansion card) that acts as an interface between the CPU and the actual device
Interrupt Request (IR)
When a device needs to access the CPU, the device controller issues an Interrupt Request (IR) to the CPU in order for the CPU to stop the current task and start communicating with the peripheral device
functions of device controllers
It handles the data flow between the processor and the device it is connected to.
It translates signals from the device into the format that can be understood by the CPU, and vice-versa.
It buffers data being sent between the device and the CPU.
The device Controller also performs synchronization and error detection
Examples of Device Controllers
Keyboard Controller – controls the keyboard
DMA Controller – controls Direct Memory Access
Network Adaptor Controller – controls Network Interface Card (network adapter)
IDE Controller – controls hard disk and CD/DVD drive
Graphics Adapter Controller – controls video output devices such as monitor, projector
USB Controller – controls devices connected by USB
Ways that the computer buses can be used by CPU to communicate with memory and I/O
1.
Use of two separate buses, one for memory and the other for I/O. In this method, all data, address and control lines would be separate for memory and I/O. Both I/O and memory have different sets of address spaces and instructions but require more buses.
2.
Use of one common bus for both memory and I/O but with separate control lines for each. This configuration is called Isolated I/O.
3.
Use of one common bus for both memory and I/O with a common control line. This configuration is called Memory mapped I/O.
Memory mapped I/O and Isolated I/O.
methods to perform input/output operations between the CPU and peripheral devices in the computer
Memory-mapped I/O