4a (Digital System) Number System
4a (Digital System) Number System
DIGITAL SYSTEM
CHAPTER 4A: INTRO & NUMBERING SYSTEM
AND CONVERSION
Learning Outcome
Able to convert between different number systems
Able to understand and use logic gates and Boolean
algebra
Able to minimize Boolean functions using KMap
Able to design and construct combinational logic
circuits
Able to use Medium-scale integration (MSI) devices
Able to design and construct sequential logic circuits
Analog Circuits vs Digital Circuits
Analog Circuits Digital Circuits
Analog circuits are used in amplifiers, Voltages involved are only two values
transformers, regulators and filters. Analog (high or low). These voltages are discrete
circuits have continuous voltage and current and usually represented as binary value.
values.
Say we have three numbers – 734, 971 and 207. The value of 7 in all three numbers is
different−
• In 734, value of 7 is 7 hundreds or 700 or 7 × 100 or 7 × 10 2
• In 971, value of 7 is 7 tens or 70 or 7 × 10 or 7 × 10 1
• In 207, value 0f 7 is 7 units or 7 or 7 × 1 or 7 × 10 0
The weightage of each position can be represented as follows −
In digital systems, instructions are given through electric signals; variation is done by varying
the voltage of the signal.
Having 10 different voltages to implement decimal number system in digital equipment is
difficult.
So, many number systems that are easier to implement digitally have been developed.
27FA16
BINARY CONVERSION
BINARY-DECIMAL
Any binary number can be converted into its equivalent
decimal number using the weights assigned to each bit
position. Since only two digits are used, the weights are
powers of 2. these weights are20 (Units), 21 (two’s), 22 (fours),
23 (eights) and 24 (sixteen). If longer binary number involved,
the weights continue in ascending powers of 2.
Solution:
The equivalent decimal number is,
= 1 x 24 + 1 x 23 + 1 x 22 + 1 x 21 + 1 x 20
= 16 + 8 + 4 + 2 + 1
= ( 31 )10
Example 2
Determine the decimal numbers represented by the
following binary numbers.
a) 101101. 10101
b) 1001 . 0101
DECIMAL-BINARY
Solution: Division
by 2 Quotient Remainder
13/2 6 1
6/2 3 0
3/2 1 1
1/2 0 1
Example 2
Convert decimal 23 to binary.
Solution:
Example 3
Convert ( 0.65625)10 to an equivalent base –2 number.
Solution:
Example 4
Given an fraction decimal number n and integer k,
convert decimal number n into equivalent binary number
up-to k precision after decimal point.
Examples:
Solution:
7 3 6
7
DECIMAL TO OCTAL
For conversion from decimal to octal the procedure
used in binary system is applicable, using 8 as the
dividing (for integer part) and multiplying (for
fractional part) factor.
Exercise
a)
8
HEXADECIMAL CONVERSION
Hexadecimal number system is very popular in computer
uses. The base for hexadecimal number system is 16
which requires 16 distinct symbols to represent the
number. These are numerals 0 through 9 and alphabets A
through F. this is an alphanumeric number system
because its uses both alphabets and numericals to
represent a hexadecimal number.
HEXADECIMAL TO DECIMAL