Download presentation
Published byRandolf Skinner Modified over 9 years ago
1
Codes Octal Power Hexadecimal ASCII BCD Code 83 82 81 80
A B C D E F
2
Code conversions Similar to Dec-to Binary: Start dividing by 8
Decimal to Octal Similar to Dec-to Binary: Start dividing by 8 and build Octal figures from Remainders: 24010=3608 8 240 30 3 6
3
Code conversions Binary –to-Octal
3 bits of binary could provide weight of 810, that is equivalent to Octal;i.e: Bits: b2 b1 b0 Wts: 4 2 1 Bin: 710 and Octal range 0-7 Example: = Octal Values:
4
Octal Conversion binary: Octal: 011 010 1102 3268
3 x x x 80
5
Binary Addition 1110 1410 10111110 110 012510 1001 1110 101011 110110
6
Octal Addition 3458 +2368 =6038 Justification…..
3458= and 2368=15810 = 38710 and 6038=3+6x64=38710
7
BCD Addition =
8
Byte Most computers handle and store binary data and information in groups of eight bits, so a special name is given to a string of 8 bits..Byte. A Byte therefore always consists of eight bits data. A 32 bits data has 4 Bytes of data and similarly 128 bits of data has 16 Bytes.
9
Questions What is the largest decimal value that can be represented in a binary using two bytes? How many bytes are needed to represent the decimal value of 846,569 in BCD?
10
Assignment 1 Convert binary into decimals:
10110 Convert decimal into Binary: 37 14 189
11
Assignment 1 What is the largest decimal value that can be represented by an eight-bit binary number? Convert each Octal into Binary: 743 256 1204
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.