SlideShare a Scribd company logo
1 of 11
ERROR DETECTION
&
CORRECTION CODES
Presented by:
Faraz Ahmad
Muhammad Qasim
Faiz Ul Hassan
1
ERROR DETECTION AND CORRECTION CODES
 When the digital information in the binary form
is transmitted from one circuit or system
to another circuit or system an error mayoccur.
 This means the signal corresponding to 0 may
change to 1 or vice-versa due to presence of noise
 To maintain data integrity between transmitter
and receiver, extra bit or more than one bit are
added in the data.
 These extra bits allow the detection and sometimes
the correction of error in the data.
2
TYPES OF ERROR:
There are two types of errors.
 Single bit error.
 Burst error.
Single bit error:
 There is only one bit changed in the code.
 10101 10100
Burst error:
 There are more than one bit changed in received code.
 101010010 111010011
 Here the length of error is six after six bits error is occuring.
Changed bit
Changed bits
DETECTION AND CORRECTION OF ERROR
Codes which allow only error detection are called error
detecting codes and codes which allow error detection and
correction are called error detecting and correcting codes
Types of error detector.
 Simple parity bit(even, odd)
 2d parity
 Check sum
 CRC(cyclic redundancy check)
Parity bit
• A parity bit is used for the purpose of detecting
errors during transmission of binary information.
• A parity bit is an extra bit included with a
binary message to make the number of 1s either
odd or
ERROR DETECTION:
3
 The parity error detection system just described detects any odd
number of errors.
 However, it cannot detect an even number of error because such
errors will not destroy the parity of the transmitted group ofbits
Block parity:
 When several binary words are transmitted or received in
succession, the resulting collection of bits can be regarded as a
block of data, having rows and columns.
 Example: four eight bit words in succession form an 4x8block.
 Parity bits can then be assigned to both rows andcolumns.
 This scheme is known as block parity
 It makes it possible to correct any single error occurring in a
data word and to detect any two errors in aword.
CONTD…
6
CORRECTION OF ERRORS
 Correction of error is doned by using hamming
code method.
 This method is used for both the detection and for
the correction of error code send to the reciever
HAMMING CODE
 Hamming code not only provides the detection of a bit
error, but also identifies which bit is in error so that it can
be corrected.
 Thus hamming code is called error detecting and
correcting code.
 The code uses a number of parity bits(dependent on the
number of information bits) located at certain position in a
group.
 Number of parity bits:
 The number of parity bits depends on the number of
information bits
 If the number of bits is designated as x, then the number of
parity bits P is determined using the relation
2𝑝 ≥ 𝑥+ 𝑃+1
CONTD…
Location of the parity bits in a code:
• The parity bits are located in the positions that are
numbered corresponding to ascending powers of
two(1,2,4,8,….).
• Therefore, for 7-bit code, locations for parity bits and
information bits are as follows:
D4, D3,D2,P3, D1,P2,P1
Assigning values to parity bit:
• In hamming code , each parity bit provides a check on
certain other bits in the total code, therefore we must
know the value of these others in order to assign the
parity bit value.
CONTD…
Assignment of P1:
 This parity bit checks all bit locations, including itself, that
have 1s in the same location in the binary location
numbers.
Assignment of P2:
 This parity bit checks all bit locations, including itself, that
have 1s in the middle bit.
Assignment of P3:
 This parity bit checks all bit locations, including itself, that
have 1s in the left-most bit.
SINGLE ERROR CORRECTION AND DOUBLE
ERROR DETECTION
 With the light modification, it is possible to construct
hamming code for single error correction and double error
detection.
 A one more parity bit is added in the hamming code to
ensure hamming code contains an even number of ones.
 The resulting hamming code enables single error correction
and double error detection.
 When overall parity bit is correct, there is no single error
during the transmission of the code.
 If overall parity bit is incorrect, then there is single error
and the bit position of the error can be indicated by binary
number formed after checking the parity bits.

More Related Content

What's hot

T com presentation (error correcting code)
T com presentation   (error correcting code)T com presentation   (error correcting code)
T com presentation (error correcting code)Akshit Jain
 
Error Detection and Error Correction by MHM.ppt
Error Detection and Error Correction by MHM.pptError Detection and Error Correction by MHM.ppt
Error Detection and Error Correction by MHM.pptMd Mosharof Hosen
 
Computerarchitecture by csa
Computerarchitecture by csaComputerarchitecture by csa
Computerarchitecture by csabathala sudhakar
 
Digital principles basic
Digital principles basicDigital principles basic
Digital principles basicAbinaya B
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correctionSiddique Ibrahim
 
Error Detection and correction concepts in Data communication and networks
Error Detection and correction concepts in Data communication and networksError Detection and correction concepts in Data communication and networks
Error Detection and correction concepts in Data communication and networksNt Arvind
 
C Sharp Nagina (1)
C Sharp Nagina (1)C Sharp Nagina (1)
C Sharp Nagina (1)guest58c84c
 
Python workshop
Python workshopPython workshop
Python workshopJibin Sabu
 
Parity bits
Parity bitsParity bits
Parity bitsmrhaken
 
review of number systems and codes
review of number systems and codesreview of number systems and codes
review of number systems and codessrinu247
 
IRJET- FPGA Implementation of Orthogonal Codes for Efficient Digital Communic...
IRJET- FPGA Implementation of Orthogonal Codes for Efficient Digital Communic...IRJET- FPGA Implementation of Orthogonal Codes for Efficient Digital Communic...
IRJET- FPGA Implementation of Orthogonal Codes for Efficient Digital Communic...IRJET Journal
 
Dlc{binary to gray code conversion} ppt
Dlc{binary to gray code conversion} pptDlc{binary to gray code conversion} ppt
Dlc{binary to gray code conversion} pptTanish Gupta
 
Error Detection types
Error Detection typesError Detection types
Error Detection typesKamran Ashraf
 
A Closer Look at Data Types, Variables and Expressions
A Closer Look at Data Types, Variables and ExpressionsA Closer Look at Data Types, Variables and Expressions
A Closer Look at Data Types, Variables and ExpressionsInan Mashrur
 

What's hot (19)

T com presentation (error correcting code)
T com presentation   (error correcting code)T com presentation   (error correcting code)
T com presentation (error correcting code)
 
Error Detection and Error Correction by MHM.ppt
Error Detection and Error Correction by MHM.pptError Detection and Error Correction by MHM.ppt
Error Detection and Error Correction by MHM.ppt
 
Binary codes
Binary codesBinary codes
Binary codes
 
Computerarchitecture by csa
Computerarchitecture by csaComputerarchitecture by csa
Computerarchitecture by csa
 
Digital principles basic
Digital principles basicDigital principles basic
Digital principles basic
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
 
Binary code
Binary codeBinary code
Binary code
 
Error Detection and correction concepts in Data communication and networks
Error Detection and correction concepts in Data communication and networksError Detection and correction concepts in Data communication and networks
Error Detection and correction concepts in Data communication and networks
 
Even odd parity
Even odd parityEven odd parity
Even odd parity
 
C Sharp Nagina (1)
C Sharp Nagina (1)C Sharp Nagina (1)
C Sharp Nagina (1)
 
Python workshop
Python workshopPython workshop
Python workshop
 
Error control
Error controlError control
Error control
 
Block codes
Block codesBlock codes
Block codes
 
Parity bits
Parity bitsParity bits
Parity bits
 
review of number systems and codes
review of number systems and codesreview of number systems and codes
review of number systems and codes
 
IRJET- FPGA Implementation of Orthogonal Codes for Efficient Digital Communic...
IRJET- FPGA Implementation of Orthogonal Codes for Efficient Digital Communic...IRJET- FPGA Implementation of Orthogonal Codes for Efficient Digital Communic...
IRJET- FPGA Implementation of Orthogonal Codes for Efficient Digital Communic...
 
Dlc{binary to gray code conversion} ppt
Dlc{binary to gray code conversion} pptDlc{binary to gray code conversion} ppt
Dlc{binary to gray code conversion} ppt
 
Error Detection types
Error Detection typesError Detection types
Error Detection types
 
A Closer Look at Data Types, Variables and Expressions
A Closer Look at Data Types, Variables and ExpressionsA Closer Look at Data Types, Variables and Expressions
A Closer Look at Data Types, Variables and Expressions
 

Similar to Digital logic designing presentation

DCN Error Detection & Correction
DCN Error Detection & CorrectionDCN Error Detection & Correction
DCN Error Detection & CorrectionRohan Bhatkar
 
Error dectation and correction
Error dectation and correctionError dectation and correction
Error dectation and correctionfg657
 
Error detection and correction codes r006
Error detection and correction codes   r006Error detection and correction codes   r006
Error detection and correction codes r006arunachalamr16
 
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
 
Error detection & correctoin
Error detection    & correctoinError detection    & correctoin
Error detection & correctoinDIPTOsarker6
 
Presentation for the Project on VLSI and Embedded
Presentation for the Project on VLSI and EmbeddedPresentation for the Project on VLSI and Embedded
Presentation for the Project on VLSI and Embeddedlthanuja01
 
Error correction and detection th
Error correction and detection thError correction and detection th
Error correction and detection thShardaSalunkhe1
 
Digital Communication GRP1 (1).pptx
Digital Communication GRP1 (1).pptxDigital Communication GRP1 (1).pptx
Digital Communication GRP1 (1).pptxgidati3640
 
07 Data Link LayerError Control.pdf
07 Data Link LayerError Control.pdf07 Data Link LayerError Control.pdf
07 Data Link LayerError Control.pdfbaysahcmjames2kblax
 
Block coding, error detection (Parity checking, Cyclic redundancy checking (C...
Block coding, error detection (Parity checking, Cyclic redundancy checking (C...Block coding, error detection (Parity checking, Cyclic redundancy checking (C...
Block coding, error detection (Parity checking, Cyclic redundancy checking (C...Paulo_Vangui
 
Satellite error detection and correction presentation
Satellite error detection and correction presentationSatellite error detection and correction presentation
Satellite error detection and correction presentationAhmedMuhumed2
 
Design and implementation of single bit error correction linear block code sy...
Design and implementation of single bit error correction linear block code sy...Design and implementation of single bit error correction linear block code sy...
Design and implementation of single bit error correction linear block code sy...TELKOMNIKA JOURNAL
 
error handling codes
error handling codeserror handling codes
error handling codesAparnaLal2
 
Error Control Coding -Introduction
Error Control Coding -IntroductionError Control Coding -Introduction
Error Control Coding -IntroductionBurdwan University
 
Error detection and correction unit-05
Error detection and correction unit-05Error detection and correction unit-05
Error detection and correction unit-05shrinivasgnaik
 
Paper id 312201514
Paper id 312201514Paper id 312201514
Paper id 312201514IJRAT
 

Similar to Digital logic designing presentation (20)

Codes
CodesCodes
Codes
 
DCN Error Detection & Correction
DCN Error Detection & CorrectionDCN Error Detection & Correction
DCN Error Detection & Correction
 
Error dectation and correction
Error dectation and correctionError dectation and correction
Error dectation and correction
 
Error detection and correction codes r006
Error detection and correction codes   r006Error detection and correction codes   r006
Error detection and correction codes r006
 
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
 
Error detection & correctoin
Error detection    & correctoinError detection    & correctoin
Error detection & correctoin
 
Presentation for the Project on VLSI and Embedded
Presentation for the Project on VLSI and EmbeddedPresentation for the Project on VLSI and Embedded
Presentation for the Project on VLSI and Embedded
 
UNIT-V.pptx
UNIT-V.pptxUNIT-V.pptx
UNIT-V.pptx
 
Error correction and detection th
Error correction and detection thError correction and detection th
Error correction and detection th
 
crc_checksum.pdf
crc_checksum.pdfcrc_checksum.pdf
crc_checksum.pdf
 
Digital Communication GRP1 (1).pptx
Digital Communication GRP1 (1).pptxDigital Communication GRP1 (1).pptx
Digital Communication GRP1 (1).pptx
 
07 Data Link LayerError Control.pdf
07 Data Link LayerError Control.pdf07 Data Link LayerError Control.pdf
07 Data Link LayerError Control.pdf
 
Block coding, error detection (Parity checking, Cyclic redundancy checking (C...
Block coding, error detection (Parity checking, Cyclic redundancy checking (C...Block coding, error detection (Parity checking, Cyclic redundancy checking (C...
Block coding, error detection (Parity checking, Cyclic redundancy checking (C...
 
Satellite error detection and correction presentation
Satellite error detection and correction presentationSatellite error detection and correction presentation
Satellite error detection and correction presentation
 
Design and implementation of single bit error correction linear block code sy...
Design and implementation of single bit error correction linear block code sy...Design and implementation of single bit error correction linear block code sy...
Design and implementation of single bit error correction linear block code sy...
 
error handling codes
error handling codeserror handling codes
error handling codes
 
Error Control Coding -Introduction
Error Control Coding -IntroductionError Control Coding -Introduction
Error Control Coding -Introduction
 
Error detection and correction unit-05
Error detection and correction unit-05Error detection and correction unit-05
Error detection and correction unit-05
 
Paper id 312201514
Paper id 312201514Paper id 312201514
Paper id 312201514
 
Unit 2 [autosaved]
Unit 2 [autosaved]Unit 2 [autosaved]
Unit 2 [autosaved]
 

Recently uploaded

GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)Areesha Ahmad
 
GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)Areesha Ahmad
 
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...Sérgio Sacani
 
Forensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdfForensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdfrohankumarsinghrore1
 
VIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C PVIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C PPRINCE C P
 
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRStunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRDelhi Call girls
 
Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )aarthirajkumar25
 
Botany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questionsBotany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questionsSumit Kumar yadav
 
Green chemistry and Sustainable development.pptx
Green chemistry  and Sustainable development.pptxGreen chemistry  and Sustainable development.pptx
Green chemistry and Sustainable development.pptxRajatChauhan518211
 
Disentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTDisentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTSérgio Sacani
 
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...Sérgio Sacani
 
DIFFERENCE IN BACK CROSS AND TEST CROSS
DIFFERENCE IN  BACK CROSS AND TEST CROSSDIFFERENCE IN  BACK CROSS AND TEST CROSS
DIFFERENCE IN BACK CROSS AND TEST CROSSLeenakshiTyagi
 
Natural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsNatural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsAArockiyaNisha
 
Zoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfZoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfSumit Kumar yadav
 
Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)PraveenaKalaiselvan1
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...RohitNehra6
 
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bAsymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bSérgio Sacani
 
Chemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdfChemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdfSumit Kumar yadav
 
Botany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfBotany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfSumit Kumar yadav
 

Recently uploaded (20)

GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)
 
GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)
 
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
All-domain Anomaly Resolution Office U.S. Department of Defense (U) Case: “Eg...
 
Forensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdfForensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdf
 
VIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C PVIRUSES structure and classification ppt by Dr.Prince C P
VIRUSES structure and classification ppt by Dr.Prince C P
 
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRStunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
 
Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )
 
Botany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questionsBotany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questions
 
Green chemistry and Sustainable development.pptx
Green chemistry  and Sustainable development.pptxGreen chemistry  and Sustainable development.pptx
Green chemistry and Sustainable development.pptx
 
CELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdfCELL -Structural and Functional unit of life.pdf
CELL -Structural and Functional unit of life.pdf
 
Disentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOSTDisentangling the origin of chemical differences using GHOST
Disentangling the origin of chemical differences using GHOST
 
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
 
DIFFERENCE IN BACK CROSS AND TEST CROSS
DIFFERENCE IN  BACK CROSS AND TEST CROSSDIFFERENCE IN  BACK CROSS AND TEST CROSS
DIFFERENCE IN BACK CROSS AND TEST CROSS
 
Natural Polymer Based Nanomaterials
Natural Polymer Based NanomaterialsNatural Polymer Based Nanomaterials
Natural Polymer Based Nanomaterials
 
Zoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfZoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdf
 
Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...
 
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bAsymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
 
Chemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdfChemistry 4th semester series (krishna).pdf
Chemistry 4th semester series (krishna).pdf
 
Botany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfBotany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdf
 

Digital logic designing presentation

  • 1. ERROR DETECTION & CORRECTION CODES Presented by: Faraz Ahmad Muhammad Qasim Faiz Ul Hassan 1
  • 2. ERROR DETECTION AND CORRECTION CODES  When the digital information in the binary form is transmitted from one circuit or system to another circuit or system an error mayoccur.  This means the signal corresponding to 0 may change to 1 or vice-versa due to presence of noise  To maintain data integrity between transmitter and receiver, extra bit or more than one bit are added in the data.  These extra bits allow the detection and sometimes the correction of error in the data. 2
  • 3. TYPES OF ERROR: There are two types of errors.  Single bit error.  Burst error. Single bit error:  There is only one bit changed in the code.  10101 10100 Burst error:  There are more than one bit changed in received code.  101010010 111010011  Here the length of error is six after six bits error is occuring. Changed bit Changed bits
  • 4. DETECTION AND CORRECTION OF ERROR Codes which allow only error detection are called error detecting codes and codes which allow error detection and correction are called error detecting and correcting codes Types of error detector.  Simple parity bit(even, odd)  2d parity  Check sum  CRC(cyclic redundancy check)
  • 5. Parity bit • A parity bit is used for the purpose of detecting errors during transmission of binary information. • A parity bit is an extra bit included with a binary message to make the number of 1s either odd or ERROR DETECTION: 3
  • 6.  The parity error detection system just described detects any odd number of errors.  However, it cannot detect an even number of error because such errors will not destroy the parity of the transmitted group ofbits Block parity:  When several binary words are transmitted or received in succession, the resulting collection of bits can be regarded as a block of data, having rows and columns.  Example: four eight bit words in succession form an 4x8block.  Parity bits can then be assigned to both rows andcolumns.  This scheme is known as block parity  It makes it possible to correct any single error occurring in a data word and to detect any two errors in aword. CONTD… 6
  • 7. CORRECTION OF ERRORS  Correction of error is doned by using hamming code method.  This method is used for both the detection and for the correction of error code send to the reciever
  • 8. HAMMING CODE  Hamming code not only provides the detection of a bit error, but also identifies which bit is in error so that it can be corrected.  Thus hamming code is called error detecting and correcting code.  The code uses a number of parity bits(dependent on the number of information bits) located at certain position in a group.  Number of parity bits:  The number of parity bits depends on the number of information bits  If the number of bits is designated as x, then the number of parity bits P is determined using the relation 2𝑝 ≥ 𝑥+ 𝑃+1
  • 9. CONTD… Location of the parity bits in a code: • The parity bits are located in the positions that are numbered corresponding to ascending powers of two(1,2,4,8,….). • Therefore, for 7-bit code, locations for parity bits and information bits are as follows: D4, D3,D2,P3, D1,P2,P1 Assigning values to parity bit: • In hamming code , each parity bit provides a check on certain other bits in the total code, therefore we must know the value of these others in order to assign the parity bit value.
  • 10. CONTD… Assignment of P1:  This parity bit checks all bit locations, including itself, that have 1s in the same location in the binary location numbers. Assignment of P2:  This parity bit checks all bit locations, including itself, that have 1s in the middle bit. Assignment of P3:  This parity bit checks all bit locations, including itself, that have 1s in the left-most bit.
  • 11. SINGLE ERROR CORRECTION AND DOUBLE ERROR DETECTION  With the light modification, it is possible to construct hamming code for single error correction and double error detection.  A one more parity bit is added in the hamming code to ensure hamming code contains an even number of ones.  The resulting hamming code enables single error correction and double error detection.  When overall parity bit is correct, there is no single error during the transmission of the code.  If overall parity bit is incorrect, then there is single error and the bit position of the error can be indicated by binary number formed after checking the parity bits.