Number Systems & Logic Gates Day 1

Slides:



Advertisements
Similar presentations
Computer Basics Binary Bits & Bytes
Advertisements

Vocabulary Electronic pulses Transistors Decimal numbers
Information Representation
Computer Codes Rohit Khokher. Computer Codes Data types NumericNonnumeric IntegerRealAlphabet A, B, C, …,Z a, b, c,…,z Digits 0,…,9 Special Characters.
1 Chapter 2 The Digital World. 2 Digital Data Representation.
Digital Data Representation
©1999 Addison Wesley Longman2.1 A Bit About Bits A bit (binary digit) –is the smallest unit of information –can have two values - 1 and 0. Binary digits,
Representing Data, Pictures, Time, and Size in Computer
Processing Data.
Binary Expression Numbers & Text CS 105 Binary Representation At the fundamental hardware level, a modern computer can only distinguish between two values,
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
Introduction to Information Technology
IT-101 Section 001 Lecture #4 Introduction to Information Technology.
Representing Information in Binary (Continued)
CODING SYSTEMS CODING SYSTEMS CODING SYSTEMS. CHARACTERS CHARACTERS digits: 0 – 9 (numeric characters) letters: alphabetic characters punctuation marks:
Bits, Bytes, KiloBytes, MegaBytes, GigaBytes & TeraBytes.
Communications Technology 2104 Mercedes Lahey. Bit 1. bit=From a shortening of the words “binary digit” 2. the basic unit of information for computers.
/4 Binary Code & CPUs Digital Signals
Memory Terminology & Data Representation CSCI 1060 Fall 2006.
Cosc175/data1 Data comprised of constants and variables information stored in memory Each memory location has an address Address - number identifying a.
Bits & Bytes: How Computers Represent Data
Computer Systems Chapter 1 Pages Hardware-physical pieces Key hardware components in a computer system: The physical parts. – Central processing.
MAC OS – Unit A Page: 10-11, Investigating Data Processing Understanding Memory.
Chapter 2 Computer Hardware
Copyright © 2003 by Prentice Hall Module 5 Central Processing Unit 1. Binary representation of data 2. The components of the CPU 3. CPU and Instruction.
Binary Arithmetic & Data representation
Data Representation A series of eight bits is called a byte. A byte can be used to represent a number or a character. As you’ll see in the following table,
Binary Code.
Hardware Data Storage.
 Explain the function of ASCII code  Describe the unit of data measurement: Bit, Bait, KB, MB, GB, TB  Describe the unit of clock speed Megahertz and.
What do computers know?  All they really know is on or off.  Kind of like a light switch  Computers aren’t nearly as smart as you are!
Numerical Representation Intro to Computer Science CS1510, Section 2 Dr. Sarah Diesburg 1.
1 3 Computing System Fundamentals 3.2 Computer Architecture.
Bits and Bytes IGCSE. A binary number is either a 0 or a 1 and is known as a 'bit' or b inary dig it. However, the CPU cannot deal with just one bit at.
 Bits & Bytes Bits & Bytes  Units of data Units of data  Storage devices Storage devices  Storage Types Storage Types  Secondary Storage Secondary.
Computer Science Binary. Binary Code Remember the power supply that is inside your computer and how it sends electricity to all of the components? That.
How We Measure Memory. Learning Goal Today we are going to learn how the computer stores information.
GCSE ICT Storing data - Internal memory, backing storage, and measuring memory.
Data Representation (in computer system). Data Representation How do computers represent data? b The computers are digital Recognize.
How We Measure Memory. At the Bottom of things A piece of digital information is always stored as a sequence of binary states. What’s that mean you ask???
Agenda Character representation Numerical Conversions ASCII EBCDIC
2.1.4 Data Representation Units.
ASCII AND EBCDIC CODES By : madam aisha.
A+ Computer Repair Lesson 3: Number System. Objectives Define binary, decimal, octal, and hexadecimal numbering systems. Define binary, decimal, octal,
Understanding Computers
Binary a. express numbers in binary, binary-coded decimal (BCD), octal and hexadecimal;
Binary Numbers. Base 10 and Base 2  We normally work with numbers in base 10.  In base 10 we use the digits 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9.  Everything.
CC111 Lec#2 The System Unit The System Unit: Processing and Memory Lecture 2 Binary System.
Understanding Binary Understanding Computers. Understanding Computers L3 – Understanding Binary Learning Objectives All will Understand why all data is.
Numerical Representation Intro to Computer Science CS1510 Dr. Sarah Diesburg 1.
Lecture Coding Schemes. Representing Data English language uses 26 symbols to represent an idea Different sets of bit patterns have been designed to represent.
Understanding binary Understanding Computers.
Computer basics.
INFS 211: Introduction to Information Technology
3.1 Denary, Binary and Hexadecimal Number Systems
Numerical Representation
Memory Parts of a computer
Bits & Bytes How Computers Represent Data
What is Binary? Binary is a two-digit (Base-2) numerical system, which computers use to process and store data. The reason computers use the binary system.
Lecture 3 ISE101: Computing Fundamentals
Numerical Representation
Information Representation
Numerical Representation
Chapter Four Data Representation in Computers By Bezawit E.
Learning Intention I will learn how computers store text.
Binary System.
Information Technology Department
Technology 3 Bits & Bytes.
WJEC GCSE Computer Science
Numerical Representation
Presentation transcript:

Number Systems & Logic Gates Day 1

Computerized ? Characters/ Words Colors Sounds Feelings

Data Representation How Data is Stored ( Either 0 or 1 ) BIT – B i n a r y d i g I T ( Either 0 or 1 ) Basic unit for storing data in main computer memory is the bit. A bit can represent one of only two values. bit 0 is said to be “off” bit 1 is said to be “on”

Data Representation byte – 8 bits 1 Many computers use a combination of 8 bits (called a byte) as a unit for storing data. Thus a byte is a location in the computer main memory consists of 8 adjacent bits. When a character is entered from the keyboard, the computer interprets the character and stores it as a series of bits being “on” and “off”.

Binary String Collection of bits/ bit sequence is called as a Binary String. Example 1,0,1 1,1,1,0,1,1 1,0,1,0,1,.0,1,0

Binary Strings n bit binary string represents 2n different Thus, 1 bit Binary String 21=2 0 - A 1 - B

Binary Strings Thus, 2 bit Binary String 22=4 00 - A 01 - B 10 - C 11 - D

Binary Strings Thus, 3 bit Binary String 23=8 000 - A 100 - E 001 - B 101 - F 010 - C 110 - G 011 - D 111 - H

Binary Strings Thus, 4 bit Binary String 24=16 0000 - A 1000 - J 0001 - B 1001 - K 0010 - C 1010 - L 0011 - D 1011 - M 0100 - E 1100 - N 0101 - G 1101 - O 0110 - H 1110 - P 0111 - I 1111 - Q

Binary Coded Decimal (BCD) BCD is a 4-bit code used for coding numerical values only. 4 bit Binary String 24=16 0000 - 0 1000 - 8 0001 - 1 1001 - 9 0010 - 2 0011 - 3 0100 - 4 0101 - 5 0110 - 6 0111 - 7

Binary Coded Decimal (BCD) The decimal number 109 can be coded as 1- 0001 (BCD) 0- 0000 (BCD) 9- 1001 (BCD) 1 0 9 0001 0000 1001 0001000010001

Binary Strings Thus, 5 bit Binary String 25=32

7 bit ASCII code The 7 bit ASCII (American Standard Code for Information Interchange) code was originally proposed by the American National Standard Institute (ANSI) and was developed by the International Organization for Standardization (ISO) and the Committee Consultants of International Telephone and Telegraphic (CCITT) into the international Alphabet (IA).

Character Codes – ASCII Number ASCII Letter ASCII 0 0110000 1 0110001 2 0110010 3 0110011 4 0110100 5 0110101 6 0110110 7 0110111 8 0111000 9 0111001 A 1000001 B 1000010 C 1000011 D 1000100 E 1000101 F 1000110 G 1000111 H 1001000 I 1001001

Character Codes – ASCII Letter ASCII Letter ASCII J 1001010 K 1001011 L 1001100 M 1001101 N 1001110 O 1001111 P 1010000 Q 1010001 R 1010010 S 1010011 T 1010100 U 1010101 V 1010110 W 1010111 X 1011000 Y 1011001 Z 1011010

EBCDIC Eight bit EBCDIC (Extended Binary Coded Decimal Interchange Code) is used by large IBM computers and compatible equipment (IBM Personal computers use ASCII). EBCDIC is sometimes called “8 bit ASCII”.

Character Codes – EBCDIC Each 8-bit byte is divided into two portions zone portion and digit portion digit portion is based on the binary number system digit zone 1 2 3 4 5 6 7 8

Character Codes – EBCDIC Numbers All zone bits “on” and binary digits Letters (A-I) Two zone bits (7, 8) “on” and binary digits Letters (J-R) Three zone bits (5, 7, 8) “on” and binary digits Letters (S-Z) Three zone bits (6, 7, 8) “on” and binary digits

Character Codes – EBCDIC Number EBCDIC Letter EBCDIC 0 11110000 1 11110001 2 11110010 3 11110011 4 11110100 5 11110101 6 11110110 7 11110111 8 11111000 9 11111001 A 11000001 B 11000010 C 11000011 D 11000100 E 11000101 F 11000110 G 11000111 H 11001000 I 11001001

Character Codes – EBCDIC Letter EBCDIC Letter EBCDIC J 11010001 K 11010010 L 11010011 M 11010100 N 11010101 O 11010110 P 11010111 Q 11011000 R 11011001 S 11100010 T 11100011 U 11100100 V 11100101 W 11100110 X 11100111 Y 11101000 Z 11101001

How Capacity is Expressed Kilobyte (KB) is about 1000 bytes 1024 Bytes (210 bytes) Megabyte (MB) is about 1 million bytes 1024 KB (220 bytes) Gigabyte (GB) is about 1 billion bytes 1024 MB (230 bytes) Terabyte (TB) is about 1 trillion bytes 1024 GB (240 bytes)

Radix Number Systems Each number system has a number of different set of digits which is called the radix or the base of the number system. Decimal Base=10 Binary Base=2 Octal Base=8 Hexadecimal (Hex) Base=16

Decimal Number System Base (Radix) 10 Digits 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 e.g. 562510 The magnitude representation by a digit is decided by the position of the digit within the number. 5 6 2 5 103=1000 102=100 101=10 100=1 For example the digit 5 in the left-most position of 5625 counts for 5000 and the digit 2 in the second position counts for 20.

Binary Number System Base (Radix) 2 Digits 0, 1 e.g. 11102 1 1 1 0 1 1 1 0 23=8 22=4 21=2 20=1 The digit 1 in the third position from the right represents the value 4 and the digit 1 in the fourth position from the right represents the value 8.