Logic CKT 01
Logic CKT 01
Logic CKT 01
CHAPTER : 1
DIGITAL CONCEPTS & NUMBER SYSTEMS
1
Logic Circuits & Techniques
Digital Waveforms
Logic Circuits & Techniques
The Clock
In digital systems, all circuits are synchronized with a basic timing
waveform called the clock. The clock is a periodic waveform in which
each interval between pulses equals the time for one bit.
This number system has 2 digits (0, 1) called bits which means that
this is a base 2 number system.
n
Generally an n bit binary number can count from 0 to 2 – 1.
The weighting structure of a mixed binary number (containing integer
part and fractional part) is
n-1 3 2 1 0 -1 -2 -m n-1 3 2 1 0
2 ...2 2 2 2 .2 2 ...2 where 2 . . . 2 2 2 2 are the
-1 -2 -m
place values of the different digits in the integer part and 2 2 . . . 2 are the
place values of the different digits in the fractional part, each starting from the
binary point.
The rightmost bit is the LSB (Least Significant Bit) and the leftmost bit is
the MSB (Most Significant Bit).
Exercises :
Convert the following binary numbers to decimal numbers :
(a) 11011012 (b) 100100012 (c) 0.10112 (d) 1010 . 1112
(e) 0011002 (f) 111100011112 (g) 11100. 0112 (h) 1110. 1012
Answers:
(a) 147910 (b) 4398110 (c) 55. 410210 (d) 480.16410
Example :
Find the Hexadecimal equivalent of the decimal number 2598. 6510
Solution :
Logic Circuits & Techniques
Exercises :
Convert the following decimal numbers to Hex numbers:
(a) 4910 (b) 25510 (c) 42.5210
(d) 2500.675 10 (e)10110
Answers:
(a) 31H (b) FFH (c) 2A. 851EB…..H
(d) 9C4. ACC…..H (e) 65H
Example :
Solution :
Note :
Note that zeros are added on either side of the given binary number so as to complete
4 bits in the outside groups.
The subscript ‘H’ is sometimes used for Hexadecimal numbers.
Exercises :
Answers:
(a) CA57H (b) CE8H (c) 2A.A8H
(d) 3F1.69H (e) 2CE. 6E8H
Example :
Convert the Hex number 29.643H to a binary number
Solution :
Logic Circuits & Techniques
So the answer is 101001 . 0110010000112
(Note that the leading zeros are removed from the final answer as it does not change the value.)
Exercises :
Convert the following Hex numbers to binary numbers:
(a) 10A4H (b) CF8EH (c) 6BD3H (d) 9742H (e) 2CE. 6E8H
Answers:
(a)10000101001002 (b)11001111100011102 (c) 1101011110100112
(d) 10010111010000102 (e) 1011001110. 0110111012
BCD
BCD means Binary Coded Decimal. The decimal digits 0 through 9 can be
coded (represented) using a 4 bit binary code .
The BCD equivalent of a decimal number is written by replacing each decimal
digit in the integer and fractional parts of the decimal number with its 4-bit
binary equivalent.
Example :
Write the BCD equivalent of 24. 3610 :
Solution :
24. 3610 = (0010 0100 . 0011 0110) BCD
Exercises:
Write the BCD equivalent of the following decimal numbers:
(a) 1210 (b) 13410 (c) 455610 (d) 345. 7910
Answers:
(a) 0001 0010 (b) 0001 0011 0100 (c) 0100 0101 0101 0110
(d) 0011 0100 0101 . 0111 1001
This is the reverse process of that done in (a). So first convert the binary number
to a decimal number and then write its BCD equivalent:
Solution : We can first convert the above binary number to a decimal number
as 10101011.1012 = 171.62510
Therefore the BCD equivalent of the above decimal number is
171.62510 = (0001 0111 0001 . 0110 0010 0101)BCD
1 nibble = 4 bits
1 Byte = 8 Bits
1 Word = 16 bits
1 long word = 32 bits
10
1 kilo byte = 2 bytes
20
1 Mega byte = 2 bytes
30
1 Giga byte = 2 bytes
Biggest 1 byte hex number is = 1111 1111 = FF16
Smallest 1 byte hex number is = 00
Biggest 1 byte octal number is = 1111 1111= 3778
Logic Circuits & Techniques
Binary Addition :
The four (4) basic rules for adding binary digits ( bits ) are as follows:
When there is a carry of 1, the three bits are being added as follows:
1 +0 +0 sum = 1 ; carry = 0
1 +0 +1 sum = 0 ; carry = 1
1 +1 +0 sum = 0 ; carry = 1
1 +1 +1 sum = 1 ; carry = 1
a) 11 + 11
b) 11111 + 1000
c) 111101 + 1011010
d) 1101.110 + 1010.110011
Binary Subtraction :
The four rules for subtracting the binary numbers are as follows:
b) 1001 – 0111
Logic Circuits & Techniques
c) 1100101 – 101110
d) 1010. 01 – 111.111
Binary Multiplication
The four basic rules for multiplying binary numbers are as follows:
0 x0 =0
0 x1 =0
1 x0 =0
1 x1 =1
a) 101 x 111
b) 110 x 111
c) 101101 x 1010
Binary Division:
Divide 1011012 by 1102 ; where 1102 is the Divisor & 1011012 is the
Dividend
b) 110101. 11 by 101
To get the 1’s complement of a binary number, change all 1’s to 0’s and all
0’s to 1’s.
b) 00011010
c) 11110111
d) 0001.101
To get the 2’s complement of a binary number, add 1 to the LSB of the 1’s
complement of the given number.
b) 00010110
c) 1111.100
Convert the following decimal numbers into signed binary numbers using the
sign-magnitude form method:
a) +68 (b) +100 (c) -12 (d) -89
Convert the following decimal numbers into signed binary numbers using the
1’s complement form method:
Convert the following decimal numbers into signed binary numbers using the
2’s complement form method:
Note : From the above examples, you may have noted one point :
A positive number has the same representation in all the three forms, but a
negative number has different representations.
References :
Mc GrawHill.
USA.