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.

Slides:



Advertisements
Similar presentations
Exclusive-OR and Exclusive-NOR Gates
Advertisements

Data Storage and manipulation. Data Storage Computers store and manipulate data in the form of electronic pulses (high and Low voltages). This digitised.
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 12 ERROR DETECTION & CORRECTION.
Hamming Code.
parity bit is 1: data should have an odd number of 1's
Quantum Error Correction SOURCES: Michele Mosca Daniel Gottesman Richard Spillman Andrew Landahl.
Using Binary Coding Information Remember  Bit = 0 or 1, Binary Digit  Byte = the number of bits used to represent letters, numbers and special characters.
Practical Session 11 Codes. Hamming Distance General case: The distance between two code words is the amount of 1-bit changes required to reach from one.
Unit 1 Protocols Learning Objectives: Understand the need to detect and correct errors in data transmission.
1 12/08/03SW Abingdon and Witney College Binary Converting to and from decimal.
Hamming It Up with Hamming Codes CSE 461 Section Week 3.
Lesson 2 0x Coding ASCII Code.
1.6 Signed Binary Numbers.
Error Detection and Correction.  Corrupted files  Attachments that won’t open  Files that won’t download  Videos that won’t play Errors occur when.
Digital Logic Chapter 2 Number Conversions Digital Systems by Tocci.
Binary Addition Addition Rules: = = = = = carry 1 1 carry 1 Example 1: Example 2:
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Lecture 6 Topics Character codes Error Detection and Correction
Multiplication by multiples of 10 and 100 Objective to multiply numbers when 0’s are involved.
Error Detection and Correction
E RROR D ETECTION A ND C ORRECTION C ODES Error Detection Code (Parity bit) Error Correction Code ( Hamming Code)
CS151 Introduction to Digital Design
Information Representation. Digital Hardware Systems Digital Systems Digital vs. Analog Waveforms Analog: values vary over a broad range continuously.
Chapter 1: Digital Computers and Information Illustration at beginning of each Chapter Base 10 Binary Base 2 Octal Base 8 Hex bas
Data and Computer Communications by William Stallings Eighth Edition Digital Data Communications Techniques Digital Data Communications Techniques Click.
Practical Session 10 Error Detecting and Correcting Codes.
Unit 5 Lecture 2 Error Control Error Detection & Error Correction.
1 Representation of Data within the Computer Oct., 1999(Revised 2001 Oct)
THE BINARY NUMBER SYSTEM “There are only 10 types of people in this world: Those who understand BINARY and those who do not.”
Overview All data can be corrupted, for reliable communications we must be able to detect and correct errors implemented at the data link and transport.
Binary A double zero educational presentation. Binary Basics Binary is the language computers use Only 1’s and 0’s can be found in Binary Very large numbers.
Lecture 5 Checksum. 10.2CHECKSUM Checksum is an error-detecting technique that can be applied to a message of any length. In the Internet, the checksum.
VLSI AND INTELLIGENT SYTEMS LABORATORY 12 Bit Hamming Code Error Detector/Corrector December 2nd, 2003 Department of Electrical and Computer Engineering.
1 © Unitec New Zealand CRC calculation and Hammings code.
Signed Binary Numbers Arithmetic Subtraction – In 2’s-complement form: Example: 1.Take the 2’s complement of the subtrahend (including the sign bit) and.
CCE Department – Faculty of engineering - Islamic University of Lebanon Chapter 6 Binary Arithmetic.
Module –I Codes: Weighted and non-weighted codes
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Reasons to  Binary With Mrs
{ Binary “There are 10 types of people in the world: Those who understand binary, and those who don't.”
The ASCII Alphanumeric Code What is it? Why use it? How do we use it?
Combinational Logic Design
WHAT IS BINARY? Binary is a number system that only uses two digits: 1 and 0. Any information that processed by a computer it is put into sequence of.
parity bit is 1: data should have an odd number of 1's
Modulo-2 Digital coding uses modulo-2 arithmetic where addition becomes the following operations: 0+0= =0 0+1= =1 It performs the.
Signed binary numbers & Binary Codes
Packetizing Error Detection
Character coding schemes
BINARY CODE.
Error Correcting Code.
Representing characters
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.
Data Encoding Characters.
Folders out, planners out…
Error Detection Bit Error Rate(BER): It is the ratio of number Ne of errors appearing over a certain time interval t to the number Nt of 1 and 0 pulses.

Dhanushiya. R I YEAR BSc COMPUTER TECHNOLOGY.  Error is a condition when the output information does not match with the input information. During transmission,
Packetizing Error Detection
MAT 105 Spring 2008 Chapter 17: Binary Codes.
Packetizing Error Detection
EET107/3 DIGITAL ELECTRONICS 1
Fundamentals of Data Representation
Packetizing Error Detection
Binary “There are 10 types of people in the world: Those who understand binary, and those who don't.”
CS 325: CS Hardware and Software Organization and Architecture
Reliability and Channel Coding
Hexadecimal.
parity bit is 1: data should have an odd number of 1's
Lesson 3.7 Parity Error Checking
Error Detection and Correction
Presentation transcript:

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 cant 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 (1) (0) (1) Example: odd parity (0) (1) (0)

Parity Checking Assume we are using even parity with 7-bit ASCII. The letter V in 7-bit ASCII is encoded as 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: If we are using an odd parity: The letter V will be transmitted as

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

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 1s. So we need to add another 0 Our new word will look like