12.07.2015 Views

Lecture 7 - Webstaff.kmutt.ac.th - kmutt

Lecture 7 - Webstaff.kmutt.ac.th - kmutt

Lecture 7 - Webstaff.kmutt.ac.th - kmutt

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SummaryParity Me<strong>th</strong>odThe parity me<strong>th</strong>od is a me<strong>th</strong>od of error detection for simple transmission errors involving one bit (or an oddnumber of bits). A parity bit is an “extra” bit att<strong>ac</strong>hed to a group of bits to force <strong>th</strong>e number of 1’s to be ei<strong>th</strong>ereven (even parity) or odd (odd parity).The ASCII char<strong>ac</strong>ter for “a” is 1100001 and for “A” is1000001. What is <strong>th</strong>e correct bit to append to make bo<strong>th</strong> of<strong>th</strong>ese have odd parity?The ASCII “a” has an odd number of bits <strong>th</strong>at are equal to 1;<strong>th</strong>erefore <strong>th</strong>e parity bit is 0. The ASCII “A” has an evennumber of bits <strong>th</strong>at are equal to 1; <strong>th</strong>erefore <strong>th</strong>e parity bit is 1.Floyd, Digital Fundamentals, 10 <strong>th</strong> ed© 2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!