No video

Error Detecting Code : Parity Explained | Odd Parity and Even Parity

  Рет қаралды 323,927

ALL ABOUT ELECTRONICS

ALL ABOUT ELECTRONICS

Күн бұрын

In this video, the parity is explained and the use of parity bit in the error detection is explained with examples.
The following topics covered in the video:
0:00 Introduction
1:00 What is Parity? Odd and Even Parity
2:00 Error Detection using Parity Bit
5:03 Limitation of Parity
What is Parity?
Parity Bit is a simple form of error detecting code, where the additional bit is added along with the data bits.
There are two types of Parity:
1) Odd Parity
2) Even Parity
Odd Parity:
In Odd parity, the parity bit is set in such a way that the total number of 1s in the code, including the parity bit is Odd.
Even Parity:
In Even parity, the parity bit is set in such a way that the total number of 1s in the code, including the parity bit is Even.
For error detection, the parity bit is appended with data bits, and the code is sent to the receiver.
At the receiver, the parity checker circuit checks the parity of the received code and detects the error.
Limitations of Parity Bit:
The Parity bit can detect only odd numbers of errors. If there are even a number of errors in the received code, it will remain undetected.
Moreover, the Parity bit can just detect the error in the code (if the number of errors in the received code is odd) but it can't correct the error.
The link for the other useful videos:
1) Gray Code:
• Gray Code Explained | ...
2) BCD Code:
• BCD Codes (Binary Code...
This video will be helpful to all the students of science and engineering in understanding the use of Parity in error detection.
#ALLABOUTELECTRONICS
#Parity
Support the channel through membership program:
/ @allaboutelectronics
--------------------------------------------------------------------------------------------------
Follow my second channel:
/ @allaboutelectronics-quiz
Follow me on Facebook:
/ allaboutelecronics
Follow me on Instagram:
/ all_about.electronics
--------------------------------------------------------------------------------------------------
Music Credit: www.bensound.com

Пікірлер: 89
@ALLABOUTELECTRONICS
@ALLABOUTELECTRONICS 3 жыл бұрын
timestamps: 0:00 Introduction 1:00 What is Parity? Odd and Even Parity 2:00 Error Detection using Parity Bit 5:03 Limitation of Parity
@jaipreetsingh4779
@jaipreetsingh4779 2 жыл бұрын
I don't know why we pay so hefty fees to colleges if such excellent talent is available free. I think it's due to the simple human behaviour that we don't respect things that we get easily(free) , the type of teaching that u are teaching is wayyyyy better than colleges ... ❤️❤️❤️❤️❤️ U should sell ur courses for little ammounts like 200 to 300 rupees as we will then understand the value of ur content
@waitwhat612
@waitwhat612 Жыл бұрын
A piece of paper
@jimsvolt
@jimsvolt 9 ай бұрын
Saving a cs degree
@wholelottaheaven
@wholelottaheaven Ай бұрын
for real
@maazsiddiqui3326
@maazsiddiqui3326 3 ай бұрын
OMG. That was the easiest explanation on earth 🥰
@revathya4525
@revathya4525 3 жыл бұрын
🥳🥳 omgg atlast I got thiz video thank you sir for sharing ur knowledge
@Zaara.rehan_khazi
@Zaara.rehan_khazi 2 жыл бұрын
I had seminar on this topic .. it's 3rd time n im fully prepared
@pravallikakuruba3846
@pravallikakuruba3846 4 ай бұрын
Same I had also seminar on this topic tmroo ....
@gokulkrishnan829
@gokulkrishnan829 Жыл бұрын
Thank You Fav :) You Really Helped Me To Catch This Concept !
@_Anna_Nass_
@_Anna_Nass_ Жыл бұрын
In real world practice, how accurate is it to use a parity bit as an error detector?
@Omar-ic3wc
@Omar-ic3wc 7 ай бұрын
Not accurate
@CyberDinner
@CyberDinner 4 ай бұрын
thank you my indian friend , you are my savior.
@poojashah6183
@poojashah6183 3 жыл бұрын
Best explanation 👌🏻👌🏻
@ritampal01
@ritampal01 3 жыл бұрын
Excellent sir ...... 🔥 Give us more detailed videos, I'm so much interested sir .......You are great sir 👍
@ALLABOUTELECTRONICS
@ALLABOUTELECTRONICS 3 жыл бұрын
Sure 👍
@ritampal01
@ritampal01 3 жыл бұрын
Thank you so much sir. 😀😄
@SujataGahlawat
@SujataGahlawat 11 ай бұрын
Well defined 😊
@laxmikant5045
@laxmikant5045 Жыл бұрын
How does the parity checking network decides what parity we have opted(even or odd)?
@technicaltalha1242
@technicaltalha1242 4 ай бұрын
hard code then
@amashasky9567
@amashasky9567 Жыл бұрын
Thanks sir.It's clear and easy to understand.
@mayurshah9131
@mayurshah9131 3 жыл бұрын
Thanks for such a useful VEDIO 🙏🙏
@user-ie7hw1rj2k
@user-ie7hw1rj2k 2 ай бұрын
It was helpful .. thank you
@nagireddymadhava8179
@nagireddymadhava8179 Ай бұрын
Thank you sir🎉
@sandip_kanzariya8476
@sandip_kanzariya8476 2 жыл бұрын
Fantastic sir ....
@ayeshaaslam7927
@ayeshaaslam7927 Жыл бұрын
THANK YOU
@user-oc1fe4dv3n
@user-oc1fe4dv3n Жыл бұрын
Thank you
@marco_robert
@marco_robert Жыл бұрын
But what if we do not know which parity is used?(Even or Odd) How will we know if the recieved pattern is correct?
@ALLABOUTELECTRONICS
@ALLABOUTELECTRONICS Жыл бұрын
Typically for transmitters and receiver the protocol is set for specific parity in advance. Because accordingly you decide the hardware for both transmitter and receiver. So when the receiver receives the data, it already knows which parity is used in transmission. I hope, it will clear your doubt.
@marco_robert
@marco_robert Жыл бұрын
@@ALLABOUTELECTRONICS Thank you. It is clear ♥️
@rakshitabandi9615
@rakshitabandi9615 Жыл бұрын
Thank you so much
@MuhammadSalmanRazzaq
@MuhammadSalmanRazzaq 3 ай бұрын
2:43 Should we add the parity bit at right side or left side of 8 bit number
@ALLABOUTELECTRONICS
@ALLABOUTELECTRONICS 3 ай бұрын
It depends on the protocol that is established between transmitter and receiver. It can be appended at the last (at LSB side) or at the beginning (at MSB side)
@mohammadrezajavadi3498
@mohammadrezajavadi3498 10 ай бұрын
Well done man
@varadnaik8031
@varadnaik8031 Жыл бұрын
What if parity bit only changes from 0 to 1 while transmission
@ALLABOUTELECTRONICS
@ALLABOUTELECTRONICS Жыл бұрын
Then also it will be able to detect the error. Because at the receiver side, the parity checker circuit will check the parity of entire code ( including parity bit ). So if there is an error in parity bit then also it will detected. I hope it will clear your doubt.
@karen7856
@karen7856 9 ай бұрын
10/10 video
@kellysmith7357
@kellysmith7357 2 жыл бұрын
thanks dawg
@taedy6928
@taedy6928 Жыл бұрын
Thanku sooo much sir 😍
@indiradas1280
@indiradas1280 2 жыл бұрын
Thank you so much Sir 🙏🙏💐💐
@ankitakumari343
@ankitakumari343 Жыл бұрын
Good sir 😃
@lochanahansini5700
@lochanahansini5700 Жыл бұрын
Thank you so much sir
@rjrodrig
@rjrodrig 3 жыл бұрын
What if the parity bit is flipped? There are no guarantees the parity bit will not flip. What then?
@ALLABOUTELECTRONICS
@ALLABOUTELECTRONICS 3 жыл бұрын
In that case also, the parity checker circuit will generate the error. In short, if the parity of transmitted and the received code doesn't match then it will generate the error. (Irrespective of whether the error is in data bit or in the parity bit)
@rahaf7982
@rahaf7982 Жыл бұрын
Thank you so so so much
@kabitakhatri173
@kabitakhatri173 2 жыл бұрын
Thanks a lot
@jawadhassan3657
@jawadhassan3657 Жыл бұрын
good Sir
@erdenedavaabayrbymba473
@erdenedavaabayrbymba473 6 ай бұрын
excellent nice work
@MohamedAhmed-iy7du
@MohamedAhmed-iy7du 2 жыл бұрын
Thanks
@theodavidyani6514
@theodavidyani6514 Жыл бұрын
nice explanation
@leenaalessa
@leenaalessa 2 жыл бұрын
Thank you so much!
@rafco90
@rafco90 Жыл бұрын
Thank you!
@kamlekarkamal
@kamlekarkamal 2 жыл бұрын
I like it teaching in digital format
@efeincir3254
@efeincir3254 2 жыл бұрын
great
@dilipkumar-jh1mz
@dilipkumar-jh1mz Жыл бұрын
what happened if two bits are corrupted at a time? for example : data iam sending is 110011001 including parity bit (odd parity), but at the receiver side i got 110000001, how we can detect this error ?
@0xdecaf
@0xdecaf Жыл бұрын
Your assumption is correct. If two bits are corrupted at a time in a parity-based system, the parity bit can't correct the error. Parity can only handle single-bit errors within its group of bits. More advanced error correction techniques like "Vertical Parity", "LRC", or "CRC" (checksums) are used in modern systems to ensure data remains correct. The sophistication level depends on factors like signal strength, data loss, and the importance of accurate data. If you're interested, read up more on checksums :)
@vedanshithakkar
@vedanshithakkar Жыл бұрын
What if there are 2 errors in one data ? So that means the parity bit checker will not shows the error so what is the solution?
@ALLABOUTELECTRONICS
@ALLABOUTELECTRONICS Жыл бұрын
If there are even number of errors in the received code then parity checker won't detect it. You need to use other coding schemes to detect such errors. On such error correcting scheme (Hamming Code ) is discussed on the channel. You can watch that video for more information. Here is the link: kzfaq.info/get/bejne/qpqbnNxlqdncZY0.html
@all9126
@all9126 2 жыл бұрын
Thanks sir
@sarthak6356
@sarthak6356 Жыл бұрын
thanks
@deepajayanp8074
@deepajayanp8074 2 жыл бұрын
Sir,I have a doubt.We are adding parity bits for error detection ie since data is getting corrupted we are adding parity bits.But doesn't a condition occurs like parity bits can get corrupted and the error detection can go wrong
@ALLABOUTELECTRONICS
@ALLABOUTELECTRONICS 2 жыл бұрын
Yes, it is quite possible that the parity bit itself gets corrupted during the transmission. But as far as there is an odd number of errors in the code, it is still possible to detect the error. Let's say, we are sending the data for odd parity. The parity bit will be set in such a way that, the total number of 1s in the code is odd. Now, suppose, the parity bit gets corrupted then the total number of 1s in the received code will become even. And since it is even, the parity checker circuit will be able to detect the error. I hope, it will clear your doubt. If you still have any doubt then let me know here.
@deepajayanp8074
@deepajayanp8074 2 жыл бұрын
@@ALLABOUTELECTRONICS Sir,let me explain my doubt with an example.Consider I am sending 3 bit data 011 and then we are using odd parity for error detection.So the data along with parity that will be transmitted is 0111.Now assuming that the parity bit is corrupted and the data received at receiver is 0110.The receiver will find the number of one's to be even and there is an error.Receiver will expect the number of bits in the data bits had to be odd,so the error is in data.Now assuming the second case,where the second bit of data was corrupted while transmission and then data received at the receiver along with the parity bit be 0011.(Here data is corrupted).Here also receiver finds that the number of one's are even and there is error.But how to differentiate whether data is corrupted or parity bit is corrupted.
@ALLABOUTELECTRONICS
@ALLABOUTELECTRONICS 2 жыл бұрын
See, this code( parity) is error detecting code. Meaning that, it can just tell you that, there is some error in the received code. It just can't correct the error. Or it can't tell you the location of the error. For that, error correcting codes are used. I think I have mentioned that at the end of the video. And on the Channel I have also covered couple of videos on Hamming distance and Hamming code. ( It is error correcting code). Please go through those videos. Your doubts will get clear. I have explained it in detail. Please go through the digital electronics playlist on the channel. You will get those videos. In case, if you are not able to find it, let me know here.
@brunodragas2417
@brunodragas2417 Жыл бұрын
@@ALLABOUTELECTRONICS hi, what if 2 bits are corrupted for example 1 goes into 0 and other where zero goes into one it will not change the number of 1's, so how will it detect the error?
@muhammadshaheer124
@muhammadshaheer124 6 ай бұрын
There is a another thing. What if, instead of 0111, the code gets corrupted and transmitted as 1110, then how'll we find the error?
@abhishekanand9372
@abhishekanand9372 2 жыл бұрын
Best
@siddhantraaj1764
@siddhantraaj1764 2 жыл бұрын
30/07/22
@shinooooo394
@shinooooo394 Жыл бұрын
Great
@simple_most788
@simple_most788 Жыл бұрын
to detect the error
@kaloz6578
@kaloz6578 9 ай бұрын
True his English is messed up
@AliFarazJaffery
@AliFarazJaffery 3 ай бұрын
But what if, due the noise, the parity bit is changed?
@ALLABOUTELECTRONICS
@ALLABOUTELECTRONICS 3 ай бұрын
Check this short video. kzfaq.infoVg48TJUcQJw?si=Lz_zgteQOFfSYYCE
@user-lb7mg3xc5v
@user-lb7mg3xc5v 2 ай бұрын
❤🎉🎉
@cyber_insect99
@cyber_insect99 4 ай бұрын
❤❤❤
@webdevop9709
@webdevop9709 Жыл бұрын
What if the noise flipped the parity bit 🤣🤣🤣
@ALLABOUTELECTRONICS
@ALLABOUTELECTRONICS Жыл бұрын
Even if the parity bit gets flipped, then also the error can be detected. As far as the number of error in the code is odd, it can be detected using the parity method. When there is an error in the parity bit then overall parity of the received code will change. For example, if you are using the odd parity then parity bit at the transmitter should be set such that, the overall parity of the code remains odd. Now, if there is an error in the parity bit itself then that would change the parity of the received code. And that would be detected at the receiver end by the parity checker circuit.
@webdevop9709
@webdevop9709 11 ай бұрын
@@ALLABOUTELECTRONICS Thanks dude Its been two years since this video was uploaded You are still replying with half million subscribers. Means a lot to me. Also you explained the concept very well that I figured that out.
@technicaltalha1242
@technicaltalha1242 4 ай бұрын
saving math degree
@martian1253
@martian1253 6 ай бұрын
I don't know but u are mixing odd parity and even parity I watch three times but same confusion
@ALLABOUTELECTRONICS
@ALLABOUTELECTRONICS 6 ай бұрын
The thing is when we use Odd parity then parity bit should be set such that the overall parity of the code (including parity bit) should remain odd. And the same is applicable for even parity.
@user-xx2lp5sg8u
@user-xx2lp5sg8u 8 ай бұрын
I don't understand how you fix the p1=D3 D5 D4
@ALLABOUTELECTRONICS
@ALLABOUTELECTRONICS 8 ай бұрын
Hi, would you please provide the timestamp where you are referring in the video ?
@nirmala8331
@nirmala8331 Жыл бұрын
What if parity bit only got changed
@ALLABOUTELECTRONICS
@ALLABOUTELECTRONICS Жыл бұрын
If there is an error in the parity bit, then also it will get detected. As far as the number of errors in the received codes are odd, the error will be detected. But if there is an even number of error in the received code, then it won't be detected.
@Ok-wp4ed
@Ok-wp4ed Жыл бұрын
Do u teach at neso academy?😂
@akinokiji5423
@akinokiji5423 2 жыл бұрын
Thank you so much
@konohafrog
@konohafrog Жыл бұрын
Thank you
Parity Generator and Parity Checker Explained
14:09
ALL ABOUT ELECTRONICS
Рет қаралды 205 М.
Checksum
9:32
Neso Academy
Рет қаралды 814 М.
Little brothers couldn't stay calm when they noticed a bin lorry #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 17 МЛН
World’s Largest Jello Pool
01:00
Mark Rober
Рет қаралды 125 МЛН
Son ❤️ #shorts by Leisi Show
00:41
Leisi Show
Рет қаралды 10 МЛН
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 293 М.
But what are Hamming codes? The origin of error correction
20:05
3Blue1Brown
Рет қаралды 2,3 МЛН
Making a NINE CIRCLES Level in 2024
25:45
Wulzy
Рет қаралды 20 М.
When White King Gets TRAPPED | Chess Memes #191
8:04
Top Chess
Рет қаралды 112 М.
AMD slayed the dragon - AMD Ryzen 9 9900X & 9950X
8:39
ShortCircuit
Рет қаралды 203 М.
Hashing Algorithms and Security - Computerphile
8:12
Computerphile
Рет қаралды 1,5 МЛН
Hamming Code || Error Detection and Error Correction
14:33
Sudhakar Atchala
Рет қаралды 134 М.
How Hamming Code Corrects the Error | Hamming Code Explained
15:30
ALL ABOUT ELECTRONICS
Рет қаралды 62 М.
But what is a neural network? | Chapter 1, Deep learning
18:40
3Blue1Brown
Рет қаралды 17 МЛН
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 637 М.