SlideShare une entreprise Scribd logo
1  sur  8
Even/odd parity (1)
 Computers can sometimes make errors when
they transmit data.
 Even/odd parity:
 is basic method for detecting if an odd number of
bits has been switched by accident.
 Odd parity:
 The number of 1-bit must add up to an odd
number
 Even parity:
 The number of 1-bit must add up to an even
number
Even/odd parity (2)
 The computer knows which parity it is using
 If it uses an even parity:
 If the number of of 1-bit add up to an odd number
then it knows there was an error:
 If it uses an odd:
 If the number of of 1-bit add up to an even number
then it knows there was an error:
 However, If an even number of 1-bit is flipped the
parity will still be the same. But an error occurs
 The even/parity can’t this detect this error:
Even/odd parity (3)
 It is useful when an odd number of 1-bits is flipped.
 Suppose we have an 7-bit binary word (7-digits).
 If you need to change the parity you need to add 1
(parity bit) to the binary word.
 You now have 8 digit word.
 However, the computer knows that the added bit
is a parity bit and therefore ignore it.
Example (1)
 Suppose you receive a binary bit word
“0101” and you know you are using an
odd parity.
 Is the binary word errored?
 The answer is yes:

There are 2 1-bit, which is an even number

We are using an odd parity

So there must have an error.
Parity Bit
 A single bit is appended to each data chunk
 makes the number of 1 bits even/odd
 Example: even parity
 1000000(1)
 1111101(0)
 1001001(1)
 Example: odd parity
 1000000(0)
 1111101(1)
 1001001(0)
Parity Checking
 Assume we are using even parity with 7-bit ASCII.
 The letter V in 7-bit ASCII is encoded as 0110101.
 How will the letter V be transmitted?
 Because there are four 1s (an even number), parity is set to zero.
 This would be transmitted as: 01101010.
 If we are using an odd parity:
 The letter V will be transmitted as 01101011
Exercise 1
 Suppose you are using an odd parity.
What should the binary word “1010”
look like after you add the parity bit?
 Answer:
 There is an even number of 1-bits.
 So we need to add another 1-bit
 Our new word will look like “10101”.
Exercise 2
 Suppose you are using an even parity.
What should the binary word “1010”
look like after you add a parity bit?
 Answer:
 There is an even number of 1’s.
 So we need to add another 0
 Our new word will look like “10100”.

Contenu connexe

Tendances

Synchronous counters
Synchronous countersSynchronous counters
Synchronous counters
Lee Diaz
 
Registers and counters
Registers and counters Registers and counters
Registers and counters
Deepak John
 

Tendances (20)

decoder and encoder
 decoder and encoder decoder and encoder
decoder and encoder
 
Number system conversion
Number system conversionNumber system conversion
Number system conversion
 
Two’s complement
Two’s complementTwo’s complement
Two’s complement
 
flip flops
flip flops flip flops
flip flops
 
Floating point representation
Floating point representationFloating point representation
Floating point representation
 
Encoder, decoder, multiplexers and demultiplexers
Encoder, decoder, multiplexers and demultiplexersEncoder, decoder, multiplexers and demultiplexers
Encoder, decoder, multiplexers and demultiplexers
 
Logic families
Logic familiesLogic families
Logic families
 
Synchronous counters
Synchronous countersSynchronous counters
Synchronous counters
 
Universal logic gate
Universal logic gateUniversal logic gate
Universal logic gate
 
Shift Registers
Shift RegistersShift Registers
Shift Registers
 
Sequential circuits in Digital Electronics
Sequential circuits in Digital ElectronicsSequential circuits in Digital Electronics
Sequential circuits in Digital Electronics
 
switching techniques in data communication and networking
switching techniques in data communication and networkingswitching techniques in data communication and networking
switching techniques in data communication and networking
 
Error detection & correction codes
Error detection & correction codesError detection & correction codes
Error detection & correction codes
 
Flipflop
FlipflopFlipflop
Flipflop
 
Emosfet slides....
Emosfet slides....Emosfet slides....
Emosfet slides....
 
digital Counter
digital Counterdigital Counter
digital Counter
 
Registers and counters
Registers and counters Registers and counters
Registers and counters
 
Demultiplexer
DemultiplexerDemultiplexer
Demultiplexer
 
Multiplexers
MultiplexersMultiplexers
Multiplexers
 
Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes
 

En vedette

Parity bits
Parity bitsParity bits
Parity bits
mrhaken
 
Serial Communication
Serial CommunicationSerial Communication
Serial Communication
Rashmi
 
Error control, parity check, check sum, vrc
Error control, parity check, check sum, vrcError control, parity check, check sum, vrc
Error control, parity check, check sum, vrc
Huawei Technologies
 

En vedette (20)

Parity Generator and Parity Checker
Parity Generator and Parity CheckerParity Generator and Parity Checker
Parity Generator and Parity Checker
 
Error Checking and Correction (Parity Bit, Majority Voting, Check Digit)
Error Checking and Correction (Parity Bit, Majority Voting, Check Digit)Error Checking and Correction (Parity Bit, Majority Voting, Check Digit)
Error Checking and Correction (Parity Bit, Majority Voting, Check Digit)
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
 
Computer Networks - Error Detection & Error Correction
Computer Networks - Error Detection & Error CorrectionComputer Networks - Error Detection & Error Correction
Computer Networks - Error Detection & Error Correction
 
Error Detection And Correction
Error Detection And CorrectionError Detection And Correction
Error Detection And Correction
 
Universal Gates - Aneesa N Ali
Universal Gates - Aneesa N AliUniversal Gates - Aneesa N Ali
Universal Gates - Aneesa N Ali
 
Lecture 20
Lecture 20Lecture 20
Lecture 20
 
Parity bits
Parity bitsParity bits
Parity bits
 
Ch 10
Ch 10Ch 10
Ch 10
 
Error Correction And Hamming Code Ibrar
Error Correction And Hamming Code IbrarError Correction And Hamming Code Ibrar
Error Correction And Hamming Code Ibrar
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
 
Error detection in Data Communication System
Error detection in Data Communication SystemError detection in Data Communication System
Error detection in Data Communication System
 
101495802 ee2258-lm-1
101495802 ee2258-lm-1101495802 ee2258-lm-1
101495802 ee2258-lm-1
 
Serial Communication
Serial CommunicationSerial Communication
Serial Communication
 
Rs 232 y rs-485
Rs 232 y rs-485Rs 232 y rs-485
Rs 232 y rs-485
 
Network infrastructure - TCP/IP
Network infrastructure - TCP/IPNetwork infrastructure - TCP/IP
Network infrastructure - TCP/IP
 
Error control, parity check, check sum, vrc
Error control, parity check, check sum, vrcError control, parity check, check sum, vrc
Error control, parity check, check sum, vrc
 
Presentation on cyclic redundancy check (crc)
Presentation on cyclic redundancy check (crc)Presentation on cyclic redundancy check (crc)
Presentation on cyclic redundancy check (crc)
 
Serial Communication Interfaces
Serial Communication InterfacesSerial Communication Interfaces
Serial Communication Interfaces
 
Rs232 485 fundamental
Rs232 485 fundamentalRs232 485 fundamental
Rs232 485 fundamental
 

Similaire à Even odd parity

ERROR_DETECTION.pptx
ERROR_DETECTION.pptxERROR_DETECTION.pptx
ERROR_DETECTION.pptx
BeniamTekeste
 

Similaire à Even odd parity (11)

SD & D Representing Text
SD & D Representing TextSD & D Representing Text
SD & D Representing Text
 
Information Processes and Technology HSC Communications Unit
Information Processes and Technology HSC Communications UnitInformation Processes and Technology HSC Communications Unit
Information Processes and Technology HSC Communications Unit
 
Error detection and correction codes
Error detection and correction codesError detection and correction codes
Error detection and correction codes
 
9_Hamming Code.pdf
9_Hamming Code.pdf9_Hamming Code.pdf
9_Hamming Code.pdf
 
PARITY_GENERATOR_AND_CHECKER_PPT.pptx
PARITY_GENERATOR_AND_CHECKER_PPT.pptxPARITY_GENERATOR_AND_CHECKER_PPT.pptx
PARITY_GENERATOR_AND_CHECKER_PPT.pptx
 
ERROR_DETECTION.pptx
ERROR_DETECTION.pptxERROR_DETECTION.pptx
ERROR_DETECTION.pptx
 
ERROR DETECTION data communication and computer network.pptx
ERROR DETECTION data communication and computer network.pptxERROR DETECTION data communication and computer network.pptx
ERROR DETECTION data communication and computer network.pptx
 
Codes
CodesCodes
Codes
 
Integers
IntegersIntegers
Integers
 
Binary systemn
Binary systemnBinary systemn
Binary systemn
 
Number bases
Number basesNumber bases
Number bases
 

Dernier

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Dernier (20)

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 

Even odd parity

  • 1. Even/odd parity (1)  Computers can sometimes make errors when they transmit data.  Even/odd parity:  is basic method for detecting if an odd number of bits has been switched by accident.  Odd parity:  The number of 1-bit must add up to an odd number  Even parity:  The number of 1-bit must add up to an even number
  • 2. Even/odd parity (2)  The computer knows which parity it is using  If it uses an even parity:  If the number of of 1-bit add up to an odd number then it knows there was an error:  If it uses an odd:  If the number of of 1-bit add up to an even number then it knows there was an error:  However, If an even number of 1-bit is flipped the parity will still be the same. But an error occurs  The even/parity can’t this detect this error:
  • 3. Even/odd parity (3)  It is useful when an odd number of 1-bits is flipped.  Suppose we have an 7-bit binary word (7-digits).  If you need to change the parity you need to add 1 (parity bit) to the binary word.  You now have 8 digit word.  However, the computer knows that the added bit is a parity bit and therefore ignore it.
  • 4. Example (1)  Suppose you receive a binary bit word “0101” and you know you are using an odd parity.  Is the binary word errored?  The answer is yes:  There are 2 1-bit, which is an even number  We are using an odd parity  So there must have an error.
  • 5. Parity Bit  A single bit is appended to each data chunk  makes the number of 1 bits even/odd  Example: even parity  1000000(1)  1111101(0)  1001001(1)  Example: odd parity  1000000(0)  1111101(1)  1001001(0)
  • 6. Parity Checking  Assume we are using even parity with 7-bit ASCII.  The letter V in 7-bit ASCII is encoded as 0110101.  How will the letter V be transmitted?  Because there are four 1s (an even number), parity is set to zero.  This would be transmitted as: 01101010.  If we are using an odd parity:  The letter V will be transmitted as 01101011
  • 7. Exercise 1  Suppose you are using an odd parity. What should the binary word “1010” look like after you add the parity bit?  Answer:  There is an even number of 1-bits.  So we need to add another 1-bit  Our new word will look like “10101”.
  • 8. Exercise 2  Suppose you are using an even parity. What should the binary word “1010” look like after you add a parity bit?  Answer:  There is an even number of 1’s.  So we need to add another 0  Our new word will look like “10100”.