Anda di halaman 1dari 119

SIM:

SISTEM KOMPUTER:
HARDWARE DAN SOFTWARE
Presented by: Ir. Suryani Alifah, MT, PhD
Klasifikasi Komputer dan Sistem
Komputer
• Komputer diklasifikasikan ke dalam dua jenis:
– Special-purpose computer
– General-purpose computer

• Special-Purpose Computer
– Merupakan computer yang didesain untuk fungsi
khusus.
– Misal untuk pengontrolan pada:
• microwave oven
• Mesin cuci
• Peralatan diagnosis medis
• General-Purpose Computer
– Yakni computer dimana pengguna dapat
menggunakannya untuk berbagai macam fungsi
yang dapat diubah-ubah
– Terdesia dalam berbagai ukuran maupun
kapabilitas
– Dapat diklasifikasikan sbb:
• 1. Microcomputers
a. Laptop computers
b. Desktop computers
c. Workstations
• 2. Minicomputers
• 3. Mainframe computers
• 4. Supercomputers
Microcomputer

• Disebut juga sebagai personal computer (PC)


• Microcomputer terkecil biasa dikenal sebagai
laptop atau notebook
• Komputer desktop merupakan computer yang
didesain untuk bekerja pada desk/meja dan
dirancang untuk penggunaan individu
• Workstation merupakan jenis microcomputer
terbesar dan digunakan untuk aplikasi and is
generally used in scientific dan engineering
Minicomputers

• Lebih powerful dan lebih mahal dibandingkan


dengan microcomputer
• Tetapi lebih kecil dan lebih murah
dibandingkan dengan mainframes.
• Dapat digunakan sebagai server, yang
digunakan untuk mengelola jaringan internal
suatu perusahaan atau sebagai Web server
• Komputer server computers secara spesifik
dioptimasi untuk mendukung jaringan
komputer network yang memungkinkan user
untuk berbagi file, software, perangkat
peripheral (seperti printer), atau sumber daya
lainnya.
Mainframe Computer

• Komputer terbesar, suatu powerhouse


dengan memori massive memory dan
kekuatan pemrosesan yang sangat cepat

• Digunakan untuk aplikasi bisnis yg besar,
militer maupun sientifik dimana computer
harus menangani data yg besar atau
proses yang kompleks
Supercomputer

• Komputer yang sangat sophisticated


dan powerfull yang digunakan untuk
pekerjaan2 yang memerlukan kalkulasi
kompleks dan sangat cepat dengan
ratusan atau ribuan factor

• Digunakan pada banyak bidang seperti


riset, prediksi cuaca, reactor nuklir, dll
Packaging Komputer
Dikelompokkan
Fast Expensive Complex Large
menurut:
• Kecepatan Super Computers

• Harga Mainframe Computers

• Ukuran Minicomputers

• Kompleksitas Microcomputer

Palmtop Computer

Calculator

Slow Cheap Simple Small


3-8
Sistem Komputer

• Sistem komputer terdiri dari:


– central processing unit (CPU)
– memori utama/primary storage
– memori sekunder/secondary storage
– perangkat input
– perangkat output
• Perangkat komunikasi
Komponen Hardware Sistem
Komputer
Communication Secondary Storage
Devices - Magnetic disk

Buses
Central Processing Primary Storage
Unit (CPU)

Input Devices Output Devices


- Keyboard - Printers
• CPU
– Memanipulasi raw data menjadi bentuk yang
lebih berguna dan mengontrol bagian sistem
computer lainnya
• Primary storage
– Menyimpan data dan instruksi program secara
berkala selama pemrosesan
• Secondary storage
– Menyimpan data dan instruksi program secara
berkala setelah pemrosesan selesai
• Perangkat input/Input devices
– Mengubah data dan instruksi menjadi bentuk
elektronik untuk diinputkan ke komputer
• Perangkat Output/Output devices
– Mengubah data elektronik yang dihasilkan
oleh sistem computer dan menampilkannya
dalam bentuk yang dapat dipahami pengguna
• Perangkat Komunikasi
– Menyediakan koneksi antara computer dan
jaringan komunikasi
• Buses
– Jalur rangkaian untuk mengirim data dan
sinyal antar komponen-komponen dalam
sistem computer
Sistem Komputer
Unit Sistem Perangkat Output

Perangkat Output

Output device

Perangkat Input

Perangkat Input
Komponen2 pada Unit Sistem
power supply drive bays
processor
 Processor
 Memory
 Adapter cards
 Sound card
 Video card
 Ports ports
 Drive bays memory
 Power supply

video card sound card


Komponen2 pada Unit Sistem
 Merupakan
Motherboard
board utama
pada sistem unit
 Berisi: adapter
cards, processor
chips, dan
memory chips
 Disebut juga
system board
Bagaimana Komputer
Merepresentasikan Data
• Seluruh symbol, gambar, kata harus
direduksi menjadi deretan digit biner

• Digit biner disebut bit dan


merepresentasikan 0 atau 1.
One byte for character A 01000001

Representation dalam ASCII untuk nama Alice


adalah:

01000001 A
01001100 L
01001001 I
01000011 C
01000101 E
• Untuk merepresentasikan bilangan 0
sampai 9, huruf a sp z A dan Z,
diperlukan standar pengkodean

• Sistem pengkodean yang umum


digunakan adalah Extended Binary Coded
Decimal Interchange Code (EBCDIC) dan
American Standard Code for Information
Interchange (ASCII).
Representasi Data
• Bagaimana sebuah huruh diubah ke biner?
Step 1.
The user presses Step 2.
the capital letter D An electronic signal for the
(shift+D key) on capital letter D is sent to the
the keyboard. system unit.

Step 4. Step 3.
After processing, the binary The signal for the capital letter D
code for the capital letter D is is converted to its ASCII binary
converted to an image, and code (01000100) and is stored in
displayed on the output device. memory for processing.
Memindahkan Informasi pada Komputer
– Informasi dipindahkan dalam byte atau multiple
byte yang disebut word
• Word merupakan unit dasar informasi
• Jumlah bit per word bervariasi sesuai dengan
komputernya
• Misal panjang word untuk computer IBM 32 bit dan 64 bit

3-21
Memindahkan Informasi pada Komputer
Bit yang membentuk suatu word
dipindahkan secara parallel dari
satu tempat ke tempat lainnya

Ribbon cables:
• Terdiri dari beberapa several
wires, digabungkan
• Satu wire untuk satu bit
• Wires untuk
mengkoordinasikan
perpindahan informasi
• Setiap wire mengirim informasi
dalam bentu tegangan voltage
pulse.

3-22
Memindahkan Informasi pada Komputer

• Contoh pengiriman kata


WOW melalui ribbon
cable
– Pulsa tegangan
yang terkait
dengan kode
ASCII akan
melewati kabel

3-23
Prosessor
 Prosessor merupakan “otak" dari sistem computer
 Prosessor Utama disebut Central Processing Unit
(CPU).
 Co-processors membantu CPU dengan beberapa
fungsi pemrosesan. Misalnya:
 Math co-processors menangani pemrosesan
matematika yang berat
 Graphics coprocessors mempercepat tampilan
grafik ke layar monitor
Interaksi Komponen
CPU mengontrol seluruh sumber daya lainnya di dalam
sistem computer untuk menyelesaikan suatu pekerjaan
Komponen CPU

CPU merupakan silicon chip yang berisi


jutaan komponen elektrik

CPU terdiri dari tiga bagian:


 Control Unit
 Arithmetic Logic Unit (ALU)
 Registers
Processor
Processor
Control
Control Arithmetic
Arithmetic
Unit
Unit Logic
Logic Unit
Unit (ALU)
(ALU)

Instructions
Data
Information

Input Output
Devices
Data Memory Information
Devices

Instructions
Data
Information

Storage
Devices
Central Processing Unit (CPU)

Melakukan kalkulasi dan


Arithmetic / Logic Unit
membuat keputusan

Mengkoordinasikan
Control Unit tahap-tahap
pemrosesan
Area penyimpanan
Registers yang cepat dan
kecil untuk instruksi
dan data
Siklus Mesin pada Processor
 Empat operasi pada CPU yang membentuk satu
siklus mesin/ machine cycle

Step 1. Fetch
Obtain program instruction
or data item from memory

Memory
Step 2.
Step 4. Store Decode
Write result to memory Translate
instruction into
Processor commands
ALU Control Unit
Step 3. Execute
Carry out command
CPU dan Primary Storage
Central Processing Unit (CPU) Primary Storage

Arithmetic Logic Unit (ALU)


I
22 + 11 = 33
8
Control Unit
# U

Data Bus
Address Bus
Control Bus
Jenis Bus pada CPU

– Data bus
• Melewatkan informasi dalam dua arah/bi-
directional.
– Address bus
• Mengirim sinyal untuk mencari alamat pada
memori utama dimana data harus disimpan
– Control bus
• Mengirim sinyal untuk menulis/membaca
data ke dan dari memori utana, perangkat
input maupun output
Arithmetic-Logic Unit dan
Control Unit
• Arithmetic logic unit (ALU) dan control
unit merupakan inti dari CPU
• ALU melaksanakan operasi-operasi logika
maupun aritmatika
• Menambah, mengurang, mengali dan
membagi dan menentukan apakah suatu
bilangan positif, negative atau nol
• ALU must be able to determine when one
quantity is greater than or less than another and
when two quantities are equal.
• The control unit coordinates and controls the
other parts of the computer system.
• It reads a stored program, one instruction at a
time and directs other components of the
computer system to perform the program’s
required tasks.
Register

 Registers are small, fast memory within the CPU


 Different registers hold different things
 instructions and addresses of instructions
 data (operands)
 results of operations
Special Purpose Registers

Special Purpose Registers contain specific


information the CPU needs.

Instruction Register (IR) contains the


actual instruction which is currently being
executed by the CPU.

The Program Counter (PC) contains the


address of the next instruction to be
executed by the program.
General Purpose Registers

General Purpose Registers hold:


the operands for arithmetic and logical
operations (ie. the values on which the
operation will be performed)
 the results of such operations
So General Purpose Registers are used for
holding and manipulating data used by the CPU
Processor
• Which processor should you select?
 The faster the processor, the more expensive the computer
Intel Processor Desired Clock Speed

Itanium or Xeon 1.3 GHz and up

3.0 GHz and up


Pentium family
2.4 GHz to 3.0 GHz

Up to 2.4 GHz

2.2 GHz and up


Celeron
Primary Storage
• Primary storage is a category of computer storage,
often called main memory.
• Has three functions:
– Stores all or part of the program that is being
executed.
– Stores the operating system programs that manage
the operation of the computer.
– Holds data that the program is using.
• Data and program are placed in primary storage
before processing, between processing steps and
after processing has ended prior to being returned to
secondary storage or released as output.
Primary Memory
• Primary storage or memory: Is where the data and program that
are currently in operation or being accessed are stored during use.

– Consists of electronic circuits: Extremely fast


and expensive.
– Two types:
• RAM (non-permanent)
– Programs and data can be stored here for the
computer’s use.
– Volatile: All information will be lost once the computer
shuts down.
• ROM (permanent)
– Contents do not change.
The Computer Continuum 3-39
Memory
• How is memory measured?
 By number of bytes available for storage

Term Abbreviation Approximate Size

Kilobyte KB or K 1 thousand bytes


Megabyte MB 1 million bytes
Gigabyte GB 1 billion bytes
Terabyte TB 1 trillion bytes
Memory
• What is random access memory (RAM)?
Memory chips that can be
read from and written
to by processor
Most RAM is
Also called
volatile, it is lost
main memory
when computer’s
or primary
power is
storage
turned off

The more RAM a


computer has, the
faster it responds
Memory
•How do program instructions transfer in and out of
Step 1. When you start the computer, certain
RAM? RAM
operating system files are loaded into RAM from
Operating system Operating system the hard disk. The operating system displays the
instructions interface user interface on the screen.

Step 2. When you start a Web browser, the


program’s instructions are loaded into RAM from
Web browser Web browser the hard disk. The Web browser window is
instructions window displayed on the screen.

Step 3. When you start a word processing


program, the program’s instructions are loaded
into RAM from the hard disk. The word
Word processing Word processing processing program, along with the Web Browser
program instructions program window and certain operating system instructions are in
RAM. The word processing program window is
displayed on the screen.
RAM
Step 4. When you quit a program, such as the
Web browser, its program instructions are
removed from RAM. The Web browser is no
longer displayed on the screen.

Web browser program Web browser


instructions are window is no longer
removed from RAM displayed on
desktop
Memory
• What are two basic types of RAM chips?
Do not have to
Most be re-energized
common as often as
type DRAM

Dynamic
Faster and
Must be RAM more reliable
re-energized than DRAM
constantly
(DRAM)
chips

• Newer Type: Magnetoresistive RAM


(MRAM)
Memory
• What is read-only memory (ROM)?
Memory chips that store Nonvolatile memory, it is not
permanent data lost when computer’s
and instructions power is turned off
EEPROM
Three types: (electrically
erasable programmable
read-only memory)—
Firmware— Type of PROM
Manufactured with containing microcode
permanently written PROM
programmer
data, instructions, (programmable can erase
or information read-only
memory)—
Blank ROM
chip onto which
a programmer
can write permanently
Cache Memory

• But as CPU speeds became faster, the main


memory couldn’t provide the CPU with the
instructions at a fast enough rate.

• So even faster memory ( cache memory) is


now placed between the CPU and main
memory to provide the instructions at an
quicker rate to the CPU.
Cache Memory

When an instruction or data is accessed from main memory, it is placed in


the cache. Second and subsequent use of the same instruction/data will
then be faster, since it is accessed directly from the cache.
Primary and Secondary
Cache Memory
• Most modern CPUs now have a cache
memory (L1), on the same silicon wafer as
the CPU, to provide the CPU with
instructions at the same clock speed as the
CPU.

• An additional off-the-chip secondary cache


(L2) may also interact with the CPU at a
slower speed.
L1 and L2 Cache Memory
Storage, Input, and Output
Technology
• Storage, input and output devices are
called peripheral devices because they are
outside the main computer system unit.
Secondary Storage Technology

• Secondary storage is used for relatively


long term storage of data outside the
CPU.
• Secondary storage is nonvolatile and
retains data even when the computer is
turned off.
• The most technologies are magnetic
disk, optical disk and magnetic tape.
Storage
• What is storage?
– Holds data, instructions, and information for future use
 Storage medium is physical material used for storage
 Also called secondary
storage
Storage
• How does volatility compare?
 Storage medium is nonvolatile—contents retained
when power is off
 Memory is volatile—holds data and instructions
temporarily ON OFF

Screen Display Display Display


Volatile

appears disappears

Memory Data and Data and


(most RAM) instructions instructions erased
(chips on motherboard) available to user
Nonvolatile

Storage Medium Contents Contents


(floppy disks, Zip disks, available to user retained
hard disks, CDs)
Magnetic disk

• There are two kinds of magnetic disk:


– floppy disks
– hard disks
• Magnetic Disks permit direct access to individual
records so that data stored on the disk can be
directly accessed regardless of the order in
which the data were originally recorded.
• Disk storage is often referred to as a direct
access storage device (DASD).
shutter
Magnetic Disks shell
liner
• What is a floppy
disk? magnetic
– Portable, inexpensive storage coating
medium (also called diskette)
Thin, circular, flexible film enclosed metal hub
in 3.5” wide plastic shell flexible thin film

• What is a floppy disk


drive?
– Device that reads from and
writes to floppy disk
• One floppy drive, named drive A
– Also called secondary
storage
Magnetic Disks
hard disk installed
in system unit
• What is a hard
disk?
– High-capacity storage
– Consists of several
inflexible, circular
platters that store
items electronically
– Components
enclosed in airtight,
sealed case for
protection
Magnetic Disks
•What are tracks and
sectors?

Track
Sector
is narrow
recording band stores up
that forms full to
circle on disk 512 bytes
of data

Formatting prepares disk for use and marks bad sectors as unusable
Magnetic Disks
• How does a hard disk work?

Step 3.
When software requests a
disk access, read/write
heads determine current
Step 2. or new location of data.
Small motor spins
platters while
computer is running.

Step 4.
Head actuator positions
read/write head arms over
Step 1. correct location on platters
Circuit board controls to read or write data.
movement of head actuator
and a small motor.
Optical Disk

• Also called compact disks or laser optical


disks, used laser technology to store data
at densities many times greater than those
of magnetic disks.
• The most common optical disk system
used with PCs called CD-ROM (compact
disk read only memory).
• CD-ROM is read-only storage.
Optical Discs
• What are optical Push the button to
slide out the tray.
discs?
 Flat, round, portable
metal discs made of
metal, plastic, and
lacquer Insert the disc,
 Can be read only or label side up.
read/write
 Most PCs include an
Push the same button
optical disc drive to close the tray.
Optical Discs
•How does a laser read data on an optical disc?

disc label

lens lens Step 3.


pit land
Step 2. Reflected light is
If light strikes deflected to a
0 a pit, it scatters. 1 light-sensing diode,
If light strikes a which sends digital
land, it is signals of 1 to
Step 1. prism reflected back prism computer. Absence
toward diode. of reflected light is
Laser diode light- light- read as digital
shines a light sensing sensing signal of 0.
beam toward diode diode
disc. laser laser
diode diode
Optical Discs
• How is data stored on an optical disc?
 Typically stored in
single track
 Track divided
into evenly
sized sectors
that store
items
single track
spirals to edge
of disc

disc sectors
Optical Discs

• What is a CD-ROM?
 Compact disc read-only memory
 Cannot erase or modify contents
 Typically holds 650 MB to 1 GB
 Commonly used to distribute multimedia and complex software
Optical Discs
• What are CD-Rs and CD-RWs?
Must have
CD recorder
or CD-R drive

CD-R (compact disc-recordable)


— disc you can write on once
c

Cannot erase
disc’s contents
CD-RW (compact disc-rewritable)
— erasable disc you can write on
ce

multiple times
Must have
CD-RW software
and CD-RW drive
Optical Discs
•What is a DVD-ROM (digital
versatile disc-ROM or digital
video disc-ROM)?
 High capacity disc capable of
storing 4.7 GB to 17 GB
 Must have DVD-ROM drive or
DVD player to read DVD-ROM
 Stores databases, music,
complex software, and movies
Optical Discs
• How does a DVD-ROM store data?
 Two layers of pits are used, lower layer is
semitransparent so laser can read through
 Some are double-sided
 Blu-Ray discs currently have a storage capacity of
up to 27 GB
Magnetic Tape

• Magnetic tape is an older storage technology


that still used for secondary storage of large
volumes of information.
• The principle advantages
– its inexpensiveness, its relative stability and its ability
to store very large quantities of information.
• The disadvantages
– its sequentially stored data and its relative slowness
compared to the speed of secondary storage media.
Tape
• What is tape?
– Magnetically coated plastic ribbon
capable of storing large amounts
of data at low cost
– Primarily used for backup
PC Cards

• What is a PC Card?
 Adds capabilities to computer
 Credit-card-sized device commonly
used in notebook computers
What Is Input?
• What is input?
 Data or instructions entered into memory of computer
 Input device is any hardware component that
allows users to enter data and instructions
What Is Input?
• What are the two types of
input?
 Data
 Unprocessed text,
numbers, images,
audio, and video
 Instructions
 Programs
 Commands
 User responses
Input Devices

• Type of Access
• Sequential - Obtained by proceeding through the
storage medium from the beginning until the
designated area is reached (as in magnetic tape).
• Random Access - Direct access (as in floppy and
hard disks).

The Computer Continuum 3-71


Input Devices

• Capacity - The amount of information that


can be stored on the medium.
Unit Description Approximate Size
1 bit 1 binary digit
1 nibble 4 bits
1 byte 8 bits 1 character
1 kilobyte 1,024 bytes 1/2 page, double spaced
1 megabyte 1,048,576 bytes 500,000 pages
1 million bytes
1 gigabyte 1,073,741,824 bytes 5 million pages
1 billion bytes
1 terabyte 1 trillion bytes 5 billion pages
The Computer Continuum 3-72
The Keyboard
• How is the keyboard
divided?
 Typing area
 Numeric keypad
 Function keys, special
keys that issue
commands
Pointing Devices
• What is a mouse?
 Pointing device that fits under palm of hand
 Pointing device controls mouse buttons
wheel
movement of pointer, also button
called mouse pointer

 Mechanical mouse
ball
has rubber or metal
ball on underside

mouse pad
Other Pointing Devices

• What is a trackball?
 Stationary pointing device
with a ball on its top or side
 To move pointer, rotate ball
with thumb, fingers, or palm
of hand
Other Pointing Devices

•What are a touchpad and a


pointing stick?
 Touchpad is small, flat,
rectangular pointing device
sensitive to pressure and motion
 Pointing stick is pointing device
shaped like pencil eraser
positioned between keys on
keyboard
Other Pointing Devices

• What are a joystick and a


wheel?
 Joystick is vertical
lever mounted
on a base
 Wheel is
steering-wheel-type
input device
 Pedal simulates
car brakes and
accelerator
Other Pointing Devices

• What is a light pen?


 Handheld input device
that can detect light
 Press light pen against
screen surface and then
press button on pen
Other Pointing Devices

• What is a touch
screen?
 Often used with kiosks
 Touch areas of screen with
finger
Keyboard and Pointing
Devices
• What is a stylus and a digital pen?
 Looks like a ballpoint pen, but uses pressure to write
text and draw lines
 Used with graphics tablets, flat electronic boards
Voice Input
• How does voice recognition work?
Step 1. A user dictates text into a microphone. Step 2. An analog-to-digital converter (ADC) translates
sound waves into digital measurements computer can
process. Measurements include pitch, volume, silences, and
phonemes. Phonemes are sound units such as aw and guh.

10010111010110101100001101

Step 4. To narrow a list down, software presents user with


Step 3. Software compares
a list of choices or uses a natural language component to
spoken measurements with those
predict most likely match. User may correct any selection
in its database to find a match or
made by software.
list of possible matches.
Natural Language Engine
Matches
Voice Input
•What is a MIDI (musical instrument
digital interface)?
 External device, such as electronic piano
keyboard, to input music and sound
effects
Digital Cameras
• How does a digital camera work?
Step 3. CCD generates an analog
Step 1. Point to the image to Step 2. Image is focused on a signal that represents the image.
photograph and take picture. chip called a charge-coupled
Light passes into the lens of the device (CCD).
camera. Step 4. Analog signal is converted
to digital signal by analog-to-
digital converter (ADC).

Step 5. Digital signal processor


(DSP) adjusts quality of image and
usually stores digital image on
miniature mobile storage media in
the camera.

Step 6. Images are transferred to a


Step 7. Using software
computer’s hard disk by plugging one
supplied with the
end of the cable into a camera and the
camera, images are
other end into a computer; or images
viewed on screen,
are copied to hard disk from storage
incorporated into
media used in the camera.
documents, edited, and
printed.
Digital Cameras
• What is resolution?
 Sharpness and clarity of image
 The higher the resolution, the better the image
quality, but the more expensive the camera
 Pixel (picture element)
is single point in
electronic image
 Greater the number of
pixels, the better the
image quality
Video Input
• What is video input?
 Process of entering full-motion images
into computer
 Video capture card is
adapter card that converts
analog video signal into
digital signal that
computer can use
 Digital video (DV)
camera records video as
digital signals
Video Input

• What are a PC video camera and a Web


cam?
 PC video camera — DV camera used to capture video
c c

and still images, and to make


video telephone calls on Internet
 Also called PC camera
 Web cam — video camera
c c

whose output displays on


a Web page
Scanners and Reading
Devices
Flatbed

• What is a scanner?
 Light-sensing device that
Pen or
reads printed text and Handheld

graphics
 Used for image processing,
converting paper documents Sheet-fed

into electronic images

Drum
Scanners and Reading
Devices
•How does a flatbed
scanner work?
Step 1. Document to be scanned is
placed face down on the glass window.
Step 2. Bright light moves underneath
scanned document.
Step 3. Image of the document is
reflected into a series of mirrors.

Step 4. Light is
converted to analog
electrical current that
is converted to
digital signal by an
analog-to-digital
Step 6. Users can print image,
converter (ADC).
e-mail it, include it in a document,
or place it on a Web page.
Step 5. Digital information is sent to
memory in the computer to be used by
illustration, desktop publishing, or
other software; or it is stored on disk.
Scanners and Reading Devices
• What is an optical reader?
 Device that uses light source to read characters, marks,
and codes and then converts them into digital data
 Optical character recognition
(OCR) reads characters in
OCR font
 Optical mark recognition
(OMR) reads hand-drawn pencil
marks, such as small circles
Scanners and Reading
Devices
• What is a bar code reader?
 Uses laser beams to read bar codes
Scanners and Reading
Devices
What is a magnetic-ink character recognition
(MICR) reader?
 Can read text printed with magnetized ink
 Banking industry almost exclusively uses MICR
for check processing
Biometric Input
• What is biometrics?
 Authenticates person’s identity
by verifying personal
characteristic
 Fingerprint scanner captures
curves and indentations of
fingerprint
 Hand geometry system measures
shape and size of person’s hand
Biometric Input
• What are examples of biometric technology?
 Voice verification system compares live
speech with stored voice pattern
 Signature verification system recognizes
shape of signature
 Iris recognition system reads
patterns in blood vessels in back
of eye
 Biometric data is sometimes stored
on smart card, which stores
personal data on microprocessor
embedded in card
What is Output?
• What is output?
 Data that has been processed into a useful form,
 Output device is any hardware component that can convey
information to user

p. 300 Fig. 6-1 Next


Display Devices

• What is a display
device?
 Output device that visually conveys information
 Information on display device sometimes
called soft copy
 Monitor houses display device as separate
peripheral

p. 302
CRT Monitors
• What is a CRT monitor?
 Contains cathode-ray
tube (CRT)
 Screen coated with tiny
dots of phosphor material
 Each dot consists of a red,
blue, and green phosphor
 Common sizes are 15, 17,
19, 21, and 22 inches
 Viewable size is diagonal
measurement of actual
viewing area
CRT Monitors
•How does video travel from the processor to a CRT
monitor?
 Video card (also called a graphics card) converts digital
output from computer into analog video signal
Step 5. Electron guns
Step 1. The fire the three color signals
processor sends Step 3. The to the front of the CRT.
digital video data analog signal is
to the video card. sent through a
cable to the CRT Step 4. The
monitor. CRT monitor
separates the
analog signal
into red, green,
and blue signals.

Step 6. An image is
displayed on the screen when
the electrons hit phosphor
Step 2. The video card’s dots on the back of the screen.
digital-to-analog converter
(DAC) converts the digital
video data to an analog signal.
Printers
portrait
• What is a printer?
 Output device that
produces text and
graphics on paper
 Result is hard copy, or
printout
 Two orientations: portrait
and landscape
landscape
Speakers and Headsets
• What is an audio output device?
 Computer component that produces music, speech, or
other sounds
 Speakers and headsets are common devices
Speakers and Headsets
• What is voice output?
 Computer talks to you through speakers on computer
 Internet telephony allows you to have conversation
over Web
Output Devices
• Storage Requirements: How much storage
capacity is needed for…
– One keystroke on a keyboard. 1 byte (8 bits)
– One page single-spaced document. 4.0 K
– Nineteen pages formatted text. 75 K
– One second of high-fidelity sound. 95-110 K
– Complete word processing program. 8.4 MG

• Storage Capacity: How much data can be


stored on…
– One inch of 1/2 in. wide magnetic tape. 4K
– One 3 1/2” floppy disk, high density. 1.4 MG
– One Compact Disk. 650 MG
– One DVD. up to 17 GB
The Computer Continuum 3-101
Software Tools for Maintaining Your
Computer Hardware
• Utility Programs exist that can help diagnose and solve computer
hardware problems.
– Four major problem areas where utility
programs are helpful:
• Finding and fixing problems.
– Testing Input/Output peripherals.
– Testing RAM, motherboard, video cards.
– Recovering deleted files or fixing damaged disks.
• Improving computer performance.
– De-fragmenting a disk (Packs all files closer together).
• Preventative maintenance.
• Troubleshooting.
– Locates incompatible programs.
3-102
Computer Software

• Application Software
– Refers to programs that are developed to
solve some specific problems.
– There are two types of application software:
– application program to solve special classes of
problems
– Application programs that you can write to solve your
own problems.
– Examples of application software:
– word processing
– database programs
– spreadsheets
– graphic programs
• System Software
– Refers to programs that make the computer
usable and accessible to the developers
and programmers of applications software.
– Examples of system software:
– Operating systems
– Language translator
– Linker
– Loader
– Preprocessors
How Programs Are Run
• The operating system presents an interface to the user
(e.g. Windows Desktop)
• The user double clicks on an icon to run a program (e.g.
Microsoft Word)
– The operating system copies the program (or at least the first part
of it) from the hard disk into main memory
– The CPU runs the instructions in the program, and presents the
initial Word screen
• Within Word, the user uses the menu to open a document
– The application software (Word) asks the Operating System to
open the file.
– The Operating System communicates with the hardware to open
the file on the hard disk.
User view of Computer Systems

Applications
e.g. Word, Netscape, etc

Operating System –
- the user interface

Software that
controls the
hardware devices
Program Instructions
 Programs instructions are stored in secondary storage
(hard disks, CD-ROM, DVD).
 To process data, the CPU requires a working area
 Uses Main Memory
 Also called: RAM (random access memory),
primary storage, and internal memory.
 Before a program is run, instructions must first be copied
from the slow secondary storage into fast main memory
 Provides the CPU with fast access to instructions to
execute.
Instructions

• An instruction is a sequence of bits.


• A simple instruction format may consist of an
operation code (op code) and an address or
operands.

Op Code Operands / Address

 Instructions tell the computer’s CPU what to do.


Instructions

• The operation code specifies the operation the


computer is to carry out (add, compare, etc)
• The operand/address area can store an operand or an
address
– An operand is a specific value or a register number
– An address allows the instruction to refer to a
location in main memory

• The CPU runs each instruction in the program,


starting with instruction 0, using the fetch-decode-
execute cycle.
Fetch-Decode-Execute Cycle
• During the fetch part, the CPU fetches the next
instruction from the address contained in the
Program Counter and places the instruction in
the Instruction Register.
– When a program starts, the program counter contains 0,
so the instruction at address 0 is fetched.

• As soon as an instruction is fetched, the CPU


adds 1 word to the contents of the Program
Counter, so that it will contain the address of the
next sequential instruction.
Fetch-Decode-Execute Cycle
• The decode unit within the CPU deciphers the
instruction in the Instruction Register and
determines what operations need to be done and
what type of operands will be used (decode part).
• During the execution part, the specified operation
is performed (add, compare, etc).
• After execution of the instruction has been
completed the cycle starts all over again (unless
the instruction terminates the program).
Fetch-Decode-Execute
Diagram
CPU Main Memory
Fetch
Program Counter (PC) Get instruction and …
3024
3023 increment PC 3020
3021
Instruction Register
3022
add r3, r1, r2
add r3, r1, r2 3023
Decode
General Purpose Registers Determine what the 3024
33 r1 instruction is (add) 3025
45 r2 Execute 3026
In this case add r1 and 3027
78 r3
r2 and put result in r3. 3028
Then begin again by Fetching the instruction in 3024…. …
Clocks
 Computer systems have an internal clock, which is
used to synchronize their activities.
 Processors run at a particular clock speed.
 Clock speed is measured in Hertz
 One Hertz is one clock tick per second.
 MHz means mega Hertz
One MHz is one million clock ticks per second.
The clock speed determines how fast instructions
can be run
Access to Instructions

The hard disk is too slow to provide instructions to the CPU.


So programs are first loaded into main memory, which is much faster.
The CPU can then access the instructions more quickly.
Programming Languages

• Programming Language is an agreed upon


format of symbols that allow a programmer to
instruct a computer to perform certain
predefined tasks.
• Provide features to support the data
processing activities, which include declaring
variables, evaluating numeric expressions,
assigning values to variables, reading and
writing data to devices, looping and making
decisions.
• a. Machine Languages
– Is the natural language of a computer.
– Does not need to translate and is ready for immediate
execution.
– Machine language instruction is a binary string of 0s
and 1s.
• 010 1 1000 0001 0000 1100 0000 0001 0000
– Are machine-dependent - each computer type has its
own machine language.
– Programs written in machine languages are not
portable because programs written in for one type of
computer cannot be run on another type
• Assembly Languages
– Consists of English-like abbreviations.
– Easier to understand.
• L 1, GROSSPAY
• S 1, TAX
• ST 1, NETPAY
– Program written in assembly languages cannot be directly
processed by a computer.
– Must use language translators, called assemblers, to convert
them to machine code.
– Disadvantages:
• In general, each assembly language instruction corresponds to
one machine language instruction. Therefore, the programs
written in them are lengthy.
– Because of variations in assembly languages, programs
written using them are not portable.
• High-Level languages
– Instructions are quite English-like, and a single
instruction can be written to correspond to many
operations at the machine level.
– For example, the assembly language program can
be written in high-level languages as follows:
• Netpay = gross pay – tax
– Are easier to learn than machine or assembly
languages.
– Have to be converted to machine languages before
they can be executed using compilers, system
software that translates a source program into an
almost executable object program
• For example:
– COBOL – developed in the 1960s for business
transactions.
– FORTRAN – developed for mathematic calculations.
– Pascal - is a structured high-level language.
– C – is designed to support only procedure-oriented
programming. Popular language for developing
system applications such as operating system and
compilers.
– Java – is an object-oriented language.
– C++ - is extension of C programming language that
support object oriented programming and procedure-
oriented approach.

Anda mungkin juga menyukai