Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.

Slides:



Advertisements
Similar presentations
ECE 331 – Digital System Design
Advertisements

DATA REPRESENTATION CONVERSION.
Company LOGO Edit your slogan here DKT 122/3 DIGITAL SYSTEM 1 WEEK #3 NUMBER SYSTEMS, OPERATION & CODES (PART 2)
2.2 General Positional-Number-System Conversion
Binary & Decimal numbers = 3* * *10 + 5*1 = 3* * * *10 0 Decimal system: Ten digits: 0,1,2,3,…,9 Example:
ECE 301 – Digital Electronics Course Introduction, Number Systems, Conversion between Bases, and Basic Binary Arithmetic (Lecture #1)
ECE 301 – Digital Electronics Number Systems and Conversion, Binary Arithmetic, and Representation of Negative Numbers (Lecture #10) The slides included.
Mathematics with Binary. Question  Below is a binary string  Which is the least significant bit (LSB)?  Which is the most significant bit (MSB)? 0.
Number System Conversions Lecture L2.2 Section 2.3.
1 Number Systems. 2 Numbers Each number system is associated with a base or radix – The decimal number system is said to be of base or radix 10 A number.
Number Systems and Arithmetic
+ CS 325: CS Hardware and Software Organization and Architecture Integers and Arithmetic.
Converting binary to decimal decimal to binary
Digital Logic Design ESGD2201
Revision Introductory Lesson
Number Systems.
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
Lecture 7 How computers process data (Number Systems) PRESENTED BY MD. MAHBUBUL ALAM, PHD 1.
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
NUMBER SYSTEM.
1-1 Lecture 1 Class Overview and Appendix A -- Number Systems.
CONVERSION OF NUMBER SYSTEMS FAHEEM ANWAR MANAGER NETWORKS ACADEMY PTCL ACADEMY.
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
ECE 331 – Digital System Design
Mohammad Amin Kuhail M.Sc. (York, UK) University of Palestine Faculty of Engineering and Urban planning Software Engineering Department Digital Logic Design.
Course contents Chapter 1 - section 1.6 Chapter 2 - all sections Chapter – 4.7, and 4.12 Chapter , Chapter 6 - all sections.
Number systems, Operations, and Codes
Digital Logic Lecture 2 Number Systems
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
Number Base Conversions
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section
Chapter 1  Number Systems Decimal System Binary System Octal System Hexadecimal System  Binary weighted cods Signed number binary order  1’s and 2’s.
Chapter 2 Number Systems Consists of a set of symbols called digits and a set of relations such as +, -, x, /.
NUMBER SYSTEM. Number System Number Base B => B symbols – Base 16(Hexa):0, 1,……9, A,…, E, F – Base 10 (Decimal): 0, 1, 2,……, 7, 8, 9 – Base 8(Octal):
Computer Number System
Lecture 6: Floating Point Number Representation Information Representation: Floating Point Number Representation Lecture # 7.
Lecture No. 4 Computer Logic Design. Negative Number Representation 3 Options –Sign-magnitude –One’s Complement –Two’s Complement  used in computers.
Number Systems and Binary Arithmetic Quantitative Analysis II Professor Bob Orr.
1 Digital Logic Design (41-135) Chapter 5 Number Representation & Arithmetic Circuits Younglok Kim Dept. of Electrical Engineering Sogang University Spring.
EEE 301 : Digital ELECTRONICS Amina Hasan Abedin Senior lecturer, Dept of EEE, BRAC University.
CPE 201 Digital Design Lecture 2: Digital Systems & Binary Numbers (2)
Binary & Decimal numbers
Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section
Digital Design Chapter One Digital Systems and Binary Numbers
Number Systems.
CSE 102 Introduction to Computer Engineering
Number System conversions
Number Systems and Binary Arithmetic
MMNSS COLLEGE,KOTTIYAM DEPARTMENT OF PHYSICS
Data Representation in Computer Systems
Binary Number System And Conversion
Digital Electronics and Microprocessors
Chapter 2: Number Systems
Digital Logic Design (CSNB163)
ECE 301 – Digital Electronics
Number Systems.
Number Systems Rayat Shikshan Sanstha’s
Binary Addition (1 of 2) Two 1-bit values A B A + B 1
Binary to Decimal Conversion
Number Systems Rayat Shikshan Sanstha’s
Number Systems.
Arithmetic Operation By: Asst Lec. Besma Nazar Nadhem
Number Systems By: Asst Lec. Besma Nazar Nadhem
Chapter 2 Number System.
ATS’s COLLEGE OF ENGINEERING, MIRAJ Subject:- Basic Electronics Lecturer:- Amit Totade.
Presentation transcript:

Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department Digital Logic Design ESGD2201 Wednesday, 10 th September 2008 Lecture 2 Number Systems

1. Decimal Number 2. Binary Numbers 2.1 Binary to Decimal Conversion 2.2 Decimal to Binary Conversion 3. Octal Numbers 3.1 Octal to Decimal Conversion 3.2 Decimal to Octal Conversion 3.3 Binary to Octal Conversion 3.4 Octal to Binary Conversion 4. Hexa Decimal Numbers 4.1 Binary to Hexa Decimal Conversion 4.2 Hexa Decimal to Binary Conversion 4.3 Hexa Decimal to Decimal Conversion 4.4 Decimal to Hexa Decimal Conversion Agenda

1- Decimal Number: [Base10], * Integer Number:[0,1,2,3,………..9] Example:- [23] 10 =3× × 10 1 =3 × 1+2 × 10 =3+20= 23 Number Systems

Decimal Number *Float Number: [16. 15] Integer partfloat part Decimal Point Example:- [16.15] 16.15=6* * * *10 -2 = =16.15 … …..Decimal Point Number Systems

2. Binary Numbers: [Base 2],[ 0,1] ex:- 00,01,10,11 Decimal Binary Number Systems

2-1 Binary to Decimal Conversion: Example:- [ ] MSBLSB Most significant BIT Least Significant Bit Number Systems

2-1 Binary to Decimal Conversion: Example:- For integer numbers, [ ] 2 = [ ? ] [ ] 2 =1×2 0 +0×2 1 +1×2 2 +1×2 3 +0×2 4 +1×2 5 +1×2 6 =[109] 10 MSBLSB

Number Systems 2-1 Binary to Decimal Conversion: Example:- For float numbers, [10.111] 2 = [ ? ] [10.111] 2 =0×2 0 +1×2 1 +1× × ×2 -3 =[2.875] 10 Note: MSB & LSB just for integer part. Binary point

Number Systems 2-1 Binary to Decimal Conversion: Example:- [1011] 2 = [ ? ] [1011] 2 =1×2 0 +1×2 1 +0×2 2 +1×2 3 =[11] 10

Number Systems 2-2 Decimal to Binary Conversion: There are two ways to convert the decimal numbers to binary numbers. 1.By using the Truth Table: we can use the truth table for small decimal numbers, but for large decimal numbers it will be more difficult. 2.So, we will use the division: which we can use it for small and large decimal numbers

Binary Decimal Number Systems The Truth Table Decimal to Binary Conversion:

Number Systems Decimal to Binary Conversion: The Division: [198] 10 = [ ? ] 2 By using the division system: Carrier

Number Systems Decimal to Binary Conversion: The Division: For float numbers, [0.3125] 10 = [ ? ] 2 By using the multiplication system: Carrier × 2 = × 2 = × 2 = × 2 = 1.00 Continuo to the desired number of decimal places or stop when fractional part is all zero MSB LSB

3. Octal Numbers: [Base 8],[ 0,1,3,4,5,6,7] Number Systems 3-1 Octal to Decimal Conversion: Example:- [2374] 8 = [ ? ] 10 =4×8 0 +7×8 1 +3×8 2 +2×8 3 =[1276] 10

Number Systems 3-2 Decimal to Octal Conversion: The Division: [359] 10 = [ ? ] 8 By using the division system: Carrier

Number Systems 3-3 Binary to Octal Conversion: Example:- [110101] 2 = [ ? ] 8 Here we will take 3 bits and convert it from binary to decimal by using the decimal to binary truth table: BinaryDecimal = (65) 8 {{ 65

Number Systems 3-4 Octal to Binary Conversion: Example:- [13] 8 = [ ? ] 2 Here we will convert each decimal digit from decimal to binary (3 bits) using the decimal to binary truth table: BinaryDecimal (13) 8 = (001011) 2

4. Hexa Decimal Numbers: [Base 16],[ 0,1,3,4,5,6,7,8,9,A,B,C,D,E,F] Number Systems 4-1 Binary to Hexa Decimal Conversion: Example:- [ ] 2 = [ ? ] 16 Here we will take 4 bits and convert it from binary to decimal by using the decimal to binary truth table: {{{{ CA75 Then, [ ] 2 = [CA57] 16

Number Systems 4-2 Hexa Decimal to Binary Conversion: Example:- [DE27] 16 = [ ? ] 2 Here we will convert each Hexa decimal digit from decimal to binary (4 bits) using the decimal to binary truth table: DE72 Then, [DE27] 16 = [ ]

Number Systems 4-3 Hexa Decimal to Decimal Conversion: Example:- [B2F8] 16 = [ ? ] 10 =8×16 0 +F× ×16 2 +B×16 3 =[45816] 10 Where, B=11, and F=15

Number Systems 4-4 Decimal to Hexa Decimal Conversion: Example:- [650] 10 = [ ? ] 16 By using the division system: Carrier A8 2