Lecture # 2C - Numbers Systems, Operations and Codes
Lecture # 2C - Numbers Systems, Operations and Codes
INFORMATION TECHNOLOGY
MSD LSD
Octal Numbers
Octal to Binary Conversion
Octal digit 0 1 2 3 4 5 6 7
Binary 000 001 010 011 100 101 110 111
Decimal Digit 0 1 2 3 4 5 6 7 8 9
BCD 0000 0001 0010 0011 0100 0101 0110 0111 1000
1001
Convert decimal to BCD
a) 3 5 b) 9 8
0011 0101 1001 1000
c) 1 7 0 d) 2 4 6 9
0001 0111 0000 0010 0100 0110 1001
PROBLEM
a) 10000110
1000 01110
8 6
b) 001101010001
3 5 1
c) 1001010001110000
9 4 7 0
Octal Numbers
Add the following BCD Numbers
Gray Code
It is unweighted and it is not arithmetic code. There are no specific
weight assigned to the bit positions. It only a single bit change from
one code wd to next in sequence.
Digital Codes
Alphanumeric Codes.
Unicode
It is universal character set (UCS).
It is used for multilingual text, mathematical symbol or other
technical characters.
Digital Codes
Errors Code.
Many system use parity bit as a means for bit error detection.
Digital Codes
Summary
- Binary number is a weighted numbers is a positive power of two
and the weight of each fractional digit.
- A binary number is converted to decimal by summing the
decimal values of the weights of the 1s in the binary number.
- A decimal is converted to binary by summing the weights of the
repeated division by 2 method.
- A decimal weight is converted to binary.
- The basic rules of binary addition, subtraction.
- 1’s complement and 2’s complement
- Positive and negative number
Digital Codes
Summary
- Arithmetic operation
- Hexadecimal numbers
- Convert decimal to hexadecimal
- Octal to binary
- Decimal to BCD
- ASCII
- Alphanumeric
- BCD
- LSB
- MSB
Digital Codes
Summary
- Octal
- Parity
END
Q/A