36
Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Embed Size (px)

Citation preview

Page 1: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Lesson 2 — How Does A Computer Process Data?

Computing Fundamentals

Page 2: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

2

Objectives

Identify computer system components.

Explain how the CPU works. Differentiate between RAM and

ROM. Describe how data is represented.

Page 3: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

3

Objectives (cont.)

Identify and describe the most common input devices.

Identify and describe the most common output devices.

Identify and describe storage devices.

Page 4: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

4

Vocabulary

American Standard Code for Information Interchange (ASCII)

Bit Byte CD-ROM

Central processing unit (CPU)

Controller DVD Execution cycle

(E-cycle) Hard disk drive

Page 5: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

5

Vocabulary (cont.)

Impact printers Input devices Instruction cycle

(I-cycle) Keyboard Main memory

Memory Motherboard Mouse Network drive Nonimpact

printers

Page 6: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

6

Vocabulary (cont.)

Optical storage devices

Output devices Plotter Pointer

Random access memory (RAM)

Read-only memory (ROM)

Scanner System clock

Page 7: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

7

System Components and IPOS

A computer system requires many components to do its job:

Input: Some device or method to input data so it can be processed

Process: Circuits and programs in order to process the data

Output: Some type of output device to give the result of its processing to the user

Storage: Some mechanism for storing data

Page 8: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

8

System Components

Page 9: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

9

The Motherboard

The motherboard is a circuit board inside the microcomputer’s plastic case. It contains integral components including

The central processing unit or CPU Basic controllers Expansion ports and slots Memory

Page 10: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

10

Diagram of aSimplified Motherboard

Page 11: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

11

The Central Processing Unit

The CPU is a tiny silicon chip that acts as the brains of a computer system.

The chip contains switches and pathways that the CPU turns on and off according to instructions from computer programs.

The system clock is an electronic pulse that controls the speed of the CPU. The rate of the pulse is measured in megahertz (MHz) and gigahertz (GHz).

Page 12: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

12

The Central Processing Unit (cont.)

The CPU has two primary sections: The Arithmetic/Logic Unit (ALU)

This section performs arithmetic and logical operations.

The Control Unit This section coordinates all activity

within the CPU. It uses programming instructions to control what actions the CPU performs and when it performs them.

Page 13: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

13

Communicating with the CPU

The control unit reads and interprets program instructions and then changes it into machine language that the CPU can understand.

Data is stored in a computer in binary format as a series of 1s and 0s. Every 1 or 0 is a bit of information.

Page 14: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

14

Computer Memory

Data being processed by a CPU is stored in system memory.

Memory consists of addressable locations within the machine that the computer can access directly.

Data stored in memory is not permanent. If the power fails, everything in memory is lost.

Data must be stored on a disk or some other device when not being processed so it is not lost each time the computer shuts down.

Page 15: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

15

Types of Computer Memory

There are two types of memory found on a motherboard:

RAM: Random Access Memory

ROM: Read-Only Memory

RAM chip

Page 16: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

16

Random Access Memory (RAM)

RAM is short-term memory where data is processed while a program is running.

Data stored here can be accessed and modified as needed.

This type of memory loses any data it holds if the computer is shut down.

RAM is also called main memory.

Page 17: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

17

The Instruction Cycle and theExecution Cycle in RAM

The steps in the basic cycle involved in processing a program statement in RAM are shown at left in the figure. This process is called the instruction cycle since it must be performed for every instruction to be executed.

The amount of time required to complete the instruction cycle is referred to as the execution cycle, shown at right in the figure.

Page 18: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

18

The Machine Cycle

The instruction cycle and one or more execu-tion cycles create a machine cycle. Machine cycles are measured in micro-seconds. The faster your computer can process machine cycles, the faster it can process data.

Page 19: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

19

Read-Only Memory (ROM)

ROM is memory placed on the motherboard by the manufacturer and contains instructions, such as BIOS ROM, that tell the computer how to start itself.

This data cannot be accessed or modified by application programs.

The contents of this memory are not lost when the computer is shut down.

Page 20: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

20

Basic Controllers

A controller is a device that controls the transfer of data from the computer to a peripheral device and vice versa.

Controllers for standard peripheral devices are contained on a single chip on the motherboard.

Page 21: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

21

Expansion Ports and Slots

Ports are specialized plugs that connect peripheral devices to the computer’s motherboard. Serial, Parallel, and Universal Serial Bus

(USB) Expansion slots are openings on the

motherboard where a circuit board or memory chip can be added.

Page 22: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

22

How does the computer interpret letters and numbers?

A combination of 0s and 1s are used to represent every letter of the alphabet, numbers from 0 to 9, and special characters

A special system has been developed to help us communicate with the computer.

Page 23: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

23

Communicating with the CPU (cont.)

Computers use standardized coding systems (such as ASCII or EBCDIC) to determine what character or number is represented by what series of binary digits.

Data is stored in a series of 8-bit combinations called a byte. Every character, such as a letter, number, or punctuation mark, is a byte created from a unique combination of ones and zeros.

Page 24: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

24

Let’s Look at an example

Go to http://www.lookuptables.com/ Look for the capital letter A What DEC value is it?

The ASCII value for the capital letter A is 65 Look for the lower case a What DEC value is it?

The ASCII value for the lower case a is 97 Look for the * What DEC value is it?

The ASCII value for the * is 42 Look for the numeral 7 What DEC value is it?

The ASCII value for the numeral 7 is 55

Page 25: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

25

ASCII (cont’d)

Each ASCII value is associated with a number, a letter, or a special character.

The computer sees the number We see the character that

represents the number

Page 26: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

26

ASCII (cont’d)

The ASCII number is converted to machine language (binary) so the computer can read it

Binary Numbering System consists of 2 numbers 0 1

Page 27: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Binary Numbering System

Page 28: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

28

Binary Numbering System

Consists of 2 digits 0 1

Page 29: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

29

Decimal Numbering System

Consists of 10 digits 0 to 9

Page 30: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

30

Binary vs. Decimal

0 1 10 11 100 111 1000 1111

0 1 2 3 4 5 6 7 8 9 10

Page 31: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

31

Counting in Decimal Numbering System

The right-most position has a place value of 1

The second right-most position has a place value of 10

Each position following has a place value of 10 times the previous position

Page 32: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

32

Decimal Place Values

00000000

1

10

100

1000

10,000

100,000

10,000,000

1,000,000

Page 33: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

33

Counting in Binary

The right-most position has a place value of 1

The second right-most position has a place value of 2

Each position following has a place value of 2* the previous position

Page 34: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

34

Binary Place Values

0000 0000

1

2

4

8

16

32

64

128

Page 35: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

35

Summary (cont.)

Monitors can be monochromatic or full color and are available in a range of sizes with different screen resolution.

Printers are used to produce a paper or hard copy of the processed result.

Printers are classified as either impact (dot matrix) or nonimpact (laser and inkjet).

Page 36: Lesson 2 — How Does A Computer Process Data? Computing Fundamentals

Computing Fundamentals Lesson 2

36

Summary (cont.)

Other types of output devices include plotters, projectors, robotic controls, and voice synthesizers.

To maintain a permanent copy of data, you must store it on some type of storage medium. These may include floppy diskettes, hard disk drives, CDs or DVDs, magnetic tape cartridges, network drives, virtual storage, and flash memory cards.