Professional Documents
Culture Documents
Lecture #5
Jahan Zeb
Buses
A collection of parallel wires used to connect the
components of a computer
The motherboard contains the CPU chip, some slots
for RAM, and various support chips
Also contains a bus, and sockets into which the edge
connectors of I/O boards can be inserted
Sometimes there are two buses, a high speed one (for
modern I/O boards) and a low-speed one (for older
boards)
Lecture # 5, INPUT/OUTPUT
2
Input/Output Buses
Physical Structure
Lecture # 5, INPUT/OUTPUT
3
Logical Structure of a Simple PC
Has a single bus used to connect the CPU, memory,
and I/O devices
I/O Controller(s)
Direct Memory Access (DMA)
A controller that reads or writes data to or from
memory without CPU intervention is said to be
performing DMA
Interrupt/Interrupt Handler: check for errors, info OS
i.e I/O is finished
Lecture # 5, INPUT/OUTPUT
4
Input/Output Buses (2)
Logical Structure
Lecture # 5, INPUT/OUTPUT
5
Bus Usage and Terminologies
Bus is not only used by I/O controllers, but also by
CPU for fetching instructions and data
Bus Arbiter decides which goes next if CPU and
I/O controllers wants to use bus at the same time
I/O device granted bus when needed, the process is
called Cycle stealing
ISA, Industry Standard Architecture Bus
PCI, Peripheral Component Interconnect Bus
Lecture # 5, INPUT/OUTPUT
6
Input/Output Buses (3)
Lecture # 5, INPUT/OUTPUT
9
Flat Panel Displays
CRTs are far too bulky and heavy
LCD (Liquid Crystal Display) technology
Two parallel glass plates between which is a sealed volume
containing a liquid crystal
An light source at back for illuminating screen
Transparent electrodes, used to create electric field in liquid
crystals
To control the image displayed: Different parts of the screen
get different voltages
LED Technology, low power requirements, lower side effects
Lecture # 5, INPUT/OUTPUT
10
Construction of an LCD screen
Lecture # 5, INPUT/OUTPUT
12
Printers
Monochrome Printers
Matrix printers
If 80 characters in a 5*7 matrix across the line, print
line then consists of 7 horizontal lines, 5*80=400 dots
Each dot can be printed or not printed, depending on
the character
Fig(a) illustrates the letter “A” printed on a 5*7 matrix
Print quality can be enhanced using circles overlap as
shown in fig(b)
Lecture # 5, INPUT/OUTPUT
13
Matrix Printers
Lecture # 5, INPUT/OUTPUT
15
Operation of a laser printer
Lecture # 5, INPUT/OUTPUT
16
Halftoning
Solution for printing images with gray values
Lecture # 5, INPUT/OUTPUT
18
Problems with Color Printing
Color monitors use transmitted light; Color printers
use reflected light
CRTs produce 256 intensities per color; color must
halftone
Monitors have a dark background; paper has a light
background
The RGB and CMYK gamuts are different
Lecture # 5, INPUT/OUTPUT
19
Ink Types
Dye-based Inks
Consist of color dyes dissolved in fluid carrier, give
bright colors and flow easily, main disadvantage is
that they fade when exposed to ultraviolet light
Pigment-based Ink
Contains solid particles of pigment suspended in a
fluid carrier that evaporates from the paper, leaving
the pigment behind, do not fade in time but not as
bright as dye-based inks
Lecture # 5, INPUT/OUTPUT
20
MoDems
Two-level signals suffer considerable distortion
when transmitted over a voice-grade telephone
line, leading to errors
A pure sine wave known as carrier can be
transmitted with relatively little distortions, this
fact is exploited as the basis of most
telecommunication systems
By varying frequency, amplitude or phase, a
sequence of 1s and 0s can be transmitted, the
process is called modulation
Lecture # 5, INPUT/OUTPUT
21
Character Codes
Each computer uses set of characters, i.e. 26 upper
case letters, 26 lower case letters, digits 0-9,
special symbols
To transfer these characters to computer, each one
is assigned a number; i.e. a=1, b=2,…..z=26, the
mapping of characters onto integers is called a
character code
Lecture # 5, INPUT/OUTPUT
22
ASCII
American Standard Code for Information Interchange
Each ASCII character has 7 bits, allowing 128
characters in all
Fig(1) shows the ASCII code. Codes 0 to 1F are
control characters and do not print
The ASCII print characters are straight forward. They
include the upper and lower case letters, digits,
punctuation marks and a few math symbols
Lecture # 5, INPUT/OUTPUT
23
ASCII Character Codes (1)