Chapter 1 Number Systems - v6
Chapter 1 Number Systems - v6
Instructional Objectives
• Perform decimal to binary or hexadecimal conversion and vice versa.
• Express decimal numbers using the Binary-Code- Decimal (BCD) code.
• Explain the need for ASCII Code.
• Understand the need for Gray code
YouTube video
a) This video provides a basic introduction into number systems such decimal, binary, octal and
hexadecimal numbers:
https://www.youtube.com/watch?v=FFDMzbrEXaE&t=415s
2
Official (Closed) - Non Sensitive
3
Official (Closed) - Non Sensitive
• Least significant bit (LSB) is the bit position in a binary number giving the
least value.
• Most significant bit (MSB) is the bit position in a binary number having the
greatest value.
• Easy to design electronic circuits to operate with two voltage levels,
representing the 2 symbols in a binary system
4
Official (Closed) - Non Sensitive
5
Official (Closed) - Non Sensitive
6
Official (Closed) - Non Sensitive
7
Official (Closed) - Non Sensitive
8
Official (Closed) - Non Sensitive
Each HEX digit has its value expressed in powers of 16, depending on its position
9
Official (Closed) - Non Sensitive
Example
Convert the following Decimal numbers to their Hexadecimal
equivalents using repeated division by 16 method.
(a) 29910 Many students made a mistake here
10
Official (Closed) - Non Sensitive
Decimal 10 11 12 13 14 15
Invalid code
12
Official (Closed) - Non Sensitive
Example
Convert the following decimal numbers to their equivalent
BCD codes.
13
Official (Closed) - Non Sensitive
Example
Convert the following BCDs to their decimal equivalents
respectively.
14
Official (Closed) - Non Sensitive
Summary
Decimal Straight Binary BCD Hex Binary ( Hex Equ)
| | | | |
| | | | |
| | | | |
31 11111 0011 0001 1F 0001 1111
32 100000 0011 0010 20 0010 0000
17
Official (Closed) - Non Sensitive
19
Official (Closed) - Non Sensitive
000
001
010
011
100
101
110
111
20