Lecture 3 (Hexa - Octal - BCD)
Lecture 3 (Hexa - Octal - BCD)
- Hexadecimal Numbers
- Octal Numbers
-Codes
- Binary coded decimal (BCD)
- Gray code
- ASCII code
Hexadecimal Numbers
Hexadecimal Numbers
Hexadecimal Numbers
Counting in Hexadecimal
Hexadecimal Numbers
Binary-to-Hexadecimal Conversion
EXAMPLE
Hexadecimal Numbers
Hexadecimal-to-Binary Conversion
EXAMPLE
Hexadecimal Numbers
Hexadecimal-to-Decimal Conversion
One way to find the decimal equivalent of a hexadecimal number is to first convert the
hexadecimal number to binary and then convert from binary to decimal
EXAMPLE
Hexadecimal Numbers
Another way to convert a hexadecimal
number to its decimal equivalent is to
multiply the decimal value of each
hexadecimal digit by its weight and then
take the sum of these products.
EXAMPLE
Hexadecimal Numbers
Decimal-to-Hexadecimal Conversion
Repeated division of a decimal number by 16 will produce the equivalent hexadecimal
number, formed by the remainders of the divisions.
EXAMPLE
Octal Numbers
Octal Numbers
Octal Numbers
Octal-to-Decimal Conversion
The evaluation of an octal number in terms of its decimal equivalent is
accomplished by multiplying each digit by its weight and summing the
products, as illustrated here for 2374 .
8
Octal Numbers
Decimal-to-Octal Conversion
let’s convert the decimal number 359 to Octal
Octal Numbers
Octal-to-Binary Conversion
EXAMPLE
Octal Numbers
Binary-to-Octal Conversion
EXAMPLE
Binary Coded Decimal
(BCD)
Binary Coded Decimal (BCD)
Binary coded decimal (BCD)
Binary coded decimal (BCD)
Gray code
Gray code
Gray code
American Standard Code for Information Interchange
(ASCII)
American Standard Code for Information Interchange
(ASCII)
Questions