1 INFORMATION IN DIGITAL DEVICES. 2 Digital Devices Most computers today are composed of digital devices. –Process electrical signals. –Can only have.

Slides:



Advertisements
Similar presentations
Number Systems and Codes
Advertisements

Review of HTML Ch. 1.
1 Chapter 2 The Digital World. 2 Digital Data Representation.
SECTION 4a Transforming Data into Information.
Digital Fundamentals Floyd Chapter 2 Tenth Edition
1 Information Representation (level ISA-3) Signed numbers and bit-level operations.
Using Binary Coding Information Remember  Bit = 0 or 1, Binary Digit  Byte = the number of bits used to represent letters, numbers and special characters.
Using Binary Coding Information Remember  Bit = 0 or 1, Binary Digit  Byte = the number of bits used to represent letters, numbers and special characters.
Processing Data.
Chapter 3 Data Representation.
Chapter 3 Data Representation. Chapter goals Describe numbering systems and their use in data representation Compare and contrast various data representation.
1 Chapter Overview Computer Communication The Computer Bus Objectives  Understand how a computer transmits and receives information.  Explain the principles.
1 Basics of Data Communications Discrete-time Communication vs Continuous-time Communication Is human communication continuous-time or discrete-time ?
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
1 12/08/03SW Abingdon and Witney College Binary Converting to and from decimal.
Bits and Bytes.
COMPUTER FUNDAMENTALS David Samuel Bhatti
CODING SYSTEMS CODING SYSTEMS CODING SYSTEMS. CHARACTERS CHARACTERS digits: 0 – 9 (numeric characters) letters: alphabetic characters punctuation marks:
9/15/09 - L3 CodesCopyright Joanne DeGroat, ECE, OSU1 Codes.
Digital Logic Chapter 2 Number Conversions Digital Systems by Tocci.
©Brooks/Cole, 2003 Chapter 2 Data Representation.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Programmable Logic Controllers
Lecture 6 Topics Character codes Error Detection and Correction
Cosc175/data1 Data comprised of constants and variables information stored in memory Each memory location has an address Address - number identifying a.
Chapter 3 Representing Numbers and Text in Binary Information Technology in Theory By Pelin Aksoy and Laura DeNardis.
Representing text Each of different symbol on the text (alphabet letter) is assigned a unique bit patterns the text is then representing as.
Binary Numbers and ASCII and EDCDIC Mrs. Cueni. Data Representation  Human speech is analog because it uses continuous signals (waves) that vary in strength.
Bits & Bytes: How Computers Represent Data
CSC 101 Introduction to Computing Lecture 9 Dr. Iftikhar Azim Niaz 1.
Chapter 7 Data Coding. Agenda Coding Code efficiency and conversion Compression/compaction Code encryption/decryption.
Binary Codes Computers and other digital systems "work" with binary numbers. I/P & O/P is usually done using decimal numbers, alphabetics, special symbols.
Transforming Data into Information.
Chapter 2 Computer Hardware
Binary Arithmetic & Data representation
Skill Area 311 Part A. Lecture Overview Binary Numbers Binary Arithmetic ASCII Code Machine Code Instruction Format Advantages and disadvantages of machine.
Digital Logic Lecture 4 Binary Codes The Hashemite University Computer Engineering Department.
Bits, Bytes, Words Digital signal. Digital Signals The amplitude of a digital signal varies between a logical “0” and logical “1”. – The information in.
Cis303a_chapt03-2a.ppt Range Overflow Fixed length of bits to hold numeric data Can hold a maximum positive number (unsigned) X X X X X X X X X X X X X.
Introduction to Computer Design CMPT 150 Section: D Ch. 1 Digital Computers and Information CMPT 150, Chapter 1, Tariq Nuruddin, Fall 06, SFU 1.
CS151 Introduction to Digital Design
Chapter 1: Digital Computers and Information Illustration at beginning of each Chapter Base 10 Binary Base 2 Octal Base 8 Hex bas
EEL 3801C EEL 3801 Part I Computing Basics. EEL 3801C Data Representation Digital computers are binary in nature. They operate only on 0’s and 1’s. Everything.
Data Representation, Number Systems and Base Conversions
Agenda Character representation Numerical Conversions ASCII EBCDIC
Data Representation. What is data? Data is information that has been translated into a form that is more convenient to process As information take different.
Assoc. Prof. Dr. Ahmet Turan ÖZCERİT.  The necessity and advantages of coding  The variety of coding systems You will learn: 2.
MECH1500 Chapter 3.
Technology in Action Chapter 6 Behind the Scenes: A Closer Look at System Hardware.
M204 - Data Representation
AGBell – EECT by Andrew G. Bell (260) Lecture 2.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
ASCII AND EBCDIC CODES By : madam aisha.
Information Coding Schemes Group Member : Yvonne Tiffany Jurifah bt Junaidi Clara Jane George.
Fall’ 2014 Lesson - 1 Number System & Program Design CSE 101.
Number Systems. The position of each digit in a weighted number system is assigned a weight based on the base or radix of the system. The radix of decimal.
Lecture Coding Schemes. Representing Data English language uses 26 symbols to represent an idea Different sets of bit patterns have been designed to represent.
Binary Representation in Text
Binary Representation in Text
Number Systems and Codes
Binary Numbers and ASCII and EDCDIC
Ch2: Data Representation
Presenting information as bit patterns
ECB2212-Digital Electronics Codes
How Computers Store Data
Learning Intention I will learn how computers store text.
Transforming Data into Information
Digital Representation of Data
ASCII and Unicode.
Presentation transcript:

1 INFORMATION IN DIGITAL DEVICES

2 Digital Devices Most computers today are composed of digital devices. –Process electrical signals. –Can only have two states. –States are: A high level of voltage: 5V DC A low level of voltage: 0V DC

3 Digital Devices PCs are digital electronic systems. PCs process data in digital format. What a Digital Computer Understands: –Computer is a digital electronic device, so it recognizes high voltage levels (1, or 5V DC), and low voltage levels (0, or 0V DC).

4 BINARY LANGUAGE AND LOGIC Logic values used in computer corresponds to binary, Base-2 number system. –Uses two values, 0 and 1. Binary digit is referred to as a bit. Representing information using bits: –Very little can be conveyed by a single bit. True or false can be conveyed.

5

6 To represent more than one person’s presence or absence, need more bits: i.e., 100 bits for 100 people. Or a group of bits used together could represent 100 people (2 7 = 128), plus one bit to represent state (present or absent). Joe’s number is 4 or If Joe is present, the representative number is If Joe is absent the number is

7 Two bits can represent 2 2 = 4 different combinations. Any number, letter, or symbol can be described by organizing a group of related bits into coded bit patterns called words. A bit is a basic unit of information. A nibble is a group of 4 bits and can represent 16 things. A byte is a group of 8 bits and can represent 256 things.

8 Three types of computer words exist: –Binary data words- numeric –Coded data words- alphanumeric (text and numbers) –Instruction words- programs Data: Raw, unprocessed facts. –Such as pay rate and hours worked. After the data is processed it becomes information. –Such as total wages.

9 To process data into information it must be transformed from the human understandable form to machine understandable form (digital). –Known as character encoding. Characters are turned into a series of 1s and 0s. –Can be encoded according to a variety of standards: ASCII (American Standard Code for Information Interchange) - uses 7 bits, used in PCs. EBCDIC (Extended Binary Coded Decimal Interchange Code) uses 8 bits, IBM mainframes. Unicode and ISO10646 uses 16 bits, Windows NT

10 Representing Numbers –Digital electronics represent any number with voltage (1) or absence of voltage (0) in an array of cables. –This two state system known as binary. –Decimal system known as decimal because 10 symbols are used To represent more than 9 more digits are used. 505 = 5x10 0 =5x1=5 0x10 1 =0x10=0 5x10 2 =5x100=500 Base-10 System

11 In binary, to represent more than 1, two or more digits are used. 101 binary= 1x2 0 =1x1=1 0x2 1 =0x2=0 1x2 2 =1x4=1 Total=5 Base-2 System

12 Word Size: –Used to describe computers because all internal devices are constructed to accommodate a given word length. –The larger the word size, the more powerful the computer because: more information can be moved at once there is a larger range of numbers and symbols recognized. –Different word sizes, most common is 8 bit (byte). 16 & 32 bit words are referred to in bytes, ie 2-byte, 4-byte.

13 Common to divide bytes into two 4-bit nibbles. Makes it easier to convert binary to hexidecimal. This would represent 9D in hexidecimal.

14

15 Converting to decimal: Computer words are rarely converted to decimal unless done so by hardware.

16 Numeric Data Words: –Contain only numbers and represent a quantity in binary, hexidecimal, or binary coded decimal (BCD), or octal (base-8). Can easily convert BCD to decimal.

17

18 Alphanumeric Words: –Computer must be capable of handling letters and special characters. –Done with coded binary patterns. –In ASCII (American Standard Code for Information Inter-change) characters of the alphabet, decimal numbers, special symbols, punctuation, are assigned a 7-bit pattern. –Some codes are control codes and are used to modify functions associated with other characters. Used when working with peripheral devices.

19

20 ASCII code is 7 bits, but computer world is 8 bits. Some applications pad 8th bit (MSB) with 0, some applications pad 8th bit with 1 to produce extended ASCII code of 256 characters. More often the MSB is used for error checking. Error checking is done when computer sends alphanumeric data to peripherals or other computer. –Parity bit assumes certain value dependent upon the number of 1’s in character.

21 Odd Parity –The parity bit assumes a value of ‘1’ or ‘0’ so that the total number of ‘1’ bits in the character is odd. Even Parity –The parity bit assumes a value of ‘1’ or ‘0’ so that the total number of ‘1’ bits in the character is even. When the peripheral receives the byte it regenerates the parity bit and compares it with the parity bit sent. If they are the same then no error occurred. This only works for single bit errors.

22 Instruction Words: –Tells the computer what operation to perform and where to find the data on which to perform. –Instruction set (operations) varies from computer to computer. Format of words varies also. But convey same types of information.

23

24 First example - contains only operation code (op code) such as HALT. Second example - contains op code and the operand (data to be worked on) address. Third example - op code followed by two pieces of data such as the address of what to work on and where to store the result. These instruction formats as in machine language, 1s and 0s.

25 Moving Words Around - most frequent operation of a computer. Information is moved in the form of words. Two modes for moving words: –Parallel: entire word is moved at once. –Serial: word is moved a bit at a time.

26