Download presentation

Presentation is loading. Please wait.

Published byDawson Sibert Modified over 3 years ago

1
Text (and email) Plain text and formatted text. Plain text is usually coded in “ASCII” (American Standard Code for Information Interchange). A 7 bit code which allows 128 characters. Computers usually deal with 8 bits so ASCII appears to “waste” one bit.

2
Text “ASCII” coded text was originally designed to connect terminals (keyboard and text monitors) to remote computers. Errors could occur in the connection. Bit 8 used for parity checks.

3
ASCII Full list of ASCII codes will appear on my website and will be given as a handout. But common letters and numbers are easy to remember. Upper case letters –Add 64 (decimal) (40 (hex)) to position in alphabet. Eg Code for B is 64 + 2 = 66 Or 40 + 2 = 42 in hexadecimal.

4
ASCII Lower case letters –Add 96 (decimal) (60 (hex)) to position in alphabet. Eg Code for a is 96 + 1 = 97 Or 60 + 1 = 61 in hexadecimal. Numbers –Add 48 (decimal) (30 (hex)) to number. Eg Code for 5 is 48 + 5 = 53 Or 30 + 5 = 35 in hexadecimal. Working in hex may be easier.

5
Parity Since we mentioned it. Error checking mechanism. Odd or even, (but we decide first). In 7 bit code (like ASCII) we use the 8 th (MSB) for parity. We set the bit to one or zero to make the total number of 1’s odd (for odd parity) or even (for even parity).

6
Odd Parity Example 1 –Say our seven bit number is 011101. There are 4 ones. –We add an 8 th bit of value 1 to make the total number of ones odd, giving (1)011101. Example 2 –Say our seven bit number is 010101. There are 3 ones. –We add an 8 th bit of value 0 to keep the total number of ones odd, giving (0)010101.

7
Even Parity Example 1 –Say our seven bit number is 001101. There are 3 ones. –We add an 8 th bit of value 1 to make the total number of ones even, giving (1)001101. Example 2 –Say our seven bit number is 110101. There are 4 ones. –We add an 8 th bit of value 0 to keep the total number of ones even, giving (0)110101.

8
Parity Checked by receiving computer to see if there is an error. Can you see a problem with this? Clue - 2 errors. Midi code (for sound synthesiser communication) very similar to ASCII, but no parity.

Similar presentations

OK

Chapter 2 – Number Systems and Codes Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights.

Chapter 2 – Number Systems and Codes Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey 07458 All rights.

© 2018 SlidePlayer.com Inc.

All rights reserved.

Ads by Google

Ppt on power system protection and switchgear Ppt on forward contracts Ppt on forward rate agreement Ppt on atm machine download Ppt on disaster management in hindi Free download ppt on flora and fauna of india Ppt on gulliver's travels part 4 Ppt on conservation of momentum and energy Ppt on bluetooth controlled robot car By appt only movie page