SlideShare a Scribd company logo
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

PPTX
Hamming code system
PPT
Error detection and correction codes
PPTX
Error Detection and Correction presentation
PPT
Lecture 22
PDF
Error detection & correction codes
PPT
Error Correction And Hamming Code Ibrar
PDF
Single-Bit Parity Detection and Correction using Hamming Code 7-Bit Model
PPT
New error-detection
Hamming code system
Error detection and correction codes
Error Detection and Correction presentation
Lecture 22
Error detection & correction codes
Error Correction And Hamming Code Ibrar
Single-Bit Parity Detection and Correction using Hamming Code 7-Bit Model
New error-detection

What's hot (19)

PPTX
T com presentation (error correcting code)
PPT
Error Detection and Error Correction by MHM.ppt
PDF
Binary codes
PDF
Computerarchitecture by csa
PPTX
Digital principles basic
PPT
Error detection and correction
PPT
Binary code
PPTX
Error Detection and correction concepts in Data communication and networks
PPT
Even odd parity
PPT
C Sharp Nagina (1)
PDF
Python workshop
PPSX
Error control
PDF
Block codes
PPTX
Parity bits
PPTX
review of number systems and codes
PDF
IRJET- FPGA Implementation of Orthogonal Codes for Efficient Digital Communic...
PPTX
Dlc{binary to gray code conversion} ppt
DOCX
Error Detection types
PPTX
A Closer Look at Data Types, Variables and Expressions
T com presentation (error correcting code)
Error Detection and Error Correction by MHM.ppt
Binary codes
Computerarchitecture by csa
Digital principles basic
Error detection and correction
Binary code
Error Detection and correction concepts in Data communication and networks
Even odd parity
C Sharp Nagina (1)
Python workshop
Error control
Block codes
Parity bits
review of number systems and codes
IRJET- FPGA Implementation of Orthogonal Codes for Efficient Digital Communic...
Dlc{binary to gray code conversion} ppt
Error Detection types
A Closer Look at Data Types, Variables and Expressions
Ad

Similar to Digital logic designing presentation (20)

PPTX
Lecture7.pptxhfjgjgjghcgzgzfzfzvzgxhchchc
PDF
Hamming code checksum
PPTX
Computer_Communication_Networking_L07Data_Link_Error_control.pptx
PPT
15CS46 - Data communication or computer networks 1_Module-3.ppt
PPTX
DOCX
Error dectation and correction
PDF
Error decting and correcting codes
PPTX
5.Error correction-Hamming Code.pptx
PPTX
Error Correcting and Error Detecting Codes.pptx
PPTX
10-Error Detection-Kode Hamming.pptx
PPT
Error detection and correction codes r006
PPT
3288940.ppt
PPTX
error handling codes
PPTX
Error detection and correction of computer network
PPTX
Error detection.
PPTX
Wireless digital communication and coding techniques new
PPT
New error-detection (2)
PPT
Skr+3200+chapter+3+(kweh)
PPTX
Error detection and correction
PPT
ch10.ppt
Lecture7.pptxhfjgjgjghcgzgzfzfzvzgxhchchc
Hamming code checksum
Computer_Communication_Networking_L07Data_Link_Error_control.pptx
15CS46 - Data communication or computer networks 1_Module-3.ppt
Error dectation and correction
Error decting and correcting codes
5.Error correction-Hamming Code.pptx
Error Correcting and Error Detecting Codes.pptx
10-Error Detection-Kode Hamming.pptx
Error detection and correction codes r006
3288940.ppt
error handling codes
Error detection and correction of computer network
Error detection.
Wireless digital communication and coding techniques new
New error-detection (2)
Skr+3200+chapter+3+(kweh)
Error detection and correction
ch10.ppt
Ad

Recently uploaded (20)

PPTX
Vitamins & Minerals: Complete Guide to Functions, Food Sources, Deficiency Si...
PDF
ELS_Q1_Module-11_Formation-of-Rock-Layers_v2.pdf
PPTX
ANEMIA WITH LEUKOPENIA MDS 07_25.pptx htggtftgt fredrctvg
PPTX
Comparative Structure of Integument in Vertebrates.pptx
DOCX
Q1_LE_Mathematics 8_Lesson 5_Week 5.docx
PPTX
Classification Systems_TAXONOMY_SCIENCE8.pptx
PPTX
Introduction to Fisheries Biotechnology_Lesson 1.pptx
PPTX
BIOMOLECULES PPT........................
PPTX
cpcsea ppt.pptxssssssssssssssjjdjdndndddd
PDF
Placing the Near-Earth Object Impact Probability in Context
PDF
The scientific heritage No 166 (166) (2025)
PPTX
Introduction to Cardiovascular system_structure and functions-1
PPTX
EPIDURAL ANESTHESIA ANATOMY AND PHYSIOLOGY.pptx
PDF
Phytochemical Investigation of Miliusa longipes.pdf
PDF
SEHH2274 Organic Chemistry Notes 1 Structure and Bonding.pdf
PDF
CAPERS-LRD-z9:AGas-enshroudedLittleRedDotHostingaBroad-lineActive GalacticNuc...
PPTX
Microbiology with diagram medical studies .pptx
PPTX
INTRODUCTION TO EVS | Concept of sustainability
PDF
AlphaEarth Foundations and the Satellite Embedding dataset
PPTX
Protein & Amino Acid Structures Levels of protein structure (primary, seconda...
Vitamins & Minerals: Complete Guide to Functions, Food Sources, Deficiency Si...
ELS_Q1_Module-11_Formation-of-Rock-Layers_v2.pdf
ANEMIA WITH LEUKOPENIA MDS 07_25.pptx htggtftgt fredrctvg
Comparative Structure of Integument in Vertebrates.pptx
Q1_LE_Mathematics 8_Lesson 5_Week 5.docx
Classification Systems_TAXONOMY_SCIENCE8.pptx
Introduction to Fisheries Biotechnology_Lesson 1.pptx
BIOMOLECULES PPT........................
cpcsea ppt.pptxssssssssssssssjjdjdndndddd
Placing the Near-Earth Object Impact Probability in Context
The scientific heritage No 166 (166) (2025)
Introduction to Cardiovascular system_structure and functions-1
EPIDURAL ANESTHESIA ANATOMY AND PHYSIOLOGY.pptx
Phytochemical Investigation of Miliusa longipes.pdf
SEHH2274 Organic Chemistry Notes 1 Structure and Bonding.pdf
CAPERS-LRD-z9:AGas-enshroudedLittleRedDotHostingaBroad-lineActive GalacticNuc...
Microbiology with diagram medical studies .pptx
INTRODUCTION TO EVS | Concept of sustainability
AlphaEarth Foundations and the Satellite Embedding dataset
Protein & Amino Acid Structures Levels of protein structure (primary, seconda...

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.