34
1-1 Computer Hardware Components CPU Memory I/O

1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

Embed Size (px)

DESCRIPTION

3 The Motherboard n Motherboard: The place where most of the electronics including the CPU are mounted.

Citation preview

Page 1: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

1-1

Computer Hardware Components

CPUMemory

I/O

Page 2: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

2

Computer Hardware Components

Contents:• The five stage computer model• CPU• Memory on chips and memory on magnetic

media, how do they differ?• What do you look for when comparing

memory devices?• Input & Output• How is information moved around within

the computer?• How can you help your computer run

better?

Page 3: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

3

The Motherboard

Motherboard: The place where most of the electronics including the CPU are mounted.

Page 4: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

4

Basic Concepts The Five-Stage Model

CPU(Central Processing Unit)

InputUnits

OutputUnits

Primary Memory

A computer can be modelled in terms of fivefive functions

Secondary Memory

Page 5: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

5

The Central Processing Unit

The Central Processing Unit ( CPU)• Often referred to as the “brain” of the computer.• Responsible for controlling all activities of the

computer system.• The two major components of the CPU are:

1. Arithmetic UnitArithmetic Unit (Computations performed)Accumulator (Results of computations kept here)

2. Control UnitControl Unit (Has two locations where numbers are kept)Instruction Register (Instruction placed here for analysis)Program Counter (Which instruction will be performed next?)

Page 6: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

6

The Central Processing Unit

Page 7: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

7

Primary & Secondary Storage

Two types of memory or storage:• Primary memory

– (RAM & ROM)• Secondary memory/storage

– Hard Disk– Floppy Disk– CD-ROM– Magnetic Tape

Common Basic Technologies for Storing Binary Information:• Electronic (RAM & ROM)• Magnetic (Hard disk & Floppy disk)• Optical (CD-ROM & CD-RW)

Page 8: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

8

Primary Memory

Primary Storage or MemoryPrimary 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:

– RAMRAM (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.– ROMROM (permanent)

• Contents do not change.• BIOS instructions stored in ROM

Page 9: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

9

Secondary Memory DevicesSecondary Memory Devices• These input devices are used by a computer

to store information and then to retrieve that information as needed.

– External to the computer.– Commonly consists of floppy disks, hard

disk drives, or CD-ROMs.• Secondary memory uses binary.

– The usual measurement is the byte.• A byte consists of 8 binary digits

(bits). The byte is a standard unit.

Secondary Storage

Page 10: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

10

Secondary Storage

Secondary Storage or MemorySecondary Storage or Memory: Magnetic Technology• Two parts to most of the magnetic forms of

information storage:– The mediummedium that stores the magnetic

information.• Example: Floppy disk or hard disk. Tiny

spots on the disk are magnetized to represent 0s and 1s.

– The devicedevice that can “read” that information from the medium.

• The drive spins the disk.• It has a magnetic sensing arm that

moves over the disk.• Performs nondestructive reading.

Page 11: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

11

Magnetic Disks

Magnetic DisksMagnetic Disks:

• Disks sectioned into…

– Sectors– Tracks– Cylinders

Page 12: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

12

Magnetic Tape

Magnetic TapeMagnetic Tape:

• Often used for… – backing storage

• Variable speed & capacity. Depends on system

• Serial access device

Page 13: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

13

Secondary Storage or MemorySecondary Storage or Memory: Optical Technology • Uses lasers to “read” the binary

information from the medium, usually a disc.– Millions of tiny holes are “burned”

into the surface of the disc.– The holes are interpreted as 1s.

The absence of holes are interpreted as 0s.

Secondary Storage

Page 14: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

14

Optical Disks

Optical Disks: CD-ROM and DVD• CD-ROM (Compact Disk - Read Only Memory)

– By its definition, CD-ROM is Read Only.– Special CD drives “burn” information into

blank CDs.• Burn: A laser is used to “burn” craters

into the surface to represent a binary 1.• Two main types of CDs:

» CD-R (Compact Disk - Recordable)» CD-WR (Compact Disk - ReWritable)

– It takes longer to write to a CD-R than a hard drive.

– Special software is needed to record.

Page 15: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

15

DVD

DVD (Digital Versatile Disk)• Allows up to 17 gigabytes of storage (from

4.7 GB to 17 GB).• Compatible with older CD-ROM technology.• The four versions of the DVD:

Page 16: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

16

Secondary Storage or MemorySecondary Storage or Memory: Four Important Characteristics • Type of access • Speed and access time• Capacity• Cost / Removable versus non-

removable

Secondary Storage

Page 17: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

17

Type of AccessType of Access• SequentialSequential - Obtained by

proceeding through the storage medium from the beginning until the designated area is reached (as in magnetic tape).

• Random AccessRandom Access - Direct access (as in floppy and hard disks).

Storage Access Type

Page 18: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

18

SpeedSpeed (Access time) - How fast information can be taken from or stored onto the computer memory device’s medium.• Electronic circuits: Fastest to access.

– 40 billionths of a second.• Floppy disks: Very slow in comparison.

– Takes up to 1/2 second to reach full speed before access is even possible.

Secondary Storage

Page 19: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

19

Capacity

CapacityCapacity - The amount of information that can be stored on the medium.

Unit Description Approximate Size1 bit 1 binary digit1 nibble 4 bits1 byte 8 bits 1 character1 kilobyte 1,024 bytes 1/2 page, double spaced1 megabyte 1,048,576 bytes 500,000 pages

1 million bytes1 gigabyte 1,073,741,824 bytes 5 million pages

1 billion bytes1 terabyte 1 trillion bytes 5 billion pages

Page 20: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

20

Storage Capacity

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 3 1/2” floppy disk, high density. 1.4 MG• One Compact Disk. 650 MG• One DVD. up to 17 GB• One hard drive up to 70 GB

Page 21: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

21

CostCost• MegabyteMegabyte: A million bytes.• GigabyteGigabyte: A billion bytes.

• Two parts to a removable secondary storage device:

– The cost of the medium. (Cheaper if bought in quantity)

– The cost of the drive.Examples: Cost for drive

Cost for medium Floppy drive (1.4MB) 10.00 .50Zip 100 (100 MB) 70.00 10.00CD-RW (650 MB) 80.00 and up 0.70

Secondary Storage

Page 22: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

22

Basic Concepts of Computer Hardware

Input/OutputInput/Output : Process of getting information…

into and out of the computer

• InputInput: Those parts of the computer receiving information to programs.

• OutputOutput: Those parts of the computer that provide results of computation to the person using the computer.

Page 23: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

23

Connecting Devices

Connecting Hardware to the Computer:• Hardware needs access through some general

input/output connection.– PortPort: The pathway for data to go into and out of

the computer from external devices such as keyboards.

• There are many standard ports as well as custom electronic ports designed for special purposes.

• Ports follow standards that define their use. » SCSI, USB: » RS-232 - serial port: (for modems, mouse)» Parallel port: (for printers, scanners)

– Peripheral devicePeripheral device: A piece of hardware like a printer or disk drive, that is outside the main computer.

Page 24: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

24

Connecting Devices

Connecting Hardware to the computer: (cont)• Hardware needs software on the

computer that can service the device.– Device DriverDevice Driver…

Software addition to the operating system that will allow the computer to communicate with a particular a device.

Page 25: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

25

Input Devices

InputInput hardwarehardware:• Keyboard• Mouse• Voice recognition hardware• Scanner• Digital camera

DigitizingDigitizing: The process of taking a visual image, or audio recording and converting it to a binary form for the computer.• Used as data for programs to display, play or

manipulate the digitized data.

Page 26: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

26

Output Devices

Output units store and display information… (calculated results and other messages)

…for us to see and use.

• Printers/Plotters

• Display monitors

• Speakers/Audio output

Page 27: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

27

Output Devices

Printer/PlottersPrinter/Plotters• Impact Printers:

– Dot Matrix Dot Matrix – Characters built up using dots. Pins hit a ribbon

• Non-Impact Printers:– LaserLaser – a laser beam makes a static charge on

a drum. The static parts picks up toner and transfer it to the paper. A heater seals the toner onto the paper.

• Expensive but good quality output– Inkjet Inkjet – Sprays a finely controlled jet of ink

onto the paper. • Can get fairly good quality output• Less expensive than laser printers

Page 28: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

28

Output Device - Plotter

Plotters• X-Y PlottersX-Y Plotters – Pens

of different colours move across the paper.

– Flat bed type: paper is laid on a flat bed

– Cylinder type: pens move across paper rolled around a cylinder

Page 29: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

29

Output Devices

Display monitorsDisplay monitors• Hi-resolution monitors come in three types:

– Cathode ray tubeCathode ray tube (CRT) - Streams of electrons make phosphors glow on a large vacuum tube.

– Liquid crystal displayLiquid crystal display (LCD) - A flat panel display that uses crystals to let varying amounts of different colored light to pass through it.

• Developed primarily for portable computers.• Now sometimes used on flat screens

– TFTTFT• Flat screens

• Screen resolution is measured in pixels. The greater the number of pixels, the higher the resolution. Currently a good resolution is 1024*768 or even better 1600*1200

• Monitors are measured in inches. Diagonally from top-left to bottom-right.

Page 30: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

30

Output Devices

Audio Output DevicesAudio Output Devices• PC’s may need special audio card for audio output.• Macintosh has audio playback built in.• Audio output is useful for:

– Music• Most personal computers have CD players

that can access both music CDs and CD-ROMs.

• Music files can be stored as MP3’s or wave files on a storage device such as a hard drive

– Multimedia– Programs that convey information using speech

Page 31: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

31

Moving InformationWithin the Computer

How do binary numerals move into, out of, and within the computer?• Information is moved about in bytes, or

multiple bytes called words.– WordsWords are the fundamental units of

information.– The number of bits per word may vary

per computer.– A word length for most large IBM

computers is 32 bits:

Page 32: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

32

Moving InformationWithin the Computer

Bits that compose a word are passed in parallel from place to place.

Ribbon cables: Consist of several wires, molded together.One wire for each bit of the word or byte.Additional wires coordinate the activity of moving information.Each wire sends information in the form of a voltage pulsevoltage pulse.

Page 33: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

33

Moving InformationWithin the Computer

Example of sending the word WOW over the ribbon cable

Voltage pulses corresponding to the ASCII codes would pass through the cable.

Page 34: 1-1 Computer Hardware Components CPU Memory I/O. 2 Computer Hardware Components n Contents: The five stage computer model CPU Memory on chips and memory

34

Computer Types

The many physical forms of the general purpose computer:

All follow general organization:

Primary memoryInput unitsOutput unitsCentral Processing Unit

Grouped according to speed, cost, size, and complexity.

Super Computers

Mainframe Computers

Minicomputers

Microcomputer

Palmtop Computer

Calculator

Fast Expensive Complex LargeFast Expensive Complex Large

Slow Cheap Simple SmallSlow Cheap Simple Small