introduction to computers: hardware and software

61
James Tam Introduction To Computers: Hardware and Software In this section of notes you will learn how the basic parts of a computer work as well what are the fundamental categories of computer programs

Upload: jalia

Post on 22-Feb-2016

109 views

Category:

Documents


6 download

DESCRIPTION

Introduction To Computers: Hardware and Software. In this section of notes you will learn how the basic parts of a computer work as well what are the fundamental categories of computer programs. What Is Hardware?. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Introduction To Computers: Hardware and Software

James Tam

Introduction To Computers: Hardware and SoftwareIn this section of notes you will learn how the basic parts of a computer work as well what are the fundamental categories of computer programs

Page 2: Introduction To Computers: Hardware and Software

James Tam

What Is Hardware?

The physical components of a computer system e.g., a monitor, keyboard, mouse and the computer itself.

Page 3: Introduction To Computers: Hardware and Software

James Tam

Basic Units Of Measurement

Bit

•binary digit

•smallest unit of measurement

•two possible values

Byte

•8 bits

Word• The number of adjacent bits that can be stored and manipulated as a unit

•32, 64 for home computers, 128 for the most powerful

Page 4: Introduction To Computers: Hardware and Software

James Tam

Large Units Of Measurement (Memory, Storage)

Note: use powers of two because computer memory and storage are based on the basic unit (bit).

~ 20 million four-drawer filing cabinets full of text

Kilobyte (kB) – a thousand bytes (1,024 = 210)

Megabyte (MB) - a million (1,048,576 = 220)

Gigabyte (GB) – a billion (1,073,741,824 = 230)

Terabyte (TB) – a trillion (1,099,511,627,776 = 240)

~ A complete set of encyclopedias requires about 600 MB of storage

Page 5: Introduction To Computers: Hardware and Software

James Tam

Small Units Of Measurement (Speed)

millisecond (ms) – a thousandth of a second (1/1,000 = 10-3)

microsecond (μs) - a millionth of a second (1/1,000,000 = 10-6)

nanosecond (ns) – a billionth of a second (1/1,000,000,000 = 10-9)

Page 6: Introduction To Computers: Hardware and Software

James Tam

High Level View Of A Computer

Page 7: Introduction To Computers: Hardware and Software

James Tam

Input

Page 8: Introduction To Computers: Hardware and Software

James Tam

Input Devices

Used by a person to communicate to a computer.

Person to computer

Page 9: Introduction To Computers: Hardware and Software

James Tam

Example Input Devices

Keyboard

Mouse

Need not be mundane! (A Jouse)

From http://www.jouse.com/

Page 10: Introduction To Computers: Hardware and Software

James Tam

Processor

Page 11: Introduction To Computers: Hardware and Software

James Tam

Processor

The brains of a computer (maybe not…)

A real processor

Page 12: Introduction To Computers: Hardware and Software

James Tam

Processor Speed

Determined by:• Type of processor e.g., Pentium III, IV, AMD Duron, Athalon• Clock speed

- 1 Hz = 1 pulse is sent out each second (1 second passes between each pulse)

- 10 Hz = 10 pulses are sent out each second (0.1 seconds passes between each pulse)

- :

- 25 MHz machine = 25 million pulses sent out each second (0.000 000 04 seconds between each pulse or 40 ns between pulses)

Page 13: Introduction To Computers: Hardware and Software

James Tam

The Processor And The Computer

Image from Peter Norton's Computing Fundamentals (3rd Edition) by Norton P.

Page 14: Introduction To Computers: Hardware and Software

James Tam

Memory

Page 15: Introduction To Computers: Hardware and Software

James Tam

RAM

Volatile

Used for temporary storage

Typical ranges 256 MB ~1 GB

Page 16: Introduction To Computers: Hardware and Software

James Tam

RAM (2)

Means direct access to any part of memory

Picture from Computers in your future by Pfaffenberger B

Page 17: Introduction To Computers: Hardware and Software

James Tam

How Does RAM Work?

Like a leaky bucket

From www.howstuffworks.com

Page 18: Introduction To Computers: Hardware and Software

James Tam

How Does RAM Work?

Like a leaky bucket

From www.howstuffworks.com

Transistor

Capacitor

Page 19: Introduction To Computers: Hardware and Software

James Tam

RAM: A Collection Of Capacitors

A capacitor

Page 20: Introduction To Computers: Hardware and Software

James Tam

Types Of RAM

Old versions of RAM• EDO RAM

- Slowest- For older computers

• SD-RAM- Faster- Was the former standard

Pictures from http://www.geekshelter.com

Page 21: Introduction To Computers: Hardware and Software

James Tam

Types Of RAM (2)

Newer version of RAM• DDR-RAM (Double Data Rate RAM)

- Double the speed of SD-RAM- Originally exclusively used with AMD processors

• RD-RAM (Rambus Dynamic RAM)- Produced by Rambus- Fast!- Used with Pentium 4 powered computers

Pictures from http://www.geekshelter.com

Page 22: Introduction To Computers: Hardware and Software

James Tam

Storage

Page 23: Introduction To Computers: Hardware and Software

James Tam

Storage Vs. Memory?

Memory (e.g., RAM)

•keep the information for a shorter period of time (usually volatile)

•faster

•more expensive

Storage (e.g., Hard disk)

•the information is retained longer (non-volatile)

•slower

•cheaper

Page 24: Introduction To Computers: Hardware and Software

James Tam

Categories Of Storage

1) Magnetic

• Floppy disks

• Zip disks

• Jazz drives

• Hard drives

2) Optical

• CD-ROM

• DVD

Page 25: Introduction To Computers: Hardware and Software

James Tam

Magnetic Drives: A Hard Drive In Action

Page 26: Introduction To Computers: Hardware and Software

James Tam

Magnetic Drives: Storage Capacities

Floppy disks• ~ 1 MB

Zip disks• 100 or 250 MB

Jazz drives• 1 – 2 GB

Hard drives• ~20 – 120+ GB

Page 27: Introduction To Computers: Hardware and Software

James Tam

Optical Drives: Reading Information

Page 28: Introduction To Computers: Hardware and Software

James Tam

Optical Drives: Recording and Reading Information

Page 29: Introduction To Computers: Hardware and Software

James Tam

Optical Drives: Re-writing

Page 30: Introduction To Computers: Hardware and Software

James Tam

Optical Drives: Re-writing

Page 31: Introduction To Computers: Hardware and Software

James Tam

Optical Drives

CD's• ~ 700 MB storage• CD-ROM (read only) • CD-R: needs a CD-burner to create (record) to a CD• CD-RW: can write and erase CD to reuse it (re-writable)

DVD-ROM• ~ 3.8 – 17 GB storage• DVD- ROM (read only)• Many recordable formats (e.g., DVD/CD-RW, DVD-RAM, DVD-R, CD-

RW etc)

Page 32: Introduction To Computers: Hardware and Software

James Tam

Output

Page 33: Introduction To Computers: Hardware and Software

James Tam

Output Devices

Displays information from the computer to the a person.

Page 34: Introduction To Computers: Hardware and Software

James Tam

The Most Common Output Device: The Monitor

Types of computer monitors

1) CRT's (Cathode Ray Tube)

2) LCD's (Liquid Crystal Display)

Page 35: Introduction To Computers: Hardware and Software

James Tam

CRT's Monitors

Images are displayed with dots (pixels) drawn with light "guns"

Picture from Computer Confluence by Beekman G.

Page 36: Introduction To Computers: Hardware and Software

James Tam

LCD Monitors

Employ a conductive grid for each row and column

The meeting of a row and column allows light to be emitted (a pixel can be seen)

Page 37: Introduction To Computers: Hardware and Software

James Tam

Colour LCD Monitors

Use three subpixels:• One wire for each row• One wire for each subpixel • One colour filter for each colour (red, blue, green)

Page 38: Introduction To Computers: Hardware and Software

James Tam

Some Determinants Of The Quality Of Monitors

1) Size

2) Resolution

3) Color depth

4) Dot pitch

Page 39: Introduction To Computers: Hardware and Software

James Tam

1) Monitor Quality (size)

Measured diagonally

Page 40: Introduction To Computers: Hardware and Software

James Tam

2) Monitor quality (resolution)

Columns of pixels x Rows of pixels

For a given monitor size, the higher the resolution the sharper the image

Col 1, Row 1

Col 2, Row 1

Col 3, Row 1

… Col [c], Row 1

Col 1, Row 2

Col [c], Row 2

Col 1, Row 3

Col [c], Row 3

: :

Col 1, Row [r]

Col 2, Row [r]

Col 3, Row [r]

… Col[c], Row[r]

Page 41: Introduction To Computers: Hardware and Software

James Tam

3) Monitor Quality (Color Depth)

The number of possible colors that can be displayed for each pixel.

e.g. monochrome (single color) 01

2 possible values

Uses up 1 bit of space

Page 42: Introduction To Computers: Hardware and Software

James Tam

3) Monitor Quality (Effects Of Color Depth)

256 colours

16 colours2 colours

16 million colours

Page 43: Introduction To Computers: Hardware and Software

James Tam

4) Monitor Quality (Dot Pitch)

Dot pitch is the distance between the center of each color dot (mm)

dot pitch

Page 44: Introduction To Computers: Hardware and Software

James Tam

Refresh rate of monitors

How fast the screen is redrawn

(70 Hz / 70 times per second is usually a good minimum)

Page 45: Introduction To Computers: Hardware and Software

James Tam

All The Basic Parts Together

Diagram from http://www.jegsworks.com

Page 46: Introduction To Computers: Hardware and Software

James Tam

The Motherboard

Diagram from http://www.jegsworks.com

Page 47: Introduction To Computers: Hardware and Software

James Tam

Printers

Common types

•Inkjet

•Laser

Note: By default on the CPSC network you only have access to text-only printers (do not print formatted text or graphics on them!) You can pay a minimal fee to access the laser printers.

Page 48: Introduction To Computers: Hardware and Software

James Tam

How Inkjet Printers Work.Use a series of nozzles to spray drops of ink directly on the paper

Slots for print cartridges

Ink nozzles

Picture from www.howstuffworks.com

Print heads

Page 49: Introduction To Computers: Hardware and Software

James Tam

How Laser Printers Work

Use a laser to produce patterns on an ink drum using static electricity

Diagram from www.howstuffworks.com

Page 50: Introduction To Computers: Hardware and Software

James Tam

Software

The instructions that tell the hardware what to do.

1) Balance my check book.2) Do taxes3) Print out my resume4) : :

Page 51: Introduction To Computers: Hardware and Software

James Tam

Categories Of Software

1) Application programs (applications)

2) Operating systems

3) Compilers

Page 52: Introduction To Computers: Hardware and Software

James Tam

1) Common Types Of Application Programs

1) Word processors

2) Spreadsheets

3) Databases

4) Presentation software

5) Web browsers

: :

Page 53: Introduction To Computers: Hardware and Software

James Tam

2) Operating Systems: What Do They Do?

1) Act an an intermediary between the user and the hardware

2) Manage the resources of the computer

3) Some may act to secure some parts of the computer

Page 54: Introduction To Computers: Hardware and Software

James Tam

Operating Systems: The Intermediary Between The User And The Hardware

(operating system)

Page 55: Introduction To Computers: Hardware and Software

James Tam

Operating Systems: Manage System Resources (1)

e.g., Processor time

A = B + C

Page 56: Introduction To Computers: Hardware and Software

James Tam

Operating Systems: Manage System Resources (2)

A = B + C

RAMe.g., Memory management

Page 57: Introduction To Computers: Hardware and Software

James Tam

Operating Systems: Securing The Computer (not done)

Single (faceless) user – security less of an issue

My resume

Claude Rains from Phantom of the Opera

Page 58: Introduction To Computers: Hardware and Software

James Tam

Operating Systems: Securing The Computer (done)

Multiple users – security is more important

Bill Mary George

Mary's assignmentBill's

assignment George's assignment

Page 59: Introduction To Computers: Hardware and Software

James Tam

3) Compilers (Real-World)

Huh?Merry

Christmas and Happy New

Year!

Same to you buddy!

Real life translation

Page 60: Introduction To Computers: Hardware and Software

James Tam

3) Compilers (Computers)

1) A programmer writes a computer program 2) The compiler

translates the program into a form that the computer can understand

3) An executable program is created

Anybody who has this executable on their computer can then run (use) it.

Page 61: Introduction To Computers: Hardware and Software

James Tam

Summary

What is hardware?

What are the basic parts of a computer?• What are some common input devices?• What is the purpose of the processor? What are some examples of modern

processors and their speeds?• How does computer memory work?• What are some common types of computer storage devices?• What are the main types of computer monitors and how do they work?• What are some of the factors that determine the quality of computer monitors?

What is software?

What are the main categories of software• What are application programs?• What do operating systems do?• What is a compiler?