C.S. Choy1 ITM1010 COMPUTER AND COMMUNICATION TECHNOLOGIES Prof. C.S. Choy, room 412 Prof. H.K. Tsang, room 306 Tutors: CY Poon ZJ Zhang CW Lee SK Cheung.

Slides:



Advertisements
Similar presentations
HEXADECIMAL NUMBERS Code
Advertisements

ECE 331 – Digital System Design
Number Systems Decimal (Base 10) Binary (Base 2) Hexadecimal (Base 16)
CSCE 211: Digital Logic Design Chin-Tser Huang University of South Carolina.
VIT UNIVERSITY1 ECE 103 DIGITAL LOGIC DESIGN CHAPTER I NUMBER SYSTEMS AND CODES Reference: M. Morris Mano & Michael D. Ciletti, "Digital Design", Fourth.
Number Systems and Codes Discussion D4.1. Number Systems Counting in Binary Positional Notation Hexadecimal Numbers Negative Numbers.
Number System and Codes
Data Representation – Chapter 3 Sections 3-2, 3-3, 3-4.
Data Storage. SIGN AND MAGNITUDE Storing and representing numbers.
Mantıksal Tasarım – BBM231 M. Önder Efe
1 Lecture 2: Number Systems Binary numbers Base conversion Arithmetic Number systems  Sign and magnitude  Ones-complement  Twos-complement Binary-coded.
1.6 Signed Binary Numbers.
Programmable Logic Controllers
ACOE1611 Data Representation and Numbering Systems Dr. Costas Kyriacou and Dr. Konstantinos Tatas.
Lecture 5.
Computers Organization & Assembly Language
EKT 121 / 4 ELEKTRONIK DIGIT 1 CHAPTER 1 : INTRODUCTION.
Binary Codes Computers and other digital systems "work" with binary numbers. I/P & O/P is usually done using decimal numbers, alphabetics, special symbols.
Digital Systems and Logic Design
Logic and Digital System Design - CS 303
1 Digital Technology and Computer Fundamentals Chapter 1 Data Representation and Numbering Systems.
Binary Arithmetic & Data representation
1 Digital Systems and Binary Numbers EE 208 – Logic Design Chapter 1 Sohaib Majzoub.
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 2 Number.
Digital Arithmetic and Arithmetic Circuits
Lec 3: Data Representation Computer Organization & Assembly Language Programming.
ECEN2102 Digital Logic Design Lecture 1 Numbers Systems Abdullah Said Alkalbani University of Buraimi.
Number Systems Spring Semester 2013Programming and Data Structure1.
CS151 Introduction to Digital Design
Information Representation. Digital Hardware Systems Digital Systems Digital vs. Analog Waveforms Analog: values vary over a broad range continuously.
Logic Design Dr. Yosry A. Azzam. Binary systems Chapter 1.
1 Digital Design: Number Systems Credits : Slides adapted from: J.F. Wakerly, Digital Design, 4/e, Prentice Hall, 2006 C.H. Roth, Fundamentals of Logic.
Number Systems Decimal (Base 10) –10 digits (0,1,2,3,4,5,6,7,8,9) Binary (Base 2) –2 digits (0,1) Digits are often called bits (binary digits) Hexadecimal.
Representation of Data Ma King Man. Reference Text Book: Volume 2 Notes: Chapter 19.
Number systems & Binary codes MODULE 1 Digital Logic Design Ch1-2 Outline of Chapter 1  1.1 Digital Systems  1.2 Binary Numbers  1.3 Number-base Conversions.
CE1111 :Digital Logic Design lecture 01 Introduction Dr. Atef Ali Ibrahim.
1 EENG 2710 Chapter 1 Number Systems and Codes. 2 Chapter 1 Homework 1.1c, 1.2c, 1.3c, 1.4e, 1.5e, 1.6c, 1.7e, 1.8a, 1.9a, 1.10b, 1.13a, 1.19.
ECE 301 – Digital Electronics Unsigned and Signed Numbers, Binary Arithmetic of Signed Numbers, and Binary Codes (Lecture #2)
Summer 2012ETE Digital Electronics1 Binary Arithmetic of Signed Binary Numbers.
Chapter 1: Digital Computers and Information Illustration at beginning of each Chapter Base 10 Binary Base 2 Octal Base 8 Hex bas
Complements and Codes by Dr. Amin Danial Asham. References  Digital Design 5 th Edition, Morris Mano  Programmable Controllers-Theory and Implementation,
Number Systems Decimal (Base 10) –10 digits (0,1,2,3,4,5,6,7,8,9) Binary (Base 2) –2 digits (0,1) Digits are often called bits (binary digits) Hexadecimal.
Tasanawan Soonklang Department of Computing, Faculty of Science Data Representation.
ECE 331 – Digital System Design Representation and Binary Arithmetic of Negative Numbers and Binary Codes (Lecture #10) The slides included herein were.
Digital Circuits Text Book –M. M. Mano, "Digital Design," 3rd Ed., Prentice Hall Inc., Reference –class notes Grade –quizzes:15% –mid-term:27.5%
Tutorial: ITI1100 Dewan Tanvir Ahmed SITE, UofO
ECE 301 – Digital Electronics Representation of Negative Numbers, Binary Arithmetic of Negative Numbers, and Binary Codes (Lecture #11) The slides included.
Ahmad Almulhem, KFUPM 2009 COE 202: Digital Logic Design Number Systems Part 4 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
CSCE 211: Digital Logic Design Chin-Tser Huang University of South Carolina.
Orange Coast College Business Division Computer Science Department CS 116- Computer Architecture Logic Design: Part 1.
Chapter 1: Binary Systems
IT1004: Data Representation and Organization Negative number representation.
NUMBER SYSTEMS AND CODES. CS Digital LogicNumber Systems and Codes2 Outline Number systems –Number notations –Arithmetic –Base conversions –Signed.
CCE Department – Faculty of engineering - Islamic University of Lebanon Chapter 6 Binary Arithmetic.
CSC 331: DIGITAL LOGIC DESIGN COURSE LECTURER: E. Y. BAAGYERE. CONTACT: LECTURE TIME: 15:40 – 17:45 hrs. VENUE: SP-LAB.
ECE DIGITAL LOGIC LECTURE 3: DIGITAL COMPUTER AND NUMBER SYSTEMS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/19/2016.
ECE DIGITAL LOGIC LECTURE 4: BINARY CODES Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/26/2016.
Lecture 1.2 (Chapter 1) Prepared by Dr. Lamiaa Elshenawy
Nguyen Le CS147.  2.4 Signed Integer Representation  – Signed Magnitude  – Complement Systems  – Unsigned Versus Signed Numbers.
BINARY SYSTEMS ENGR. KASHIF SHAHZAD 1. BINARY NUMBERS 1/2 Internally, information in digital systems is of binary form groups of bits (i.e. binary numbers)
Lecture No. 4 Computer Logic Design. Negative Number Representation 3 Options –Sign-magnitude –One’s Complement –Two’s Complement  used in computers.
Dr. Nermin Hamza. Agenda Signed Numbers Properties of Switching Algebra.
N 3-1 Data Types  Binary information is stored in memory or processor registers  Registers contain either data or control information l Data are numbers.
11001 / 101, / ) Perform subtraction on the given unsigned binary numbers using the 2's complement of the subtrahend. Where the result.
Lec 3: Data Representation
11001 / 101 , / ) Perform subtraction on the given unsigned binary numbers using the 2's complement of the subtrahend. Where the.
CHAPTER 1 : INTRODUCTION
Data Representation Data Types Complements Fixed Point Representation
Data Representation – Chapter 3
ECE 331 – Digital System Design
Presentation transcript:

C.S. Choy1 ITM1010 COMPUTER AND COMMUNICATION TECHNOLOGIES Prof. C.S. Choy, room 412 Prof. H.K. Tsang, room 306 Tutors: CY Poon ZJ Zhang CW Lee SK Cheung Assignments Mid-term Final

C.S. Choy2 FIRST-HALF TERM SCHEDULE Week (Monday) 8/1Introduction and Number System 15/1Logic Gates and Boolean Algebra 22/1Chinese New Year 29/1Conference Leave 5/2Digital Design 12/2Sequential Logic Design 19/2Computer Organization 21/3Mid-term Examination

C.S. Choy3 RECOMMENDED BOOKS Digital Electronics – A Simplified Approach by R.D. Thompson Prentice Hall The Digital Information Age by R. Kuc PWS Publishing

C.S. Choy4 INFORMATION SYSTEMS Process – amplifier, scanner, MP3 player Transmit – telephone network Store – tape and harddisk

C.S. Choy5 Why Digital (Binary System)? Information Integrity Better noise immunity Information Manipulation Computer is a binary system and its programmable characteristics offer the greatest flexibility

C.S. Choy6 SOURCES OF DIGITAL INFORMATION Analog Signal Representation of Number Values DecimalBinary

C.S. Choy7 BINARY NUMBER SYSTEM e.g. ( ) 2 =

C.S. Choy8 BINARY NOTATION Digit is called BIT. Possible representations: 1 0 highlow truefalse LSB – Least Significant Bit Bit change with the least effect HSB – Most Significant Bit Bit change with the most effect

C.S. Choy9 BINARY MATHEMATICS Addition = = Subtraction –Rules0 – 0 = 0 1 – 0 = 0 1 – 1 = 0 10 – 1 = 1

C.S. Choy10 BINARY MATHEMATICS Multiplication 1101 x 101 = x 5 10 = Division ÷ 101 = ÷ 5 10 =

C.S. Choy11 SIGNED BINARY NUMBER Ones (1s) Complement The 1s complement of a binary number of a binary number is derived by subtracting each bit in the number to be complemented from 1. e.g. 1s complement of 1100

C.S. Choy12 SIGNED BINARY NUMBER The use of complementary representation allows the subtraction process to be accomplished using addition. Positive result – high end-round carry Negative result – low end-round carry

C.S. Choy13 SIGNED BINARY NUMBER Twos (2s) Complement The 2s complement of a binary number is the 1s complement plus 1. Positive result – high carry Negative result – low carry

C.S. Choy14 SIGN BIT The use of a single bit, usually the leftmost bit to indicate the sign of a number. The meaning of the sign bit can be fixed arbitrarily. But normally, sign bit 0 - positive number 1 - negative number e.g = = 0101 Note: the magnitude of a number is represented by the lower three bits

C.S. Choy15 SIGN BIT 1s Complement2s Complement range: -7 – +7 range: -8 – +7 The leftmost bit still indicates sign. In complement representation, two numbers can be added or subtracted as usual. e.g. 6 + (-2)

C.S. Choy16 OVERFLOW CONDITIONS Overflow occurs whenever the sum of two positive numbers yields a negative result or when two negative numbers are summed and the result is positive. Overflow can be detected by the difference in the carry-in and carry-out of the sign bit.

C.S. Choy17 HEXADECIMAL

C.S. Choy18 BINARY-CODED DECIMAL BCD

C.S. Choy19 GRAY CODE

C.S. Choy20 AMERICAN STANDARD CODE FOR INFORMATION INTERCHANGE, ASCII The ASCII encodes the letters in the alphabet as well as numbers, it is an alphanumeric code. It is a 7-bit code so allows representation of 128 different characters and commands. upper-case and lower-case letters decimal numbers punctuation marks special symbols command codes for formatting text Extended ASCII 8-bit code allows for 128 additional graphics characters.