Unit 1 - Digital Systems - WWW - Rgpvnotes.in
Unit 1 - Digital Systems - WWW - Rgpvnotes.in
Tech
Subject Name: Digital Systems
Subject Code: CS-304
Semester: 3rd
Downloaded from be.rgpvnotes.in
OCTAL NUMBER SYSTEM : - This number system has a base or radix of 8. The symbols or
digits used in this system are 0 through 7 i.e.( 0, 1, 2, 3, 4, 5, 6, 7 )
DECIMAL NUMBER SYSTEM :- This number system has a base or radix of 10. The symbols or
digits used in this system are 0 through 9 i.e. ( 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 )
HEXADECIMAL NUMBER SYSTEM :- This number system has a base or radix of 16. The
symbols or digits used in this system are 0 through F i.e. ( 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E,
F)
=8 + 4 + 2 + 1
= 15
1/32 )
= 0.5 + 0.25 + 0 + 0.0625 + 0
= 0. 8125
ie. (0.11010 )2 = ( 0. 8125 )10
Thus ( 1111.11010 )2 = ( 15 . 8125 )10
2 15 1
2 7 1
2 3 1
ie. ( 15 )10 = ( 1111 )2
1
( 0.812 2 ) = 1.624 1
Fractional Part :
( 0.624 2 ) = 1.248 1
( 0.248 2 ) = 0.496 0
ie. ( 0 . 812 )10 = ( 0.11001 )2
( 0.496 2 ) = 0.992 0
( 0.992 2 ) = 1.984 1
Thus ( 15 . 812 )10 = ( 1111 . 11001)2
( 57 . 245 )8 = ( ? )10
(57)8 = ( 5 81 ) + ( 7 80 )
Integeral part :
= 40 + 7
= 47
ie. (57)8 = ( 47 )10
Fractional Part :
(0.245 )8= ( 2 1/8 ) + ( 4 1/64 ) + ( 5 1/512 )
= 0.25 + 0.0625 + 0.0097
= 0. 3222
ie. (0.245)8 = (0. 3222 )10
Thus ( 57.245)8 = ( 47 . 3222 )10
8 303 7
8 37 5 ie. ( 303)10 = ( 457)8
4
( 0.322 8 )= 2.576 2
Fractional Part :
( 0.576 8 )= 4.608 4
( 0.608 8 )= 4.864 4 ie. ( 0 . 322 )10 = ( 0 . 24467 )8
( 0.864 8 ) = 6.912 6
( 0.912 8 )= 7.296 7
Thus ( 303 . 322 )10 = (457 . 24467 )8
Integeral part :
16 3750 6 6
16 234 10 A
ie. ( 3750)10 = ( EA6 )16
14 E
( 0.365 16 ) = 5.84 5 5
Fractional Part :
Integeral part :
Fractional Part :
( 0. 001011111010 )2 = { 0010, 1111, 1010, }
2 F A
ie. ( 0. 001011111010 )2 = ( 0.2FA )16
Integeral part :
( 99E )16 = 9 9 E
{ 1001 1001 1110 } = (10011001110)2
ie. ( 99E )16 = (10011001110 )2
Fractional Part :
( 0 . 2FA)16 = 2 F A
{ 0010 1111 1010 } = ( 0. 001011111010)2
Integeral part :
4 0 4
( 404 )8 =
{ 100 000 100 } = (100000100)2
ie. ( 404 )8 = (100000100 )2
Fractional Part :
( 0 . 245)8 = 2 4 5
{ 010 100 101 } = ( 0. 010100101)2
Integeral part :
( 10011110)2 ={ 010, 011, 110 }
= ( 010, 011, 110 )2
2 3 6
ie. ( 10011110)2 = ( 236 )8
Fractional Part :
( 0. 00101 )2 = { 001, 010 }
1 2
Integeral part :
( 174654 )8 = 1 7 4 6 5 4
{ 001 111 100 110 101 100 }
Fractional Part : 2 7 3 0 5 4
Integeral part :
( F9AC )16 = F 9 A C
{ 1111 1001 1010 1100 } = ( 1111100110101100 )2
Fractional Part :
( 0 . 5D8B )16 = 5 D 8 B
{ 0101 1101 1000 1011 } = ( 0 . 010, 111, 011, 000, 101, 100)2
1.2 CODES
Numbers, letters or words are represented by a specific group of symbols, called code.
1) Weighted code: Weighted binary codes are those binary codes which obey the positional
weight principle. Each position of the number represents a specific weight.
Example: Straight bit binary code, BCD code.
Straight bit binary code:
Decimal Number 2
Positional weights 23 22 21 20
= = = =
8 4 2 1
Binary Code 0 0 1 0
Binary Coded Decimal (BCD) code:
In this code each decimal digit (0 to 9) is represented by a 4-bit binary number. BCD is a way to
express each of the decimal digits with a binary code. In the Binary, with four bits we can
represent sixteen numbers (0000 to 1111). But in BCD code only first ten of these are used (0000
to 1001). The remaining six code combinations i.e. 1010 to 1111 are invalid in BCD.
Decimal 0 1 2 3 4 5 6 7 8 9
BCD 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001
2) Non-weighted code: In this type of binary codes, the positional weights are not assigned. The
examples of non-weighted codes are Excess-3 code and Gray code.
Excess-3 code
The Excess-3 code is also called as XS-3 code. It is non-weighted code used to express decimal
numbers. The Excess-3 code words are derived from the 8421 BCD code words adding (0011)2 or
(3)10 to each code word in 8421. The excess-3 codes is obtained, as follows
Decimal Number (8421) BCD ADD 3 i.e.(+0011) Excess-3
Example:
3) Alphanumeric codes
The alphanumeric codes are the codes that represent numbers and alphabetic characters.
Mostly such codes also represent other characters such as symbol and various instructions
necessary for conveying information. An alphanumeric code should at least represent 10 digits
and 26 letters of alphabet i.e. total 36 items. The following three alphanumeric codes are very
commonly used for the data representation.
1. American Standard Code for Information Interchange (ASCII).
2. Extended Binary Coded Decimal Interchange Code (EBCDIC).
3. Five bit Baudot Code.
ASCII code is a 7-bit code whereas EBCDIC is an 8-bit code. ASCII code is more commonly used
worldwide while EBCDIC is used primarily in large IBM computers.
All the bits are used for representing only the magnitude
Sign- Magnitude Numbers: Binary numbers which contains a sign bit followed by magnitude bits
are called Sign- Magnitude Numbers. 0 is used to represent the (+) sign and 1 is used to
represent a (-) sign. The MSB of binary number is used to represent the sign and remaining bit is
used to represent the magnitude. MSB represents the sign and rest of bits represent the
magnitude.
1/0 0 1 1 0 1 0 0
MSB MAGNITUDE
For an 8-bit sign-magnitude number, the largest negative number is (-127)10 and positive number
is (+127)10.
1) BINARY ADDITION:-
1. 0 + 0 = Sum 0 with carry of 0.
2. 0 + 1 = Sum 1 with carry of 0.
3. 1 + 0 = Sum 1 with carry of 0.
4. 1 + 1 = Sum 0 with a carry of 1.
5. 1 + 1 + 1 = Sum 1 with carry of 1.
Example: Add (111011.1101)2 with (011111.0110)2
1 1 1 1 1 1 1 carry
1 1 1 0 1 1 . 1 1 0 1 Augend
+ 0 1 1 1 1 1 . 0 1 1 0 Addend
1 0 1 1 0 1 1 . 0 0 1 1 sum
2) BINARY SUBTRACTION:
The basic principles of binary subtraction include the following:
A) 0 − 0 = 0. B) 1 − 0 = 1. C) 1 − 1 = 0. D) 0 − 1 = 1 with a borrow of 1 from the next more
significant bit.
Example: Subtract (11111.011)2 from (111011.1101)2
1 1 1 0 1 1 . 1 1 0 1 Minuend
─ 0 1 1 1 1 1 . 0 1 1 0 Subtraend
0 1 1 1 0 0 . 0 1 1 1 Difference
1 0 0 0 0 0 1
+ 1 0 0 0 0 0 1
1 Carry generated 0 0 0 0 0 1 0
5) BINARY MULTIPLICATION:
The basic rules of multiplication are listed as follows:
1. 0 × 0 = 0.
2. 0 × 1 = 0.
3. 1 × 0 = 0.
4. 1 × 1 = 1.
Example: Multiply (10.11) 2 by (11)2
1 0 . 1 1 Multiplicand
X 1 1 Multiplier
1 0 . 1 1
+ 1 0 1 . 1 0
1 0 0 0 . 0 1 Product
6) BINARY DIVISION:
Example: Divide (110001)2 by (111)2
done. There are many rules in Boolean algebra by which those mathematical operations are
done. In Boolean algebra, the variables are represented by Capital Letter like A, B, C etc and
the value of each variable can be either 1 or 0, nothing else. In Boolean algebra an expression
given can also be converted into a logic diagram using different logic gates like AND gate, OR
gate and NOT gate, NOR gates, NAND gates, XOR gates, XNOR gates etc.
Some basic logical Boolean operations,
AND operation OR operation NOT operation
0.0 = 0 0+0=0 =
1.0 = 0 0+1=1 =
0.1 = 0 1+0=1
1.1 = 1 1+1=1
Proof :
Inputs Outputs
A B A+B A .B A.B A +B
0 0 1 1 1 1
0 1 0 0 1 1
1 0 0 0 1 1
1 1 0 0 0 0
Colu fo A+B a d A .B a e sa e. Colu fo A.B a d A + B a e same. Hence proved.
1 001 X .Y .) m1
2 010 X .Y.) m2
3 011 X .Y.) m3
4 100 X.Y .) m4
5 101 X.Y .) m5
6 110 X.Y.) m6
7 111 X.Y.Z m7
Example: Boolean expression in SOP form:
F = X .Y .) + X .Y .) + X .Y.) + X.Y .) + X.Y.Z
F(A,B,C,D) = ∑m ( 0, 1, 3, 5, 7 )
Question : Using Karnaugh maps, write the minimized Boolean expressions for the output
functions : Y = A .B.C + A.B .C + A.B.C + A .B .C and Y = A .B .C + A.B.C +
A .B .C + A.B .C + A.B.C + A.B .C
Solution: Y1 = ∑m ( 0, 2, 4, 7 ) and Y2 = ∑m ( 0, 1, 4, 5, 6, 7 )
K-Map for Y1:
B'C' B'C BC BC'
A' 1 0 0 1
A 1 0 1 0
�=[ + + ′ ′+ + + ′ ′] ′
′
�=[ ′ + ]
Or
�=[ ′+ ′ ′+ + ′] ′
�= [ . + + ′] ′
′ {
�=[ . + ′ }′]
�=[ ′+ ′ . + ]
�=[ ′ + ′ + ′ + ′ ]
′
�=[ ′ + ]