Digital Electronics - Till Boolean Theorems
Digital Electronics - Till Boolean Theorems
Digital Electronics - Till Boolean Theorems
Engineering
Digital Electronics
Prof. Manjunath V Gudur
Department of Electronics and Communication
Module-4
8 25
8 3 - 1 LSD
MSD
So (25)10 = (31)8
16 31
16 1 - F LSD
MSD
So (31)10 = (1�)16
(1101.101)2 = (13.625)10
Basic Electronics - ELN 13
Octal to Decimal
(5632.471)8 = (?)10
Note that you can append any number of 0’s in leftmost bit (or before the
most significant bit) for integer part and append any number of 0’s after
the rightmost bit for fraction part for completing the group of 3 bits, this
does not change value of input binary number.
Basic Electronics - ELN 19
Octal to Binary
Binary to Octal
Note that you can append any number of 0’s in leftmost bit (or before the
most significant bit) for integer part and append any number of 0’s after
the right most bit for fraction part for completing the group of 4 bits, this
does not change value of input binary number.
Basic Electronics - ELN 21
Binary to Hexadecimal Hexadecimal to Binary
•Binary Addition
• Binary Subtraction
• Binary Multiplication
• Binary Division
Carry: 1 1 1 1
(5 . 7 5) 10 equivalent decimal is 1 0 1 . 1 1
+ (7 . 5 0) 10 equivalent decimal is 1 1 1 . 1 0
(1 3 . 2 5)10 Sum: 1 1 0 1 . 0 1
A = 05 = 1 0 1 (Minuend) ----------------------------------------------------> 1 0 1
- - - +
B = 04 = 1 0 0 (subtrahend) ----> 1’s complement of subtrahend ----> 0 1 1
01 EAC 1 000
+1
001
There is a carry out of MSB, the result is positive
and hence add this carry to LSB to get final result. The result is positive
A = 05 = 1 0 1 (Minuend) ----------------------------------------------------> 1 0 1
- - - +
B = 04 = 1 0 0 (subtrahend) ----> 1’s complement of subtrahend ----> 0 1 1
01 EAC 1 000
+1
001
There is a carry out of MSB, the result is positive
and hence add this carry to LSB to get final result. The result is positive
Now add Minuend with 2’s complement of subtrahend to get the result:
101
+
100
There is a carry out of MSB, discard
the carry and the result is positive. 1 00 1
Final Result = 001
Basic Electronics - ELN 36 36
2. Perform (04)10 - (05)10 using binary 2’s complement subtraction.
Now add Minuend with 2’s complement of subtrahend to get the result:
There is no carry out of MSB, result is 100
+
negative. To get the actual difference 011
take the 2’s complement of the result.
111
Now add Minuend with 2’s complement of subtrahend to get the result:
1011.10
There is a carry out of MSB, discard +
the carry. Result obtained is positive. 0111.11
10011.01
Inputs Outputs
A B A+B B+A
0 0 0 0
0 1 1 1
1 0 1 1
1 1 1 1
Basic Electronics - ELN 57
Inputs Outputs
A B C A.B (A.B).C B.C A.(B.C)
0 0 0 0 0 0 0
0 0 1 0 0 0 0
0 1 0 0 0 0 0
0 1 1 0 0 1 0
1 0 0 0 0 0 0
1 0 1 0 0 0 0
1 1 0 1 0 0 0
1 1 1 1 1 1 1
i. (A.B)’=A’+B’
It is proved using
following truth table.
ii. (A+B)’=A’.B’
It is proved using
following truth table.
Y = A.B = AB
Logic Diagram:
Logic / Boolean expression: Truth Table:
Y=A+B
Y = A’ or
Y=�
Y = (AB)’ = ��
Y = (A+B)’ = � + �