SlideShare a Scribd company logo
1 of 19
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 2: Codes
2
Learning outcomes
At the end of this module, students will be able to:
• Discuss different binary combinations to represent code
characters.
• Explain error detection using parity bit.
• Describe error correction using hamming code.
Department of Electronics and Communication Engineering, MIT, Manipal
Binary coded decimal codes
3
Weighted Codes
Department of Electronics and Communication Engineering, MIT, Manipal
Binary coded decimal codes
4
• Weighted binary codes are those binary codes which
obey the positional weight principle.
• Each position of the number represents a specific weight.
• There exists a fixed weight associated with each bit
position in the binary representation of the code
character.
Weighted codes
Department of Electronics and Communication Engineering, MIT, Manipal
Binary coded decimal codes
5
Decimal number (A)10
Encoded in the binary form as a3 a2 a1 a0.
w3, w2, w1 and w0 are the weights selected for a given
code
(A)10 = w3a3 + w2a2 + w1a1 +w0a0
The more popularly used codes have these weights as
W3 W2 W1 W0
8 4 2 1
2 4 2 1
8 4 -2 -1
Department of Electronics and Communication Engineering, MIT, Manipal
Binary coded decimal codes
6
Binary Coded Decimal code (BCD)
Consider the number (16.85)10
(16.85)10 = (0001 0110 . 1000 0101)
Department of Electronics and Communication Engineering, MIT, Manipal
Binary coded decimal codes
7
Non-Weighted Code is one in which the positions in the code
do not have a specific weight. Examples are Excess-3. And
Gray.
• EXCESS-3 CODE
• GRAY CODE
Department of Electronics and Communication Engineering, MIT, Manipal
Binary coded decimal codes
8
Decimal BCD = 8421 Excess-3 Gray
0 0000 0011 0000
1 0001 0100 0001
2 0010 0101 0011
3 0011 0110 0010
4 0100 0111 0110
5 0101 1000 0111
6 0110 1001 0101
7 0111 1010 0100
8 1000 1011 1100
9 1001 1100 1101
Decimal to BCD, Excess-3 and Gray code
Department of Electronics and Communication Engineering, MIT, Manipal
Self complementing codes
9
Example: Consider the 2421 code.
The 2421 code of (4)10 is 0100.
Its complement is 1011 which is 2421 code for (5)10 = (9 - 4)10.
The complement of a code (by inverting each bit of code word)
the new code word formed represents the complement of the
number then such codes are called self-complementing code.
Department of Electronics and Communication Engineering, MIT, Manipal
Self Test
1. What do you mean by a code word?
2. What are the two types of BCD codes?
3. What do you mean by self – complementing code?
10
Department of Electronics and Communication Engineering, MIT, Manipal
Error Detection and Correction
11
• Introduction
• Single bit Error detection using parity bit
• Single bit error correction using (7,4) Hamming code
Department of Electronics and Communication Engineering, MIT, Manipal
Introduction
• When data is transmitted in digital form from one place to
another place through a transmission channel some data bits
may be modified.
• In a communication system data integrity is extremely
important.
• Ability to identify the error is called the error detection. It
would be preferred even well if we can correct the error besides
detection.
• A code which has the ability to correct the is called error
correction code.
Department of Electronics and Communication Engineering, MIT, Manipal
Error Detection Codes
13
• Parity: Number of ones in the given code word.
• Even & Odd parity:
Example: 0000 (1)odd-parity (0)even-parity
Example: 0100 (1)odd-parity (0)even-parity
Department of Electronics and Communication Engineering, MIT, Manipal
Error Correction code
 Principle of error correction
 Consider a (7,4) Hamming code
 Let i1 i2 i3 i4 be information symbols
 Let p1p2 p4 be check symbols
 The parity equations:
p1 = i1  i2  i4
p2 = i1  i3  i4
p4 = i2  i3  i4
14
Department of Electronics and Communication Engineering, MIT, Manipal
Hamming Code
15
Can write the equations as follows (easy to remember)
p1 p2 i1 p4 i2 i3 i4
1 0 1 0 1 0 1
0 1 1 0 0 1 1
0 0 0 1 1 1 1
1 2 3 4 5 6 7
This encodes a 4-bit information word into a 7-bit code
word
Department of Electronics and Communication Engineering, MIT, Manipal
Structure of Encoder and Decoder of
Hamming Code
16
Department of Electronics and Communication Engineering, MIT, Manipal
Hamming Code
17
There is 10 different messages for BCD and EXCESS-3.
Decimal Digit Hamming Code bits
For BCD For EXCESS 3
P1 P2 D3 P4 D5 D6 D7 P1 P2 D3 P4 D5 D6 D7
0 0 0 0 0 0 0 0 1 0 0 0 0 1 1
1 1 1 0 1 0 0 1 1 0 0 1 1 0 0
2 0 1 0 1 0 1 1 0 1 0 0 1 0 1
3 1 0 0 0 0 1 1 1 1 0 0 1 1 0
4 1 0 0 1 1 0 0 0 0 0 1 1 1 1
5 0 1 0 0 1 0 1 1 1 1 0 0 0 0
6 1 1 0 0 1 1 0 0 0 1 1 0 0 1
7 0 0 0 1 1 1 1 1 0 1 1 0 1 0
8 1 1 1 0 0 0 0 0 1 1 0 0 1 1
9 0 0 1 1 0 0 1 0 1 1 1 1 0 0
Department of Electronics and Communication Engineering, MIT, Manipal
Self Test
1. What is parity bit? How many types are there?
2. What do you mean by distance between two words?
3. What is the minimum distance of 7- bit Hamming code?
4. What must be the minimum distance of a code for it to be
single – bit error correcting code?
18
Department of Electronics and Communication Engineering, MIT, Manipal
Summary
19
 Different forms of BCD representation
 Weighted and non weighted codes
 Error detection using parity bit.
 Error correction using Hamming code.

More Related Content

Similar to MODULE_2_Ch4_01082014.pptx .

Error control coding techniques
Error control coding techniquesError control coding techniques
Error control coding techniquesDhanashriNandre
 
Chap ii.BCD code,Gray code
Chap ii.BCD code,Gray codeChap ii.BCD code,Gray code
Chap ii.BCD code,Gray codeBala Ganesh
 
High Performance Error Detection with Different Set Cyclic Codes for Memory A...
High Performance Error Detection with Different Set Cyclic Codes for Memory A...High Performance Error Detection with Different Set Cyclic Codes for Memory A...
High Performance Error Detection with Different Set Cyclic Codes for Memory A...IOSR Journals
 
Chapter 10: Error Correction and Detection
Chapter 10: Error Correction and DetectionChapter 10: Error Correction and Detection
Chapter 10: Error Correction and DetectionJeoffnaRuth
 
Iisrt jona priyaa(1 5)
Iisrt jona priyaa(1 5)Iisrt jona priyaa(1 5)
Iisrt jona priyaa(1 5)IISRT
 
DCN Error Detection & Correction
DCN Error Detection & CorrectionDCN Error Detection & Correction
DCN Error Detection & CorrectionRohan Bhatkar
 
review of number systems and codes
review of number systems and codesreview of number systems and codes
review of number systems and codessrinu247
 
CArcMOOC 02.04 - Special encodings
CArcMOOC 02.04 - Special encodingsCArcMOOC 02.04 - Special encodings
CArcMOOC 02.04 - Special encodingsAlessandro Bogliolo
 
Digital Logic BCA TU Chapter 2.2
Digital Logic BCA TU Chapter 2.2Digital Logic BCA TU Chapter 2.2
Digital Logic BCA TU Chapter 2.2ISMT College
 
Dee 2034 chapter 1 number and code system (Baia)
Dee 2034 chapter 1 number and code system (Baia)Dee 2034 chapter 1 number and code system (Baia)
Dee 2034 chapter 1 number and code system (Baia)SITI SABARIAH SALIHIN
 
Lecture 1.1.1 1.1.2 (10).pptx
Lecture 1.1.1  1.1.2 (10).pptxLecture 1.1.1  1.1.2 (10).pptx
Lecture 1.1.1 1.1.2 (10).pptxpratick2
 
Paper id 312201514
Paper id 312201514Paper id 312201514
Paper id 312201514IJRAT
 
basic electronics MODULE_1_Ch4_AH_01082014.pptx
basic electronics MODULE_1_Ch4_AH_01082014.pptxbasic electronics MODULE_1_Ch4_AH_01082014.pptx
basic electronics MODULE_1_Ch4_AH_01082014.pptxhappycocoman
 
PERFORMANCE ESTIMATION OF LDPC CODE SUING SUM PRODUCT ALGORITHM AND BIT FLIPP...
PERFORMANCE ESTIMATION OF LDPC CODE SUING SUM PRODUCT ALGORITHM AND BIT FLIPP...PERFORMANCE ESTIMATION OF LDPC CODE SUING SUM PRODUCT ALGORITHM AND BIT FLIPP...
PERFORMANCE ESTIMATION OF LDPC CODE SUING SUM PRODUCT ALGORITHM AND BIT FLIPP...Journal For Research
 
Performance Analysis of Steepest Descent Decoding Algorithm for LDPC Codes
Performance Analysis of Steepest Descent Decoding Algorithm for LDPC CodesPerformance Analysis of Steepest Descent Decoding Algorithm for LDPC Codes
Performance Analysis of Steepest Descent Decoding Algorithm for LDPC Codesidescitation
 

Similar to MODULE_2_Ch4_01082014.pptx . (20)

Error control coding techniques
Error control coding techniquesError control coding techniques
Error control coding techniques
 
Chap ii.BCD code,Gray code
Chap ii.BCD code,Gray codeChap ii.BCD code,Gray code
Chap ii.BCD code,Gray code
 
High Performance Error Detection with Different Set Cyclic Codes for Memory A...
High Performance Error Detection with Different Set Cyclic Codes for Memory A...High Performance Error Detection with Different Set Cyclic Codes for Memory A...
High Performance Error Detection with Different Set Cyclic Codes for Memory A...
 
DSD.pptx
DSD.pptxDSD.pptx
DSD.pptx
 
Binary and EC codes
Binary and EC codesBinary and EC codes
Binary and EC codes
 
Chapter 10: Error Correction and Detection
Chapter 10: Error Correction and DetectionChapter 10: Error Correction and Detection
Chapter 10: Error Correction and Detection
 
Iisrt jona priyaa(1 5)
Iisrt jona priyaa(1 5)Iisrt jona priyaa(1 5)
Iisrt jona priyaa(1 5)
 
DCN Error Detection & Correction
DCN Error Detection & CorrectionDCN Error Detection & Correction
DCN Error Detection & Correction
 
review of number systems and codes
review of number systems and codesreview of number systems and codes
review of number systems and codes
 
CArcMOOC 02.04 - Special encodings
CArcMOOC 02.04 - Special encodingsCArcMOOC 02.04 - Special encodings
CArcMOOC 02.04 - Special encodings
 
Digital Logic BCA TU Chapter 2.2
Digital Logic BCA TU Chapter 2.2Digital Logic BCA TU Chapter 2.2
Digital Logic BCA TU Chapter 2.2
 
crc_checksum.pdf
crc_checksum.pdfcrc_checksum.pdf
crc_checksum.pdf
 
Dee 2034 chapter 1 number and code system (Baia)
Dee 2034 chapter 1 number and code system (Baia)Dee 2034 chapter 1 number and code system (Baia)
Dee 2034 chapter 1 number and code system (Baia)
 
Number system
Number systemNumber system
Number system
 
Lecture 1.1.1 1.1.2 (10).pptx
Lecture 1.1.1  1.1.2 (10).pptxLecture 1.1.1  1.1.2 (10).pptx
Lecture 1.1.1 1.1.2 (10).pptx
 
Paper id 312201514
Paper id 312201514Paper id 312201514
Paper id 312201514
 
basic electronics MODULE_1_Ch4_AH_01082014.pptx
basic electronics MODULE_1_Ch4_AH_01082014.pptxbasic electronics MODULE_1_Ch4_AH_01082014.pptx
basic electronics MODULE_1_Ch4_AH_01082014.pptx
 
PERFORMANCE ESTIMATION OF LDPC CODE SUING SUM PRODUCT ALGORITHM AND BIT FLIPP...
PERFORMANCE ESTIMATION OF LDPC CODE SUING SUM PRODUCT ALGORITHM AND BIT FLIPP...PERFORMANCE ESTIMATION OF LDPC CODE SUING SUM PRODUCT ALGORITHM AND BIT FLIPP...
PERFORMANCE ESTIMATION OF LDPC CODE SUING SUM PRODUCT ALGORITHM AND BIT FLIPP...
 
Dld lecture notes
Dld lecture notesDld lecture notes
Dld lecture notes
 
Performance Analysis of Steepest Descent Decoding Algorithm for LDPC Codes
Performance Analysis of Steepest Descent Decoding Algorithm for LDPC CodesPerformance Analysis of Steepest Descent Decoding Algorithm for LDPC Codes
Performance Analysis of Steepest Descent Decoding Algorithm for LDPC Codes
 

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

Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 

Recently uploaded (20)

Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 

MODULE_2_Ch4_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 2: Codes 2 Learning outcomes At the end of this module, students will be able to: • Discuss different binary combinations to represent code characters. • Explain error detection using parity bit. • Describe error correction using hamming code.
  • 3. Department of Electronics and Communication Engineering, MIT, Manipal Binary coded decimal codes 3 Weighted Codes
  • 4. Department of Electronics and Communication Engineering, MIT, Manipal Binary coded decimal codes 4 • Weighted binary codes are those binary codes which obey the positional weight principle. • Each position of the number represents a specific weight. • There exists a fixed weight associated with each bit position in the binary representation of the code character. Weighted codes
  • 5. Department of Electronics and Communication Engineering, MIT, Manipal Binary coded decimal codes 5 Decimal number (A)10 Encoded in the binary form as a3 a2 a1 a0. w3, w2, w1 and w0 are the weights selected for a given code (A)10 = w3a3 + w2a2 + w1a1 +w0a0 The more popularly used codes have these weights as W3 W2 W1 W0 8 4 2 1 2 4 2 1 8 4 -2 -1
  • 6. Department of Electronics and Communication Engineering, MIT, Manipal Binary coded decimal codes 6 Binary Coded Decimal code (BCD) Consider the number (16.85)10 (16.85)10 = (0001 0110 . 1000 0101)
  • 7. Department of Electronics and Communication Engineering, MIT, Manipal Binary coded decimal codes 7 Non-Weighted Code is one in which the positions in the code do not have a specific weight. Examples are Excess-3. And Gray. • EXCESS-3 CODE • GRAY CODE
  • 8. Department of Electronics and Communication Engineering, MIT, Manipal Binary coded decimal codes 8 Decimal BCD = 8421 Excess-3 Gray 0 0000 0011 0000 1 0001 0100 0001 2 0010 0101 0011 3 0011 0110 0010 4 0100 0111 0110 5 0101 1000 0111 6 0110 1001 0101 7 0111 1010 0100 8 1000 1011 1100 9 1001 1100 1101 Decimal to BCD, Excess-3 and Gray code
  • 9. Department of Electronics and Communication Engineering, MIT, Manipal Self complementing codes 9 Example: Consider the 2421 code. The 2421 code of (4)10 is 0100. Its complement is 1011 which is 2421 code for (5)10 = (9 - 4)10. The complement of a code (by inverting each bit of code word) the new code word formed represents the complement of the number then such codes are called self-complementing code.
  • 10. Department of Electronics and Communication Engineering, MIT, Manipal Self Test 1. What do you mean by a code word? 2. What are the two types of BCD codes? 3. What do you mean by self – complementing code? 10
  • 11. Department of Electronics and Communication Engineering, MIT, Manipal Error Detection and Correction 11 • Introduction • Single bit Error detection using parity bit • Single bit error correction using (7,4) Hamming code
  • 12. Department of Electronics and Communication Engineering, MIT, Manipal Introduction • When data is transmitted in digital form from one place to another place through a transmission channel some data bits may be modified. • In a communication system data integrity is extremely important. • Ability to identify the error is called the error detection. It would be preferred even well if we can correct the error besides detection. • A code which has the ability to correct the is called error correction code.
  • 13. Department of Electronics and Communication Engineering, MIT, Manipal Error Detection Codes 13 • Parity: Number of ones in the given code word. • Even & Odd parity: Example: 0000 (1)odd-parity (0)even-parity Example: 0100 (1)odd-parity (0)even-parity
  • 14. Department of Electronics and Communication Engineering, MIT, Manipal Error Correction code  Principle of error correction  Consider a (7,4) Hamming code  Let i1 i2 i3 i4 be information symbols  Let p1p2 p4 be check symbols  The parity equations: p1 = i1  i2  i4 p2 = i1  i3  i4 p4 = i2  i3  i4 14
  • 15. Department of Electronics and Communication Engineering, MIT, Manipal Hamming Code 15 Can write the equations as follows (easy to remember) p1 p2 i1 p4 i2 i3 i4 1 0 1 0 1 0 1 0 1 1 0 0 1 1 0 0 0 1 1 1 1 1 2 3 4 5 6 7 This encodes a 4-bit information word into a 7-bit code word
  • 16. Department of Electronics and Communication Engineering, MIT, Manipal Structure of Encoder and Decoder of Hamming Code 16
  • 17. Department of Electronics and Communication Engineering, MIT, Manipal Hamming Code 17 There is 10 different messages for BCD and EXCESS-3. Decimal Digit Hamming Code bits For BCD For EXCESS 3 P1 P2 D3 P4 D5 D6 D7 P1 P2 D3 P4 D5 D6 D7 0 0 0 0 0 0 0 0 1 0 0 0 0 1 1 1 1 1 0 1 0 0 1 1 0 0 1 1 0 0 2 0 1 0 1 0 1 1 0 1 0 0 1 0 1 3 1 0 0 0 0 1 1 1 1 0 0 1 1 0 4 1 0 0 1 1 0 0 0 0 0 1 1 1 1 5 0 1 0 0 1 0 1 1 1 1 0 0 0 0 6 1 1 0 0 1 1 0 0 0 1 1 0 0 1 7 0 0 0 1 1 1 1 1 0 1 1 0 1 0 8 1 1 1 0 0 0 0 0 1 1 0 0 1 1 9 0 0 1 1 0 0 1 0 1 1 1 1 0 0
  • 18. Department of Electronics and Communication Engineering, MIT, Manipal Self Test 1. What is parity bit? How many types are there? 2. What do you mean by distance between two words? 3. What is the minimum distance of 7- bit Hamming code? 4. What must be the minimum distance of a code for it to be single – bit error correcting code? 18
  • 19. Department of Electronics and Communication Engineering, MIT, Manipal Summary 19  Different forms of BCD representation  Weighted and non weighted codes  Error detection using parity bit.  Error correction using Hamming code.

Editor's Notes

  1. Even parity: The parity bit is set to 0 or 1 at the transmitter in such a way that the total number of 1’s in the resulting code word (including the parity) bit is an even number. Odd parity: The parity bit is set to 0 or 1 at the transmitter in such a way that the total number of 1’s in the resulting code word (including the parity bit) is an odd number.
  2. Properties of the code If there is no error, all parity equations will be satisfied Denote the outcomes of these equation checks as c1, c2, c4 If there is exactly one error, then c1, c2, c4 point to the error The vector c1, c2, c4 is called syndrome The above (7,4) Hamming code is SEC code The above method of construction can be generalized to construct an (n,k) Hamming code Simple bound k = number of information bits r = number of check bits n = k + r = total number of bits n + 1 = number of single or fewer errors Each error (including no error) must have a distinct syndrome With r check bits max possible syndrome = 2r Hence: 2r  n + 1