SlideShare a Scribd company logo
1 of 36
Department of Electronics and Communication Engineering, MIT, Manipal
PART II
DIGITAL ELECTRONICS
1
Reference
1. Malvino and Leach, Digital Principles & applications, 7th
edition, TMH, 2010
2. Morris Mano, “Digital design”, Prentice Hall of India, Third
Edition.
Chapter 4 : Number systems and Codes
Department of Electronics and Communication Engineering, MIT, Manipal
Module 1 : Number systems
Learning outcomes
At the end of this module, students will be able to:
 Describe the decimal, binary, hexadecimal and octal system.
 Convert the number in binary, octal or hexadecimal to a number
in the decimal system and vise versa.
 Describe the binary arithmetic using ones and two’s complement
2
Department of Electronics and Communication Engineering, MIT, Manipal
Introduction
 Why Number System
 History of Number System
 Importance of Number system
3
Department of Electronics and Communication Engineering, MIT, Manipal
Number System
4
The different number systems are:
• Decimal system
• Binary system
• Hexadecimal system
• Octal system
Department of Electronics and Communication Engineering, MIT, Manipal
Decimal System
5
• 10 symbols, namely 0,1,2,3,4,5,6,7,8 and 9.
• Example: (781)10, (6543.124)10
6543.124
Digit 6 5 4 3 . 1 2 4
Weight 103 102 101 100 Decimal
Point 10-1 10-2 10-3
Department of Electronics and Communication Engineering, MIT, Manipal
Binary System
6
• Uses only two symbols ‘0’and’1’ .
• Radix-2 system. Example: (100010)2, (1011.101)2.
Digit 1 0 1 1 . 1 0 1
Weight 23 22 21 20 Binary
Point 2-1 2-2 2-3
1011.101
Department of Electronics and Communication Engineering, MIT, Manipal
Hexadecimal System
7
• The hexadecimal number system has base 16.
• It has 16 distinct symbols. It uses the digits 0-9 and letters
A,B,C,D, E and F as 16 symbols.
• Example:
Digit 4 A 9 0 . 2 B C
Weight 163 162 161 160 Hexadecimal
Point 16-1 16-2 16-3
4A90.2BC
Department of Electronics and Communication Engineering, MIT, Manipal
Octal System
8
• Uses 8 symbols (0-7)
• Example: (723)8, (2157.075)8.
Digit 2 1 5 7 . 0 7 5
Weight 83 82 81 80 Octal
Point 8-1 8-2 8-3
Department of Electronics and Communication Engineering, MIT, Manipal
Self Test
1. The hex numbering system has a base of ________, and the binary numbering system
has a base of ________.
2. The value of a particular digit in a number is determined by its relative position in a
sequence of digits. (T/F)
3. A single hexadecimal digit can represent how many binary digits: (a) two, (b) three, or
(c) four?
4. The bases of the binary and decimal numbering systems are multiples of 2. (T/F)
9
Department of Electronics and Communication Engineering, MIT, Manipal
Conversion of Number System
10
• Conversion
• Decimal
• Decimal to Binary
• Decimal to Octal
• Decimal to Hexadecimal
• Binary
• Binary to Octal
• Binary to decimal
• Binary to Hexadecimal
• Octal
• Octal to binary
• Octal to decimal
• Octal to Hexadecimal
• Hexadecimal
• Hexadecimal to Binary
• Hexadecimal to Octal
• Hexadecimal to decimal
Department of Electronics and Communication Engineering, MIT, Manipal
Conversion
Decimal System
11
Department of Electronics and Communication Engineering, MIT, Manipal
Decimal to Binary
12
• The given decimal number is repeatedly divided by 2.
• Till quotient becomes ‘0’ .
• Remainder is collected from bottom to top.
Real Part:
• Fractional part is multiplied by two repeatedly.
• The integer part is recorded.
• The string of integer obtained from the top to bottom gives the
equivalent fractional number in binary
Fractional Part:
Department of Electronics and Communication Engineering, MIT, Manipal
Decimal to Binary
13
37 divided by 2 Q=18 R=1
18 divided by 2 Q=9 R=0
9 divided by 2 Q=4 R=1
4 divided by 2 Q=2 R=0
2 divided by 2 Q=1 R=0
Ex: (37)10 = (100101)2
Department of Electronics and Communication Engineering, MIT, Manipal
Decimal to Octal
14
 The given decimal number is repeatedly divided by 8.
 Till quotient becomes ‘0’ .
 Remainder is collected from bottom to top
Real Part:
 Fractional part is multiplied by eight repeatedly.
 Carry in the integer place is recorded.
 The string of integer obtained fro m the top to bottom gives the
equivalent fractional number in octal
Fractional Part:
Department of Electronics and Communication Engineering, MIT, Manipal
Decimal to Octal
15
Ex: (97)10 = (141)8
37 divided by 8 Q=12 R=1
12 divided by 8 Q=1 R=4
Department of Electronics and Communication Engineering, MIT, Manipal
Decimal to Hexadecimal
16
 The given decimal number is repeatedly divided by 16.
 Till quotient becomes ‘0’ .
 Remainder is collected from bottom to top
Real Part:
 Fractional part is multiplied by sixteen repeatedly.
 Carry in the integer place is recorded.
 The string of integer obtained fro m the top to bottom gives the
equivalent fractional number in hexadecimal.
Fractional Part:
Department of Electronics and Communication Engineering, MIT, Manipal
Decimal to Hexadecimal
17
Ex: (546)10 =(222)16
546 divided by 16 Q=34 R=2
34 divided by 16 Q=2 R=2
Department of Electronics and Communication Engineering, MIT, Manipal
Conversion
Binary System
18
Department of Electronics and Communication Engineering, MIT, Manipal
Binary to Octal
19
Ex1: (110101010)2 =
110 101 01 =
6 5 2 = (652)8
Ex2: (0.1011010)2 =
101 101 0
5 5 0 = (0. 550)8
Ex3: (110101010. 1011010)2 = (652.550)8
Each octal digit is represented by three bits of binary digits.
Department of Electronics and Communication Engineering, MIT, Manipal
Binary to Decimal
20
• Multiply the number by its equivalent binary weights.
• Add the products to get the decimal number.
Ex1: 1102 = 1 x 22 + 1 x 21 + 0 x 20 = 4 +2+0 = 6
Ex2: 0.1012 = 1 x 2-1 + 0 x 2 -2 + 1 x 2-3 = 0.5 + 0 + 0.125 = 0.625
Department of Electronics and Communication Engineering, MIT, Manipal
Binary to Hexadecimal
21
Ex1: (11111011001)2 =
1111 1011 0010
15 11 2
F B 2
(FB2)16
Ex2: (0.010101111011)2
0101 0111 1011
5 7 11
5 7 B
(0.57B)16
Each group of 4 binary bits is 1 hexadecimal digit.
Department of Electronics and Communication Engineering, MIT, Manipal
Conversion
Octal System
22
Department of Electronics and Communication Engineering, MIT, Manipal
Octal to Binary
23
Ex1: (347)8 = (011100111)2
Ex2: (0.245)8 = (0.010100101)2
Ex3: 347.2458 = (011100111.010100101)2
Each octal digit is represented by three bits of binary digit.
Department of Electronics and Communication Engineering, MIT, Manipal
Octal to Decimal
24
Ex1: (457)8 = 4 x 82 + 5 x 81 + 7 x 80 = 4 x 64 + 5 x 8 + 7 x 1 =
256+40+7 = (303)10
Ex2: (0.246)8 = 2 x 8-1 + 4 x 8-2 + 6 x 8-3= 2 x 0.125 + 4 x 0.015625 +
6 x 0.001953125
= (0.267969)10
 Multiply the number by its equivalent binary weights.
 Add the products to get the decimal number.
Department of Electronics and Communication Engineering, MIT, Manipal
Octal to Hexadecimal
25
Ex1: (235)8 = (09D)16
(235)8 = (0 1001 1101)2 = (09D)16
• The octal number is first converted into binary.
• The binary bits are grouped such that each group consists of 4 bits
and a group starts from the LSB.
• The 4 bits group is represented by its equivalent hexadecimal
number.
Department of Electronics and Communication Engineering, MIT, Manipal
Conversion
Hexadecimal System
26
Department of Electronics and Communication Engineering, MIT, Manipal
Hexadecimal to Binary
27
Ex1: (A7D)16 = (1010 0111 1110)2
Each group of 4 binary bits is 1 hexadecimal digit.
Department of Electronics and Communication Engineering, MIT, Manipal
Hexadecimal to Octal
28
Ex1: (C4)16 = (11 000 100)2= (304)8
Ex2: (0.26A)16 = (0.001 001 101 010)2 =(0.1152)8
Ex3: (C4.26A)16 = (11 000 100.001 001 101 010)2 = (304.1152)8
 The hexadecimal number is first converted into binary.
 They are grouped into 3 bits each starting from the LSB.
 The 3 bits group is represented by its equivalent octal number.
Department of Electronics and Communication Engineering, MIT, Manipal
Hexadecimal to Decimal
29
Ex1: (B40)16 = 11 x 162 + 4 x 161 + 0 x 160
= 11 x 256 + 4 x 16 + 0 x 1
=(2880)10
Ex2: (0.237)16 = 2 x 16-1 + 3 x 16-2 + 7 x 16-3
= (0.138427)10
 Multiply the number by its equivalent hexadecimal weights.
 Add the products to get the decimal number.
Department of Electronics and Communication Engineering, MIT, Manipal
Self Test
1. The binary equivalent of a hexadecimal 35 is ________.
2. The decimal equivalent of a hexadecimal 7 is ________.
3. The hexadecimal equivalent of a decimal 49 is ________.
4. The decimal equivalent of a binary 110110110 is ________.
5. The hexadecimal equivalent of a binary 1110 is ________.
6. The result of 1012 + 112 is ________ (in binary).
7. The result of A116 + BC16 + 1016 is ________ (in hexadecimal).
30
Department of Electronics and Communication Engineering, MIT, Manipal
Number System Arithmetic
31
 Binary Addition
Ex1: (1010)2 + (0111)2 = (10001)2
(1010)2 = (10)10
+(0111)2 = (7)10
(10001)2 = (17)10
Department of Electronics and Communication Engineering, MIT, Manipal
Number System Arithmetic
32
 Hexadecimal
Add (7AB.67)16 to (15C.71) 16 = (907. D8)16
Department of Electronics and Communication Engineering, MIT, Manipal
Number System Arithmetic
33
Ex1: Add ( 334.65)8 to (671.14) 8 = 1226.018
 Octal
Department of Electronics and Communication Engineering, MIT, Manipal
Ones’s and two’s Complement
34
• To find 1’s complement of a binary number just invert the bits.
• To find 2’s complement of a binary number find 1’s complement and
add 1 to the result.
1’s complement of 0011 is 1100.
2’s complement of 0110 is 1010.
Department of Electronics and Communication Engineering, MIT, Manipal
Summary
35
 List different number system in use of processing
 Binary, decimal, octal and hexadecimal are commonly used
number systems
 Convert number in one system to another system.
 Perform basic arithmetic’s using various number system
Department of Electronics and Communication Engineering, MIT, Manipal
Exercise
36
1. Subtract 14 from 46 using the 2’s complement method.
2. Subtract 35 from 23 using 2’s complement.

More Related Content

Similar to basic electronics MODULE_1_Ch4_AH_01082014.pptx

Boolean Algebra Arithmetic SIG UNSIGN.ppt
Boolean Algebra  Arithmetic SIG UNSIGN.pptBoolean Algebra  Arithmetic SIG UNSIGN.ppt
Boolean Algebra Arithmetic SIG UNSIGN.pptAshishChandrakar12
 
[01] Exit Exam Preparation 2023 DLD.pptx
[01] Exit Exam Preparation 2023 DLD.pptx[01] Exit Exam Preparation 2023 DLD.pptx
[01] Exit Exam Preparation 2023 DLD.pptxsolomonlemma14
 
ESSENTIAL of (CS/IT/IS) class 03-04 (NUMERIC SYSTEMS)
ESSENTIAL of (CS/IT/IS) class 03-04 (NUMERIC SYSTEMS)ESSENTIAL of (CS/IT/IS) class 03-04 (NUMERIC SYSTEMS)
ESSENTIAL of (CS/IT/IS) class 03-04 (NUMERIC SYSTEMS)Dr. Mazin Mohamed alkathiri
 
Conversion of number system with base concept
Conversion of number system with base conceptConversion of number system with base concept
Conversion of number system with base conceptUniversity of Potsdam
 
Chapter 1 digital design.pptx
Chapter 1 digital design.pptxChapter 1 digital design.pptx
Chapter 1 digital design.pptxAliaaTarek5
 
Number system and their conversion
Number system and their conversionNumber system and their conversion
Number system and their conversionRam Pratap Singh
 
Logic Circuits Design - "Chapter 1: Digital Systems and Information"
Logic Circuits Design - "Chapter 1: Digital Systems and Information"Logic Circuits Design - "Chapter 1: Digital Systems and Information"
Logic Circuits Design - "Chapter 1: Digital Systems and Information"Ra'Fat Al-Msie'deen
 
21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptxGobinathAECEJRF1101
 
L1-Number Systems.pdf
L1-Number Systems.pdfL1-Number Systems.pdf
L1-Number Systems.pdfidkurd
 
Introduction to Information Technology Lecture 2
Introduction to Information Technology Lecture 2Introduction to Information Technology Lecture 2
Introduction to Information Technology Lecture 2MikeCrea
 
Module 4_Digital Electronics till complements.pdf
Module 4_Digital Electronics till complements.pdfModule 4_Digital Electronics till complements.pdf
Module 4_Digital Electronics till complements.pdfmanjunath V Gudur
 
Data representation
Data representationData representation
Data representationChew Hoong
 

Similar to basic electronics MODULE_1_Ch4_AH_01082014.pptx (20)

Lec 02
Lec 02Lec 02
Lec 02
 
Boolean Algebra Arithmetic SIG UNSIGN.ppt
Boolean Algebra  Arithmetic SIG UNSIGN.pptBoolean Algebra  Arithmetic SIG UNSIGN.ppt
Boolean Algebra Arithmetic SIG UNSIGN.ppt
 
[01] Exit Exam Preparation 2023 DLD.pptx
[01] Exit Exam Preparation 2023 DLD.pptx[01] Exit Exam Preparation 2023 DLD.pptx
[01] Exit Exam Preparation 2023 DLD.pptx
 
Digital logic design part1
Digital logic design part1Digital logic design part1
Digital logic design part1
 
ESSENTIAL of (CS/IT/IS) class 03-04 (NUMERIC SYSTEMS)
ESSENTIAL of (CS/IT/IS) class 03-04 (NUMERIC SYSTEMS)ESSENTIAL of (CS/IT/IS) class 03-04 (NUMERIC SYSTEMS)
ESSENTIAL of (CS/IT/IS) class 03-04 (NUMERIC SYSTEMS)
 
Conversion of number system with base concept
Conversion of number system with base conceptConversion of number system with base concept
Conversion of number system with base concept
 
Chapter 1 digital design.pptx
Chapter 1 digital design.pptxChapter 1 digital design.pptx
Chapter 1 digital design.pptx
 
Number system and their conversion
Number system and their conversionNumber system and their conversion
Number system and their conversion
 
Number Systems.pptx
Number Systems.pptxNumber Systems.pptx
Number Systems.pptx
 
Logic Circuits Design - "Chapter 1: Digital Systems and Information"
Logic Circuits Design - "Chapter 1: Digital Systems and Information"Logic Circuits Design - "Chapter 1: Digital Systems and Information"
Logic Circuits Design - "Chapter 1: Digital Systems and Information"
 
21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx21EC201– Digital Principles and system design.pptx
21EC201– Digital Principles and system design.pptx
 
Digital Electronics Notes.pdf
Digital Electronics Notes.pdfDigital Electronics Notes.pdf
Digital Electronics Notes.pdf
 
L1-Number Systems.pdf
L1-Number Systems.pdfL1-Number Systems.pdf
L1-Number Systems.pdf
 
Module 4
Module 4Module 4
Module 4
 
Introduction to Information Technology Lecture 2
Introduction to Information Technology Lecture 2Introduction to Information Technology Lecture 2
Introduction to Information Technology Lecture 2
 
Module 4_Digital Electronics till complements.pdf
Module 4_Digital Electronics till complements.pdfModule 4_Digital Electronics till complements.pdf
Module 4_Digital Electronics till complements.pdf
 
Numbersystemsppt 181023140730
Numbersystemsppt 181023140730Numbersystemsppt 181023140730
Numbersystemsppt 181023140730
 
Number systems ppt
Number systems pptNumber systems ppt
Number systems ppt
 
Number systems r002
Number systems  r002Number systems  r002
Number systems r002
 
Data representation
Data representationData representation
Data representation
 

More from happycocoman

gas turbine cycles.pptx .
gas turbine cycles.pptx                    .gas turbine cycles.pptx                    .
gas turbine cycles.pptx .happycocoman
 
RECIPROCATING_AIR_COMPRESSOR.ppt .
RECIPROCATING_AIR_COMPRESSOR.ppt         .RECIPROCATING_AIR_COMPRESSOR.ppt         .
RECIPROCATING_AIR_COMPRESSOR.ppt .happycocoman
 
SURFACE TEXTURE 2022.pptx .
SURFACE TEXTURE 2022.pptx                  .SURFACE TEXTURE 2022.pptx                  .
SURFACE TEXTURE 2022.pptx .happycocoman
 
Numericals on Raciprocating air compressor.ppt
Numericals on  Raciprocating air compressor.pptNumericals on  Raciprocating air compressor.ppt
Numericals on Raciprocating air compressor.ppthappycocoman
 
Vapor_power cycles KM.pptx ..
Vapor_power cycles KM.pptx            ..Vapor_power cycles KM.pptx            ..
Vapor_power cycles KM.pptx ..happycocoman
 
Vapor power cycles by Anupama.pptx .
Vapor power cycles by Anupama.pptx     .Vapor power cycles by Anupama.pptx     .
Vapor power cycles by Anupama.pptx .happycocoman
 
Performance and Testing of Internal Combustion Engines.ppt
Performance and Testing of Internal Combustion Engines.pptPerformance and Testing of Internal Combustion Engines.ppt
Performance and Testing of Internal Combustion Engines.ppthappycocoman
 
ICenginesNumericals (1).pptx .
ICenginesNumericals (1).pptx             .ICenginesNumericals (1).pptx             .
ICenginesNumericals (1).pptx .happycocoman
 
Air standard cycles_PPT KM1.pptx .
Air standard cycles_PPT KM1.pptx          .Air standard cycles_PPT KM1.pptx          .
Air standard cycles_PPT KM1.pptx .happycocoman
 
Pressure Measurement ppt.pptx .
Pressure Measurement ppt.pptx               .Pressure Measurement ppt.pptx               .
Pressure Measurement ppt.pptx .happycocoman
 
Measurements & Measurement .Systems.pptx
Measurements & Measurement .Systems.pptxMeasurements & Measurement .Systems.pptx
Measurements & Measurement .Systems.pptxhappycocoman
 
Strain Measurement (NEW).pptx .
Strain Measurement (NEW).pptx               .Strain Measurement (NEW).pptx               .
Strain Measurement (NEW).pptx .happycocoman
 
Force and torque measurements.pptx .
Force and torque measurements.pptx      .Force and torque measurements.pptx      .
Force and torque measurements.pptx .happycocoman
 
Chapter 11 - SCREW THREADS sllides.pdf .
Chapter 11 - SCREW THREADS sllides.pdf       .Chapter 11 - SCREW THREADS sllides.pdf       .
Chapter 11 - SCREW THREADS sllides.pdf .happycocoman
 
Measurement of form errors.pptx .
Measurement of form errors.pptx            .Measurement of form errors.pptx            .
Measurement of form errors.pptx .happycocoman
 
9. Surface Texture - PPT.pdf .
9. Surface Texture - PPT.pdf               .9. Surface Texture - PPT.pdf               .
9. Surface Texture - PPT.pdf .happycocoman
 
10. Screw Threads - PPT.pdf .
10. Screw Threads - PPT.pdf                    .10. Screw Threads - PPT.pdf                    .
10. Screw Threads - PPT.pdf .happycocoman
 
Measurement of Form errors complete slides.pdf
Measurement of Form errors complete slides.pdfMeasurement of Form errors complete slides.pdf
Measurement of Form errors complete slides.pdfhappycocoman
 
Limits Fits and Tolerances ppt.pdf .
Limits Fits and Tolerances ppt.pdf     .Limits Fits and Tolerances ppt.pdf     .
Limits Fits and Tolerances ppt.pdf .happycocoman
 

More from happycocoman (20)

gas turbine cycles.pptx .
gas turbine cycles.pptx                    .gas turbine cycles.pptx                    .
gas turbine cycles.pptx .
 
RECIPROCATING_AIR_COMPRESSOR.ppt .
RECIPROCATING_AIR_COMPRESSOR.ppt         .RECIPROCATING_AIR_COMPRESSOR.ppt         .
RECIPROCATING_AIR_COMPRESSOR.ppt .
 
SURFACE TEXTURE 2022.pptx .
SURFACE TEXTURE 2022.pptx                  .SURFACE TEXTURE 2022.pptx                  .
SURFACE TEXTURE 2022.pptx .
 
Numericals on Raciprocating air compressor.ppt
Numericals on  Raciprocating air compressor.pptNumericals on  Raciprocating air compressor.ppt
Numericals on Raciprocating air compressor.ppt
 
Vapor_power cycles KM.pptx ..
Vapor_power cycles KM.pptx            ..Vapor_power cycles KM.pptx            ..
Vapor_power cycles KM.pptx ..
 
Vapor power cycles by Anupama.pptx .
Vapor power cycles by Anupama.pptx     .Vapor power cycles by Anupama.pptx     .
Vapor power cycles by Anupama.pptx .
 
Performance and Testing of Internal Combustion Engines.ppt
Performance and Testing of Internal Combustion Engines.pptPerformance and Testing of Internal Combustion Engines.ppt
Performance and Testing of Internal Combustion Engines.ppt
 
ICenginesNumericals (1).pptx .
ICenginesNumericals (1).pptx             .ICenginesNumericals (1).pptx             .
ICenginesNumericals (1).pptx .
 
Air standard cycles_PPT KM1.pptx .
Air standard cycles_PPT KM1.pptx          .Air standard cycles_PPT KM1.pptx          .
Air standard cycles_PPT KM1.pptx .
 
Pressure Measurement ppt.pptx .
Pressure Measurement ppt.pptx               .Pressure Measurement ppt.pptx               .
Pressure Measurement ppt.pptx .
 
Measurements & Measurement .Systems.pptx
Measurements & Measurement .Systems.pptxMeasurements & Measurement .Systems.pptx
Measurements & Measurement .Systems.pptx
 
Strain Measurement (NEW).pptx .
Strain Measurement (NEW).pptx               .Strain Measurement (NEW).pptx               .
Strain Measurement (NEW).pptx .
 
Force and torque measurements.pptx .
Force and torque measurements.pptx      .Force and torque measurements.pptx      .
Force and torque measurements.pptx .
 
FLOW(NEW).pptx .
FLOW(NEW).pptx                          .FLOW(NEW).pptx                          .
FLOW(NEW).pptx .
 
Chapter 11 - SCREW THREADS sllides.pdf .
Chapter 11 - SCREW THREADS sllides.pdf       .Chapter 11 - SCREW THREADS sllides.pdf       .
Chapter 11 - SCREW THREADS sllides.pdf .
 
Measurement of form errors.pptx .
Measurement of form errors.pptx            .Measurement of form errors.pptx            .
Measurement of form errors.pptx .
 
9. Surface Texture - PPT.pdf .
9. Surface Texture - PPT.pdf               .9. Surface Texture - PPT.pdf               .
9. Surface Texture - PPT.pdf .
 
10. Screw Threads - PPT.pdf .
10. Screw Threads - PPT.pdf                    .10. Screw Threads - PPT.pdf                    .
10. Screw Threads - PPT.pdf .
 
Measurement of Form errors complete slides.pdf
Measurement of Form errors complete slides.pdfMeasurement of Form errors complete slides.pdf
Measurement of Form errors complete slides.pdf
 
Limits Fits and Tolerances ppt.pdf .
Limits Fits and Tolerances ppt.pdf     .Limits Fits and Tolerances ppt.pdf     .
Limits Fits and Tolerances ppt.pdf .
 

Recently uploaded

Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Christo Ananth
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLManishPatel169454
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 

Recently uploaded (20)

Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 

basic electronics MODULE_1_Ch4_AH_01082014.pptx

  • 1. Department of Electronics and Communication Engineering, MIT, Manipal PART II DIGITAL ELECTRONICS 1 Reference 1. Malvino and Leach, Digital Principles & applications, 7th edition, TMH, 2010 2. Morris Mano, “Digital design”, Prentice Hall of India, Third Edition. Chapter 4 : Number systems and Codes
  • 2. Department of Electronics and Communication Engineering, MIT, Manipal Module 1 : Number systems Learning outcomes At the end of this module, students will be able to:  Describe the decimal, binary, hexadecimal and octal system.  Convert the number in binary, octal or hexadecimal to a number in the decimal system and vise versa.  Describe the binary arithmetic using ones and two’s complement 2
  • 3. Department of Electronics and Communication Engineering, MIT, Manipal Introduction  Why Number System  History of Number System  Importance of Number system 3
  • 4. Department of Electronics and Communication Engineering, MIT, Manipal Number System 4 The different number systems are: • Decimal system • Binary system • Hexadecimal system • Octal system
  • 5. Department of Electronics and Communication Engineering, MIT, Manipal Decimal System 5 • 10 symbols, namely 0,1,2,3,4,5,6,7,8 and 9. • Example: (781)10, (6543.124)10 6543.124 Digit 6 5 4 3 . 1 2 4 Weight 103 102 101 100 Decimal Point 10-1 10-2 10-3
  • 6. Department of Electronics and Communication Engineering, MIT, Manipal Binary System 6 • Uses only two symbols ‘0’and’1’ . • Radix-2 system. Example: (100010)2, (1011.101)2. Digit 1 0 1 1 . 1 0 1 Weight 23 22 21 20 Binary Point 2-1 2-2 2-3 1011.101
  • 7. Department of Electronics and Communication Engineering, MIT, Manipal Hexadecimal System 7 • The hexadecimal number system has base 16. • It has 16 distinct symbols. It uses the digits 0-9 and letters A,B,C,D, E and F as 16 symbols. • Example: Digit 4 A 9 0 . 2 B C Weight 163 162 161 160 Hexadecimal Point 16-1 16-2 16-3 4A90.2BC
  • 8. Department of Electronics and Communication Engineering, MIT, Manipal Octal System 8 • Uses 8 symbols (0-7) • Example: (723)8, (2157.075)8. Digit 2 1 5 7 . 0 7 5 Weight 83 82 81 80 Octal Point 8-1 8-2 8-3
  • 9. Department of Electronics and Communication Engineering, MIT, Manipal Self Test 1. The hex numbering system has a base of ________, and the binary numbering system has a base of ________. 2. The value of a particular digit in a number is determined by its relative position in a sequence of digits. (T/F) 3. A single hexadecimal digit can represent how many binary digits: (a) two, (b) three, or (c) four? 4. The bases of the binary and decimal numbering systems are multiples of 2. (T/F) 9
  • 10. Department of Electronics and Communication Engineering, MIT, Manipal Conversion of Number System 10 • Conversion • Decimal • Decimal to Binary • Decimal to Octal • Decimal to Hexadecimal • Binary • Binary to Octal • Binary to decimal • Binary to Hexadecimal • Octal • Octal to binary • Octal to decimal • Octal to Hexadecimal • Hexadecimal • Hexadecimal to Binary • Hexadecimal to Octal • Hexadecimal to decimal
  • 11. Department of Electronics and Communication Engineering, MIT, Manipal Conversion Decimal System 11
  • 12. Department of Electronics and Communication Engineering, MIT, Manipal Decimal to Binary 12 • The given decimal number is repeatedly divided by 2. • Till quotient becomes ‘0’ . • Remainder is collected from bottom to top. Real Part: • Fractional part is multiplied by two repeatedly. • The integer part is recorded. • The string of integer obtained from the top to bottom gives the equivalent fractional number in binary Fractional Part:
  • 13. Department of Electronics and Communication Engineering, MIT, Manipal Decimal to Binary 13 37 divided by 2 Q=18 R=1 18 divided by 2 Q=9 R=0 9 divided by 2 Q=4 R=1 4 divided by 2 Q=2 R=0 2 divided by 2 Q=1 R=0 Ex: (37)10 = (100101)2
  • 14. Department of Electronics and Communication Engineering, MIT, Manipal Decimal to Octal 14  The given decimal number is repeatedly divided by 8.  Till quotient becomes ‘0’ .  Remainder is collected from bottom to top Real Part:  Fractional part is multiplied by eight repeatedly.  Carry in the integer place is recorded.  The string of integer obtained fro m the top to bottom gives the equivalent fractional number in octal Fractional Part:
  • 15. Department of Electronics and Communication Engineering, MIT, Manipal Decimal to Octal 15 Ex: (97)10 = (141)8 37 divided by 8 Q=12 R=1 12 divided by 8 Q=1 R=4
  • 16. Department of Electronics and Communication Engineering, MIT, Manipal Decimal to Hexadecimal 16  The given decimal number is repeatedly divided by 16.  Till quotient becomes ‘0’ .  Remainder is collected from bottom to top Real Part:  Fractional part is multiplied by sixteen repeatedly.  Carry in the integer place is recorded.  The string of integer obtained fro m the top to bottom gives the equivalent fractional number in hexadecimal. Fractional Part:
  • 17. Department of Electronics and Communication Engineering, MIT, Manipal Decimal to Hexadecimal 17 Ex: (546)10 =(222)16 546 divided by 16 Q=34 R=2 34 divided by 16 Q=2 R=2
  • 18. Department of Electronics and Communication Engineering, MIT, Manipal Conversion Binary System 18
  • 19. Department of Electronics and Communication Engineering, MIT, Manipal Binary to Octal 19 Ex1: (110101010)2 = 110 101 01 = 6 5 2 = (652)8 Ex2: (0.1011010)2 = 101 101 0 5 5 0 = (0. 550)8 Ex3: (110101010. 1011010)2 = (652.550)8 Each octal digit is represented by three bits of binary digits.
  • 20. Department of Electronics and Communication Engineering, MIT, Manipal Binary to Decimal 20 • Multiply the number by its equivalent binary weights. • Add the products to get the decimal number. Ex1: 1102 = 1 x 22 + 1 x 21 + 0 x 20 = 4 +2+0 = 6 Ex2: 0.1012 = 1 x 2-1 + 0 x 2 -2 + 1 x 2-3 = 0.5 + 0 + 0.125 = 0.625
  • 21. Department of Electronics and Communication Engineering, MIT, Manipal Binary to Hexadecimal 21 Ex1: (11111011001)2 = 1111 1011 0010 15 11 2 F B 2 (FB2)16 Ex2: (0.010101111011)2 0101 0111 1011 5 7 11 5 7 B (0.57B)16 Each group of 4 binary bits is 1 hexadecimal digit.
  • 22. Department of Electronics and Communication Engineering, MIT, Manipal Conversion Octal System 22
  • 23. Department of Electronics and Communication Engineering, MIT, Manipal Octal to Binary 23 Ex1: (347)8 = (011100111)2 Ex2: (0.245)8 = (0.010100101)2 Ex3: 347.2458 = (011100111.010100101)2 Each octal digit is represented by three bits of binary digit.
  • 24. Department of Electronics and Communication Engineering, MIT, Manipal Octal to Decimal 24 Ex1: (457)8 = 4 x 82 + 5 x 81 + 7 x 80 = 4 x 64 + 5 x 8 + 7 x 1 = 256+40+7 = (303)10 Ex2: (0.246)8 = 2 x 8-1 + 4 x 8-2 + 6 x 8-3= 2 x 0.125 + 4 x 0.015625 + 6 x 0.001953125 = (0.267969)10  Multiply the number by its equivalent binary weights.  Add the products to get the decimal number.
  • 25. Department of Electronics and Communication Engineering, MIT, Manipal Octal to Hexadecimal 25 Ex1: (235)8 = (09D)16 (235)8 = (0 1001 1101)2 = (09D)16 • The octal number is first converted into binary. • The binary bits are grouped such that each group consists of 4 bits and a group starts from the LSB. • The 4 bits group is represented by its equivalent hexadecimal number.
  • 26. Department of Electronics and Communication Engineering, MIT, Manipal Conversion Hexadecimal System 26
  • 27. Department of Electronics and Communication Engineering, MIT, Manipal Hexadecimal to Binary 27 Ex1: (A7D)16 = (1010 0111 1110)2 Each group of 4 binary bits is 1 hexadecimal digit.
  • 28. Department of Electronics and Communication Engineering, MIT, Manipal Hexadecimal to Octal 28 Ex1: (C4)16 = (11 000 100)2= (304)8 Ex2: (0.26A)16 = (0.001 001 101 010)2 =(0.1152)8 Ex3: (C4.26A)16 = (11 000 100.001 001 101 010)2 = (304.1152)8  The hexadecimal number is first converted into binary.  They are grouped into 3 bits each starting from the LSB.  The 3 bits group is represented by its equivalent octal number.
  • 29. Department of Electronics and Communication Engineering, MIT, Manipal Hexadecimal to Decimal 29 Ex1: (B40)16 = 11 x 162 + 4 x 161 + 0 x 160 = 11 x 256 + 4 x 16 + 0 x 1 =(2880)10 Ex2: (0.237)16 = 2 x 16-1 + 3 x 16-2 + 7 x 16-3 = (0.138427)10  Multiply the number by its equivalent hexadecimal weights.  Add the products to get the decimal number.
  • 30. Department of Electronics and Communication Engineering, MIT, Manipal Self Test 1. The binary equivalent of a hexadecimal 35 is ________. 2. The decimal equivalent of a hexadecimal 7 is ________. 3. The hexadecimal equivalent of a decimal 49 is ________. 4. The decimal equivalent of a binary 110110110 is ________. 5. The hexadecimal equivalent of a binary 1110 is ________. 6. The result of 1012 + 112 is ________ (in binary). 7. The result of A116 + BC16 + 1016 is ________ (in hexadecimal). 30
  • 31. Department of Electronics and Communication Engineering, MIT, Manipal Number System Arithmetic 31  Binary Addition Ex1: (1010)2 + (0111)2 = (10001)2 (1010)2 = (10)10 +(0111)2 = (7)10 (10001)2 = (17)10
  • 32. Department of Electronics and Communication Engineering, MIT, Manipal Number System Arithmetic 32  Hexadecimal Add (7AB.67)16 to (15C.71) 16 = (907. D8)16
  • 33. Department of Electronics and Communication Engineering, MIT, Manipal Number System Arithmetic 33 Ex1: Add ( 334.65)8 to (671.14) 8 = 1226.018  Octal
  • 34. Department of Electronics and Communication Engineering, MIT, Manipal Ones’s and two’s Complement 34 • To find 1’s complement of a binary number just invert the bits. • To find 2’s complement of a binary number find 1’s complement and add 1 to the result. 1’s complement of 0011 is 1100. 2’s complement of 0110 is 1010.
  • 35. Department of Electronics and Communication Engineering, MIT, Manipal Summary 35  List different number system in use of processing  Binary, decimal, octal and hexadecimal are commonly used number systems  Convert number in one system to another system.  Perform basic arithmetic’s using various number system
  • 36. Department of Electronics and Communication Engineering, MIT, Manipal Exercise 36 1. Subtract 14 from 46 using the 2’s complement method. 2. Subtract 35 from 23 using 2’s complement.

Editor's Notes

  1. We need to know how to convert a number in one system to the equivalent number in another system. Since the decimal system is more familiar than the other systems, we first show how to covert from any base to decimal. Then we show how to convert from decimal to any base. Finally, we show how we can easily convert from binary to hexadecimal or octal and vice versa. The computer systems accept the data in decimal form, whereas they store and process the data in binary form. Therefore, it becomes necessary to convert the numbers represented in one system into the numbers represented in another system. The different types of number system conversions can be divided into the following major categories: Non-decimal to decimal Decimal to non-decimal Octal to hexadecimal