Peripheral v2
Peripheral v2
Salaam
CS 151: Computer
Organization and Architecture I
Peripheral Devices
1
Peripheral Device
• Is the device which provides input/output
functions for a computer and serves as an
auxiliary computer device without computing-
intensive functionality.
• Classified into 3 basic categories which are:
– Input Devices: Keyboard, mouse, scanner,
microphone etc.
– Output Devices: Monitors, headphones, printers
etc.
– Storage Devices: Hard disk, magnetic tape, Flash 2
Input and Output devices
3
Input and Output devices
• A computer's Input/output organization depends upon the
computer's size and the peripherals connected to it.
4
External Devices
• Human readable
– Screen, printer, keyboard
• Machine readable
– Monitoring and control
• Communication: typically serve for both input
and output.
– Modem
– Network Interface Card (NIC)
5
6
7
External Device Block Diagram
8
Advantage of Peripherals Devices
9
Interfaces
• Interface is a shared boundary between two
separate components of the computer system
which can be used to attach two or more
components to the system for communication
purposes.
• There are two types of interface:
1. I/O Interface
2. CPU Interface
10
1. Input-Output Interface
• Interfacing with CPU.
– A computer system has special hardware components
between the CPU and peripherals to control or manage the
input-output transfers.
– These components are called input-output interface
units because they provide communication links between the
processor bus and peripherals.
– They provide a method for transferring information between
11
internal systems and input-output devices.
2. CPU Interface
• Personal reading!
– Discuss the features of it
– How it looks like in the form of a diagram
– Submit before 1100 A.M via LMS with a PDF doc
12
I/O Steps
• Steps for I/O:
1. CPU checks I/O module device status
2. I/O module returns status
3. If ready, CPU requests data transfer
4. I/O module gets data from device
5. I/O module transfers data to CPU
13
I/O Module
• Personal reading!
– What is I/O module
– The functions of I/O module
– Features and the block diagram
– Submit before 1100 A.M via LMS
14
System Buses
• A bus is a common electrical pathway between
multiple devices.
• One or several buses can be used in a
computer system to interconnect CPU, memory,
and devices.
• A system bus typically consists of 50-100 separate
lines. They can be classified into three functional
groups:
15
System Buses Lines
• Data lines provide a path for moving data between
system components.
– The width of the data bus: 8, 16, 32 lines.
• Address lines are used to designate the source or
destination of data.
– The width of the address bus determines the maximum
memory size which can be addressed.
• Control lines are used to control bus access,
synchronize operations, and propagate commands
throughout the system.
16
System Buses
17
System Buses
18
System Buses
20
21
22
Operations
• Address bus - carries memory addresses from the
processor to other components such as primary
storage and input/output devices. The address bus
is unidirectional.
26
27
Examples of Buses Types
28
Connecting Peripherals
• Various standards for connecting peripherals to
computers exist.
– For example, serial advanced technology
attachment (SATA) is the most common interface,
or bus, for magnetic disk drives.
• A bus (also known as a port) can be
either serial or parallel, depending on whether the
data path carries one bit at a time (serial) or many at
once (parallel).
• Serial connections, which use relatively few wires, are
generally simpler than parallel connections.
• Universal serial bus (USB) is a common serial bus. 29
Computer Cables
30
Serial and Parallel Busses
31
32
33
34
Computer Ports
35
36
37
38
Assignment
• Form a group of 5 students
• Discuss the Assignment
• Submission on 18/11/2024 via LMS in PDF
format
39
Assignment
• Explain in detail about the following topics:
• Bus Arbitration
• Bus Timing Types
• I/O Modules
• I/O Address Decoding
• Programmed and Interrupt-driven I/O
• Direct Memory Access
• Magnetic disks
40