21
Chapter 1-C,D Computers and Digital Basics

Chapter 1-C,D Computers and Digital Basics. Digital Data Representation Chapter 1: Computers and Digital Basics 2 Data Representation Basics Representing

Embed Size (px)

Citation preview

Page 1: Chapter 1-C,D Computers and Digital Basics. Digital Data Representation Chapter 1: Computers and Digital Basics 2 Data Representation Basics Representing

Chapter 1-C,D

Computers and Digital Basics

Page 2: Chapter 1-C,D Computers and Digital Basics. Digital Data Representation Chapter 1: Computers and Digital Basics 2 Data Representation Basics Representing

Digital Data Representation

Chapter 1: Computers and Digital Basics

2

• Data Representation Basics

• Representing Numbers, Text, and Pictures

• Quantifying Bits and Bytes

• Circuits and Chips

Page 3: Chapter 1-C,D Computers and Digital Basics. Digital Data Representation Chapter 1: Computers and Digital Basics 2 Data Representation Basics Representing

Question

Chapter 1: Computers and Digital Basics

3

•When you shop for digital devices, their capabilities are often touted in terms of speed and capacity. Suppose you’re shopping for a USB Flash drive. A friend recommends one that’s 64 GB. What does that mean?•A. It operates at 64 gigabits per second.•B. It holds 64 billion bytes of data.•C. It holds 64 million 0s and 1s to represent

data.•D. It uses 64-bit ASCII code to hold data.

3

Page 4: Chapter 1-C,D Computers and Digital Basics. Digital Data Representation Chapter 1: Computers and Digital Basics 2 Data Representation Basics Representing

Data Representation

Chapter 1: Computers and Digital Basics

4

• Data representation refers to the form in which data is stored, processed, and transmitted

• Digital devices work with distinct and separate data

• Analog devices work with continuous data

Page 5: Chapter 1-C,D Computers and Digital Basics. Digital Data Representation Chapter 1: Computers and Digital Basics 2 Data Representation Basics Representing

Representing Numbers, Text, and Pictures

Chapter 1: Computers and Digital Basics

5

• Numeric data

•Binary number system

• Character data

•ASCII, Extended ASCII, EBCDIC, and Unicode

• Digitizing is the process of converting analog data into digital format

Page 6: Chapter 1-C,D Computers and Digital Basics. Digital Data Representation Chapter 1: Computers and Digital Basics 2 Data Representation Basics Representing

Data Representation

Chapter 1: Computers and Digital Basics

6

Page 7: Chapter 1-C,D Computers and Digital Basics. Digital Data Representation Chapter 1: Computers and Digital Basics 2 Data Representation Basics Representing

Quantifying Bits and Bytes

Chapter 1: Computers and Digital Basics

7

Page 8: Chapter 1-C,D Computers and Digital Basics. Digital Data Representation Chapter 1: Computers and Digital Basics 2 Data Representation Basics Representing

Circuits and Chips

Chapter 1: Computers and Digital Basics

8

• An integrated circuit (computer chip) is a super-thin slice of semiconducting material packed with microscopic circuit elements

Page 9: Chapter 1-C,D Computers and Digital Basics. Digital Data Representation Chapter 1: Computers and Digital Basics 2 Data Representation Basics Representing

Circuits and Chips

Chapter 1: Computers and Digital Basics

9

• The electronic components of most digital devices are mounted on a circuit board called a system board

Page 10: Chapter 1-C,D Computers and Digital Basics. Digital Data Representation Chapter 1: Computers and Digital Basics 2 Data Representation Basics Representing

Digital Processing

Chapter 1: Computers and Digital Basics

10

• Programs and Instruction Sets

• Processor Logic

Page 11: Chapter 1-C,D Computers and Digital Basics. Digital Data Representation Chapter 1: Computers and Digital Basics 2 Data Representation Basics Representing

Programs and Instruction Sets

Chapter 1: Computers and Digital Basics

11

• Computers, portable media players, PDAs, and smartphones all work with digital data

• Computer programmers create programs that control digital devices. These programs are usually written in a high-level programming language

• The human-readable version of a program created in a high-level language by a programmer is called source code

Page 12: Chapter 1-C,D Computers and Digital Basics. Digital Data Representation Chapter 1: Computers and Digital Basics 2 Data Representation Basics Representing

Programs and Instruction Sets

Chapter 1: Computers and Digital Basics

12

Page 13: Chapter 1-C,D Computers and Digital Basics. Digital Data Representation Chapter 1: Computers and Digital Basics 2 Data Representation Basics Representing

Programs and Instruction Sets

Chapter 1: Computers and Digital Basics

13

• An instruction set is a collection of preprogrammed activities a microprocessor is hardwired to perform

• Each instruction has a corresponding sequence of 0s and 1s

• The end product is called machine code

•1s and 0s

Page 14: Chapter 1-C,D Computers and Digital Basics. Digital Data Representation Chapter 1: Computers and Digital Basics 2 Data Representation Basics Representing

Programs and Instruction Sets

Chapter 1: Computers and Digital Basics

14

• An op code (short for operation code) is a command word for an operation such as add, compare, or jump

• The operand for an instruction specifies the data, or the address of the data, for the operation

• In the following instruction, the op code means add and the operand is 1, so the instruction means Add 1

Page 15: Chapter 1-C,D Computers and Digital Basics. Digital Data Representation Chapter 1: Computers and Digital Basics 2 Data Representation Basics Representing

Programs and Instruction Sets

Chapter 1: Computers and Digital Basics

15

Page 16: Chapter 1-C,D Computers and Digital Basics. Digital Data Representation Chapter 1: Computers and Digital Basics 2 Data Representation Basics Representing

Processor Logic

Chapter 1: Computers and Digital Basics

16

• The ALU (arithmetic logic unit) is the part of the microprocessor that performs arithmetic operations

• The ALU uses registers to hold data that is being processed

• The microprocessor’s control unit fetches each instruction, just as you get each ingredient out of a cupboard or the refrigerator

• The term instruction cycle refers to the process in which a computer executes a single instruction

Page 17: Chapter 1-C,D Computers and Digital Basics. Digital Data Representation Chapter 1: Computers and Digital Basics 2 Data Representation Basics Representing

Processor Logic

Chapter 1: Computers and Digital Basics

17

Page 18: Chapter 1-C,D Computers and Digital Basics. Digital Data Representation Chapter 1: Computers and Digital Basics 2 Data Representation Basics Representing

Processor Logic

Chapter 1: Computers and Digital Basics

18

Page 19: Chapter 1-C,D Computers and Digital Basics. Digital Data Representation Chapter 1: Computers and Digital Basics 2 Data Representation Basics Representing

Question

Chapter 1: Computers and Digital Basics

19

• Programmers write computer programs for word processing, displaying photos, playing music, and showing movies. What programmers write, however, is not what a computer actually processes. Why is this the case?

•A. Because programmers usually write programs using high-level programming languages that have to be converted into machine language that computers can work with.

•B. Because programs are basically outlines that programmers have to fill out using op codes.

•C. Because high-level languages are too detailed for computers to process, so programs written in these languages have to be simplified.

•D. Because computer programmers make too many errors for programs to run successfully.

19

Page 20: Chapter 1-C,D Computers and Digital Basics. Digital Data Representation Chapter 1: Computers and Digital Basics 2 Data Representation Basics Representing

Fast-Poll True/False QuestionsAnswer A for True and B for False

Chapter 1: Computers and Digital Basics

20

•A bit is a binary digit, such as a 1 or 0.

•ASCII, EBCDIC, and Unicode are used to represent character data.

•A megabyte is 1024 bits.

•Microprocessors are a type of integrated circuit.

•C, COBOL, and Java are examples of programming languages.

20

T

T

F

T

T

Page 21: Chapter 1-C,D Computers and Digital Basics. Digital Data Representation Chapter 1: Computers and Digital Basics 2 Data Representation Basics Representing

FastPoll True/False QuestionsAnswer A for True and B for False

Chapter 1: Computers and Digital Basics

21

•A compiler converts source code to object code.

•The list of codes for a microprocessor’s instruction set is called machine language.

•A microprocessor holds data in the interpreter register.

21

T

T

F