SlideShare a Scribd company logo
ERROR DETECTION &
CORRECTION CODES
CONTENTS:
 Introduction
 Parity bit
 Hamming code
K O N G U N A D U C O L L E G E O F E N G I N E E R I N G & T E C H N O L O G Y 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 may occur.
 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.
K O N G U N A D U C O L L E G E O F E N G I N E E R I N G & T E C H N O L O G Y 2
• The data along with the extra bit /bits form the
code
• 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
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
even.
Contd…
K O N G U N A D U C O L L E G E O F E N G I N E E R I N G & T E C H N O L O G Y 3
• The message including the parity bit is transmitted and
then checked at the receiving end for errors.
• An error is detected if the checked parity does not
correspond with the one transmitted.
• The circuit that generates the parity bit in the transmitter
is called a parity generator and the circuit that checks the
parity in the receiver is called a parity checker.
• In even parity the added parity bit will make the total
number of 1s an even amount. In odd parity the added
parity bit will make the total number of 1s an odd
amount.
• As a general rule in the digital system where the
transmission system is relatively short, it may be assumed
that probability of a single-bit error is small and that of a
double-bit error and higher order errors is extremely
small.
Contd….
K O N G U N A D U C O L L E G E O F E N G I N E E R I N G & T E C H N O L O G Y 4
 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 of bits
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 4x8 block.
 Parity bits can then be assigned to both rows and columns.
 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 a word.
Contd…
K O N G U N A D U C O L L E G E O F E N G I N E E R I N G & T E C H N O L O G Y 5
K O N G U N A D U C O L L E G E O F E N G I N E E R I N G & T E C H N O L O G Y
6
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
K O N G U N A D U C O L L E G E O F E N G I N E E R I N G & T E C H N O L O G Y 7
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.
K O N G U N A D U C O L L E G E O F E N G I N E E R I N G & T E C H N O L O G Y 8
Bit Designation D4 D3 D2 P3 D1 P2 P1
Bit Location 7 6 5 4 3 2 1
Binary Location
Number
111 110 101 100 011 010 001
Information Bits
Parity Bits
Bit Location Table:
K O N G U N A D U C O L L E G E O F E N G I N E E R I N G & T E C H N O L O G Y 9
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.
K O N G U N A D U C O L L E G E O F E N G I N E E R I N G & T E C H N O L O G Y 10
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.
K O N G U N A D U C O L L E G E O F E N G I N E E R I N G & T E C H N O L O G Y 11
CONTD….
 Hence, single error correction can be
achieved.
 If overall parity bit is correct and binary
number formed after checking the parity bits
is other than 0-0-0, there are two errors.
 In this case, double error detection is
achieved.
 However, no correction is possible.
K O N G U N A D U C O L L E G E O F E N G I N E E R I N G & T E C H N O L O G Y 12
Conclusion:
The various types of error detecting and correcting methods are discussed
in brief manner.
References:
• Mandal, “Digital Electronics Principles & Application, McGraw Hill
Edu, 2013.
• William Keitz, Digital Electronics-A Practical Approach with VHDL,
Pearson, 2013.
• Thomas L.Floyd, ‘Digital Fundamentals’, 11th edition, Pearson
Education, 2015.
• Charles H.Roth, Jr, Lizy Lizy Kurian John, ‘Digital System Design
using VHDL, Cengage,2013.
• D.P.Kothari,J.S.Dhillon, ‘Digital circuits and Design’,Pearson
Education, 2016.
• A.P.Godse., Dr.D.A.Godse, ‘Digital Logic Circuits’ , Technical
Publications Third Edition 2016
• Other Web Sources
K O N G U N A D U C O L L E G E O F E N G I N E E R I N G & T E C H N O L O G Y 13

More Related Content

What's hot

Manchester & Differential Manchester encoding scheme
Manchester & Differential Manchester encoding schemeManchester & Differential Manchester encoding scheme
Manchester & Differential Manchester encoding scheme
Arunabha Saha
 
Stack organization
Stack organizationStack organization
Stack organization
chauhankapil
 
Wireless communication
Wireless communicationWireless communication
Wireless communication
Mukesh Chinta
 
Analog and digital signals
Analog and digital signalsAnalog and digital signals
Analog and digital signals
teja reddy
 
SOP POS, Minterm and Maxterm
SOP POS, Minterm and MaxtermSOP POS, Minterm and Maxterm
SOP POS, Minterm and Maxterm
Self-employed
 
Data Communication & Computer Networks: Multi level, multi transition & block...
Data Communication & Computer Networks: Multi level, multi transition & block...Data Communication & Computer Networks: Multi level, multi transition & block...
Data Communication & Computer Networks: Multi level, multi transition & block...
Dr Rajiv Srivastava
 
Multiplexer and DeMultiplexer
Multiplexer and DeMultiplexerMultiplexer and DeMultiplexer
Multiplexer and DeMultiplexer
Estiak Khan
 
Source coding
Source coding Source coding
Source coding
Shankar Gangaju
 
8086 micro processor
8086 micro processor8086 micro processor
8086 micro processor
Poojith Chowdhary
 
Issues in Data Link Layer
Issues in Data Link LayerIssues in Data Link Layer
Issues in Data Link Layer
selvakumar_b1985
 
Chapter 4 data link layer
Chapter 4 data link layerChapter 4 data link layer
Chapter 4 data link layer
Naiyan Noor
 
Floating point arithmetic operations (1)
Floating point arithmetic operations (1)Floating point arithmetic operations (1)
Floating point arithmetic operations (1)
cs19club
 
Error Detection and Correction presentation
Error Detection and Correction presentation Error Detection and Correction presentation
Error Detection and Correction presentation
Badrul Alam
 
Error correction and detection th
Error correction and detection thError correction and detection th
Error correction and detection th
ShardaSalunkhe1
 
8086 modes
8086 modes8086 modes
8086 modes
PDFSHARE
 
Digital electronics
Digital electronicsDigital electronics
Data link layer
Data link layer Data link layer
Data link layer
Mukesh Chinta
 

What's hot (20)

Convolution Codes
Convolution CodesConvolution Codes
Convolution Codes
 
Manchester & Differential Manchester encoding scheme
Manchester & Differential Manchester encoding schemeManchester & Differential Manchester encoding scheme
Manchester & Differential Manchester encoding scheme
 
Turbo codes.ppt
Turbo codes.pptTurbo codes.ppt
Turbo codes.ppt
 
Stack organization
Stack organizationStack organization
Stack organization
 
Wireless communication
Wireless communicationWireless communication
Wireless communication
 
Analog and digital signals
Analog and digital signalsAnalog and digital signals
Analog and digital signals
 
SOP POS, Minterm and Maxterm
SOP POS, Minterm and MaxtermSOP POS, Minterm and Maxterm
SOP POS, Minterm and Maxterm
 
Data Communication & Computer Networks: Multi level, multi transition & block...
Data Communication & Computer Networks: Multi level, multi transition & block...Data Communication & Computer Networks: Multi level, multi transition & block...
Data Communication & Computer Networks: Multi level, multi transition & block...
 
Multiplexer and DeMultiplexer
Multiplexer and DeMultiplexerMultiplexer and DeMultiplexer
Multiplexer and DeMultiplexer
 
Source coding
Source coding Source coding
Source coding
 
8086 micro processor
8086 micro processor8086 micro processor
8086 micro processor
 
Issues in Data Link Layer
Issues in Data Link LayerIssues in Data Link Layer
Issues in Data Link Layer
 
Chapter 4 data link layer
Chapter 4 data link layerChapter 4 data link layer
Chapter 4 data link layer
 
Floating point arithmetic operations (1)
Floating point arithmetic operations (1)Floating point arithmetic operations (1)
Floating point arithmetic operations (1)
 
Error Detection and Correction presentation
Error Detection and Correction presentation Error Detection and Correction presentation
Error Detection and Correction presentation
 
Basics of digital electronics
Basics of digital electronicsBasics of digital electronics
Basics of digital electronics
 
Error correction and detection th
Error correction and detection thError correction and detection th
Error correction and detection th
 
8086 modes
8086 modes8086 modes
8086 modes
 
Digital electronics
Digital electronicsDigital electronics
Digital electronics
 
Data link layer
Data link layer Data link layer
Data link layer
 

Similar to Error detection & correction codes

Error detection and correction codes
Error detection and correction codesError detection and correction codes
Error detection and correction codes
GargiKhanna1
 
Digital logic designing presentation
Digital logic designing presentationDigital logic designing presentation
Digital logic designing presentation
Hassan Hashmi
 
Error dectation and correction
Error dectation and correctionError dectation and correction
Error dectation and correction
fg657
 
Error detection and correction codes r006
Error detection and correction codes   r006Error detection and correction codes   r006
Error detection and correction codes r006
arunachalamr16
 
K034066071
K034066071K034066071
K034066071
ijceronline
 
Codes
CodesCodes
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
 
Satellite error detection and correction presentation
Satellite error detection and correction presentationSatellite error detection and correction presentation
Satellite error detection and correction presentation
AhmedMuhumed2
 
DCN Error Detection & Correction
DCN Error Detection & CorrectionDCN Error Detection & Correction
DCN Error Detection & Correction
Rohan Bhatkar
 
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
ISMT College
 
crc_checksum.pdf
crc_checksum.pdfcrc_checksum.pdf
crc_checksum.pdf
ssuser8b4eb21
 
07 Data Link LayerError Control.pdf
07 Data Link LayerError Control.pdf07 Data Link LayerError Control.pdf
07 Data Link LayerError Control.pdf
baysahcmjames2kblax
 
Information and Theory Coding Encoder
Information and Theory Coding EncoderInformation and Theory Coding Encoder
Information and Theory Coding Encoder
ShawnIslam20150022
 
UNIT-V.pptx
UNIT-V.pptxUNIT-V.pptx
UNIT-V.pptx
amudhak10
 
Single-Bit Parity Detection and Correction using Hamming Code 7-Bit Model
Single-Bit Parity Detection and Correction using Hamming Code 7-Bit ModelSingle-Bit Parity Detection and Correction using Hamming Code 7-Bit Model
Single-Bit Parity Detection and Correction using Hamming Code 7-Bit Model
Universitas Pembangunan Panca Budi
 
Unit-4.pptx
Unit-4.pptxUnit-4.pptx
computer networks Error Detection Methods.pdf
computer networks Error Detection Methods.pdfcomputer networks Error Detection Methods.pdf
computer networks Error Detection Methods.pdf
Balasubramanian699229
 
Error detection and correction unit-05
Error detection and correction unit-05Error detection and correction unit-05
Error detection and correction unit-05
shrinivasgnaik
 
Digital Communication GRP1 (1).pptx
Digital Communication GRP1 (1).pptxDigital Communication GRP1 (1).pptx
Digital Communication GRP1 (1).pptx
gidati3640
 

Similar to Error detection & correction codes (20)

Error detection and correction codes
Error detection and correction codesError detection and correction codes
Error detection and correction codes
 
Digital logic designing presentation
Digital logic designing presentationDigital logic designing presentation
Digital logic designing presentation
 
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
 
K034066071
K034066071K034066071
K034066071
 
Codes
CodesCodes
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...
 
Satellite error detection and correction presentation
Satellite error detection and correction presentationSatellite error detection and correction presentation
Satellite error detection and correction presentation
 
DCN Error Detection & Correction
DCN Error Detection & CorrectionDCN Error Detection & Correction
DCN Error Detection & Correction
 
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
 
07 Data Link LayerError Control.pdf
07 Data Link LayerError Control.pdf07 Data Link LayerError Control.pdf
07 Data Link LayerError Control.pdf
 
Information and Theory Coding Encoder
Information and Theory Coding EncoderInformation and Theory Coding Encoder
Information and Theory Coding Encoder
 
UNIT-V.pptx
UNIT-V.pptxUNIT-V.pptx
UNIT-V.pptx
 
Single-Bit Parity Detection and Correction using Hamming Code 7-Bit Model
Single-Bit Parity Detection and Correction using Hamming Code 7-Bit ModelSingle-Bit Parity Detection and Correction using Hamming Code 7-Bit Model
Single-Bit Parity Detection and Correction using Hamming Code 7-Bit Model
 
Unit-4.pptx
Unit-4.pptxUnit-4.pptx
Unit-4.pptx
 
Lecture 22
Lecture 22Lecture 22
Lecture 22
 
computer networks Error Detection Methods.pdf
computer networks Error Detection Methods.pdfcomputer networks Error Detection Methods.pdf
computer networks Error Detection Methods.pdf
 
Error detection and correction unit-05
Error detection and correction unit-05Error detection and correction unit-05
Error detection and correction unit-05
 
Digital Communication GRP1 (1).pptx
Digital Communication GRP1 (1).pptxDigital Communication GRP1 (1).pptx
Digital Communication GRP1 (1).pptx
 

More from Revathi Subramaniam

Introduction to embedded system
Introduction to embedded systemIntroduction to embedded system
Introduction to embedded system
Revathi Subramaniam
 
Inter intergrated circuits-communication protocol
Inter intergrated circuits-communication protocolInter intergrated circuits-communication protocol
Inter intergrated circuits-communication protocol
Revathi Subramaniam
 
Application of embeddd system
Application of embeddd systemApplication of embeddd system
Application of embeddd system
Revathi Subramaniam
 
Embedded development life cycle
Embedded development life cycleEmbedded development life cycle
Embedded development life cycle
Revathi Subramaniam
 
Adaptive cruise control acc
Adaptive cruise control accAdaptive cruise control acc
Adaptive cruise control acc
Revathi Subramaniam
 
Unsymmetrical fault analysis
Unsymmetrical fault analysisUnsymmetrical fault analysis
Unsymmetrical fault analysis
Revathi Subramaniam
 
Structure of power system
Structure of power systemStructure of power system
Structure of power system
Revathi Subramaniam
 
Restructuring
RestructuringRestructuring
Restructuring
Revathi Subramaniam
 
Power flow analysis
Power flow analysisPower flow analysis
Power flow analysis
Revathi Subramaniam
 
Per unit analysis
Per unit analysisPer unit analysis
Per unit analysis
Revathi Subramaniam
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson method
Revathi Subramaniam
 
Introduction to power system analysis
Introduction to power system analysisIntroduction to power system analysis
Introduction to power system analysis
Revathi Subramaniam
 
Gauss seidel method
Gauss seidel methodGauss seidel method
Gauss seidel method
Revathi Subramaniam
 
Fault analysis
Fault analysisFault analysis
Fault analysis
Revathi Subramaniam
 
Fault analysis using z bus
Fault analysis using z busFault analysis using z bus
Fault analysis using z bus
Revathi Subramaniam
 
VHDL-Behavioral-Programs-Structure of VHDL
VHDL-Behavioral-Programs-Structure of VHDLVHDL-Behavioral-Programs-Structure of VHDL
VHDL-Behavioral-Programs-Structure of VHDL
Revathi Subramaniam
 
Programmable Logic Array(PLA) & Programmable Array Logic(PAL)
Programmable Logic Array(PLA) & Programmable Array Logic(PAL)Programmable Logic Array(PLA) & Programmable Array Logic(PAL)
Programmable Logic Array(PLA) & Programmable Array Logic(PAL)
Revathi Subramaniam
 
Flip flops
Flip flopsFlip flops
Complex Programmable Logic Devices(CPLD) & Field Programmable Logic Devices (...
Complex Programmable Logic Devices(CPLD) & Field Programmable Logic Devices (...Complex Programmable Logic Devices(CPLD) & Field Programmable Logic Devices (...
Complex Programmable Logic Devices(CPLD) & Field Programmable Logic Devices (...
Revathi Subramaniam
 
Counters
CountersCounters

More from Revathi Subramaniam (20)

Introduction to embedded system
Introduction to embedded systemIntroduction to embedded system
Introduction to embedded system
 
Inter intergrated circuits-communication protocol
Inter intergrated circuits-communication protocolInter intergrated circuits-communication protocol
Inter intergrated circuits-communication protocol
 
Application of embeddd system
Application of embeddd systemApplication of embeddd system
Application of embeddd system
 
Embedded development life cycle
Embedded development life cycleEmbedded development life cycle
Embedded development life cycle
 
Adaptive cruise control acc
Adaptive cruise control accAdaptive cruise control acc
Adaptive cruise control acc
 
Unsymmetrical fault analysis
Unsymmetrical fault analysisUnsymmetrical fault analysis
Unsymmetrical fault analysis
 
Structure of power system
Structure of power systemStructure of power system
Structure of power system
 
Restructuring
RestructuringRestructuring
Restructuring
 
Power flow analysis
Power flow analysisPower flow analysis
Power flow analysis
 
Per unit analysis
Per unit analysisPer unit analysis
Per unit analysis
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson method
 
Introduction to power system analysis
Introduction to power system analysisIntroduction to power system analysis
Introduction to power system analysis
 
Gauss seidel method
Gauss seidel methodGauss seidel method
Gauss seidel method
 
Fault analysis
Fault analysisFault analysis
Fault analysis
 
Fault analysis using z bus
Fault analysis using z busFault analysis using z bus
Fault analysis using z bus
 
VHDL-Behavioral-Programs-Structure of VHDL
VHDL-Behavioral-Programs-Structure of VHDLVHDL-Behavioral-Programs-Structure of VHDL
VHDL-Behavioral-Programs-Structure of VHDL
 
Programmable Logic Array(PLA) & Programmable Array Logic(PAL)
Programmable Logic Array(PLA) & Programmable Array Logic(PAL)Programmable Logic Array(PLA) & Programmable Array Logic(PAL)
Programmable Logic Array(PLA) & Programmable Array Logic(PAL)
 
Flip flops
Flip flopsFlip flops
Flip flops
 
Complex Programmable Logic Devices(CPLD) & Field Programmable Logic Devices (...
Complex Programmable Logic Devices(CPLD) & Field Programmable Logic Devices (...Complex Programmable Logic Devices(CPLD) & Field Programmable Logic Devices (...
Complex Programmable Logic Devices(CPLD) & Field Programmable Logic Devices (...
 
Counters
CountersCounters
Counters
 

Recently uploaded

Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
MuhammadTufail242431
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
Kamal Acharya
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
PrashantGoswami42
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
DuvanRamosGarzon1
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
ssuser9bd3ba
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 

Recently uploaded (20)

Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 

Error detection & correction codes

  • 1. ERROR DETECTION & CORRECTION CODES CONTENTS:  Introduction  Parity bit  Hamming code K O N G U N A D U C O L L E G E O F E N G I N E E R I N G & T E C H N O L O G Y 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 may occur.  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. K O N G U N A D U C O L L E G E O F E N G I N E E R I N G & T E C H N O L O G Y 2
  • 3. • The data along with the extra bit /bits form the code • 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 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 even. Contd… K O N G U N A D U C O L L E G E O F E N G I N E E R I N G & T E C H N O L O G Y 3
  • 4. • The message including the parity bit is transmitted and then checked at the receiving end for errors. • An error is detected if the checked parity does not correspond with the one transmitted. • The circuit that generates the parity bit in the transmitter is called a parity generator and the circuit that checks the parity in the receiver is called a parity checker. • In even parity the added parity bit will make the total number of 1s an even amount. In odd parity the added parity bit will make the total number of 1s an odd amount. • As a general rule in the digital system where the transmission system is relatively short, it may be assumed that probability of a single-bit error is small and that of a double-bit error and higher order errors is extremely small. Contd…. K O N G U N A D U C O L L E G E O F E N G I N E E R I N G & T E C H N O L O G Y 4
  • 5.  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 of bits 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 4x8 block.  Parity bits can then be assigned to both rows and columns.  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 a word. Contd… K O N G U N A D U C O L L E G E O F E N G I N E E R I N G & T E C H N O L O G Y 5
  • 6. K O N G U N A D U C O L L E G E O F E N G I N E E R I N G & T E C H N O L O G Y 6
  • 7. 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 K O N G U N A D U C O L L E G E O F E N G I N E E R I N G & T E C H N O L O G Y 7
  • 8. 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. K O N G U N A D U C O L L E G E O F E N G I N E E R I N G & T E C H N O L O G Y 8
  • 9. Bit Designation D4 D3 D2 P3 D1 P2 P1 Bit Location 7 6 5 4 3 2 1 Binary Location Number 111 110 101 100 011 010 001 Information Bits Parity Bits Bit Location Table: K O N G U N A D U C O L L E G E O F E N G I N E E R I N G & T E C H N O L O G Y 9
  • 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. K O N G U N A D U C O L L E G E O F E N G I N E E R I N G & T E C H N O L O G Y 10
  • 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. K O N G U N A D U C O L L E G E O F E N G I N E E R I N G & T E C H N O L O G Y 11
  • 12. CONTD….  Hence, single error correction can be achieved.  If overall parity bit is correct and binary number formed after checking the parity bits is other than 0-0-0, there are two errors.  In this case, double error detection is achieved.  However, no correction is possible. K O N G U N A D U C O L L E G E O F E N G I N E E R I N G & T E C H N O L O G Y 12
  • 13. Conclusion: The various types of error detecting and correcting methods are discussed in brief manner. References: • Mandal, “Digital Electronics Principles & Application, McGraw Hill Edu, 2013. • William Keitz, Digital Electronics-A Practical Approach with VHDL, Pearson, 2013. • Thomas L.Floyd, ‘Digital Fundamentals’, 11th edition, Pearson Education, 2015. • Charles H.Roth, Jr, Lizy Lizy Kurian John, ‘Digital System Design using VHDL, Cengage,2013. • D.P.Kothari,J.S.Dhillon, ‘Digital circuits and Design’,Pearson Education, 2016. • A.P.Godse., Dr.D.A.Godse, ‘Digital Logic Circuits’ , Technical Publications Third Edition 2016 • Other Web Sources K O N G U N A D U C O L L E G E O F E N G I N E E R I N G & T E C H N O L O G Y 13