hardware: the cpu & storage chapter 5 how to buy a multimedia computer

33
Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

Upload: joseph-cunningham

Post on 12-Jan-2016

234 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

Hardware: The CPU & Storage

Chapter 5

How to Buy a Multimedia Computer

Page 2: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

Key Questions5.1 What is a CPU? What are the three components of

a CPU and what are their functions?5.2 What are machine languages and how instructions

are executed?5.3 How is data represented in a computer; what are the

components of the system cabinet; what are processing speeds; how do the processor and memory work; and what are some important ports, buses, and cards?

5.4 What are the features of floppy disks, hard disks, optical disks, magnetic tape, smart cards, and online secondary storage?

Page 3: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

CPU and Main Memory CPU: Central Processing Unit

– the “brain” of the computer– Control the operating of the

computer

Main Memory– Hold data being processed– Hold Program being executed– Primary Storage– RAM: Random Access Memory

Page 4: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

The CPU and main memory

Page 5: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

Main Memory Random Access Memory (RAM) Primary storage or memory Used to

– Holds data for processing– Holds instructions for processing data

Main memory is volatile:– the contents are lost when the power is

turned off.– Therefore, the data must be saved to a

secondary storage device for later use.

Page 6: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

Main Memory - cont’d The more memory, the more powerful

– Hold more programs/data at a time. The capacity of memory varies with

different computers– bit or binary digit: 0/1– byte (8 bits each): one character– Kilobyte: 1024 bytes = 1 thousand– Megabyte: 1024 Kilobytes = 1 million– Gigabyte: 1024 Megabytes = 1 billion– Terabyte: 1024 Gigabytes = 1 trillion

Each byte has a unique address

Page 7: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

Three Components of a CPU The control unit

– Like a symphony director– Control the rest of the system to carry out

program’s instructions. The Arithmetic/logic unit (ALU)

– Perform arithmetic and logical operations Registers:

– Fastest storage device– instruction register: hold the instruction to be

executed next– data registers: store data to be processed by ALU– address registers: Hold the addresses of RAM

Page 8: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

System Clock and Word Size System clock

– Generate a sequence of digital pulses– To control how fast the processor executes– MHz: 1 million pulses per second– The faster the clock, the faster the processor.

Word Size– The # of bits the CPU can manipulate at a time.– A 32-bit-word PC is faster than an 8-bit-word PC

with the same system clock

The Power of a Processor – Determined by the system clock and word size.

Page 9: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

Machine Language A Language a computer hardware can run

directly. Programs in BASIC or PASCAL must be

translated into the machine language before it is executed by the hardware.

An instruction consists of three parts– operation code: add/subtract– two operands: source and destination– Example: add M(10), M(20)

01011100 Add00001000 operand 100010100 operand 2, location of

result

Page 10: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

How an Instruction is Processed Instructions are stored in memory

– The CPU can only execute instructions that are stored in memory, not on 2nd storage.

Machine Cycle: • a series of operations performed to execute a

single program instruction– Instruction cycle

• The control unit fetches the instruction from RAM to the instruction register

• It then decodes the instruction– Execution cycle

• The ALU executes the instruction• It then stores the result in memory

Page 11: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

The machine cycle

Page 12: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

How Data is Represented Binary System: Using Two States: bits Representation of numbers

– Position value• Decimal

– E.g., 342, it reads three hundred forty two,or three hundreds, four tens, and

two ones.I.e., each position has position valueSo, 3*102 + 4*101 + 2*100

• Binary– E.g., 10111

The position value of position i is ith power of 2Starting from the rightmost bit as position zero.So, 1*24 + 0*23 + 1*22 +1*21+1*20

= 16 + 0 + 4 + 2 + 1 = 23

Page 13: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

How Data is Represented Binary System: Using Two States: bits Binary Coding Schemes for symbols/letters

– EBCDIC: • Extended Binary Coded Decimal Interchange code.• One byte for a character• Used on mainframe computers

– ASCII: • American Standard Code for Information Interchange• One byte for a character• Used on microcomputers

– Unicode: • Code foreign characters as well as English.• Two bytes for a character.• Used more and more

Page 14: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

Binary data representation of symbols

Page 15: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

Two coding schemes: EBCDIC and ASCII-8

Page 16: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

The Microcomputer System Unit Power Supply

– Surge protectors• Prevent damages from power surges

– Uninterruptable power supply (UPS)• Provide temporary power supply when the main power is

off so the user can save data to disk. Motherboard

– The circuit that connects all the devices together. CPU Chip

– Intel-type chips– Motorola-type chips

• “68000”-series• PowerPC

Page 17: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

System unit and motherboard components

Page 18: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

Microcomputers and microprocessorsManufacturer and Chip Date

IntroducedSystemsChip

ClockSpeed (MHz)

BusWidth

Intel 8088 1979 IBM PC, XT 4-8 8Motorola 68000 1979 Macintosh Plus, SE:

Commodore Amiga8-16 16

Intel 80286 1981 IBM PC/AT, PS/2 Model 50/60;Compaq Deskpro 286

8-28 16

Motorola 68020 1984 Macintosh II 16-33 32Sun Microsystems RISC 1985 Sun Sparcstation 1, 300 20-25 32Intel 80386DX 1985 IBM PS/2; and compatibles 16-33 32Motorola 68030 1987 Macintosh IIx series, SE/30 16-50 32Intel 80486DX 1989 IBM PS/2; and compatibles 20-50 32Motorola 68040 1989 Macintosh Quadras 25-50 32IBM RISC 6000 1990 IBM RISC/6000 workstation 20-50 32Sun Microsystems 1992 Sun Sparcstation LX 50 32Intel Pentium 1993 Compaq Deskpro; IBM and

compatibles60-166 64

IBM/Motorola/Apple 1994 Power Macintoshes; Power 60-150 64PowerPC RISC Computing PowerWaveIntel Pentium Pro 1995 Compaq Proliant; Data General

server150-200 64

Intel Pentium MMX 1996 Dell; Gateway 2000 166-233 64Intel Pentium II 1997 Compaq Deskpro and

compatibles233-400 64

Apple PowerPC 1998 Power Macintoshes G3 233-266 64

Page 19: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

The Microcomputer System Unit Specialized Processor Chips

– Math coprocessor chip– Graphics coprocessor chip– Types of processing

• Serial• Parallel

RAM Chips– Main memory or primary storage– Inline memory modules (SIMM / DIMM)

• Dynamic RAM (DRAM)• Static RAM (SRAM)

Page 20: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

The Microcomputer System Unit

ROM Chips Other Forms of Memory

– Cache memory– Video memory or video RAM

Expansion Slots & Boards– Expanded memory– Display adapter or graphics adapter– Controller cards

Page 21: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

The Microcomputer System Unit

Bus Lines– Expansion bus– Local bus

Ports– Parallel ports– Serial ports or RS-232 ports– Video adapter ports– Small computer system interface (SCSI)

Page 22: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

Buses

Page 23: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

I. Storage Fundamentals

Units of Measurement for Storage– Kilobyte/Megabyte/Gigabyte/Terabyte

Data Access Methods– Sequential Storage

• magnetic tapes

– Direct Access Storage• Hard disks, floppy disks, CD-ROMs

Page 24: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

II.Criteria for Rating Storage Devices

Storage Capacity– # of bytes the disk can hold

Access Speed– the time needed to locate data

Transfer Rate– the speed at which data is transferred

Removability– the device that can be removed/installed

Cost– $$$

Page 25: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

III. Diskettes

The Disk Drive1. Read2. Write

How A Disk Drive works– Magnetic coating on the disk– Read/Write head (R/W head)– While disk spins, R/W head can read/write

Page 26: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

Cutaway view of a disk drive

Page 27: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

Diskettes

C. Characteristics of Diskettes– Tracks and Sectors

• track: a circular band on the surface• Sector: a segment of track

– Unformatted versus formatted disks• Format: define tracks and sectors

– Data capacity—sides and densities– Write-protect features

Page 28: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

Diskette anatomy

Page 29: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

IV. Hard Disks

Hard-disks– “Multiple diskettes stacked in one pack.”– “Each diskettes has its own R/W on both sides”

Hard-disk Connections– SCSI: Small Computer System Interface – EIDE: Enhanced Integrated Drive Electronics

Fragmentation & Defragmentation– Cluster: the unit the computer can access

at a time from disk, multiple sectors – Fragmentation: a file spread out over many

noncontiguous sectors

Page 30: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

Microcomputer hard-disk drive

Page 31: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

Multiple disks and cylinders

Page 32: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

V. Optical Disks 

CD-ROM (Compact Disk - Read Only Memory)– Data is read/written through laser beams– Single-speed: 1x = 150KB/Second, 150kbps

16x = 2400kbps, 32x = 4800kbps CD-R Disks: Recording Your Own CDs

– Compact disk—recordable– Compact disk - Recordable and reWriteable

DVD: The “Digital Convergence” Disk– New generation of high-density CD-ROM

Page 33: Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer

Optical disks