This document discusses digital data representation. It covers representing numbers, text and pictures using binary and other encoding schemes. It discusses quantifying data in bits and bytes and how circuits and chips are used to process digital data. It describes how programs and instruction sets control digital devices and how processors use arithmetic logic units and registers to execute instructions.
This document discusses digital data representation. It covers representing numbers, text and pictures using binary and other encoding schemes. It discusses quantifying data in bits and bytes and how circuits and chips are used to process digital data. It describes how programs and instruction sets control digital devices and how processors use arithmetic logic units and registers to execute instructions.
This document discusses digital data representation. It covers representing numbers, text and pictures using binary and other encoding schemes. It discusses quantifying data in bits and bytes and how circuits and chips are used to process digital data. It describes how programs and instruction sets control digital devices and how processors use arithmetic logic units and registers to execute instructions.
• Representing Numbers, Text, and Pictures • Quantifying Bits and Bytes • Circuits and Chips
Chapter 1: Computers and
1 Digital Basics Data Representation • 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
Chapter 1: Computers and
2 Digital Basics Representing Numbers, Text, and Pictures • Numeric data – Binary number system • Character data – ASCII, Extended ASCII, EBCDIC, and Unicode • Digitizing is the process of converting analog data into digital format
Chapter 1: Computers and
3 Digital Basics Data Representation
Chapter 1: Computers and
4 Digital Basics Quantifying Bits and Bytes
Chapter 1: Computers and
5 Digital Basics Circuits and Chips • An integrated circuit (computer chip) is a super-thin slice of semiconducting material packed with microscopic circuit elements
Chapter 1: Computers and
6 Digital Basics Circuits and Chips • The electronic components of most digital devices are mounted on a circuit board called a system board
Chapter 1: Computers and Digital Basics 7
Digital Processing • Programs and Instruction Sets • Processor Logic
Chapter 1: Computers and
8 Digital Basics Programs and Instruction Sets • Computers, portable media players, handheld computers, and smart phones 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
Chapter 1: Computers and
9 Digital Basics Programs and Instruction Sets
Chapter 1: Computers and
10 Digital Basics Programs and Instruction Sets • 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
Chapter 1: Computers and
11 Digital Basics Programs and Instruction Sets • 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
Chapter 1: Computers and
12 Digital Basics Programs and Instruction Sets
Chapter 1: Computers and
13 Digital Basics Processor Logic • 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