Introduction to signals The signals are broadly classified into two categories: 1. Analog Signals. 2. Digital signals.

Slides:



Advertisements
Similar presentations
Chapter 1 Digital Systems and Numbers System
Advertisements

Digital Fundamentals Floyd Chapter 2 Tenth Edition
Number Systems Decimal (Base 10) Binary (Base 2) Hexadecimal (Base 16)
Chapter Chapter Goals Know the different types of numbers Describe positional notation.
VIT UNIVERSITY1 ECE 103 DIGITAL LOGIC DESIGN CHAPTER I NUMBER SYSTEMS AND CODES Reference: M. Morris Mano & Michael D. Ciletti, "Digital Design", Fourth.
Data Representation in Computers
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.
BASICS OF COMPUTER APPLICATIONS ASB 102. UNIT 1 Introducing computer system  Number system  What is number system?  Types of number system  Their.
Number Systems Lecture 02.
Number Systems and Codes
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
ACOE1611 Data Representation and Numbering Systems Dr. Costas Kyriacou and Dr. Konstantinos Tatas.
CS105 INTRODUCTION TO COMPUTER CONCEPTS BINARY VALUES & NUMBER SYSTEMS Instructor: Cuong (Charlie) Pham.
EKT 121 / 4 ELEKTRONIK DIGIT 1 CHAPTER 1 : INTRODUCTION.
#1 Lec # 2 Winter EECC341 - Shaaban Positional Number Systems A number system consists of an order set of symbols (digits) with relations.
Chapter 3 Data Representation
The Digital Codes.
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 2 Number.
NUMBER SYSTEM AND COMPUTER CODES Chapter 2. Prelude Fingers, sticks, and other things for counting were not enough! Counting large numbers Count in groups.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION.
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.
مدار منطقي مظفر بگ محمدي Course Structure & Grading Homework: 25% Midterm: 30% Final:50% There is 5% extra! ( =105!) Textbook:
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
Chapter 2 Binary Values and Number Systems. 2 2 Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645,
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.
Number systems, Operations, and Codes
Chapter1: Number Systems
Positional Notation 642 in base 10 positional notation is:
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.
Data Representation, Number Systems and Base Conversions
AEEE2031 Data Representation and Numbering Systems.
WEEK #2 NUMBER SYSTEMS, OPERATION & CODES (PART 1)
Digital Fundamentals Tenth Edition Floyd Chapter 2 © 2008 Pearson Education.
School of Computer and Communication Engineering, UniMAP Mohd ridzuan mohd nor DKT 122/3 - DIGITAL SYSTEM I Chapter.
Orange Coast College Business Division Computer Science Department CS 116- Computer Architecture Logic Design: Part 1.
Computer Number System
Chapter 1 Number Systems Digital Electronics. Topics discussed in last lecture Digital systems Advantages of using digital signals over analog. Disadvantages.
Number Systems. ASCII – American Standard Code for Information Interchange – Standard encoding scheme used to represent characters in binary format on.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
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.
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.
Prepared By: Norakmar Binti Mohd Nadzari CHAPTER 2 ARITHMETIC AND LOGIC UNIT.
CPE 201 Digital Design Lecture 2: Digital Systems & Binary Numbers (2)
Unit 1 Introduction Number Systems and Conversion.
Some basic concepts underlying computer archi­tecture
Introduction To Number Systems
Number Systems & Binary Arithmetic
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
Lecture No. 4 Number Systems
NUMBER SYSTEM Prepared by: Engr Zakria.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
CHAPTER 1 : INTRODUCTION
Introduction The term digital is derived from the way computers perform operation, by counting digits. Application of digital technology: television, communication.
COMPUTING FUNDAMENTALS
Digital Electronics Number Systems and Codes
Chapter 3 Data Representation
Number System conversions
Number Systems.
IT 0213: INTRODUCTION TO COMPUTER ARCHITECTURE
MMNSS COLLEGE,KOTTIYAM DEPARTMENT OF PHYSICS
Digital Electronics & Logic Design
Numbering System TODAY AND TOMORROW 11th Edition
Digital Logic Design (ECEg3141) 2. Number systems, operations & codes 1.
Digital Systems and Binary Numbers
Binary to Decimal Conversion
ECE 331 – Digital System Design
COE 202: Digital Logic Design Number Systems Part 2
CHAPTER 69 NUMBER SYSTEMS AND CODES
Presentation transcript:

Introduction to signals The signals are broadly classified into two categories: 1. Analog Signals. 2. Digital signals.

Analog Signals These signals have infinite number of different magnitudes / values. They varies continuously with respect to time. Ex= Sine wave, triangular wave. Digital Signals These signals have only finite number of predetermined distinct magnitudes. Ex= Binary signal. 1 t -v +v t

Introduction to Analog & Digital system Analog System A system which process the analog signals are called as Analog system. Ex = Filter, Amplifier, Signal generator, Motors speed controller. Digital System A system which work on digital signal is called as digital system. Ex = Register, Flip flop, Counters etc.

INTRODUCTION TO NUMBER SYSTEM Def:= Number system defines a set of values used to represents quantity. Following are the different number systems. Decimal Number system. Binary Number system. Octal Number system. Hexadecimal Number system.

DECIMAL NUMBER SYSTEM Contains 10 unique symbols 0,1,2,3,4,5,6,7,8 & 9. The base / radix is 10. Positional Weighted system & its positional weights are 10 0, 10 1, 10 2, 10 3 etc. Ex. [1234] 10 1) [1234] 10 = 1* * * *10 0 = ) [12.34] 10 = 1* * * *10 -2 = Decimal point

BINARY NUMBER SYSTEM Contains only two symbols, 0 & 1. The base / radix is 2. Positional Weighted system & its positional weights are 2 3, 2 2, 2 1, 2 0 etc. Binary digit is called as a BIT. Ex. [1010] 2 1) [1010] 2 = 1* *2 2 +1*2 1 +0*2 0 2) [10.10] 2 = 1* *2 0 +1* *2 -2

OCTAL NUMBER SYSTEM Contains eight symbols, 0,1,2,3,4,5,6 & 7. The base / radix is 8. Positional Weighted system & its positional weights are 8 3, 8 2, 8 1, 8 0 etc. Octal numbers is 3 bit numbers. Ex. [23] 8 1) [23] 8 = 2*8 1 +3*8 0 2) [23.16] 8 = 2*8 1 +3* * *8 -2

HEXADECIMAL NUMBER SYSTEM Contains 16 symbols, 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E & F. The base / radix is 16. Positional Weighted system & its positional weights are 16 3, 16 2, 16 1, 16 0 etc. Hexadecimal numbers is 4 bit numbers. Ex. [09AB] 16 1) [09AB] 16 = 0* * A* B*16 0 2) [AB.12] 16 = A* B* * *16 -2

NUMBER SYSTEM CONVERSION There are 12 types of number system conversion. 1) Binary to Decimal number Conversion 2) Binary to Octal number Conversion 3) Binary to Hexadecimal number Conversion 4) Decimal to Binary number Conversion 5) Decimal to Octal number Conversion 6) Decimal to Hexadecimal number Conversion 7) Octal to Binary number Conversion 8) Octal to Decimal number Conversion 9) Octal to Hexadecimal number Conversion 10) Hexadecimal to Binary number Conversion 11) Hexadecimal to Decimal number Conversion 12) Hexadecimal to octal number Conversion

BINARY TO DECIMAL CONVERSION Steps: 1) Write the Binary number. 2) Multiply each binary digit by its positional weight. 3) Add the product terms to obtain the decimal number. Example: 1) [1011] 2 = [ ] 10 [1011] 2 = 1* * * *2 0 = = 11 [1011] 2 = [11] 10 2) [10.10] 2 = [ ] 10 [10.10] 2 = 1* * * *2 -2 = = 2.5 [10.10] 2 = [ 2.5 ] 10

DECIMAL TO BINARY CONVERSION The decimal integer is converted to binary integer by Successive Division by 2 & the decimal fraction is converted into binary fraction by Successive Multiplication by 2. This is known as Double-Dabble Method. 1) Successive Division by 2 The number is successively divided by 2 till the quotient is 0. Last Remainder is MSB. Remainders read from bottom to top, gives binary integer. 2) Successive Multiplication by 2 The number is successively multiplied by 2 till the fraction part of the product is 0 or till the desired accuracy. First Integer is MSB. Integers read from top to bottom, gives binary fraction.

DECIMAL TO BINARY CONVERSION 1) [10] 10 = [ ] 2 Q R 10/ /2 2 1 [10] 10 = [ 1010 ] 2 2/ / ) [2.5] 10 = [ ] 2 a) For Integer partb) For Fractional part Q R 2/ *2 = /2 0 1 [2.5] 10 =[10.1] 2

OCTAL TO DECIMAL CONVERSION Steps: 1) Write the Octal number. 2) Multiply each octal digit by its positional weight. 3) Add the product terms to obtain the decimal number. Example: 1) [27] 8 = [ ] 10 [27] 8 = 2× ×8 0 = = 23 [27] 8 = [ 23 ] 10 2) [23.23] 8 = [ ] 10 = 2× × × ×8 -2 = [23.23] 8 = [19.29] 10

DECIMAL TO OCTAL CONVERSION The decimal integer is converted to octal integer by Successive Division by 8 & the decimal fraction is converted into octal fraction by Successive Multiplication by 8. 1) Successive Division by 8 The number is successively divided by 8 till the quotient is 0. Last Remainder is MSB. Remainders read from bottom to top, gives octal integer. 2) Successive Multiplication by 8 The number is successively multiplied by 8 till the fraction part of the product is 0 or till the desired accuracy. First Integer is MSB. Integers read from top to bottom, gives octal fraction.

DECIMAL TO OCTAL CONVERSION 1) [19] 10 = [ ] 8 Q R 19/ /8 0 2 [19] 10 =[23] 8 2) [0.296] 10 =[ ] 8 For Fractional part 0.296*8 = *8 = *8 = [0.296] 10 = [ ] 8

HEXADECIMAL TO DECIMAL CONVERSION Steps: 1) Write the Hexadecimal number. 2) Multiply each hexa digit by its positional weight. 3) Add the product terms to obtain the decimal number. Example: 1) [9.AB] 16 = [ ] 10 [9.AB] 16 = 9× A× B×16 -2 = 9×1 + 10× ×16 -2 = = [ ] 10

DECIMAL TO HEXADECIMAL CONVERSION The decimal integer is converted to hexadecimal integer by Successive Division by 16 & decimal fraction is converted into hexa fraction by Successive Multiplication by 16. 1) Successive Division by 16 The number is successively divided by 16 till the quotient is 0. Last Remainder is MSB. Remainders read from bottom to top, gives hexadecimal integer. 2) Successive Multiplication by 16 The number is successively multiplied by 16 till the fraction part of the product is 0 or till the desired accuracy. First Integer is MSB. Integers read from top to bottom, gives hexadecimal fraction.

DECIMAL TO HEXADECIMAL CONVERSION 1)[95] 10 =[ ] 16 Q R 95/ (F) 5/ [95] 10 = [5F] 16 2) [95.95] 10 =[ ] 16 a) For real part b) For Fractional part [95] 10 = [ 5F] *16 = *16 = [.95] 10 = [.F33 ] 16 [95.95] 10 = [ 5F.F33 ] 16

BINARY TO OCTAL CONVERSION 1) Make a group of 3-bit. 2) Integer part: Start from LSB & moving towards MSB, replace each group of 3-bit by its octal number. 3) Fractional part: Start from MSB & moving towards LSB, replace each group of 3-bit by its octal number. Example: [ ] 2 = = = [ ] 8

OCTAL TO BINARY CONVERSION Replace each octal digit by its 3 bit binary equivalent. [23.36] 8 = = = [ ] 2

BINARY TO HEXADECIMAL CONVERSION 1) Make a group of 4-bit. 2) Integer part: Start from LSB & moving towards MSB, replace each group of 4-bit by its hexadecimal number. 3) Fractional part: Start from MSB & moving towards LSB, replace each group of 4-bit by its hexadecimal number. [ ] 2 = = 1 E A. A A 8 = [1EA.AA8] 16

HEXADECIMAL TO BINARY CONVERSION Replace each hexadecimal digit by its 4 bit binary equivalent. [ABC95.CDA] 16 = A B C 9. C D A = = [ ] 2

Step 1: Convert Hexadecimal number into Binary number. Step 2: Convert binary number into Octal number. Example: 1) [ABCD] 16 = [ ] 8 Step 1) Convert ABCD into binary equivalent. [ABCD] 16 = [ ] 2 Step 2) Convert binary number into octal equivalent. [ ] 2 = [ ] 2 = [ ] 8 HEXADECIMAL TO OCTAL CONVERSION

Step 1: Convert Octal number into Binary number. Step 2: Convert binary number into Hexadecimal number. Example: 1) [235.12] 8 = [ ] 16 Step 1) Convert into binary equivalent. [235.12] 8 = [ ] 2 Step 2) Convert binary number into Hexadecimal equivalent. [ ] 2 = [ ] 2 = [ 9 D. 2 8] 16 OCTAL TO HEXADECIMAL CONVERSION

BINARY CODED DECIMAL (BCD) To express any decimal number in BCD, each decimal digit should be replaced by the appropriate 4-bit code. It is a weighted code. There are 6 illegal combinations 1010, 1011, 1100, 1101, 1110 and The rules of binary addition & subtraction do not apply to the entire number but only to the individual 4-bit groups.

BINARY CODED DECIMAL (BCD) Decimal No.Binary No.Binary Coded Decimal (BCD)

BINARY CODED DECIMAL (BCD) Ex: Give BCD Code for decimal number 874. Decimal number: 874 BCD Code: Ex: Give BCD Code for decimal no Decimal number: BCD Code:

EXCESS-3 CODE It is also called as XS-3 Code. It is Non-Weighted Code. It is a Sequential code & can be used for arithmetic operation. Excess-3 code word derived from the BCD code word by adding (0011) 2 or (3) 10 to each word in BCD code. Excess-3 code are obtained: add (3) 10 decimal no. BCD code Excess-3 code It has six invalid states 0000, 0001, 0010, 1101, 1110 & 1111.

Eg.  Obtain the Excess-3 code for [428] 10 Given no Binary equivalent Excess-3 code EXCESS-3 CODE

GRAY CODE It is a non-weighted code, not suitable for arithmetic operations. Here only one bit in the code group changes, each time the decimal no. is incremented. As only one bit changes at a time, it is called as unit-distance code.

Gray Code Decimal Binary Gray

ASCII CODE ASCII stands for American Standard Code for Information Interchange, is an alphanumeric code. It is 7-bit code & the number of bit patterns are 2^7 = 128. Used to encode both the uppercase & lowercase characters of the alphabet, some special symbols & 10 decimal digits. Extensively used for printers & terminals.

Binary to Gray Conversion The MSB of gray code is same as first bit of binary no. Moving from left to right, remaining bits are obtained by “EX- ORing” the adjacent pairs of binary no. Binary number= B4 B3 B2 B1 B0 Gray number= G4 G3 G2 G1 G0 then, => 0 0 = 0, 0 1 = 1, 1 0 = 1, 1 1 = 0 G4= B4 G3= B4 B3 G2= B3 B2 G1= B2 B1 G0= B1 B G3 B2 B4B3 G4G2G1G0 B1 B

Binary to Gray Conversion Ex: Convert [ ] 2 to its Gray code. Solution: Binary Gray

Gray to Binary Conversion The MSB of binary code is same as first bit of gray code. Add by EX-OR method, each generated binary digit with gray digit in the next adjacent position. B4 = G4 B3 = B4 G3 B2 = B3 G2 B1 = B2 G1 B0 = B1 G0 G3 B2B4B3 G4 G2G1G0 B1B

Gray to Binary Conversion Ex: Convert [ ] G to its binary number. Solution: Binary Gray

BINARY ARITHMETIC Binary Addition Binary Subtraction Binary Multiplication Binary division

Binary Addition The rules for binary addition are: 0+0=0, 0+1=1, 1+0=1, 1+1=0 w/c 1 Example: 1) (no carry) 2) ( = 0 carry 1 to next column, then again is 0 carry 1 to next column)

Binary Subtraction The rules for binary subtraction are: 0-0=0, 0-1=1w/b 1, 1-0=1, 1-1=0 Example: = 1; with borrow of 1 from next column 0 -1(borrow) - 0 = 1, with borrow of (borrow) - 0 = 0. Answer = 011.

Binary Multiplication The rules for binary multiplication are: 0×0=0, 0×1=0, 1×0=0, 1×1=1 Example: Multiply 100 by × X X X Therefore, 100 × 101 = 10100

Binary Division Long division procedures similar to those in decimals are used. Example : Divide by ) ( Therefore, ÷ 110 = 111.1

BCD ADDITION Rules for addition of 2 BCD numbers are: 1) Add the 2 numbers using the rules for binary addition. 2) If a four bit number is equal to or less than 9, it is a valid BCD number. 3) If a 4-bit sum is greater than 9, or if a carry-out of the group is generated, it is an invalid result. Then add 6 (0110) 2 to the four bit sum in order to skip the six invalid states. 4) If a carry results, when 6 is added, add the carry to the next 4- bit group.

BCD ADDITION Example: (874) 10

BCD SUBTRACTION Rules for subtraction of 2 BCD numbers are: 1) Subtract the 2 numbers using the rules for binary subtraction. 2) If a four bit number is equal to or less than 9, it is a valid BCD number. 3) if a borrow is taken from other four bit code, it is an invalid result. Then subtract 6 (0110) 2 to the four bit result in order to skip the six invalid states. 4) If a borrow results, when 6 is subtracted, subtract the borrow to the next 4-bit group.

BCD SUBTRACTION Example: (571) 10